DG4ODBC connectivety to DB2

Hi All,
I am totally new to Oracle and i need help.
I configured dg4odbc to connect to db2 zos. i am able to run query against db2 table using sqlplus and i can see the results. However, when the odbc application is invoking the results are not populatng on their screen. The application seems to be hunged, however, when I set the trace level to debug I notice that multiple queries are being run and rows returned but these results are not being returned to the application.
i used the following HS parameters, let me know if i am missing something or you need more information to help me.
HS_FDS_CONNECT_INFO = DB2DUD1
HS_FDS_TRACE_LEVEL = DEBUG
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
HS_LANGUAGE = AMERICAN_AMERICA.US7ASCII
HS_FDS_TIMESTAMP_MAPPING =CHAR
HS_FDS_SQLLEN_INTERPRETATION=32
HS_NLS_DATE_FORMAT=YYYY-MM-DD
HS_RPC_FETCH_REBLOCKING=OFF
HS_FDS_DELAYED_OPEN=TRUE
HS_RPC_FETCH_SIZE=40000
HS_FDS_FETCH_ROWS=20000
Thanks
Santosh

Hi Mike,
I am using DG4ODBC on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Linux. The application works fine when its using transparent gateway, but when i switch to use the dg4odbc the application screen hangs.
previously i had HS_FDS_DELAYED_OPEN=TRUE as default, but i changed it later to FALSE based on few articles, but no luck so far.
The application is a VB application that connects to an Oracle database that has synonyms pointing to DB2 and local Oracle tables
The query i used through sqlplus was the one captured in the trace. i get the results populated when running through sqlplus and trace also indicates the query ran and the same number of records fetched, but it does not populate the results leading to a hunged screen. These tables are also pretty small, few thousands and the count on the below query is about 19K
SELECT A1.ORG_ID,A1.ORG_FROM_DT,A1.ORG_THRU_DT,A1.ORG_SHORT_NAME,A1.ORG_LONG_NAME,
A1.ORG_STABLE_NAME,A1.ORG_TYPE_ID,A1.PARENT_ORG_ID,A1.OFFICE_ID,A1.ELAS_DIVISION_CD,
A1.ELAS_AGENCY_CD,A1.ELAS_DISTRICT_CD,A1.ORG_MANAGER_IND,A1.CENTER_CD,A1.ORG_START_DT,
A1.COMMENTS_TXT,A1.ORG_CLOSE_DT,A1.ASU_NUMERIC_CD,A1.ASU_ALPHA_CD,A1.ORG_HQ_CD,A1.CREATION_TSTP,
A1.UPDATE_TSTP,A1.UPDATE_ID,A1.EQUIPMENT_CODE,A1.ORG_ID,A1.ORG_TYPE_ID,A1.ORG_FROM_DT,
A1.ORG_THRU_DT,A1.ORG_THRU_DT,A1.ORG_MANAGER_IND,A2.ORG_TYPE_LEVEL_CD,A2.ORG_TYPE_ID
FROM HROCTST.ORG A1,HROCTST.ORG_HIERARCHY_CODE A2
WHERE A1.ORG_TYPE_ID=A2.ORG_TYPE_ID AND A1.ORG_ID<>0 AND A1.ORG_FROM_DT<='04/01/2014'

Similar Messages

  • Dg4odbc connectivity frto db2

    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

    According to your setup the ODBC driver manager is located in
    HS_FDS_SHAREABLE_NAME=/u01/app/ConnectforODBC60/odbc.so
    As far as I know commonly DataDirect's ODBC driver manager is located in the lib directory of their installation location.
    Please check where the driver library is located - in /u01/app/ConnectforODBC60/odbc.so or /u01/app/ConnectforODBC60/lib/odbc.so and then correct the parameter if necessary.
    In addition please make sure you've installed the 64bit ODBC driver (file <location>/odbc.so)

  • Error with DG4ODBC while setting up connectivity from oracle to IBM iSeries AS400 version V7R1

    Hi,
    I have Enterprise linux 64-bit hosting Oracle 11gR2 64-bit (11.2.0.1) database.  I have access to IBM iSeries AS400 version V7R1.  I am trying to connect to IBM iSeries from Oracle Database through ODBC connectivity using Database Link.  The following is what I have done.
    On the Database (Linux) host Installed iSeriesAccess-7.1.0-1.0.x86_64.rpm provided by IBM.
    my odbcinst.ini has the following entries:
    [PostgreSQL]
    Description             = ODBC for PostgreSQL
    Driver          = /usr/lib/libodbcpsql.so
    Setup           = /usr/lib/libodbcpsqlS.so
    FileUsage               = 1
    [iSeries Access ODBC Driver]
    Description             = iSeries Access for Linux ODBC Driver
    Driver          = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
    Setup           = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
    NOTE1           = If using unixODBC 2.2.11 or later and you want the 32 and 64-bit ODBC drivers to share DSN's,
    NOTE2           = the following Driver64/Setup64 keywords will provide that support.
    Driver64                = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
    Setup64         = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
    Threading               = 2
    DontDLClose             = 1
    UsageCount              = 1
    [iSeries Access ODBC Driver 64-bit]
    Description             = iSeries Access for Linux 64-bit ODBC Driver
    Driver          = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
    Setup           = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
    Threading               = 2
    DontDLClose             = 1
    UsageCount              = 1
    The odbc.ini has the following entries:
    [ODBC Data Sources]
    dg4odbc = connection to db2
    [dg4odbc]
    Driver = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
    Description=iSeries Access for Linux ODBC Driver
    LogonID=
    Password=
    Address=  (IBM host IP Address)
    location=Vm520
    noprompt=true
    system= (IBM host IP Address)
    UNICODE=UTF-8
    Naming = 0
    ConnectionType = 0
    CommitMode = 2
    ExtendedDynamic = 0
    AllowDataCompression = 1
    LibraryView = 0
    AllowUnsupportedChar = 0
    ForceTranslation = 0
    Trace = 0
    made sure I could connect via ODBC and DSN using the following command:
    isql dg4odbc oracle oracle1 -v
    +---------------------------------------+
    | Connected!                            |
    |                                       |
    | sql-statement                         |
    | help [tablename]                      |
    | quit                                  |
    |                                       |
    +---------------------------------------+
    SQL>
    SQLRowCount returns -1
    600 rows fetched
    SQL>
    could query the table in a library on AS400.
    The $ORACLE_HOME/hs/admin/initdg4odbc.ora has the following entries:
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = dg4odbc
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_SHAREABLE_NAME=/etc/newlib/libodbc.so
    HS_FDS_TRACE_LEVEL = 255
    HS_FDS_SUPPORT_STATISTICS=FALSE
    # ODBC specific environment variables
    set ODBCINI=/etc/odbc.ini
    # Environment variables required for the non-Oracle system
    The listener entries are as follows:
        (SID_DESC =
          (SID_NAME = dg4odbc)
          (ORACLE_HOME = /opt/oracle/dbs/product/11.2.0/dbhome_1)
          (PROGRAM = dg4odbc)
    Stopped and started the listener.
    The TNS entry is as follows:
    armcdb2 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = vmw-dev-rmsdb.xxx.vmc)(PORT = 1521))
        (CONNECT_DATA =
        (SID=dg4odbc)
        (HS=OK)
    Could tnsping :
    oracle@rmsdev[/opt/oracle/dbs/product/11.2.0/dbhome_1/network/admin]$ tnsping armcdb2
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-JUL-2013 16:01:23
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /opt/oracle/dbs/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = vmw-dev-rmsdb.xxx.vmc)(PORT = 1521)) (CONNECT_DATA = (SID=dg4odbc)) (HS=OK))
    OK (0 msec)
    created a public database link as follows:
    SQL> create database link samplink connect to "oracle" identified by "oracle1" using 'armcdb2';
    Database link created.
    When I run a select query I get errors as follows:
    SQL> select * from mdiaz.AREMAIL@samplink;
    select * from mdiaz.AREMAIL@samplink
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    408
    Below is the Trace file of dg4odbc:
    Oracle Corporation --- THURSDAY  JUL 11 2013 16:06:03.627
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY  JUL 11 2013 16:06:03.627
        Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    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"
    HOSGIP returned value of "FALSE" for HS_FDS_SUPPORT_STATISTICS
    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 "dg4odbc"
    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:dg4odbc
    Exiting hgogprd, rc=0
    hostmstr:          0:   HOA After hoagprd
    hostmstr:          0:   HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=871
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=871
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2013/07/11-16:06:03
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/etc/newlib/libodbc.so"
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLAllocHandle
    symbol_peflctx=0xaab7c2f0
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLBindCol
    symbol_peflctx=0xaab7c9d0
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLBindParameter
    symbol_peflctx=0xaab7cb6c
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLCancel
    symbol_peflctx=0xaab7d416
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLDescribeParam
    symbol_peflctx=0xaab7f7dc
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLDisconnect
    symbol_peflctx=0xaab7f978
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLEndTran
    symbol_peflctx=0xaab7fe42
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLExecute
    symbol_peflctx=0xaab808ac
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLFetch
    symbol_peflctx=0xaab80b5c
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLFreeHandle
    symbol_peflctx=0xaab816aa
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLFreeStmt
    symbol_peflctx=0xaab82144
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLGetData
    symbol_peflctx=0xaab83ad8
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLGetEnvAttr
    symbol_peflctx=0xaab84e42
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLGetFunctions
    symbol_peflctx=0xaab84fce
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLMoreResults
    symbol_peflctx=0xaab85a0a
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLNumResultCols
    symbol_peflctx=0xaab85fba
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLParamData
    symbol_peflctx=0xaab86102
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLPutData
    symbol_peflctx=0xaab871fc
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLRowCount
    symbol_peflctx=0xaab87364
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLSetEnvAttr
    symbol_peflctx=0xaab89054
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLSetDescRec
    symbol_peflctx=0xaab88e20
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLColAttributeW
    symbol_peflctx=0xaab7d6ba
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLColumnsW
    symbol_peflctx=0xaab7e264
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLConnectW
    symbol_peflctx=0xaab7e6b4
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLDescribeColW
    symbol_peflctx=0xaab7f39e
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLDriverConnectW
    symbol_peflctx=0xaab7fa9a
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLExecDirectW
    symbol_peflctx=0xaab805e6
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLForeignKeysW
    symbol_peflctx=0xaab80de6
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLGetConnectAttrW
    symbol_peflctx=0xaab82714
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLGetDescFieldW
    symbol_peflctx=0xaab83c76
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLGetDescRecW
    symbol_peflctx=0xaab83fbe
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLGetDiagFieldW
    symbol_peflctx=0xaab8448a
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLGetDiagRecW
    symbol_peflctx=0xaab84916
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLGetInfoW
    symbol_peflctx=0xaab85136
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLGetStmtAttrW
    symbol_peflctx=0xaab85456
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLGetTypeInfoW
    symbol_peflctx=0xaab8576e
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLPrepareW
    symbol_peflctx=0xaab863b0
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLPrimaryKeysW
    symbol_peflctx=0xaab8667c
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLProcedureColumnsW
    symbol_peflctx=0xaab86a14
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLProceduresW
    symbol_peflctx=0xaab86e64
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLSetConnectAttrW
    symbol_peflctx=0xaab874ac
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLSetStmtAttrW
    symbol_peflctx=0xaab896c8
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLSetDescFieldW
    symbol_peflctx=0xaab88b00
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLStatisticsW
    symbol_peflctx=0xaab89e64
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Entered hgolofns at 2013/07/11-16:06:03
    libname=/etc/newlib/libodbc.so, funcname=SQLTablesW
    symbol_peflctx=0xaab8a668
    hoaerr:0
    Exiting hgolofns at 2013/07/11-16:06:03
    Exiting hgolofn, rc=0 at 2013/07/11-16:06:03
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2013/07/11-16:06:03
    hostmstr:          0:   HOA After hoainit
    hostmstr:          0:   HOA Before hoalgon
    Entered hgolgon at 2013/07/11-16:06:03
    reco:0, name:oracle, tflag:0
    Entered hgosuec at 2013/07/11-16:06:03
    Exiting hgosuec, rc=0 at 2013/07/11-16:06:03
    Entered hgopoer at 2013/07/11-16:06:03
    hgopoer, line 233: got native error 408 and sqlstate 410; message follows...
    408
    Exiting hgopoer, rc=0 at 2013/07/11-16:06:03
    hgolgon, line 193: calling SQLSetConnectAttr got sqlstate 410
    Exiting hgolgon, rc=28500 at 2013/07/11-16:06:03 with error ptr FILE:hgolgon.c LINE:193 FUNCTION:hgolgon() ID:Connection Attribute: TRACE
    hostmstr:          0:   HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr:          0: RPC Before Exit Agent
    hostmstr:          0:   HOA Before hoaexit
    Entered hgoexit at 2013/07/11-16:06:03
    Exiting hgoexit, rc=0
    hostmstr:          0:   HOA After hoaexit
    hostmstr:          0: RPC After Exit Agent
    I have looked up the errors on Oracle forums and could not get any valuable help anywhere.  
    Can someone kindly help out where I am going wrong?
    Thanks,
    Ram.

    Hello kgronau,
    Thank You very much for your recommendations.  I removed the parameter HS_FDS_TRACE_LEVEL = 255.
    I added HS_FDS_FETCH_ROWS=1 and also HS_NLS_NCHAR = UCS2
    Tested my sql statement, which yielded the result as follows:
    SQL> select * from mdiaz.AREMAIL@samplink;
    select * from mdiaz.AREMAIL@samplink
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ㈵″㠵6
    SO I thought I would give a try of removing the line HS_NLS_NCHAR = UCS2
    and again tested my sql statement and it worked like a charm!!!!
    I tested a count(*) and got the results back.
    SQL> select count(*) from mdiaz.AREMAIL@samplink;
      COUNT(*)
           600
    I really appreciate your valuable pointers and help.
    Thanks once again!!!
    Ram.

  • ODBC to DB2 from Solaris 10 X86 64

    I am trying to make a ODBC connection to a DB2 database on a AS400 via a datadirect ODBC driver. This is working.
    Now i am trying to use the hsdodbc driver to make a connection from the Oracle 10.2.0.4 64bit database on the Solaris 10 x86 64 bit.
    I modified the listener.ora.
    lsnrctl reload
    LSNRCTL for Solaris: Version 10.2.0.4.0 - Production on 21-APR-2009 15:24:14
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=srv020.emons.nl)(PORT=1521)))
    TNS-01201: Listener cannot find executable /oracle/oracle10/10.2.0/db_1/bin/hsodbc for SID HSAS400
    the driver does not exist; only the file /oracle/oracle10/10.2.0/db_1/bin/hsodbcO
    Apparantly hsodbc is not supported on this platform. What are the alternatives?
    Thanks in advance,
    Toon

    use DG4ODBC V11.
    DG4ODBC is a real gateway and thus can be installed independantly from the Oracle database; even on a separate machine.
    Using DG4ODBC will allow you to use an Oracle database 9.2.0.8, 10.1.0.5, 10.2.0.3 (pay attention, these Oracle database requires a compatibility patch) or an Oracle db 10.2.0.4 and 11 (patch already included) to connect to a foreign database using ODBC.
    The connection is then initated by the Oracle db which connects to the gateway listener on a second machine. The gateway listener spawns the gateway executable which loads the ODBC driver and connects to the foreign database.

  • Dblink from oracle to db2

    Hi all,
    please, can you explain me steps to create a database link from Oracle 10gR2 to DB2?

    Hi,
    You need to install one of the Database Gateways -
    11.1 Database Gateway for DRDA (DG4DRDA)
    11.2 Database Gateway for DB2 (DG4DB2)
    11.1 or 11.2 Database Gateway for ODBC (DG4ODBC)
    After the gateway is installed and configured then you create the database link which uses the gateway to manipulate data on DB2 - select, insert, update and delete, for example -
    select * from db2_table@gateway_db_link ;
    The database link is created using a tnsnames.ora entry which references the gateway setup.
    There is further information on the gateways available on My Oracle Support and OTN.
    If you want more specific detail then let us know -
    - if you have a gateway installed already and which one if so
    - what version of Oracle you are using
    - platform where Oracle is running
    - version of DB2 to access
    - platform where DB2 is running
    Regards,
    Mike

  • Oracle ---- DBLink ---- DB2

    Hi Techies,
    My requirement is to create a DBLink with SQL Server2000 (ofcourse from Oracle). I came to know about Oracle's Heterogeneous feature. Transaparent gateways, Agents are particulary interesting.
    But, in an implementation wise, I need a case wise help, which can help me, as an end user, to set up Oracle, install the Gateway, configure the Agent, and anything to be done at SQL Server2000 side.
    What should I do realize this?
    Your help is genuinely appreciated.
    Thanks and regards,
    Malik

    Hi,
    You need to install one of the Database Gateways -
    11.1 Database Gateway for DRDA (DG4DRDA)
    11.2 Database Gateway for DB2 (DG4DB2)
    11.1 or 11.2 Database Gateway for ODBC (DG4ODBC)
    After the gateway is installed and configured then you create the database link which uses the gateway to manipulate data on DB2 - select, insert, update and delete, for example -
    select * from db2_table@gateway_db_link ;
    The database link is created using a tnsnames.ora entry which references the gateway setup.
    There is further information on the gateways available on My Oracle Support and OTN.
    If you want more specific detail then let us know -
    - if you have a gateway installed already and which one if so
    - what version of Oracle you are using
    - platform where Oracle is running
    - version of DB2 to access
    - platform where DB2 is running
    Regards,
    Mike

  • Cannot connect Oracle 11gR2 to DB2 Database

    Hi guys,
    I gotta some issue connecting from Oracle to DB2. The point in, the connection works from Oracle 10G, but does not from 11G. Check it out:
    Oracle 10g:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> conn test/test
    Connected.
    SQL>
    SQL> create database link db2
    2 connect to user10
    3 identified by user1000
    4 using '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=167.82.63.98)(PORT=1528))(HS=))';
    Database link created.
    SQL> select count(*) FROM DES.LIST_DEV@DB2;
    COUNT(*)
    231
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Oracle 11g:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL> conn test/test
    Connected.
    SQL>
    SQL> create database link db2
    2 connect to user10
    3 identified by user1000
    4 using '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=167.82.63.98)(PORT=1528))(HS=))';
    Database link created.
    SQL> select count(*) FROM DES.LIST_DEV@DB2;
    select count(*) FROM DES.LIST_DEV@DB2
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from DB2
    SQL>
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    When connected through Oracle 10 (DBLINK working), DB2 access log shows this information:
    GT8C G4AUTH: (USER10 / ) TCB=(00AC5E88) JOB=(ORAGT8C )
    ICH70001I USER10 LAST ACCESS AT 11:01:14 ON FRIDAY, JULY 29, 2011
    DB2AUTH: AIDLPRIM=(E2C1C4E2C5E24040), AIDLSQL=(4040404040404040)
    DB2AUTH: USERID=(USER10 ), SUBSYS=(GT8C ), STC NAME=(ORAGT8C )
    DB2AUTH: SSAT=(7F5B1840), TCB=(00AC5E88)
    DB2AUTH: SECONDARY ID = (RJ00S )
    Through Oracle 11 (DBLINK not working), these are the logs:
    GT8C G4AUTH: ( / ) TCB=(00AC5628) JOB=(ORAGT8C )
    ICH408I USER( ) GROUP( ) NAME(??? ) 820
    LOGON/JOB INITIATION - USER AT TERMINAL NOT RACF-DEFINED
    IRR012I VERIFICATION FAILED. USER PROFILE NOT FOUND.
    GT8C G4AUTH: VERIFY FAILED R15=(00000004)
    GT8C G4AUTH: ( 00AC5628 / ORAGT8C
    TXM11802I TCP/IP socket #0001(4) closed between 167.82.63.98:1528 and
    10.23.21.166:37691
    Note: The user parameters (user10) is not filled. That's why I got the error 'invalid username/password permission denied'.

    Hi Rahil,
    It is always best to open a new SR instead of adding to an existing one for questions sucha s this, as updates to old threads can be overlooked.
    There are 2 methods you can use to conenct to a DB2 database -
    - Database Gateway for DRDA (DG4DRDA)
    - Database Gateway for ODBC(DG4ODBC)
    There is further information in the following notes available on My Oracle Support -
    Master Note for Oracle Gateway Products (Doc ID 1083703.1)
    Options for Connecting to Foreign Data Stores and Non-Oracle Databases (Doc ID 233876.1)
    Functional Differences Between DG4ODBC and Specific Database Gateways (Doc ID 252364.1)
    Gateway and Generic Connectivity Licensing Considerations (Doc ID 232482.1)
    If you do not have access to My Oracle Support then you will need to contact someone in your organisation to get access, or access the notes for you, as we cannot paste them into OTN.
    You can also check the gateway documentation here -
    http://www.oracle.com/pls/db112/homepage
    Click on 'Information Integration' and then 'Heterogeneous Connectivity'
    Regards,
    Mike

  • Create a dblink oracle to postgres with dg4odbc

    Hi,
    I'm trying to create a dblink from a database Oracle (10.2.0.3) to PostgreSQL database (8.3.11) with DG4ODBC (11.2.0.1.0).
    I've installed the postgres driver 64 bit :
    file /usr/lib64/psqlodbc.so
    /usr/lib64/psqlodbc.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), strippedI'm configuring the /oracle/.odbc.ini :
    [record]
    Driver=/usr/lib64/psqlodbc.so
    Description  = PostgreSQL ODBC
    Servername       = cdxlan035
    Port         = 5435
    Username         = rec_lct
    Password     = rec_lct
    Database     = REC_TESTI'm configuring the /oracle/product/DG4ODBC/hs/admin/initrecord.ora like this :
    # HS init parameters
    HS_FDS_CONNECT_INFO = record
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_TRACE_FILE_NAME = /oracle/product/DG4ODBC/hs/log/hsodbc.trc
    HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbc.so
    # ODBC specific environment variables
    set ODBCINI=/oracle/.odbc.iniI'm configuring the /oracle/product/DG4ODBC/network/admin/listener.ora
    LISTENER_HS =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = cdxlan036.douane)(PORT = 1525))
    ADR_BASE_LISTENER_HS = /oracle/product/DG4ODBC
    SID_LIST_LISTENER_HS =
      (SID_LIST =
        (SID_DESC =
          (PROGRAM = dg4odbc)
          (ORACLE_HOME = /oracle/product/DG4ODBC)
          (SID_NAME = record)
          (ENVS=LD_LIBRARY_PATH=/usr/lib64:/oracle/product/DG4ODBC/lib:/oracle/product/10.2.0/lib)
      )I'm updating my /oracle/product/10.2.0/network/admin/tnsnames.ora :
    RECORD2 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = cdxlan036)(PORT = 1525))
        (CONNECT_DATA =
          (SID = record)
        (HS=OK)
       )In last i'm creating the dblink :
    CREATE  DATABASE LINK "RECORD"  CONNECT TO "rec_lct" IDENTIFIED BY "rec_lct"  USING 'RECORD2';When i'm trying to select my postgres database, that doesn't work. Here the /oracle/product/DG4ODBC/hs/log/record.log :
    [oracle@cdxlan036 log]$ cat record_agt_30445.trc
    Oracle Corporation --- MONDAY    FEB 27 2012 17:11:31.204
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- MONDAY    FEB 27 2012 17:11:31.204
        Version 11.2.0.1.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_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 "record"
    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:record
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=31
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=31
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2012/02/27-17:11:31
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/psqlodbc.so"
    Entered hgolofns at 2012/02/27-17:11:31
    libname=/usr/lib64/psqlodbc.so, funcname=SQLAllocHandle
    peflerr=6521, libname=/usr/lib64/psqlodbc.so, funcname=SQLAllocHandle
    hoaerr:28500
    Exiting hgolofns at 2012/02/27-17:11:31
    Failed to load ODBC library symbol: /usr/lib64/psqlodbc.so(SQLAllocHandle)
    Exiting hgolofn, rc=28500 at 2012/02/27-17:11:31
    Exiting hgoinit, rc=28500 with error ptr FILE:hgoinit.c LINE:337 FUNCTION:hgoinit() 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 FUNCTION:hgoexit() ID:Connection contextWhat's wrong with my configuration?
    thanks for your help
    regards,
    Mathieu

    HS_FDS_SHAREABLE_NAME needs to point to the ODBC driver manager. Commonly the ODBC driver manager is a separate library (common name is libodbc.so). It can be downloaded for example from unixodbc.org. Only a few rare ODBC drivers (some ODBC drivers from MySQL and also some IBM DB2 drivers have a built in ODBC driver manager into the ODBC driver itself, all other require a stand alone ODBC driver manager).
    Background info:
    In general the ODBC set up consists of 2 parts, an ODBC driver manager and an ODBC driver itself. The ODBC driver manager is providing generic ODBC functions and it is also responsible to load the driver specified in the odbc.ini file. The ODBC driver itself is then dedicated for a foreign database and provides specific foreign database functions.

  • Support package / add on import error in DB2 V9.1 / windows 2003 system

    Hi
    I have installed ERP 6.0 IDES version in Windows 2003 server with DB2 LUW 9.1 / FP5.
    I have selected "Row Compression" and "Deferred Table Creation" during installation.
    Now when I am importing add on BI Content 7.03, I am getting error during Movename tabs phase.
    Error in phase: IMPORT_PROPER
    Reason for error: TP_STEP_FAILURE
    Return code: 0008
    Error message: OCS Package ALL, tp step "6", return code 0008
    The error message in the file D:\usr\sap\trans\log\P090113.IDS is as follows,
    2 ETP301
    3 ETP361 "96" Shadow-Nametabs activated, DDL executed
    2 ETP362 "6" Shadow-Nametab activations failed
    2 ETP360 Begin: Act. of Shadow-Nametabs with DDL ("2009/01/13 02:57:51")
    2 ETP363 End : Act. of Shadow-Nametabs with DDL ("2009/01/13 02:58:07")
    2 ETP301
    1 ETP172 MOVE OF NAMETABS
    1 ETP110 end date and time : "20090113025807"
    1 ETP111 exit code : "8"
    1 ETP199 ######################################
    I have read some notes it may be due to "Row compression" and "Deffered table creation" option in DB2. Please help me in resolving this issue if it is DB2 related.
    Regards,
    Nallasivam.D

    Hi,
    Please find the real error message which I found in the same log file. This is a new installation.
    System configuration details:
    ERP 6.0 IDES SR3 + Windows 2003 enterprise server SP2 + DB2 V9.1 / FP5
    BASIS and ABAP support pack level: (700) 13.
    Error message:
    3 ETP399 INDEX IN "IDS#BTABI"
    3 ETP399 LONG IN "IDS#BTABD COMPRESS YES"
    3 ETP399 
    2WETP000 02:53:26: Retcode 1: error in DDL statement for "/OSP/T_REPINFO                " - repeat
    2EETP345 02:53:38: Retcode 1: SQL-error "-107-SQL0107N  The name "IDS#BTABD COMPRESS YES" is too lo
    2EETP345 ng.  The maximum length is "18".  SQLSTATE=42622" in DDL statement for "/OSP/T_REPINFO   
    2EETP345             "
    2 ETP399  -
    DB-ROLLBACK() -
    3 ETP399 INDEX IN "IDS#POOLI"
    3 ETP399 LONG IN "IDS#POOLD COMPRESS YES"
    3 ETP399 
    2WETP000 02:54:05: Retcode 1: error in DDL statement for "/SAPPO/CMP_ASG                " - repeat
    2EETP345 02:54:17: Retcode 1: SQL-error "-107-SQL0107N  The name "IDS#POOLD COMPRESS YES" is too lo
    2EETP345 ng.  The maximum length is "18".  SQLSTATE=42622" in DDL statement for "/SAPPO/CMP_ASG   
    2EETP345             "
    2 ETP399  -
    DB-ROLLBACK() -
    2EETP334 02:54:17: error in DDL, nametab for "/SAPPO/CMP_ASG" not activated
    3 ETP399 IN "IDS#POOLD"
    3 ETP399 INDEX IN "IDS#POOLI"
    3 ETP399 LONG IN "IDS#POOLD COMPRESS YES"
    3 ETP399 
    2WETP000 02:54:17: Retcode 1: error in DDL statement for "/SAPPO/CSCRN_HDR              " - repeat
    2EETP345 02:54:29: Retcode 1: SQL-error "-107-SQL0107N  The name "IDS#POOLD COMPRESS YES" is too lo
    2EETP345 ng.  The maximum length is "18".  SQLSTATE=42622" in DDL statement for "/SAPPO/CSCRN_HDR 
    2EETP345             "
    2 ETP399  -
    DB-ROLLBACK() -
    2EETP334 02:54:29: error in DDL, nametab for "/SAPPO/CSCRN_HDR" not activated
    3 ETP399 INDEX IN "IDS#POOLI"
    3 ETP399 LONG IN "IDS#POOLD COMPRESS YES"
    3 ETP399 
    2WETP000 02:54:29: Retcode 1: error in DDL statement for "/SAPPO/F_ASG                  " - repeat
    2EETP345 02:54:41: Retcode 1: SQL-error "-107-SQL0107N  The name "IDS#POOLD COMPRESS YES" is too lo
    2EETP345 ng.  The maximum length is "18".  SQLSTATE=42622" in DDL statement for "/SAPPO/F_ASG     
    2EETP345             "
    2 ETP399  -
    DB-ROLLBACK() -
    2EETP334 02:54:41: error in DDL, nametab for "/SAPPO/F_ASG" not activated
    Regards,
    Nallasivam.D

  • Error while calling a Db2 stored proc  using Dataservice

    Hi ,
    I am getting the following exception while calling a Db2 proc.The proc is not returning any refcursor.It has one Input param of type String.We are expecting the result in resultset. I am able to call the proc using JDBC function and iterate tru the resultset and print it.
    While doing import the source Metadata , I Added a "Editable Row Set" Type.
    Any clue ?
    ava.lang.RuntimeException: Incorrect definition, too many return resultset
         at com.bea.ld.wrappers.procedure.ProcedureAdapter$CallableWrapper.getNextReturnValue(ProcedureAdapter.java:634)
         at com.bea.ld.wrappers.procedure.ProcedureIterator.getNextToken(ProcedureIterator.java:249)
         at com.bea.ld.wrappers.procedure.ProcedureIterator.fetchNext(ProcedureIterator.java:125)
         at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:134)
         at weblogic.xml.query.runtime.sequences.Subsequence.fetchNext(Subsequence.java:106)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.querycide.QueryAssassin.fetchNext(QueryAssassin.java:54)
         at weblogic.xml.query.iterators.GenericIterator.peekNext(GenericIterator.java:151)
         at weblogic.xml.query.runtime.qname.InsertNamespaces.fetchNext(InsertNamespaces.java:161)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.QueryIterator.fetchNext(QueryIterator.java:127)
         at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:134)
         at weblogic.xml.query.xdbc.util.Serializer.serializeItems(Serializer.java:142)
         at com.bea.ld.server.QueryInvocation.getResult(QueryInvocation.java:461)
         at com.bea.ld.EJBRequestHandler.executeFunction(EJBRequestHandler.java:346)
         at com.bea.ld.ServerBean.executeFunction(ServerBean.java:108)
         at com.bea.ld.Server_ydm4ie_EOImpl.executeFunction(Server_ydm4ie_EOImpl.java:208)
         at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

    Hi,
    I am trying to do something like this but with Oracle stored procedure which returns an associate array and a cursor and these are defined as INOUT. I am not finding a way how to do it with editable row set. Can you plese list the steps used to make things work.
    Thanks.

  • Error in starting DB2 UDB (AIX with ECC 6.0)

    Hello All,
    I am facing error in starting the database as below :
    <b>exec(): 0509-036 Cannot load program db2start because of the following errors:
            0509-130 Symbol resolution failed for /usr/lib/threads/libc.a[aio_64.o] because:
            0509-136   Symbol kaio_rdwr64 (number 0) is not exported from
                       dependent module /unix.
            0509-136   Symbol listio64 (number 1) is not exported from
                       dependent module /unix.
            0509-136   Symbol acancel64 (number 2) is not exported from
                       dependent module /unix.
            0509-136   Symbol iosuspend64 (number 3) is not exported from
                       dependent module /unix.
            0509-136   Symbol aio_nwait (number 4) is not exported from
                       dependent module /unix.
            0509-136   Symbol aio_nwait64 (number 5) is not exported from
                       dependent module /unix.
            0509-136   Symbol aio_nwait_timeout (number 6) is not exported from
                       dependent module /unix.
            0509-136   Symbol aio_nwait_timeout64 (number 7) is not exported from
                       dependent module /unix.
            0509-026 System error: Error 0
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.
    SQL1652N  File I/O error occurred.</b>
    I have even changed the Acc. I/O setting also as per the note :683396 .
    But the error still exists.Please help me out in this ssue.
    Regards,
    Chandra.

    Hi Chandra,
    this error may occure when you do not install DB2 on the node via db2setup on AIX. I assume you moved DB2 via ACC to this box. DB2 requires AIO. In general db2setup enables it for you. You can check this by issuing the following command: 'lsdev -Cc aio'
    The correct output should be like:
    aio0 Available Asynchronous I/O (Legacy)
    The wrong one with disabled AIO:
    aio0 Defined Asynchronous I/O (Legacy)
    Use 'smitty aio' to configute AIO for your machine.
    Regards,
    Steffen

  • Data Federator XI 3.0 using DB2 VARCHAR FOR BIT DATA Column?

    We have a column in a DB2 database that is defined as VARCHAR(16) FOR 
    BIT DATA.
    We are using the suggested IBM JDBC driver, db2jcc.jar, against a DB2 
    OS/390 8.1.5 version database.
    The Datasource column displays a data type of NULL, indicating the DF 
    does not understand or cannot handle this IBM data type.
    We have two issues.
    First, target tables are not able to return any columns, regardless if 
    we exclude columns defined as NULL as mentioned above. We see the 
    'Wait' animation for a very long time when we use the 'Target table 
    test tool' option. Selecting to display the count only, returns zero.
    We are able to fetch and view non-NULL column data when using the 
    'Query tool' under the Datasource pane.
    I also get the same result when using the 'My Query Tool' in Server 
    Administrator; a selection agains the sources returns data while 
    selecting from a target table returns no data. Also, a 'select 
    count(*)' returns zero.
    The second issue is in mapping a relationship between two DB2 tables 
    where the join is between two columns of the above mentioned type 
    (NULL).
    The error we get back when we use "Show Errors" is "The types 
    'NULL' (in 'S1.PLANNEDGOALID') and 'NULL' (in 'S2.PLANNDEDGOALID') are 
    not compatible.". When reviewing the relationship, a dashed red line 
    appears instead of a solid grey line between the two tables in the 
    "Table relationships and pre-filers" section of our mapping pane.
    The following query returns an error via the Server Administrator 
    Query Tool; "Types 'NULL' and 'NULL' are not compatible for operator 
    '=' (Error code : 10248)".
    select count(*)
    from
    (select s1.CASEID, s2.PLANNEDGOALID, s2.NAME, s2.PLANNEDGRPSTTYCD
      from "/DF_CMS_ODS/sources/CMFSREPT/CMSPROD.PLANNEDGOAL" AS s1
    ,"/DF_CMS_ODS/sources/CMFSREPT/CMSPROD.PLANNEDGOAL" s2
              where s1.PLANNEDGOALID = s2.PLANNEDGOALID)
    Here are the properties settings in the Resource Connector Settings 
    for jdbc.db2.zSeries we are using.
    capabilities: isjdbc=true;orderBy=false
    driverLocation: drivers/db2jcc_license_cisuz.jar;drivers/db2jcc.jar
    jdbcClass: com.ibm.db2.jcc.DB2Driver
    sourceType: db2
    supportsCatalog: no
    urlTemplate: jdbc:db2://<hostname>[:<port>]/<databasename>
    Here are the Connection parameters as defined for the datasource in DF 
    Designer.
    Defined resource: jdbc.db2.zSeries
    Jdbc connection URL: jdbc:db2://DB2D03:50000/CMFSREPT
    Authentication: Use a specific database logon for all Data Federator 
    users.
    User Name: x
    Password: hidden
    Login domain: -- Choose a defined login domain --
    Supports Schema: checked
    Schema: is empty
    Prefix table names with schema name: checked
    Supports catalog: unchecked
    Prefix table names with the database name: unchecked
    Table types: TABLE and VIEW
    So, the following is the two questions we require answers for...
    Is this a limitation of Data Federator?
    Is there a work around short of changing the datatype in the database.

    Hi Darren,
    The VARCHAR() FOR BIT DATA is a binary data type and Data Federator does not support binaries. But if in your case, it makes sense to map this column to a VARCHAR data type you can configure the DB2 connector to view this column as a VARCHAR.
    Your column can be mapped explicitly to a data type of your choice using a property: castColumnType.
    This property can be set updating the resource you selected when you registered you DB2 data source.
    If the resource is "jdbc.db2", then:
    1. Launch Data Federator Administrator
    2. Click on "Administration" tab
    3. Click on "Connector Settings"
    4. Select the right resource: "jdbc.db2"
    5. Click "Add a property"
    6. Select "castColumnType"
    7. Set its value to: VARCHAR() FOR BIT DATA=VARCHAR
    8. Click on Ok
    You should see this column as a VARCHAR.
    Regards,
    Mokrane
    PS: For the target table issue, we have forwarded your mail to the Data Federator Designer team.

  • HELP - DB2 v9 & App Server PE 9.0 - PING Connection Pool Failure - HELP

    I've been playing around with Studio Creator and DB2 v9 without any issues.
    So I figured I would installed App Server PE 9 and use this as my production server that I would deploy to from studio creator.
    However, in my efforts to set up db2/v9 I have been trying to ping a connection pool without any luck. I get the following message:
    Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: [sunm][DB2 JDBC Driver]Resource Limits Reached( ALLOCATE MEMORY FOR NEW SQLSTT FAILED ). Diagnostic Info: FUNCTION ID = 0049 , PROBE POINT = 0400 , TRACE POINT = 0030 , SUBCODE1 = 8B0F0000, SUBCODE2 = 78A68A98, SUBCODE3 = 00000000, ERROR MSG = Parser: Memory allocation error.
    My datasource class name is com.sun.sql.jdbcx.db2.DB2DataSource.
    And my resource type is javax.sql.datasource
    I have copied smbase.jar, smdb2.jar and smutil.jar into c:\sun\appserver\lib
    and I have all of the properties (serverName, portNumber, databaseName, user, password) created and set accordingly.
    Any help would be greatly appreciated.

    Here is how I got the DB2 Express-C and Sun PE 9.0 to work. ( at least base connectivity wise )
    1. ) You have to have at least the DB2 Client installed on the system that will be communicating to the DB2 instance.
    2.) The following jars will be needed ( depending on the driver type used) . db2java.zip, db2jcc.jar, and db2jcc_license_cu.jar and use them in the App Server ->JVM settings -> Path Settings -> Classpath Suffix
    3.) The next setup is dependent on the Type driver you use
    I used the Type 4 and this is the resource setup I used.
    Connection Pool:
    Name: DB2TestPool
    Datasource Classname: com.ibm.db2.jcc.DB2SimpleDataSource
    Resource Type: javax.sql.ConnectionPoolDataSource
    Properties:
    user: xxxxxx
    password: xxxxxx
    databaseName: TEST
    serverName: <hostname of machine>
    portnumber: 50000
    driverType: 4
    URL: jdbc:db2://<hostname>:<port>/<database>
    JDBC Resource:
    JNDI Name: jdbc/TEST
    Pool Name: DB2TestPool
    With this configuration I was able to ping the database as well as connect to create an entity bean from a table. This should give you a starting point.
    I have yet to deploy my application, but should be doing that sometime today to verify that a connection can be made and used from within the application.

  • Problem with DB2 database connection.

    Hello, I configured a DB2 connection. Was also able to create all the view objects. When I run my application using jdeveloper embedded oc4j I am getting the following error: (The connection is already created and the test is successful. I have also created the entity and view objects.)
    WARNING: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.ibm.db2.jcc.DB2Driver
    07/04/25 14:05:12 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.ibm.db2.jcc.DB2Driver
    07/04/25 14:05:12 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.ibm.db2.jcc.DB2Driver
    at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2072)
    at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:2017)

    Copy the DB2 JDBC JAR file to the \j2ee\home\applib dir or the
    C:\JDeveloper\j2ee\home\lib.

  • Dbcon connection from sap db2 to external sql server

    Hi ,
    I am trying to connect from my sap server which is in unix platform with DB2 database to external SQL server using DBCON as  MSSQL_SERVER=<server_name> MSSQL_DBNAME=<db_name>. But while running ADBC_TEST_connection i am getting the error . When i check the error log it says
    Loading DB library '/usr/sap/DVL/SYS/exe/run/dbmssslib.so' ...
    M  *** ERROR => DlLoadLib()==DLENOACCESS - dlopen("/usr/sap/SID/SYS/exe/run/dbmssslib.so") FAILED
      "Unable to find library '/usr/sap/DVL/SYS/exe/run/dbmssslib.so'."  [dlux.c       445]
    M  {root-id=002655A9DCD21EE3B89D69F99DF39F0D}_{conn-id=00000000000000000000000000000000}_0
    B  *** ERROR => Couldn't load library '/usr/sap/SID/SYS/exe/run/dbmssslib.so'
    How to resolve this issue. As it was mentioned in few forum we need to download the dbsl library from kernel patches and to load in kernel path. As my  db is DB2  can  we download dbmssslib.so this library and load in kernel file? Is it will work?
    Regards,
    Rai

    Hi Rai,
    This error indicates that the ABAP stack could not find the SAP DBSL for SQL Server (dbmssslib.dll) in the kernel directory. If you encounter this error on a Unix - based server the root cause is clear: the DBSL does not exist for other platforms than Windows or Linux x84_64. In this case use a Windows-based or a Linux x86_64-based SAP Application Server to establish the connection. If your system does not contain a Windows-based or a Linux x86_64-based Application Server you need to setup a small one as workaround. If you encounter this error on a Windows Application Server or a Linux x86_64 based Application Server make sure that the DBSL is properly installed in the kernel directory as explained in the document below.
    For more details on configuration and troubleshooting refer to below SCN document
    How to access an external Microsoft SQL Server database
    Hope this helps.
    Regards,
    Deepak Kori

Maybe you are looking for

  • Can you use iPhoto as your referenced library in Aperture 3?

    Hi folks, new to the forum here and I've searched around older posts for an answer to this dumb question but can't seem to find it. Any insight much appreciated. I'm a relatively new mac user, migrated over just under 5,000 photos from Photoshop Elem

  • Activity report failed(Communication error)- while check-in Activity

    Hello SDN, I am getting following error while Checking in activity from open activities .currently we are using NWDS7.3 CHECKIN      Finished24s.9Files scuceeded. ACTIVATE     Activation Performed.Build request ID : 166           Internal Problem(Act

  • Strange result using Oracle Text

    Hello, I am receiving a strange exception with this sql query SELECT * FROM gob_attachment WHERE CONTAINS (gob_a_document, 'java') > 0 It's giving me ORA-29902: error in executing ODCIIndexStart() routine ORA-20000: Oracle Text error: ORA-00942: tabl

  • Period start and end dates

    Hello Experts, Can some tell me where we enter the start and end dates of a posting period in a fiscal year which is a year dependent and a non-calendar year? For ex: Jan 2008, I have to mention the start and end dates of the fiscal period January, b

  • Using Photoshop CS 5 on Bootcamp

    I have Photoshop CS5 installed on my OSX. I'm planning to install windows 7 via bootcamp.  I read a long time ago there was a way I can get a windows key for my same program for a reduced price?  Or am I mistaken? I can't remember where I read it. I