Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dg4odbc connectivity frto db2

user11090694Feb 19 2010 — edited Feb 22 2010
I am trying to set up connectivity from an aix oracle 10.2.0.4 to db2 on mainframe using dg4odbc and datadirect driver. My setup is as follows:

listener.ora

SID_LIST_LISTENER_ODBCDD=
(SID_LIST=
(SID_DESC=
(SID_NAME=DITDD)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/tg_1)
(ENVS=LIBPATH=/u01/app/ConnectforODBC60/lib:/u01/app/oracle/product/11.2.0/tg_1/lib)
(PROGRAM=dg4odbc)
)
)

LISTENER_ODBCDD =
(ADDRESS =
(PROTOCOL = TCP)
(HOST =gphaix04.cgic.ca)
(PORT = 1531))

tnsping ditdd works

initDITDD.ora


HS_FDS_CONNECT_INFO = DITDD
HS_FDS_TRACE_LEVEL =DEBUG
HS_FDS_TRACE_FILE_NAME = hsmsql.trc
HS_FDS_SHAREABLE_NAME=/u01/app/ConnectforODBC60/odbc.so
set ODBCINI=/u01/app/ConnectforODBC60

when I try the sql I keep oon getting the following error:

select * from dtest1.customer@ditdd
*
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from DITDD

in the trace file I keep on getting:


$ cat DITDD_agt_839918.trc


Oracle Corporation --- FRIDAY FEB 19 2010 16:49:24.841


Heterogeneous Agent Release
11.2.0.1.0




Oracle Corporation --- FRIDAY FEB 19 2010 16:49:24.833

Version 11.2.0.1.0

Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
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_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
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_RSET_RETURN_ROWCOUNT 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"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "DITDD"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:DITDD
Exiting hgogprd, rc=0
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=871
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=31
HOCXU_SEM_VER=102000
Entered hgolofn at 2010/02/19-16:49:24
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/u01/app/ConnectforODBC60/odbc.so"
Entered hgolofns at 2010/02/19-16:49:24
hoaerr:28500
Exiting hgolofns at 2010/02/19-16:49:24
Failed to load ODBC library symbol: /u01/app/ConnectforODBC60/odbc.so(SQLAllocHandle)
Exiting hgolofn, rc=28500 at 2010/02/19-16:49:24
Exiting hgoinit, rc=28500 with error ptr FILE:hgoinit.c LINE:337 ID:Loading ODBC aray of function ptrs
Entered hgoexit
HS Gateway: NULL connection context at exit
Exiting hgoexit, rc=0 with error ptr FILE:hgoexit.c LINE:108 ID:Connection context
$

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2010
Added on Feb 19 2010
2 comments
2,933 views