1. 程式人生 > >oracle通過dblink查詢sqlserver報錯

oracle通過dblink查詢sqlserver報錯

報錯如下:

SQL> select * from t@mstest;

select * from t@test

*

ERROR at line 1:

ORA-28545: error diagnosed by Net8 when connecting to an agent

Unable to retrieve text of NETWORK/NCR message 65535

ORA-02063: preceding 2 lines from MSSQL

解決辦法:

說明:sqlserver版本為2008

gateway版本為11.2.0.4。

sqlserver端的listener中將program的值寫成了tg4msql。11g版本應該為dg4msql,10g版本中為tg4msql

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = PLSExtProc)

(ORACLE_HOME = C:\product\11.2.0\tg_1)

(PROGRAM = extproc)

)

(SID_DESC =

(SID_NAME = test)

(ORACLE_HOME = C:\product\11.2.0\tg_1)

(PROGRAM = dg4msql)

)

)

再次執行成功

 

 

oracle gateway透明閘道器詳細安裝步驟