ORACLE如何建立DBLINK

2021-10-06 23:28:22 字數 473 閱讀 7622

當前使用者下執行:

create database link testdblink

connect to dbname identified by dbpassword

using 『(description =(address_list =(address =(protocol = tcp)(host = 192.168.2.158)(port = 1521)))(connect_data =(service_name = orcl)))』;

testdblink : 表示dblink名字

dbname :表示 遠端資料庫的使用者

dbpassword:表示 遠端資料庫的密碼

host : 表示遠端資料庫ip

port : 表示遠端資料庫埠

service_name : 遠端資料庫的例項名

/刪除dblink

drop database link testdblink

oracle建立與mysql的dblink

由於專案開發的需求,需要通過oracle訪問mysql,必須配置 閘道器 通過odbc實現 總結了一下從oracle訪問mysql的步驟 1.先簡單介紹下環境 作業系統 windows xp oracle 10.0.2.0.1 mysql 5.0 3.配置odbc資料來源,在控制面板中配置就可以了,...

oracle建立與mysql的dblink

1.先簡單介紹下環境 作業系統 windows 2008 r2 64bits oracle資料庫 10gr2 10.2.0.3.0 32bits mysql資料庫 5.1 32bits 注意 一定要32bits,oracle因為是32bits的所有該使用32bits,如實64bit請使用64bit ...

Oracle使用expdp遷移dblink(教程)

建立dblink必須使用dblink的所有者登入資料庫建立,才能建立到當前的模式下。且不知道資料庫使用者密碼的情況下,將無法直接建立dblink。那麼使用expdp方式遷移dbkink將是一種非常方便簡單的方法。可以使用如下方法將整個資料庫的dblink儲存到乙個轉儲檔案中 expdp dumpfi...