套用至 Oracle Autonomous AI Database 的先決條件
您可以從任何經 Oracle GoldenGate 認證的來源資料庫或平台,複寫至 Oracle Autonomous AI Database。
您應該具備下列詳細資訊:
-
您的來源資料庫已設定 Oracle GoldenGate Extract 處理作業,並寫入執行 Replicat 以將資料套用至 Oracle Autonomous AI Database 目標的歷程檔。
-
Oracle Autonomous AI Database 已佈建並執行環境。
若要使用 Oracle GoldenGate 將資料傳遞至 Oracle Autonomous AI Database 執行處理,請執行下列作業:
解除鎖定 Oracle GoldenGate 的自治式 AI 資料庫使用者
以下是完成組態任務的步驟:
備註:指示是根據已設定來源環境的假設而定。瞭解在 Oracle Autonomous AI Database 環境中設定複寫所需的步驟。
-
對於內部部署的 Oracle GoldenGate,請確定已安裝 Oracle GoldenGate。
您也可以使用 Oracle GoldenGate Microservices Architecture 21c for Marketplace for Oracle Autonomous AI Database Serverless 21c。使用 Marketplace for Oracle Autonomous AI Database Serverless,Oracle GoldenGate Microservices Architecture 21c 和更高版本支援 Autonomous AI Database 擷取。
-
為您的 Oracle GoldenGate 環境建立部署。這是將建立將套用資料至自治式 AI 資料庫之 Replicat 的部署。
-
自治式 AI 資料庫執行個體具有預先建立 Oracle GoldenGate 內部部署的使用者,稱為
ggadmin。已授予ggadmin使用者必要的 Replicat 權限。這是將儲存用於 Oracle GoldenGate 處理之任何物件的使用者,例如檢查點表格和活動訊號物件。依照預設,此使用者已被鎖定。若要解除鎖定ggadmin使用者,請使用任何 SQL 從屬端工具,以ADMIN使用者身分連線至您的 Oracle Autonomous AI Database 執行處理。請參閱關於連線至自治式 AI 資料庫執行處理。 -
執行
ALTER USER命令來解除鎖定ggadmin使用者並設定其密碼。這將用於 Oracle Autonomous AI Database 上任何DBLOGIN作業的命令行中。Replicat 將用於允許 Oracle GoldenGate 連線至 Oracle Autonomous AI Database 並套用資料。ALTER USER ggadmin IDENTIFIED BY p0$$word ACCOUNT UNLOCK;
取得自治式 AI 資料庫從屬端證明資料
若要建立與 Oracle Autonomous AI Database 執行處理的連線,您必須下載從屬端證明資料檔案。您可以透過兩種方式下載從屬端證明資料檔案:Oracle Cloud Infrastructure Console 或 Database Actions Launchpad。
如需詳細資訊,請參閱下載從屬端證明資料 (公事包) 。
注意:如果您沒有 Oracle Autonomous AI Database 的管理員存取權,請要求服務管理員下載證明資料檔案並提供給您。
下列步驟使用資料庫動作啟動畫面來下載從屬端證明資料檔案。
-
登入您的自治式 AI 資料庫帳戶。
-
從資料庫執行處理頁面中,按一下資料庫動作。這會啟動「資料庫動作啟動畫面」。Launchpad 會嘗試以 ADMIN 身分登入資料庫。如果不成功,系統會提示您輸入資料庫 ADMIN 使用者名稱和密碼。
-
在資料庫動作啟動畫面的管理底下,按一下下載從屬端證明資料 (公事包) 。
-
輸入密碼來保護您的「從屬端證明資料」壓縮檔,然後按一下下載。
注意:當您下載公事包時所提供的密碼,會保護下載的「從屬端證明資料」公事包。
-
將證明資料
zip檔案儲存至您的本機系統。證明資料zip檔案包含下列檔案:-
cwallet.sso -
ewallet.p12 -
keystore.jks -
ojdbc.properties -
sqlnet.ora -
tnsnames.ora -
truststore.jks -
ewallet.pem -
README.txt
在設定 Oracle GoldenGate 與 Oracle Autonomous AI Database 執行處理搭配運作時,請參閱並更新 (如有需要)
sqlnet.ora和tnsnames.ora檔案。 -
設定自治式 AI 資料庫的 Replicat 先決條件的後續步驟
準備 Oracle GoldenGate for Oracle Autonomous AI Databases 之後,您可以依照 Configure Replicat for Oracle Autonomous AI Database 主題中的指示開始。