Failed to load ODBC library symbol: /export/home/odbc/ODBC60/lib/libodbc.so
I've been trying to create a database link from a MySQL database to Oracle using the Oracle dg4odbc gateway. I downloaded and installed DataDirect's ODBC package which includes mysql ODBC library (ddmysql24.so) and a generic ODBC libary (libodbc.so). After creating the DSN in odbc.ini, I tested it and it can connect to the mysql database. Then I created the init{SID}.ora file in hs/admin directory, added dg4odbc lines in the listener.ora, and added lines in tnsnames.ora. Then I tnspinged the new SID with success. Finally, I created the database link. However, when I tried to access the database, I got the ORA-28500 error. In the trace log, I found the following:
Entered hgolofns at 2009/11/01-06:27:20
libname=/export/home/odbc/ODBC60/lib/libodbc.so, funcname=SQLAllocHandle
hoaerr:28500
Exiting hgolofns at 2009/11/01-06:27:20
Failed to load ODBC library symbol: /export/home/odbc/ODBC60/lib/libodbc.so(SQLAllocHandle)
Exiting hgolofn, rc=28500 at 2009/11/01-06:27:20
Exiting hgoinit, rc=28500 at 2009/11/01-06:27:20 with error ptr FILE:hgoinit.c LINE:282 ID:Loading ODBC aray of function ptrs
Entered hgoexit at 2009/11/01-06:27:20
I searched the functions within libodbc.so and found all the SQLAlloc* functions in this library. Why do I still get the error?
Thanks for your help. Jeffrey
Here's the entire trace log:
Oracle Corporation --- SUNDAY NOV 01 2009 06:27:20.637
Version 11.1.0.6.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "4"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
HOSGIP returned value of "FALSE" for HS_FDS_SUPPORT_STATISTICS
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStat
istics"
Exiting hgosdip, rc=0
ORACLE_SID is "MOODLE"
Product-Info:
Port Rls/Upd:6/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.1.0.6.0_0006, Instance:MOODLE
Exiting hgogprd, rc=0
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=10
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=873
HOCXU_SEM_VER=102000
Entered hgolofn at 2009/11/01-06:27:20
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/export/home/odbc/ODBC60/lib/libodbc.so"
Entered hgolofns at 2009/11/01-06:27:20
libname=/export/home/odbc/ODBC60/lib/libodbc.so, funcname=SQLAllocHandle
hoaerr:28500
Exiting hgolofns at 2009/11/01-06:27:20
Failed to load ODBC library symbol: /export/home/odbc/ODBC60/lib/libodbc.so(SQLAllocHandle)
Exiting hgolofn, rc=28500 at 2009/11/01-06:27:20
Exiting hgoinit, rc=28500 at 2009/11/01-06:27:20 with error ptr FILE:hgoinit.c LINE:282 ID:Loading ODBC aray of function ptrs
Entered hgoexit at 2009/11/01-06:27:20