在oracle中建立dblink訪問其他資料庫

2021-04-18 22:15:45 字數 333 閱讀 9097

當有多個資料庫伺服器,如果想從一台伺服器訪問其他資料庫中的特定使用者下的表,則必須使用dblink。

建立dblink的方法有2種:

1、已經配置好本地服務名(資料庫伺服器上的)

create public database 

link fwq12 connect to fzept

identified by neu using 'fjept'

格式如下:create public database

link [資料庫連線名] connect to [使用者名稱]

identified by [密碼] using '[服務名]'

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...