Error creating connection to Oracle ODBC in Excel

可紊 提交于 2019-12-14 03:29:58

问题


I am trying to connect to Oracle ODBC for OraClient10g_home1 in System DSN.once done,i have tested the connection and it says connection successful.but when i try to import Oracle data from Excel's built-in function (Microsoft Query),it gives me the following error message.please let me know how to fix this issue.

Oracle Database Server - 32 Bit,Operating System - Windows 10(64-Bit),Excel Office 2010 (32-Bit)


回答1:


in tnsnames.ora you should have an entry for database instance located in target server like :

Test=
 (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST=target server)(PORT=1521))
    )
    (CONNECT_DATA =
      (SID = orcl)
    )
  )

then tnsping Test in cmd should work fine. you will use this tns entry in your odbc.



来源:https://stackoverflow.com/questions/40398173/error-creating-connection-to-oracle-odbc-in-excel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!