Connecting from Oracle to MS Access

Hi,
I've had a good search through the various topics on establishing a connection between Oracle and MS Access and have found that most center around Access initiating the connection (linked tables and the like).
What I'd like to do is initiate the connection from Oracle.
Some background:
we are running Oracle 9.2.0.2 on an HP/UX 11 OS, and have a series of MS Access 2000 Databases that have identical schemas, but with totally different data content and different names (naming convention is datestamp of when Db was created).
I would like to initiate a connection from within oracle to 'pull' the data from the Access DB's, and append the respective tables together into one lager table in oracle.
Is there any way of doing this? Are there connection drivers that will allow oracle to create an ODBC connection to Access? and if so what must be loaded/configured within oracle on the Unix box to achieve this in an automated fashion?
Any help most appreciated.
Cheers,
James

You can do this sort of thing if you install Oracle Heterogenous Services. That lets you create a database link from an Oracle database to a non-Oracle database and issue SQL statements against the data in the non-Oracle database.
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC

Similar Messages

  • 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.

  • ORA-28500: connection from ORACLE to a non-Oracle system returned this mess

    Hi,
    I scheduled a job .. got this error what could be the reason ?
    *** 2011-09-27 05:00:21.239
    *** SESSION ID:(273.6080) 2011-09-27 05:00:21.239
    *** CLIENT ID:([email protected]@Mozilla/4.0 (compatible; MSIE 8.0; Windows) 2011-09-27 05:00:21.239
    *** SERVICE NAME:(SYS$USERS) 2011-09-27 05:00:21.239
    *** MODULE NAME:(DBMS_SCHEDULER) 2011-09-27 05:00:21.239
    *** ACTION NAME:(XXINSERTKEY) 2011-09-27 05:00:21.239
    ORA-12012: error on auto execute of job 3311903
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. {08001,NativeErr = 17}[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). {01000,NativeErr = 53}
    ORA-02063: preceding 2 lines from VISABG
    ORA-06512: at "APPS.XXDMIG_INSERT", line 3
    Thanks
    Vishwa

    ORA-12012: error on auto execute of job 3311903
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. {08001,NativeErr = 17}[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). {01000,NativeErr = 53}
    ORA-02063: preceding 2 lines from VISABG
    ORA-06512: at "APPS.XXDMIG_INSERT", line 3Search MOS website for ORA-28500 and go through the docs!
    Ora-28500 with Ms Sqlserver - Not associated with a trusted SQL Server connection [ID 333775.1]
    How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit to Connect to Non-Oracle Databases Post Install [ID 466225.1]
    Select From Non-Oracle Database Using Dg4odbc Returns Ora-28500 From Sqlplus [ID 1254254.1]
    ORA-28500: Login failed via Transparent Gateway when Connect to SQL Server 2000 on WinXP [ID 1165743.1]
    Error Ora-28500 and Sqlstate I Issuing Selects From a Unicode Oracle RDBMS With Dg4odbc To Mysql or SQL*Server [ID 756186.1]
    Thanks,
    Hussein

  • ORA-28500: connection from ORACLE to a non-Oracle system returned this mesg

    Hi,
    I am able to access ACCESS DB from local system having Oracle DB in the same machine using Oracle Heterogenious services.
    Now when I try to access from remote system, I am getting error message as mentioned.
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC Microsoft Access Driver]
    '(unknown)' is not a valid path.  Make sure that the path name is spelled
    correctly and that you are connected to the server on which the file resides.
    (SQL State: 00000; SQL Code: -1023)

    That's a specific problem with mapped drives, on metalink:
    ORA-28500: not a valid path via hsodbc over a mapped drive
    Doc ID: Note:266187.1
    Werner

  • Using Oracle Generic Connectivity to connect from Oracle to Microsoft Acces

    I am trying to connect from Oracle to Access using ODBC. I followed the steps described in oracle documentation but was not sucessful. Could you plase take a look at my code let me know where I went wrong. It is as follows :
    1)Created an ODBC connection for Microsoft Access called 'MSACCESS' (System DSN). And associated accdb1.mdb to this ODBC connection.
    2)Created a table called orders in accdb1.mdb.
    3)Added the foll lines in tnsnames.ora
    accdb1 =
    (DESCRIPTION=
    (ADDRESS=
                   (PROTOCOL=tcp)
                   (HOST=kdandapani.170systems.com)
                   (PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=accdb1)
    (HS=OK)
    4)added the following lines in listner.ora :
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME=accdb1)
    (ORACLE_HOME=c:\orasrv)
    (PROGRAM=accdb1)
    5) Copied inithsodbc.ora to iniths_accdb1.ora in the ORACLE_HOME/hs/admin directory. Added the following line there :
    HS_FDS_CONNECT_INFO = MSACCESS
    6)Created the foll dblink :
    create database link access1
    using 'accdb1';
    7)tried to access table ORDERS in the MSACCESS database with the foll SQL -
    select * from orders@access1;
    Resulted in the foll error message
    ERROR at line 1:
    ORA-12154: TNS:could not resolve service name

    hi,
    I am new to Generic Connectivity i have just followed all the steps you wrote once in this forum but i m getting the following error :
    SQL> SELECT * FROM LOGIN@MSACCESS;
    SELECT * FROM LOGIN@MSACCESS
    ERROR at line 1:
    ORA-28509: unable to establish a connection to non-Oracle system
    ORA-02063: preceding line from MSACCESS
    Following are the steps you suggested in this forum :
    1)Created an ODBC connection for Microsoft Access called 'MSACCESS'. And associated accdb1.mdb to this ODBC connection.
    2)Created a table called ORDERS in accdb1.mdb.
    3)Added the foll lines in tnsnames.ora
    MSACCESS.170SYSTEMS.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = kdandapani.170systems.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = MSACCESS)
    (HS = OK)
    4)This is how the listner.ora looks after I added SID_NAME=MSACCESS :
    # LISTENER.ORA Network Configuration File: c:\orasrv\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = kdandapani)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = ORALOCAL)
    (ORACLE_HOME = c:\orasrv)
    (SID_NAME = ORALOCAL)
    (SID_DESC =
    (PROGRAM = extproc)
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = c:\orasrv)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = MSACCESS)
    (ORACLE_HOME = c:\orasrv)
    5) Copied inithsodbc.ora to iniths_MSACCESS.ora in the ORACLE_HOME/hs/admin directory. Added the following line there :
    HS_FDS_CONNECT_INFO = MSACCESS
    6)Created the foll dblink :
    create database link MSACCESS
    using 'MSACCESS';
    7)tried to access table ORDERS in the MSACCESS database with the foll SQL -
    select * from orders@MSACCESS;
    I have used my login table instead of orders. But i got an error that i have stated earlier.
    Can you please help me ? if possible than please forward your reply to : [email protected]
    -thank you man,
    -imran

  • How to connect from Oracle 11g to SQL Server 2008 R2

    Hi,
    Is it possible to connect from Oracle 11g on AIX to SQL Server 2008 R2? If so, what is the preferred method?
    SQL Server has the original table. From Oracle 11g, we want to access data which is in SQL Server real time.
    Thank You
    Sarayu

    Hi,
    Have a look at these Oracle notes for the full information on the gateways -
    Master Note for Oracle Gateway Products (Doc ID 1083703.1)
    Functional Differences Between DG4ODBC and Specific Database Gateways (Doc ID 252364.1)
    Gateway and Generic Connectivity Licensing Considerations (Doc ID 232482.1)
    How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX) (Doc ID 562509.1)
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install (Doc ID 561033.1)
    The Database Gateway for SQL*Server (DG4MSQL) needs a separate license but the Database Gateway for ODBC (DG4ODBC) is included in your RDBMS license. You only need to provide the third party ODBC driver needed by DG4ODBC.
    Regards,
    Mike

  • Problem connecting from Oracle to MS Excel - 64 bit

    Hello,
    I have problem connecting to excel from oracle 11.2 using DG4ODBC.
    OS - Windows 7 - 64 bit
    Database version :- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit
    Created System DSN using ODBC:
    Data Source Name = test12
    Oracle home Path :- D:\app\11g64db\product\11.2.0\dbhome_1
    Content of initdg4odbc.ora file :
    # 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 = test12
    HS_FDS_TRACE_LEVEL = 255
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Content of listener.ora:
    # listener.ora Network Configuration File: D:\app\11g64db\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = vis)
          (ORACLE_HOME = D:\app\11g64db\product\11.2.0\dbhome_1)
          (SID_NAME = vis)
        (SID_DESC =
          (PROGRAM = dg4odbc)
          (SID_NAME = dg4odbc)
          (ORACLE_HOME = D:\app\11g64db\product\11.2.0\dbhome_1)
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = D:\app\11g64db
    Content of tnsnames.ora:
    # tnsnames.ora Network Configuration File: D:\app\11g64db\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    excel_test =
       (DESCRIPTION=
        (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
        (CONNECT_DATA=(SID=dg4odbc))
        (HS=OK)
    VIS =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = vis)
    Listener status
    LSNRCTL for 64-bit Windows: Version 11.2.0.4.0 - Production on 29-AUG-2014 13:56
    :11
    Copyright (c) 1991, 2013, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.4.0 - Produ
    ction
    Start Date                29-AUG-2014 13:34:58
    Uptime                    0 days 0 hr. 21 min. 12 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   D:\app\11g64db\product\11.2.0\dbhome_1\network\admin\l
    istener.ora
    Listener Log File         D:\app\11g64db\diag\tnslsnr\Est-Subramanya\listener\al
    ert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "dg4odbc" has 1 instance(s).
      Instance "dg4odbc", status UNKNOWN, has 1 handler(s) for this service...
    Service "vis" has 2 instance(s).
      Instance "vis", status UNKNOWN, has 1 handler(s) for this service...
      Instance "vis", status READY, has 1 handler(s) for this service...
    Service "visXDB" has 1 instance(s).
      Instance "vis", status READY, has 1 handler(s) for this service...
    The command completed successfully
    DB Link:
    CREATE PUBLIC DATABASE LINK TEST123 USING 'excel_test';
    error while querying the data:
    select * from test@test123;
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from TEST123
    28500. 00000 -  "connection from ORACLE to a non-Oracle system returned this message:"
    *Cause:    The cause is explained in the forwarded message.
    *Action:   See the non-Oracle system's documentation of the forwarded
               message.
    Error at Line: 1 Column: 20
    Appreciate the help in advance............
    Thanks...

    Also HS log file showed error.. Below are the contents of the trace file:
    Oracle Corporation --- FRIDAY    AUG 29 2014 14:01:06.212
    Heterogeneous Agent Release
    11.2.0.4.0
    Oracle Corporation --- FRIDAY    AUG 29 2014 14:01:06.211
        Version 11.2.0.4.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 "UCS2"
    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_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"
    setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
    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:4/0 PrdStat:0
      Agent:Oracle Database Gateway for ODBC
      Facility:hsa
      Class:ODBC, ClassVsn:11.2.0.4.0_0019, Instance:dg4odbc
    Exiting hgogprd, rc=0
    hostmstr: 8795961769984: HOA After hoagprd
    hostmstr: 8795961769984: HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=873
    HS_LANGUAGE not specified
    rc=1239980 attempting to get LANG environment variable.
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2014/08/29-14:01:06
    Exiting hgolofn, rc=0 at 2014/08/29-14:01:06
    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 2014/08/29-14:01:06
    hostmstr: 8795961769984: HOA After hoainit
    hostmstr: 8795961769984: HOA Before hoalgon
    Entered hgolgon at 2014/08/29-14:01:06
    reco:0, name:OPTIM, tflag:0
    Entered hgosuec at 2014/08/29-14:01:06
    Exiting hgosuec, rc=0 at 2014/08/29-14:01:06
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using OPTIM as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2014/08/29-14:01:06
    HS_FDS_CONNECT_INFO = "test12"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2014/08/29-14:01:06
    dsn:test12, name:OPTIM
    optn:
    Entered hgocip at 2014/08/29-14:01:06
    dsn:test12
    Exiting hgocip, rc=0 at 2014/08/29-14:01:06
    ##>Connect Parameters (len=31)<##
    ## DSN=test12;
    #! UID=OPTIM;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2014/08/29-14:01:06
    Entered hgopoer at 2014/08/29-14:01:06
    SQLGetDiagRec returns rc=100 (SQL_NO_DATA) for handle 4619630 (SQL_HANDLE_DBC)
    Exiting hgopoer, rc=0 at 2014/08/29-14:01:06 with error ptr FILE:hgopoer.c LINE:186 ID:GetDiagRec error
    hgocont, line 2831: calling SqlDriverConnect got sqlstate
    Exiting hgocont, rc=28500 at 2014/08/29-14:01:06 with error ptr FILE:hgocont.c LINE:2851 ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2014/08/29-14:01:06 with error ptr FILE:hgolgon.c LINE:806 ID:Calling hgocont
    hostmstr: 8795908591616: HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr: 8795908591616: RPC Before Exit Agent
    hostmstr: 8795908591616: HOA Before hoaexit
    Entered hgoexit at 2014/08/29-14:01:06
    Exiting hgoexit, rc=0
    hostmstr: 8795911442432: HOA After hoaexit
    hostmstr: 8795911442432: RPC After Exit Agent

  • ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75

    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
    Scenario:
    I am having difficulty getting ODBC connection between Oracle OWB app with an 11gR2 DB (running on a VirtualBox Linux) and SQL Server 2008 running directly on the host. (Windows 8)
    I am trying to take a SQL Server 2008 feed into Oracle Ware house Builder, and think(!) I have read everything and configured it in accordance (but I presume not given 3 days of failed attempts to fix it). I have also read several blogs, hence there might be a few more settings in the configuration files than the formal documentation says, but these have come from blogs that have “Solved” problems for other similar situations.
    The environments:
    HOST:
    Name: RESOLVEIT-PC
    IP: 192.168.1.80
    Windows 8 (64bit) , with system DSN ODBC connection ACME_POS created with 32 bit ODBC set up (This setting still shows up fine in the 64 bit ODBC).
    GUEST VM:
    Name: OraDBSvr.com
    GUES fixed IP Address: 192.1.200
    Oracle VirtualBox (4.2.16)
    Oracle Redhat Linux 6 (x86)
    Oracle 11gR2 Enterprise Edition (11.2.0.1.0)
    ODBC: Freetds driver
    Configuration files:
    initacmepos.ora
    HS_FDS_CONNECT_INFO = 192.168.1.80/SQLEXPRESS/ACME_POS
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_RPC_FETCH_REBLOCKING= OFF
    HS_FDS_FETCH_ROWS = 1
    HS_FDS_SHAREABLE_NAME = /usr/local/lib/libtdsodbc.so
    set ODBCINI=/opt/odbc/odbc.ini
    # set <envvar>=<value>
    odbc.ini
    [ACME_POS]
    Driver     = FreeTDS
    Description = ODBC Connection via FreeTDS
    Trace       = 1
    Servername  = 192.168.1.80
    Database    = dbo
    odbcinst.ini
    [PostgreSQL]
    Description                        = ODBC for PostgreSQL
    Driver                   = /usr/lib/psqlodbc.so
    Setup                    = /usr/lib/libodbcpsqlS.so
    Driver64                              = /usr/lib64/psqlodbc.so
    Setup64                              = /usr/lib64/libodbcpsqlS.so
    FileUsage                           = 1
    [MySQL]
    Description                        = ODBC for MySQL
    Driver                   = /usr/lib/libmyodbc5.so
    Setup                    = /usr/lib/libodbcmyS.so
    Driver64                              = /usr/lib64/libmyodbc5.so
    Setup64                              = /usr/lib64/libodbcmyS.so
    FileUsage                           = 1
    [FreeTDS]
    Discription             = TDS driver (Sybase / MS SQL)
    Driver                           = /usr/local/lib/libtdsodbc.so
    # Setup                         = /usr/local/lib/libtdsS.so
    FileUsage                           = 1
    CPTimeout               =
    CPReuse                 =
    [oracle@oraDBsvr etc]$
    freetds.conf
    #   $Id: freetds.conf,v 1.12 2007-12-25 06:02:36 jklowden Exp $
    # This file is installed by FreeTDS if no file by the same
    # name is found in the installation directory. 
    # For information about the layout of this file and its settings,
    # see the freetds.conf manpage "man freetds.conf". 
    # Global settings are overridden by those in a database
    # server specific section
    [global]
            # TDS protocol version
    ;              tds version = 4.2
                   # Whether to write a TDSDUMP file for diagnostic purposes
                   # (setting this to /tmp is insecure on a multi-user system)
    ;              dump file = /tmp/freetds.log
    ;              debug flags = 0xffff
                   # Command and connection timeouts
    ;              timeout = 10
    ;              connect timeout = 10
                   # If you get out-of-memory errors, it may mean that your client
                   # is trying to allocate a huge buffer for a TEXT field.
                   # Try setting 'text size' to a more reasonable limit
                   text size = 64512
    # A typical Sybase server
    [egServer50]
                   host = symachine.domain.com
                   port = 5000
                   tds version = 5.0
    # A typical Microsoft server
    [ACME_POS]
      host = 192.168.1.80
      port = 60801                                # also tried 1433
      instance = SQLEXPRESS
      tds version = 8.0
      client charset = UTF-8
    tsql -LH 192.168.1.80
         ServerName RESOLVEIT-PC
       InstanceName SQLEXPRESS
        IsClustered No
            Version 10.50.4000.0
                tcp 60801
                 np \\RESOLVEIT-PC\pipe\MSSQL$SQLEXPRESS\sql\query
                via RESOLVEIT-PC,0:1433
    Oracle listener:
    [oracle@oraDBsvr log]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = acmepos)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM = dg4odbc)
    (HS = OK)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oraDBsvr)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    [oracle@oraDBsvr log]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 16-SEP-2013 13:57:41
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oraDBsvr)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                16-SEP-2013 13:50:34
    Uptime                    0 days 0 hr. 7 min. 7 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/oraDBsvr/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oraDBsvr)(PORT=1521)))
    Services Summary...
    Service "acmepos" has 1 instance(s).
    Instance "acmepos", status UNKNOWN, has 1 handler(s) for this service...
    Service "dw" has 1 instance(s).
    Instance "dw", status READY, has 1 handler(s) for this service...
    Service "dwXDB" has 1 instance(s).
    Instance "dw", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Oracle tnsnames.ora
    [oracle@oraDBsvr admin]$ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    dw =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dw)
    acmepos  =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=acmepos)
    (HS=OK)
    Oracle sqlnet.ora
    [oracle@oraDBsvr admin]$ cat sqlnet.ora
    # sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
    ADR_BASE = /u01/app/oracle
    I can connect from the linux server to SQL Server, and query the database:
    [oracle@oraDBsvr etc]$ tsql -S acme_pos -U acme_dw_user -P acme1234
    locale is "en_US.utf8"
    locale charset is "UTF-8"
    using default charset "UTF-8"
    1> select last_name from dbo.employees;
    2> go
    last_name
    Davolio
    Fuller
    Leverling
    Peacock
    Buchanan
    Suyama
    King
    Callahan
    Dodsworth
    (9 rows affected)
    1>
    However, I can’t get a response through Oracle OWB , and I get:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
    In the hs log file I get:
    [oracle@oraDBsvr log]$ cat acmepos_agt_3821.trc
    Oracle Corporation --- MONDAY    SEP 16 2013 13:51:22.170
    Heterogeneous Agent Release
    11.2.0.1.0
    HS Gateway:  NULL connection context at exit
    [oracle@oraDBsvr log]$
    I am really stuck now and going round in circles and can’t see the wood for trees! Can anyone please help?!!
    Many Thanks.
    Rafe.

    Let us rewrite your ODBC DSN a little bit... Your current odbc.ini looks like:
    [ACME_POS]
    Driver     = FreeTDS
    Description = ODBC Connection via FreeTDS
    Trace       = 1
    Servername  = 192.168.1.80
    Database    = dbo
    Let us change it a little bit so that we only need one config file - no odbcinst.ini nor freetds.conf file anymore:
    [ACME_POS]
    Driver =/usr/local/lib/libtdsodbc.so
    Server = 192.168.1.80
    Database
    = dbo     ####  I have some doubts that you have a SQL Server database called dbo - one database that always exists is master - so as a test use master here or get the real database name of the SQL Server database you want to connect
    Port = 60801 ## make sure it really is the correct port - best would be to check on the SQL server and then try telnet <ip> <port> if you can connect to the SQL server
    TDS_Version = 8.0
    QuotedId=YES
    Especially the last 2 parameters are mandatory. TDS_Version specifies the TDS Version you have to use to connect to the SQL Server and QuotedID is required for DG4ODBC as it surrounds objevt names by double quotes.
    What happens now when you try to connect with for example isql - the ODBC test utility shipped with the ODBC Driver manager?
    In addition, could you please do me another favour and check the word size of DG4ODBC and the ODBC Driver Manager as well as the ODBC Driver - just execute:
    file /u01/app/oracle/product/11.2.0/dbhome_1/bin/dg4odbc
    file /usr/local/lib/libtdsodbc.so
    file < the patch to your libodbc.so library>/libodbc.so
    and post the output.

  • ORA-28500: connection from ORACLE to a non-Oracle system

    Hi, I need to connect to a OWB mysql database, but when making a query in sql plus sends me this error.
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][H006] The init parameter
    <HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
    ORA-02063: preceding 2 lines from MYSQLINK
    listener.ora
    # listener.ora Network Configuration File: C:\oraclebi\db\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
         (SID_NAME = PLSExtProc)
         (ORACLE_HOME = C:\oraclebi\db)
         (PROGRAM = extproc)
         (SID_DESC =
         (SID_NAME = MYSQL)
         (ORACLE_HOME = C:\oraclebi\db)
         (PROGRAM = hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
    tnsnames.ora
    # tnsnames.ora Network Configuration File: C:\oraclebi\db\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    BISE1DB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = bise1db)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    OTCL_MORDOR =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.31.210)(PORT = 1620))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TEST)
    MYSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSQL))
    (HS = OK)
    inithMYSQL.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQL
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    system dsn --> MYSQL
    databaselink
    CREATE PUBLIC DATABASE LINK mysqlink CONNECT TO "oracle" IDENTIFIED BY "oracle" using 'ejemplo';
    Database link created.
    select * from empleado@mysqlink;
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specified
    or
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][H006] The init parameter
    <HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
    ORA-02063: preceding 2 lines from MYSQLINK
    tnsping
    C:\Documents and Settings\Administrator>tnsping MYSQL
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-AUG-2
    010 06:31:57
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclebi\db\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = bi.orate
    chla.com)(PORT = 1521)) (CONNECT_DATA = (SID = MYSQL)) (HS = OK))
    OK (30 msec)

    Use the setup failing with
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][H006] The init parameter
    <HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
    ORA-02063: preceding 2 lines from MYSQLINK
    There is a typo in the name of you gateway init file. You posted the content of inithMYSQL.ora but the naming is init<SID>.ora which is in your case initMYSQL.ora.
    In addition please keep in mind HSODBC has been desupported since 2008 and when starting a new configuration you should use the follow up product dg4odbc (Database Gateway for ODBC) V11.

  • Dblink oracle to postgres with dg4odbc | ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line

    Hi, i'm trying to create database link from a database Oracle 11g to PostgreSQL with DG4ODBC, and unixODBC
    my configured to /etc/odbc.ini
    [PostgreSQL]
    Description = Test to Postgres
    Driver = psqlodbc
    Trace = Yes
    TraceFile = /tmp/sql.log
    Database = danieldb
    Servername =
    UserName = SA
    Password = password
    Port = 5432
    Protocol = 6.4
    ReadOnly = No
    RowVersioning = No
    ShowSystemTables = No
    ShowOidColumn = No
    FakeOidIndex = No
    my configured to /etc/odbcinst.ini
    [ODBC]
    CommLog=1
    Debug=1
    FileUsage=1
    Pooling=No
    Trace=1
    [psqlodbc]
    Description=PostgreSQL ODBC driver
    Driver=/usr/lib64/psqlodbcw.so
    CommLog=1
    Debug=0
    FileUsage=1
    my configured to /u01/app/oracle/product/11.2.0/xe/hs/admin/initPostgreSQL.ora
    HS_FDS_CONNECT_INFO = PostgreSQL
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbcpsql.so
    set ODBCINI=/etc/odbc.ini
    my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
    Listener =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
    SID_LIST_LISTENER =
            (SID_LIST =
                    (SID_DESC=
                            (SID_NAME=PostgreSQL)
                            (ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe)
                            (PROGRAM=dg4odbc)
                            (ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/xe/lib")
    my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/tnsname.ora
    PostgreSQL=
            (DESCRIPTION =
                    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
                    (CONNECT_DATA =
                            (SID = PostgreSQL)
                    (HS = OK)
    i'm try to created public database link :
    CREATE PUBLIC DATABASE LINK "orapos" CONNECT TO "SA" IDENTIFIED BY "password" USING 'PostgreSQL';
    when i used tnsping
    [root@oracle-poc admin]# tnsping PostgreSQL
    TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 16-MAY-2013 20:34:19
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/xe/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521)) (CONNECT_DATA = (SID = PostgreSQL)) (HS = OK))
    OK (0 msec)
    and last i try to use the database link :
    SQL> select * from "tabel2"@orapos
      2  ;
    select * from "tabel2"@orapos
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from ORAPOS
    Whats wrong with my configuration??
    Thank you and best regards,
    Daniel

    Mike,
    yes i've downloaded the ODBC driver manager..
    for HS_FDS_SHAREABLE_NAME i use /usr/lib/psqlodbc.so
    and i get this error when i call the db link(orpos)
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from ORAPOS
    for HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbcw.so
    and i get this error when i call the db link(orpos)
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    c
    and when i used isql isql to call DNS(PostgreSQL) is success
    whats wrong with my config?
    about PostGres ODBC did you mean postgresql-odbc-08.04.0200-1.el6.x86_64 ??
    Thank you and best regards,
    Daniel

  • Connecting from Oracle to SQL Server

    Hi
    I am now tring to connect from oracle to sql server using database link.
    Created database link
    but when connecting to remote db getting the floowing error
    select * from region@mysqlserverdsn
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from MYSQLSERVERDSN
    Can anyone help
    My Listener File
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc1)
    (SID_DESC =
    (GLOBAL_DBNAME = ORCL.DOMAIN.COM)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_NAME = orcl)
    (SID_DESC =
    (GLOBAL_DBNAME = NORTHWIND.DOMAIN.COM)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_NAME = MYSQLSERVERDSN)
    (PROGRAM=hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST=
         (ADDRESS = (PROTOCOL = TCP)(HOST = SALIHKM.DOMAIN.COM)(PORT = 1522))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    My Tnsnames Entry
    MYSQLSERVERDSN =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(PORT=1522))
    (CONNECT_DATA=(SID=MYSQLSERVERDSN))
    (HS=OK)
    Lsnrctl is working fine.
    c:\>lsnrctl start
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 18-MAY-2006 18:53
    :13
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    System parameter file is D:\oracle\product\10.2.0\db_1\network\admin\listener.or
    a
    Log messages written to D:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SALIHKM.DOMAIN.COM)(POR
    T=1522)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SALIHKM.DOMAIN.COM)(POR
    T=1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 18-MAY-2006 18:53:16
    Uptime 0 days 0 hr. 0 min. 3 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\product\10.2.0\db_1\network\admin\listener.o
    ra
    Listener Log File D:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SALIHKM.DOMAIN.COM)(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
    Services Summary...
    Service "NORTHWIND.DOMAIN.COM" has 1 instance(s).
    Instance "MYSQLSERVERDSN", status UNKNOWN, has 1 handler(s) for this service..
    Service "ORCL.DOMAIN.COM" has 1 instance(s).
    Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    But Tnsping show no listener
    C:\>tnsping MYSQLSERVERDSN
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 18-MAY-2
    006 18:56:27
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    D:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(P
    ORT=1522)) (CONNECT_DATA=(SID=MYSQLSERVERDSN)) (HS=OK))
    TNS-12541: TNS:no listener
    Services
    C:\>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 18-MAY-2006 19:00
    :04
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SALIHKM.DOMAIN.COM)(POR
    T=1522)))
    Services Summary...
    Service "NORTHWIND.DOMAIN.COM" has 1 instance(s).
    Instance "MYSQLSERVERDSN", status UNKNOWN, has 1 handler(s) for this service..
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "ORCL.DOMAIN.COM" has 1 instance(s).
    Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:1 refused:0 state:ready
    LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: SALIHKM, pid: 2080>
    (ADDRESS=(PROTOCOL=tcp)(HOST=SALIHKM.DOMAIN.COM)(PORT=1070))
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:1 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    I am very much confused with this situation.
    Thanks & Regards
    Salih Km

    Hi ,
    Thanks for your reply.
    Contents of my initMYSQLSERVERDSN.ora file is
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQLSERVERDSN
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_TRACE_FILE_NAME = hsmsql.trc
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    set ODBCINI=c:\WINDOWS\ODBC.INI
    SALIHKM.DOMAIN.COM is my system in which Oracle Test DB is Installed.
    SQL Server is in another location.
    In Tnsnames i specified ip address.
    One more doubt.
    I am using 10g Release 2 demo version.
    whether it will support Hetrogeneous Services?
    How to know whether a database supports HS or not?
    Thanks & Regards
    Salih Km

  • ORA-28500: connection from ORACLE to a non-Oracle system returned

    Hi All,
    My database is in 10.2.0.4 and has a dblink to sqlserver. The dblink works fine for normal queries.
    However when executing the following query from my oracle database
    SELECT ROWNUM, "ad2_id", my_name, "data"
    FROM "abc"@xyz.com
    WHERE "startDateTime" > (TO_DATE ('20100120', 'YYYYMMDD') - 1)
    AND "startDateTime" < TO_DATE ('20100120', 'YYYYMMDD')
    AND ROWNUM < 101
    I am getting the following error
    Note : Line 8 is "startDateTime" > (TO_DATE ('20100120', 'YYYYMMDD') - 1)
    ERROR at line 8:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from xyz
    Note:
    1.data is of datatype VARCHARN(1000) and if we ignore that field I am able to get the output
    2. If I give the StartDateTime to a value without using to_date I am able to get the output.
    Could you please tell me what could be the problem ?
    Thanks in advance.

    user12061473 wrote:
    If the edit masks doesn't match how come I am able to get output for the below query
    SELECT ROWNUM, "ad2_id", my_name, "data"
    FROM "abc"@xyz.com
    WHERE "startDateTime" < TO_DATE ('20100120', 'YYYYMMDD')
    AND ROWNUM < 101
    The problem as far as I am know is if I try to select data and use both the where clauses I am getting the error.
    Which is
    SELECT ROWNUM, "ad2_id", my_name, "data"
    FROM "abc"@xyz.com
    WHERE "startDateTime" > (TO_DATE ('20100120', 'YYYYMMDD') - 1)
    AND "startDateTime" < TO_DATE ('20100120', 'YYYYMMDD')
    AND ROWNUM < 101
    Error
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from xyzThat's a different error. The error you posted above was
    "ORA-01861:literal does not match format string"which my posts addressed.
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from xyzis an entirely different message, related not to date formats but what looks like a distributed query. Unfortunately I am getting
    No Response from Application Web Server
    There was no response from the application web server for the page you requested.
    Please notify the site's webmaster and try your request again later. when I look up ORA-28500 and ORA-02063 in the on-line documentation right now :(
    Is your database connect string correct? The ones I use don't have .com attached to them.

  • ORA-28500: connection from ORACLE to a non-Oracle system returned this

    Hi ALL<
    Please assist i am doing heterogeneous connectivity as oracle to sql server the below error encounterd after created db link.
    SQL> select * from SqlTest@jadoo;
    select * from SqlTest@jadoo
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-28541: Error in HS init file on line 20.
    ORA-02063: preceding 2 lines from JADOO

    Hi,
    my dg4odbc.ora is as below:
    $ cat initdg4odbc.ora
    # 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 = mssqlserver
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_SHAREABLE_NAME = /usr/opt/ibm/WSII/odbc/ddl/lib/FRmsss21.so
    # ODBC specific environment variables
    set ODBCINI=/usr/opt/ibm/WSII/odbc/ddl/odbc.ini
    # Environment variables required for the non-Oracle system
    set <envvar>=<value>
    $
    MY odbc.ini file is as :
    $ cat odbc.ini
    [ODBC Data Sources]
    DB2 Wire Protocol=DataDirect 5.1 DB2 Wire Protocol
    Informix Wire Protocol=DataDirect 5.1 Informix Wire Protocol
    Oracle Wire Protocol=DataDirect 5.0 Oracle Wire Protocol
    Oracle=DataDirect 5.1 Oracle
    SQLServer Wire Protocol=DataDirect 5.1 SQL Server Wire Protocol
    Sybase Wire Protocol=DataDirect 5.1 Sybase Wire Protocol
    mssqlserver=MS SQL Server 2008
    [DB2 Wire Protocol]
    Driver=/home2/alesio/odbc64v51/lib/dddb221.so
    Description=DataDirect 5.1 DB2 Wire Protocol
    AddStringToCreateTable=
    AlternateID=
    AlternateServers=
    ApplicationUsingThreads=1
    CatalogSchema=
    CharsetFor65535=0
    #Collection applies to OS/390 and AS/400 only
    Collection=
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    #Database applies to DB2 UDB only
    Database=<database_name>
    DynamicSections=200
    GrantAuthid=PUBLIC
    GrantExecute=1
    IpAddress=<DB2_server_host>
    LoadBalancing=0
    #Location applies to OS/390 and AS/400 only
    Location=<location_name>
    LogonID=
    Password=
    PackageOwner=
    ReportCodePageConversionErrors=0
    SecurityMechanism=0
    TcpPort=<DB2_server_port>
    UseCurrentSchema=1
    WithHold=1
    [Informix Wire Protocol]
    Driver=/home2/alesio/odbc64v51/lib/ddifcl21.so
    Description=DataDirect 5.1 Informix Wire Protocol
    AlternateServers=
    ApplicationUsingThreads=1
    CancelDetectInterval=0
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    Database=<database_name>
    HostName=<Informix_host>
    LoadBalancing=0
    LogonID=
    Password=
    PortNumber=<Informix_server_port>
    ReportCodePageConversionErrors=0
    ServerName=<Informix_server>
    TrimBlankFromIndexName=1
    [Oracle Wire Protocol]
    Driver=/home2/alesio/odbc64v51/lib/ddora21.so
    Description=DataDirect 5.1 Oracle Wire Protocol
    AlternateServers=
    ApplicationUsingThreads=1
    ArraySize=60000
    CachedCursorLimit=32
    CachedDescLimit=0
    CatalogIncludesSynonyms=1
    CatalogOptions=0
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    DefaultLongDataBuffLen=1024
    DescribeAtPrepare=0
    EnableDescribeParam=0
    EnableNcharSupport=0
    EnableScrollableCursors=1
    EnableStaticCursorsForLongData=0
    EnableTimestampWithTimeZone=0
    HostName=<Oracle_server>
    LoadBalancing=0
    LocalTimeZoneOffset=
    LockTimeOut=-1
    LogonID=
    Password=
    PortNumber=1521
    ProcedureRetResults=0
    ReportCodePageConversionErrors=0
    ServiceType=0
    ServiceName=
    SID=<Oracle_SID>
    TimeEscapeMapping=0
    UseCurrentSchema=1
    [Oracle]
    Driver=/home2/alesio/odbc64v51/lib/ddor821.so
    Description=DataDirect 5.1 Oracle
    AlternateServers=
    ApplicationUsingThreads=1
    ArraySize=60000
    CatalogIncludesSynonyms=1
    CatalogOptions=0
    ClientVersion=9iR2
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    DefaultLongDataBuffLen=1024
    DescribeAtPrepare=0
    EnableDescribeParam=0
    EnableNcharSupport=0
    EnableScrollableCursors=1
    EnableStaticCursorsForLongData=0
    EnableTimestampWithTimeZone=0
    LoadBalancing=0
    LocalTimeZoneOffset=
    LockTimeOut=-1
    LogonID=
    OptimizeLongPerformance=0
    Password=
    ProcedureRetResults=0
    ReportCodePageConversionErrors=0
    ServerName=<Oracle_server>
    TimestampEscapeMapping=0
    UseCurrentSchema=1
    [SQLServer Wire Protocol]
    Driver=/home2/alesio/odbc64v51/lib/ddmsss21.so
    Description=DataDirect 5.1 SQL Server Wire Protocol
    Address=<SQLServer_host, SQLServer_server_port>
    AlternateServers=
    AnsiNPW=Yes
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    Database=<database_name>
    LoadBalancing=0
    LogonID=
    Password=
    QuotedId=No
    ReportCodePageConversionErrors=0
    [Sybase Wire Protocol]
    Driver=/home2/alesio/odbc64v51/lib/ddase21.so
    Description=DataDirect 5.1 Sybase Wire Protocol
    AlternateServers=
    ApplicationName=
    ApplicationUsingThreads=1
    ArraySize=50
    Charset=
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    CursorCacheSize=1
    Database=<database_name>
    DefaultLongDataBuffLen=1024
    EnableDescribeParam=0
    EnableQuotedIdentifiers=0
    InitializationString=
    Language=
    LoadBalancing=0
    LogonID=
    NetworkAddress=<Sybase_host, Sybase_server_port>
    OptimizePrepare=1
    PacketSize=0
    Password=
    RaiseErrorPositionBehavior=0
    ReportCodePageConversionErrors=0
    SelectMethod=0
    TruncateTimeTypeFractions=0
    WorkStationID=
    [mssqlserver]
    Driver=/usr/opt/ibm/WSII/odbc/ddl/lib/FRmsss21.so
    Description=MS SQL Server Driver for AIX
    Database=TraceTest
    LogonID=TraceAdmin
    Password=sqltest@123$
    Address=10.10.1.92\MSSQL2008
    QuotedId=YES
    QEWSD=41143
    AnsiNPW=YES
    [ODBC]
    IANAAppCodePage=4
    InstallDir=/usr/opt/ibm/WSII/odbc/ddl
    Trace=0
    TraceDll=/usr/opt/ibm/WSII/odbc/dd/lib/odbctrac.so
    TraceFile=odbctrace.out
    UseCursorLib=0
    $
    Please advise.
    Best Regards,
    Edited by: user13707876 on 23-Aug-2012 04:54

  • Can Oracle 7i and 8i be connected from Oracle 9i database

    I want to know if i can do the following. That means is it possible in production scenario. If yes then how and will it affect the performance to a great extend.
    We are now upgrading the application server to weblogic 10.3 . But this server supports only Oracle 9i and above. But we have two more data server which are Oracle 8i and Oracle 7i. These databases will be upgraded later on but not now. So the problem is i can not connect to these Oracle database versions if i use Weblogic 10.3. So i wanted to know if there is any possibility of connecting the application server to a intermideate Oracle 9i database which will act as a bridge from Application server to Oracle 7i and 8i. Can Oracle 9i connect to Oracle 7i and 8i. If yes then how. You can provide me online references if any.
    Thanks in advance. Waiting for your reply.

    manoj.tcs wrote:
    The connection what you are refering is from a normal pc to Oracle 7i or 8i database. But i want to connect from Oracle 9i to Oracle 8iWhen connecting from one db to another (via a db_link) the 'calling' db is just another client to the 'called' db. if you can connect to 7.x (there was no 7i) with a 9.x sqlplus, then you should be able to connect with a 9.x database. At a previous job, we did something similar to get an app compiled against 8.1 to use a 10.2 database - set up a 9.2 intermediary that had nothing but db_links and synonyms pointing on to the 10g.
    However, I wouldn't bet the company on making your scenario work. You really should upgrade your databases first.

  • Trying to Connect from Oracle to Sybase

    Hi
    Iam trying to connect from Oracle to Sybase only to retrieve data which is why--Generic COnnectivity. Everything was fine like creating default entries with hsodbc(instead of default tg4sybs) in listner.ora, tnsnames.ora like discussed in this forum. But, the final problem which Iam encountering is:
    ERROR at line 1:
    ORA-02085: database link HSODBC.US.ORACLE.COM connects to HO.WORLD
    Can anyone explain about this problem and solution?? Please help....It is URGENT!
    Thanks
    Gopikrishna.

    This happens with global naming set to true for the database.
    How to check if global_names is true or false:
    openSQL*plus connection to the database and type
    SHOW PARAMETER GLOBAL_NAMES
    What to do:
    1. you can alter your SQL*Plus session each time you
    connect:
    ALTER SESSION SET GLOBAL_NAMES=FALSE;
    2. you can set global_names to false within the init.ora
    of the database
    3. you can change the default GLOBAL_NAME HO.WORLD of the
    HSODBC system while changing the values in the init.ora
    of the hsodbc:
    HS_DB_NAME=HSODBC
    HS_DB_DOMAIN=us.oracle.com

Maybe you are looking for