在專用端點上使用與非 Oracle 資料庫之客戶管理的異質連線建立資料庫連結
您可以建立從專用 Exadata 基礎架構上的 Autonomous Database 到 Oracle Database Gateway 的資料庫連結,以存取位於專用端點上的非 Oracle 資料庫。
Oracle Database Gateway 是專為存取特定非 Oracle 系統所設計的閘道。使用 Oracle Database Gateway,無需知道資料位置或儲存方式,即可存取分散式資料庫系統中的任何位置資料。使用 Autonomous Database 上的資料庫連結搭配 Oracle Database Gateway 支援異質環境,並不需要自訂應用程式,即可從非 Oracle 系統存取資料。
附註:
只有 19c 和 23.6 和更新版本的 19.25 和更新版本才支援在專用端點上建立具有客戶管理異質連線的資料庫連結,以及 23ai 的非 Oracle 資料庫。相關主題
必備條件
-
設定讓 Oracle Database Gateway 存取非 Oracle 資料庫。請參閱 Oracle Database 19c Database Heterogeneous Connectivity User's Guide 中的 Oracle Database Gateways 或 Oracle Database 23ai Database Heterogeneous Connectivity User's Guide ,瞭解詳細資訊。
視您要連線的資料庫而定,您可以參閱相應的 Installation and Configuration Guide 和 Gateway User's Guide。
例如,若為 Oracle Database Gateway for SQL Server,請參閱:
-
Oracle Database 19c Installation and Configuration Guide for Microsoft Windows 中的 Installing and Configuring Oracle Database Gateway for SQL Server 或 Oracle Database 23ai Installation and Configuration Guide for Microsoft Windows
-
Oracle Database 19c User's Guide 中的 Introduction to the Oracle Database Gateway for SQL Server 或 Oracle Database Gateway for SQL Server User's Guide 中的 Oracle Database 23ai User's Guide 。
-
Oracle Database 19c Installation and Configuration Guide for Microsoft Windows 中的 Configure Oracle Net for the Gateway 或 Oracle Database 23ai Installation and Configuration Guide for Microsoft Windows
-
-
設定 Oracle Net Listener 處理 Oracle Database Gateway 上的內送要求。
-
在 Oracle Database Gateway 上建立自行簽署的公事包。
-
目標資料庫必須能夠從來源資料庫的 Oracle Cloud Infrastructure VCN 存取。例如,您可以在下列情況時連線至目標資料庫:
-
目標資料庫位於專用端點。
-
來源資料庫和目標資料庫都位於相同的 Oracle Cloud Infrastructure VCN 中。
-
來源資料庫和目標資料庫位於不同的 Oracle Cloud Infrastructure VCN 中,而且是配對的。
-
針對專用端點上的目標,
DBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
支援使用hostname
參數指定單一主機名稱。在專用端點上,不支援使用 IP 位址、SCAN IP 或 SCAN 主機名稱 (當目標位於公用端點時,CREATE_DATABASE_LINK
支援使用 IP 位址、SCAN IP 或 SCAN 主機名稱)。
-
-
必須為專用端點定義下列傳入和傳出規則:
-
在來源資料庫的子網路安全清單或網路安全群組中定義傳出規則,以允許目標資料庫的 IP 位址和連接埠號碼透過 TCP 的流量。
-
在目標資料庫的子網路安全清單或網路安全群組中定義傳入規則,以允許從來源資料庫 IP 位址到目的地連接埠的 TCP 流量。
-
專用端點上非 Oracle 資料庫的客戶管理異質連線 (不含公事包)
您可以建立從 Autonomous Database 到 Oracle Database Gateway 的資料庫連結,以存取使用公事包 (TCPS) 或不使用公事包 (TLS) 之專用端點上的非 Oracle 資料庫。本節描述建立不含公事包的資料庫連結。
BEGIN
DBMS_CLOUD.UPDATE_CREDENTIAL (
credential_name =>'DB_LINK_CRED',
attribute =>'PASSWORD',
value=>'password'
);
END;
/
新密碼的位置。
此作業之後,使用此證明資料的現有資料庫連結會繼續運作,而不需要刪除並重新建立資料庫連結。
請參閱 UPDATE_CREDENTIAL 程序以瞭解詳細資訊。
專用端點上非 Oracle 資料庫的客戶管理異質連線 (含公事包)
您可以建立從 Autonomous Database 到 Oracle Database Gateway 的資料庫連結,以存取使用公事包 (TCPS) 或不使用公事包 (TLS) 之專用端點上的非 Oracle 資料庫。本節描述使用公事包建立資料庫連結。
BEGIN
DBMS_CLOUD.UPDATE_CREDENTIAL (
credential_name =>'DB_LINK_CRED',
attribute =>'PASSWORD',
value=>'password'
);
END;
/
新密碼的位置。
此作業之後,使用此證明資料的現有資料庫連結會繼續運作,而不需要刪除並重新建立資料庫連結。
請參閱 UPDATE_CREDENTIAL 程序以瞭解詳細資訊。