dblink_oracle_mssql

MSSQL建 DB Link 到Oracle

OLEDB Install

install.bat oledb D:\app\oracle odac #D:\app\oracle 依需求自行調整

image-20230416160810692

將目錄加入OS環境變數後,要重開主機

image-20230416160950747

設定SQL Server To Oracle

1.安裝Oracle Client和配置tnsnames.ora

2.MSSQL 建立DB Link

image-20230416161305303

image-20230416161512250

image-20230416161605145

1
2
select * from [DB Link 名稱]..SchemaName.TableName
SchemaName和TableName要為大寫的