创建从Oracle到SQL服务器的DB链接时出错

时间:2017-04-28 12:54:34

标签: database oracle

我正在尝试创建从Oracle到SQL Server的数据库链接。为此,我按照以下步骤操作:

  1. 列表项
  2. 我创建了Odbc配置并成功测试了它。
  3. 我创建了异构服务init。
  4. 我修改了Listener.ora和Tnsnames.ora文件。
  5. 然后我创建了db link(name:HSLADKRABANG.KRFT.NET)。现在,当我尝试测试它时,它会出现以下错误:

    执行请求的操作时遇到错误:

    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 HSLADKRABANG.KRFT.NET
    
    
    28545. 0000 -  "error diagnosed by Net8 when connecting to an agent"
    
    
    *Cause:    An attempt to call an external procedure or to issue SQL
           to a non-Oracle system on a Heterogeneous Services database 
    link
           failed at connection initialization.  The error diagnosed
           by Net8 NCR software is reported separately.
    *Action:   Refer to the Net8 NCRO error message.  If this isn't clear,
           check connection administrative setup in tnsnames.ora
           and listener.ora for the service associated with the
           Heterogeneous Services database link being used, or with
           'extproc_connection_data' for an external procedure call.
    
    
    Vendor code 28545
    

    我相信listener和tnsnames文件是有效的。

    此外,我尝试ping监听器,它给出了错误TNS:没有监听器。

    我做错了什么?

0 个答案:

没有答案