I am using an ODBC connection from a 64 bit Windows 2012 server to an Oracle database located at another 64 bit Windows 2012 server.
I am getting this error:
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.
with dbconnection being the name of the ODBC connection.
Have you installed 64 bit Oracle client?
Have you configured TNS using "Net Manager"? There is button to "Test service". Does it work?
Have you configured ODBC System DSN connection using odbcad32.exe? There is "Test connection" button.
You question is without code and without connection string. Error you got may be because connect string is not correct.
Examples from pyodbc documentation (https://code.google.com/p/pyodbc/wiki/GettingStarted):
cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER=localhost;DATABASE=testdb;UID=me;PWD=pass')
and simpler when DSN is configured:
cnxn = pyodbc.connect('DSN=test;PWD=password')
You will find connection strings specific for Oracle at: http://www.connectionstrings.com/oracle-in-oraclient11g_home1/
But if you have DSN already configured and tested try to use it:
DSN=dbconnection;UI=username;PWD=password
Related
The setup routine for the BMC ODBC for Oracle(default) Odbc driver couldn't be loaded due to system error 126. The specified module could not be found.
I'm getting this error in imformatica 9.5.1
Can anyone suggest any solution..
My conn_str that is passed into pyodbc.connect(conn_str) is:
conn_str = str("DRIVER={{ODBC Driver 13 for SQL Server}};" +
"server=...;database=...;" + "APP=Entity Mapping
Lookup;UID=svc_infra_jobs;PWD=...").
The =... next to server and database actually contain names, that is not the problem here.
When i try to do: temp = pyodbc.connect(conn_str), I get the error:
pyodbc.Error: ('IM012', '[IM012] [Microsoft][ODBC Driver Manager]
DRIVER keyword syntax error (0) (SQLDriverConnect)')
I have no idea what is wrong with my DRIVER keyword.
I know this is old but figured out that for some driver managers the DSN name length can't exceed 32 characters.
https://community.microstrategy.com/s/article/KB44110-quot-Data-source-name-is-longer-than-32-characters-quot?language=en_US
Using Oracle JDBC driver with TNS-alias instead of host:port:SID a'la
jdbc:oracle:thin:#TNS_ALIAS
you may get this error message
java.sql.SQLRecoverableException: I/O-Error: Unknown host specified
while calling
java.sql.DriverManager.getConnection
But there is no problem with the hostname specified by TNS-alias.
Sadly this error message does not point to the real reason:
The error occurs if driver cannot find the tnsnames.ora config file.
Solution
You have to ensure that system-property "oracle.net.tns_admin" is set before connecting and points to the directory containing the tnsnames.ora.
Unable to test the HiveODBC driver's System DSN .
The error shown is
when I try to connect to database from admintools I am getting following error:
Error: Unable to connect to database
Hint: Username or password could be invalid
I have found in the logs following error:
Apr 20 08:08:29 [24291] [vsql.connect spawn] Exception: Error! pty.fork() failed: out of pty devices
Do you know what is the problem?
Your node might be down
Check logs at
/opt/vertica/log
or at
/opt/vertica/config/admintools.conf
check restart policy section is right
[Database:mydb] host = 11.11.11.11
restartpolicy = ksafe