Create the Fallback State Database
You can connect to Oracle Database to create a fallback state database. The hybrid state database model uses a fallback state database, which can become the primary state database if there are any issues with the embedded state database on the peer.
What's the Fallback State Database?
The fallback state database maintains a secondary copy of the state database in Oracle Database, while the primary state database is stored on the embedded Berkeley DB.
The state database is stored on each peer for all channels that the peer is joined to. Oracle Blockchain Platform uses Berkeley DB as the embedded database on peer nodes. If a peer crashes or restarts, the state database can get corrupted. Oracle Blockchain Platform automatically detects and rebuilds a corrupted state database from the ledger, but this can take a significant amount of time depending on the ledger size and number of blocks. The peer node is not available for endorsing or committing transactions during the rebuild process.
The hybrid state database model adds an external Oracle Database as a fallback. In normal operation, peers complete synchronous block commits to the Berkeley DB state database and asynchronous commits to the fallback database. If the embedded state database fails, the peer automatically switches to use Oracle Database for synchronous commits while the Berkeley DB state database is asynchronously rebuilt. After the rebuild process completes, the peer switches back to normal operation.
You must use Oracle Autonomous Transaction Processing as the fallback database.