我正在使用从64位Windows 2012服务器到位于另一个64位Windows 2012服务器上的Oracle数据库的ODBC连接。
我得到了这个错误:
ERROR: Library 'ODBC' 'dbconnection' is not a valid physical location.
ERROR: SQL error return: ERROR: Library 'ODBC' 'dbconne.
ERROR: SQL error return: ERROR: Library 'ODBC' 'dbconne.
ERROR: Library 'ODBC' 'dbconnection' is not a valid physical location.
ERROR: SQL error return: ERROR: Library 'ODBC' 'dbc.
ERROR: SQL error return: ERROR: Library 'ODBC' 'dbc.
ERROR: Library 'ODBC' 'dbconnection' is not a valid physical location.
ERROR: SQL error return: ERROR: Library 'ODBC' 'dbc.
ERROR: SQL error return: ERROR: Library 'ODBC' 'dbc.
ERROR: Library 'ODBC' 'dbconnection' is not a valid physical location.
ERROR: SQL error return: ERROR: Library 'ODBC' 'dbconne.
ERROR: SQL error return: ERROR: Library 'ODBC' 'dbconne.以dbconnection作为ODBC连接的名称。
发布于 2014-11-14 09:15:04
您安装了64位Oracle客户端吗?
您是否使用“网络管理器”配置TNS?有“测试服务”按钮。它起作用了吗?
您是否使用odbcad32.exe配置了ODBC连接?有“测试连接”按钮。
您的问题是没有代码和没有连接字符串。您得到的错误可能是因为连接字符串不正确。
pyodbc文档(https://code.google.com/p/pyodbc/wiki/GettingStarted)中的示例:
cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER=localhost;DATABASE=testdb;UID=me;PWD=pass')并且在配置DSN时更简单:
cnxn = pyodbc.connect('DSN=test;PWD=password')您将在:home1/找到特定于Oracle的连接字符串。
但是,如果您已经配置并测试了DSN,请尝试使用它:
DSN=dbconnection;UI=username;PWD=passwordhttps://stackoverflow.com/questions/26901821
复制相似问题