Oracle Database 檢視批發 CBDC 的定義
您可以使用 RTF 歷史記錄資料庫來擷取科目交易歷史記錄,並解決在相同區塊中發生之多個交易中不正確的餘額。
您可以使用
GetAccountTransactionHistoryWithFiltersFromRichHistDB
、getOrgAccountTransactionHistoryWithFiltersFromRichHistDB
和 getAllAccountTransactionHistoryWithFiltersFromRichHistDB
API,從 RTF 歷史記錄資料庫擷取帳戶交易歷史記錄。當您將 custom_endpoint
和 bearer_token
參數傳遞至方法時,會從 RTF 歷史記錄資料庫或狀態資料庫擷取帳戶交易歷史記錄。有多個自訂端點,如下所示。如需詳細資訊,請參閱建立豐富歷史記錄資料庫檢視。
若要從 Rich History 資料庫擷取交易歷史記錄,您必須執行 Oracle Autonomous Database 並啟用 Oracle REST Data Services (ORDS) 和 OAuth。
如果您不小心刪除
Participant_orgs_list.yml
檔案,請執行下列指令以重新產生檔案。npm run refresh
如果系統中已有檢視或資料庫連結,則指令碼不會重新建立。相反地,會記錄類似下列文字的訊息:
createView already exists
命令檔會繼續下一個步驟。這可確保命令檔不會刪除或覆寫視觀表、表格、資料庫連結以及其他資料庫實體。此外,您可能會看到下列錯誤。
Error: ORA-20049: Cannot alter the URL mapping while the schema is enabled. Try disabling the schema first.
發生此錯誤的原因是資料庫綱要已啟用,因此無法對應至 .env
檔案中指定的不同別名。
若要解決此行為,請完成下列步驟。
- 使用先前使用的相同別名,或檢查資料庫中的 REST 服務是否有綱要別名。
- 停用資料庫綱要,然後重新執行命令檔。如需詳細資訊,請參閱 Oracle REST Data Services (ORDS):使用 SQL Developer 。