我必须将表从Oracle服务器导入到MS SQL服务器。因此,我创建了一个链接服务器(Linked_server_new),它通过数据源(在TNSNAMES.ora中定义)从SQL服务器连接到Oracle服务器。连接测试成功。
我的SQL语句:
SELECT * INTO SQL_table FROM OPENQUERY(Linked_server_new,
'SELECT * FROM Oracle_table')
在此之后我收到了以下错误消息:
OLE DB provider "MSDAORA" for linked server "Linked_server_new" returned message "ORA-01775: Cyclic string of synonyms
".
Msg 7321, Level 16, State 2, Line 1
An error occurred while preparing the query "SELECT * FROM Oracletabelle" for execution against OLE DB provider "MSDAORA" for linked server "APC_Verbindungsserver_neu".
如果有人有想法,我会很高兴。