isql: symbol lookup error: SQLGetPrivateProfileStringW
646831Jun 24 2008 — edited Jun 4 2009Hello,
I am trying to connect to an oracle database on remote machine using ODBC.
I am using x86_64 Linux CentOS 5 machine.
I configured ODBC as per the directions in
http://youngcow.net/doc/oracle10g/install.102/b15662/post_inst_task.htm
I created system DSN for oracle 11g in /etc/odbc.ini and Driver in /etc/odbcinst.ini
my ORACLE_HOME and LD_LIBRARY_PATH are configured accordingly.
I installed the Driver and System DSN using odbcinst.
When I use isql to connect to the remote oracle. I get the following error.
[user1@lin64 ~]# isql -v Oracle11gODBCDriver user password
isql: symbol lookup error: /home/user1/app/user1/product/11.1.0/client_1/lib/libsqora.so.11.1: undefined symbol: SQLGetPrivateProfileStringW
I am completely lost on this. I dont know what to do with the error.
When I do strace, last few lines output:
open("/usr/lib/libnuma.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/user1/app/user1/product/11.1.0/client_1/rdbms/mesg/ocius.msb", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
lseek(6, 0, SEEK_SET) = 0
read(6, "\25\23\"\1\23\3\t\t\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 256) = 256
lseek(6, 512, SEEK_SET) = 512
read(6, "\337y\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
lseek(6, 1024, SEEK_SET) = 1024
read(6, "\25\7\'\0072\7>\7j\7\276\17$\'\6K5S\24TfT\307T(VsV\222V\6W"..., 86) = 86
brk(0x145dd000) = 0x145dd000
times(NULL) = 431290328
writev(2, [{"isql", 4}, {": ", 2}, {"symbol lookup error", 19}, {": ", 2}, {"/home/user1/app/user1/produc"..., 70}, {": ", 2}, {"undefined symbol: SQLGetPrivateP"..., 45}, {"", 0}, {"", 0}, {"\n", 1}], 10isql: symbol lookup error: /home/user1/app/user1/product/11.1.0/client_1/lib/libsqora.so.11.1: undefined symbol: SQLGetPrivateProfileStringW
) = 145
exit_group(127) = ?
When I type:
[user1@lin64 ~]# nm /home/user1/app/user1/product/11.1.0/client_1/lib/libsqora.so.11.1 | grep SQLGetPrivateProfileStringW
U SQLGetPrivateProfileStringW
Please help me on this.
Thanks,