Oracle Database View Definitions for Wholesale CBDC
You can use the rich history database to retrieve account transaction history and resolve incorrect balances in multiple transactions that occur in the same block.
You can use the
GetAccountTransactionHistoryWithFiltersFromRichHistDB
, getOrgAccountTransactionHistoryWithFiltersFromRichHistDB
, and getAllAccountTransactionHistoryWithFiltersFromRichHistDB
APIs to fetch account transaction history from the rich history database. When you pass the custom_endpoint
and bearer_token
parameters to the method, the account transaction history is retrieved from the rich history database or the state database. There are multiple custom endpoints, as shown in the following list. For more information, see Create Rich History Database Views.
To retrieve transaction history from the rich history database, you must be
running Oracle Autonomous Database with Oracle REST Data Services (ORDS) and OAuth
enabled.
If you delete the
Participant_orgs_list.yml
file by mistake, run the following command to regenerate the file.npm run refresh
If a view or database link already exists in the system, the script does not recreate it. Instead, a message similar to the following text is logged:
createView already exists
The script continues with the next step. This ensures that views, tables, database links, and other database entities are not deleted or overwritten by the script.Additionally, you might see the following error.
Error: ORA-20049: Cannot alter the URL mapping while the schema is enabled. Try disabling the schema first.
This error occurs because the database schema is enabled and thus cannot be mapped to the different alias that is specified in the .env
file.
To work around this behavior, complete the following steps.
- Use the same alias name that was used previously, or check the REST services in the database for the schema alias.
- Disable the database schema and run the script again. For more information, see Oracle REST Data Services (ORDS) : Using SQL Developer.