Using Generic Connectivity Agent on Linux

Hello All,
My dbms is Oracle 8i Release 3 (8.1.7), my OS is Linux RedHat 7.0. I want to establish a connection from Oracle to an ODBC data source. So, I know I have to use Generic Connectivity Agent, but I can't find execution file for this agent which the Listener will execute. The only file I have is hsodbc.o in $ORACLE_HOME/hs/lib path. Are there anybody who knows how can I link this object file, or where can I get a linked one?
Best regards, Roman Zhirov ([email protected])
null

Note that the Oracle ODBC driver is not involved at all when you're trying to use Oracle's generic connectivity. Thus, this probably isn't the forum you want to ask this question in.
Since there isn't a generic connectivity forum, you might try posting to the Linux group. Alternately, it may be necessary to contact Oracle Support.
Justin

Similar Messages

  • Not able to connect to DB2 using generic connectivity

    Hi
    We are trying to connect to DB2 using Oracle Generic connectivity and we are getting 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 ODB2
    Log file is not even generated even though we set the parameter to debug. We are using Oracle 10g on Linux and Neon Shadow direct to connect to db2.
    The following are the setup we had done in our oracle db side
    initdb2.ora
    HS_FDS_CONNECT_INFO=NEON_dev_conn
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_SHAREABLE_NAME=/home/NEON/Shadow/lib/libscodbc_r.so
    added below entry in listener.ora
    (SID_DESC =
    (PROGRAM = hsodbc)
    (ENVS=LD_LIBRARY_PATH=/home/oracle/product/10.2.0/lib:/home/NEON/Shadow/lib)
    (SID_NAME = db2)
    (ORACLE_HOME = /home/oracle/product/10.2.0)
    added below entry in tnsnames.ora
    DB2ODBC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test.db.com)(PORT =1523))
    (CONNECT_DATA =
    (SERVICE_NAME = db2)
    (HS = OK)
    Please suggest on this.
    Regards
    S. Senthil

    No gateway log information generated even with setting trave level to DEBUG indcates that the listener cannot start the gateway process.
    Please check the listener.log for details on the failure. Secondly, what kind of Linux is it? 32- or 64-bit?
    Regards,
    Ed

  • Networking/connection failure using generic connectivity with paradox databases

    I tried to establish a connection from our Oracle 8i-Server
    (Rel. 8.16 ) to a remote paradox-database via a database-link
    and a data-direct 4.0 paradox-odbc-driver. For testing purposes
    I set up a agent initialization file for a agent called hsodbc
    according to the distributed-database documentation and I also
    used the same parameters as in the documentation. If I try to
    test the Net8-Connection an ORA-03113-Error occurs.
    The entries in the agent-initialization file and in the
    tnsnames/listener.ora are ...
    ...Agent-Initialization File Inithsodbc.ora
    #Agent-Initialization File Inithsodbc.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 = hsodbc
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = HS.Log
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    #DataDirect 4.0 ParadoxFile (*.db);
    ...listener.ora
    # LISTENER.ORA Network Configuration File: C:\Oracle\Ora_Serv_816
    \network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pdv0570)(PORT = 1521))
    CONNECT_TIMEOUT_LISTENER = 0
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = hsodbc)
    (ORACLE_HOME = C:\Oracle\Ora_Serv_816)
    (PROGRAM = hsodbc)
    (SID_DESC =
    (GLOBAL_DBNAME = MEDAS.PDV0570.MED.UNI_DUESSELDORF.DE)
    (ORACLE_HOME = C:\Oracle\Ora_Serv_816)
    (SID_NAME = MEDAS)
    # This is a sample listener.ora that contains the NET8
    parameters that are
    # needed to connect to an ODBC Agent - but makes an ORA-03113-
    Error if i check the
    # Net8-Connection
    and in the tnsnames.ora...
    # TNSNAMES.ORA Network Configuration File: C:\Oracle\Ora_Serv_816
    \network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    # This is a sample tnsnames.ora that contains the NET8
    parameters that are
    # needed to connect to an default generic connectivty ODBC Agent
    HSODBC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pdv0570)(PORT = 1521))
    (CONNECT_DATA =
    (SID = hsodbc.pdv0570.med.uni_duesseldorf.de)
    (HS = OK)
    #...new service created after setup of new database MEDAS with
    setting db_domain
    #...ATTENTION - use full service name with domain qualifier for
    sqlplus-login
    MEDAS.PDV0570.MED.UNI_DUESSELDORF.DE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pdv0570)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = MEDAS.PDV0570.MED.UNI_DUESSELDORF.DE)
    Do you have any suggestions how to fix the problem - and meny
    thanks in advance.
    Andreas

    Please contact Oracle support for this issue.
    Ensure that you are using an ODBC driver that meets the
    requirements listed in the documentation.
    Also double check that the ODBC driver is configured correctly.

  • How to use ODBC connection specified on Linux containing Oracle BI EE 11g on BI Administration?

    I have Oracle BI server (OBIEE 11g) installed on a Linux machine. I want to use a MySQL database running on same machine for reporting. I need to create Subject Area from the MySQL database.
    However, I am having problem creating connection pool from the MySQL database. BI Administration runs only on Windows and I can't see ODBC connections on Linux even when I opened BI from Linux in online mode in BI Administration. I have created ODBC on Windows, but it's giving me a "Failed to perform requested action" when trying to import metadata.
    For the record, everything works fine when everything is installed on Windows.

    check this Setting Up Data Sources on Linux and UNIX

  • How to use Xmanager connect to my linux 5.3

    Do everybody how how to config Xmanager to connect to linux 5.0 ?
    I searched but can not do successfull
    So thanks
    Ch

    From what I understand, Xmanager uses xdmcp protocol, which is obsolete and not considered secure and to be avoided by today's standards. If you still want to got that path, here seems to be a good tutorial I found with Google: http://it.megocollector.com/?p=740
    If your task is to make a remote windows session to your Linux server, it will be better to look into VNC or X-forwarding using SSH. You can find some useful info here at Re: Remote Desktop and need to set env variables
    Did you check http://www.netsarang.com/tutorial/xmanager/list

  • WIN - How to Connect to Informix Dynamic Server using Generic Connectivity

    Hi All,
    I have our Oracle running on Windows 2003 and our Informix 9x running on HP.
    We have IBM Informix Client install in Wndows 2003 and connection ODBC setup and connected sucessfully.
    The setup are as follows:
    1) ODBC
    System DSN name: capatibak (connected successfully)
    2) C:\oracle\product\10.2.0\db_1\hs\admin
    Copy the file inithsodbc.ora to initCAPATIBAK.ora and set the following
    HS_FDS_CONNECT_INFO = capatibak
    HS_FDS_TRACE_LEVEL = ON
    3) Listener.ora setup
    (SID_DESC =
    (SID_NAME = capatibak)
    (ORACLE_HOME = c:\oracle\product\10.2.0\db_1)
    (PROGRAM = capatibak)
    4) Tnsnames.ora setup
    CAPATIBAK =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pendbdev1)(PORT = 1521))
    (CONNECT_DATA =
    (SID = CAPATIBAK)
         (HS=OK)
    5) Shutdown and restart Listener
    6) Setup database link and perform connection test.
    Return: ORA-12518: TNS:listener could not hand off client connection
    Kindly advice if I miss any configuration. I am very new to this kind of setup.
    Thanks
    Steven

    Problem solved by using the following documentation:
    http://www.niall.litchfield.dial.pipex.com/WhitePapers/SettingUpGenericConnectivity.pdf

  • Is HS Generic Connectivity(db2/400 odbc) supports Distributed Transaction?

    hi,
    Is HS Generic Connectivity(db2/400 odbc) supports Distributed Transaction?
    I am getting an error as follows
    "ORA-02047 cannot join the distributed transaction in progress" when i am trying a transaction, which is inserting in to db2/400 and updating in Oracle.
    if it does not support this, what is the best way
    to do such things using generic connectivity.
    (eg. by committing each sql statement ?)
    my db is oracle 9i 9.2.0.4.0
    remote db is db2/400 connected with client access ODBC.
    Thanks
    BA

    Hi,
    one of the restrictions of generic connectivity is, that distributed transactions are not allowed.
    See manual: 7-6 Oracle9 i Heterogeneous Connectivity Administrator's Guide
    - Generic Connectivity agents cannot participate in distributed transactions; they
    support single-site transactions only
    So you can only commit after each statement or you have to use the GATEWAY

  • A problem on generic connectivity

    Hi,
    I'm new here.
    I use Oracle 8.1.7 database and SQL Server 2005.
    From the Oracle side, I make SQLs and throw them to the SQL server side using generic connectivity.
    In most cases it works fine but when I try to throw a rather heavy one that I expect will return 50,000 or 60,000 rows, trace files for generic connectivity contain the same error message that read:
    Remote HO Agent received unexpected RPC disconnect
    status 1003: ncrorpi_recv_procid, called from horg.c
    but I get no Orcale errors such as ORA-03113.
    In the worst case when I get this message several times a day, the Oracle instance goes down.
    I suppose this might have something to do with network problems but since this system is already available for my customer, I would like to avoid this error if I can before I pinpoint what makes this error.
    If anyone could suggest something helpful I would be greatly appreciated, thanks in advance.

    The code whic I used is as follows...
    import java.sql.*;
    class Emp
    public static void main (String args [])
    throws SQLException, ClassNotFoundException
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcl", "scott", "tiger");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select ENAME from EMP");
    while (rset.next ())
    System.out.println (rset.getString (1));
    I am using jdk1.2
    and the driver classes are classes12_01.zip.
    I have set the same in the classpath.
    The error is ...
    Exception in thread main java.sql.SQLException: IO Exception : Network Adapter could not establish the connection.
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
    oracle.jdbc.driver.OracleConnection.(init)(OracleConnection.java:210)
    at Oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at Emp.main(Emp.java, Compiled code)
    null

  • Oracle Generic Connectivity in Oracle Application Ser ver 10g.

    Hi Tak and All!
    With the help of your great guidence, I have connect the Generic Connectivty for MS Access and MS Excel successfully in client server environment.
    The topology was..
    Host A = Custom installation of Oracle9i database + MS ACCESS
    Host B = Oracle 9i Database (Complete)
    But...
    tell me How the Oracle Generic Connectivity will connect in ORACLE APPLICATION SERVER. What will be the concept and topology? Because the client only have the URL which is used for getting application on browser.
    I will be extremely thankful.
    All these forums always help me.
    Thanks
    Rana Adnan

    It depends. Oracle Reports can connect to Oracle and non-Oracle databases directly, without using Generic Connectivity.
    Your Forms application would presumably connect only to the Oracle database. The Oracle database might well connect to other Oracle and non-Oracle databases via database links. The non-Oracle database links would utilize Generic Connectivity.
    Given the three machines A, B, and C
    A could connect to B and B could connect to C
    A could connect to C for reporting queries
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Form Error: form based on a Generic connectivity view

    A view was based on a select from a table in a Syabase database (accessed in Oracle using Generic Connectivity).
    When I built a block in a Form based on that view, I faced the following error:
    ORA-02070: database SYB does not support ROWID in this context.
    Also, the same error appeared in the reports accessing the same view.
    Can anyone give me a clue to solve this problem plz?
    Thanks in advance.

    I later knew that the issue can be addressed by setting the parameter Key Mode to nonupdatable.

  • 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

  • Use HS Generic Connectivity in Oracle Express (XE)

    Can I use HS Generic Connectivity in Oracle Express (XE) or do I need a "full" database?

    I see you've managed to get HS working on Oracle XE. I am trying to do the same, but am hitting a wall when trying to set the hs_fds_connect_info parameter in that Oracle does not seem to recognise it:-
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    ORA-32003: error occured processing parameter 'hs_fds_connect_info'
    LRM-00101: unknown parameter name 'hs_fds_connect_info'
    SQL> show parameter hs
    NAME TYPE VALUE
    hs_autoregister boolean TRUE
    Is there anything I need to set elsewhere to enable this? Any help would be appreciated.

  • Generic Connectivity from Oracle 10gR2 to SQL Server using ODBC

    Hi,
    I have setup an ODBC generic connection from an Oracle 10.2 database (on Win 2000) to a SQL Server database (on a different Windows machine). When I query a column which is of LONG data type (TEXT on SQL Server) my session just hangs, no data or errors are returned, trace file just ends showing the SQL statement I entered, but no errors.
    If I query other columns with CHAR, DATE, NUMBER datatypes the rows are returned successfully. As far as I can see from the documentation, the TEXT data type in SQL Server should map to SQL_LONGVARCHAR in ODBC, then that should map to LONG in Oracle, so I wouldnt have thought it was an incompatible data mapping issue.
    I hear that LONG is being replaced/deprecated in Oracle, but is it now not supported by the HS ODBC program provided with 10g Rel 2? Has anyone else had a similar problem and found a workaround? Any help is much appreciated.
    Kieren.

    Hi,
    HSODBC is not supported on Windows x64. So that's why you get the error ORA-28545
    What you can do is to install DG4ODBC 11g on a 32bit machine.
    DG4ODBC can be installed separately from the Oracle Server, for example on the SQL SERVER if you can.
    But it is supported only in 32 bit too.
    You can download from this website:
    http://www.oracle.com/technology/software/products/database/oracle11g/111060_win32soft.html
    ==>Oracle Database Gateways 11g Release 1 (11.1.0.6.0) for Microsoft Windows (32-bit)
    The last option would be to create a virtual machine on your X64 machine with a Windows 32bit and DG4ODBC 11g.
    Please let me know if you have any question.
    Regards,
    Mireille

  • How to do a Generic Connectivity (ODBC) ?

    Hello,
    Generic Connectivity provide Oracle Database to connect another
    database via ODBC. In my case, it is Oracle 8.1.6 which connects
    to Sybase Enterprise 11 on Win NT. The Module "Generic
    Connection" is installed. I view it by the Oracle Universal
    Installer and I have configured the Windows ODBC Manager to
    connect to Sybase.
    This is what I've done step by step:
    1. C:\Oracle\Ora81\hs\Admin\iniths_syb.ora
    HS_FDS_CONNECT_INFO = SPS_NACIONAL
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = hs_syb.log
    2. C:\Oracle\Ora81\Network\Admin\Listener.ora
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nacional)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = oracle)
    (ORACLE_HOME = c:\Oracle\Ora81)
    (SID_NAME = oracle)
    (SID_DESC =
    (SID_NAME = hs_syb)
    (ORACLE_HOME = c:\Oracle\Ora81)
    (PROGRAM = hs_syb)
    I reload the listener by the following command :
    lsnrctl
    stop
    start
    3. C:\Oracle\Ora81\Network\Admin\Tnsname.ora
    ORACLE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = oracle)
    hs_syb =
    (DESCRIPTION=
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = 1521))
    (CONNECT_DATA =
    (SID=hs_syb)
    (HS = OK)
    I test the tnsname at the prompt command line :
    tnsping hs_syb
    (It's OK)
    4. Database Link
    CREATE PUBLIC DATABASE LINK syb
    USING 'hs_syb';
    5. Test database link
    select * from emp@syb;
    And Errors occur :
    ORA-28509: unable to establish a connection to non-Oracle system
    ORA-02063: preceding line from SYB
    6. I read again the documentation
    http://technet.oracle.com/doc/oracle8i_816/server.816/a76960/hs_g
    enco.htm
    and I found some tables to be feed with data by the HS_ADMIN
    packtage :
    This is what I have added :
    EXEC DBMS_HS.CREATE_FDS_CLASS ('hs_syb','Uses ODBC Driver')
    EXEC DBMS_HS.CREATE_FDS_INST ('hs_syb','hs_syb','SYC Sybase
    System 10/11')
    EXEC DBMS_HS.CREATE_INST_INIT
    ('hs_syb','hs_syb','HS_DB_NAME','SYBDATA','F')
    (Drop procedure :
    EXEC DBMS_HS.DROP_INST_INIT
    ('hs_syb','hs_syb','HS_FDS_CONNECT_INFO')
    EXEC DBMS_HS.DROP_FDS_INST ('hs_syb','hs_syb')
    EXEC DBMS_HS.DROP_FDS_CLASS ('hs_syb');
    I test one more time the connection,
    And I have the same error message as step 5.
    7. I put in the initialization file (initoracle.ora) the
    parameter
    Hs_Autoregister = true (It is true by default and it doesn't
    change errors. Is it another parameters for HS ?)
    In fact, I don't really understand the notion of "AGENT" for HS
    (Heterogeneous Services) in Oracle. Is it something to enable or
    is it automatic because the iniths_syb.ora file is in the path
    ORACLE_HOME\hs\admin ???
    What is it missing for the Generic Connectivity ? Any
    suggestion ? Say me what is the wrong step in this process or
    what I have forgotten.
    Thank you in advance.
    Jobar Team

    Hello
    You're right, step two needs to set (PROGRAM = hsodbc). I understand this when I saw hsodbc.exe in the path ORACLE_HOME\Bin (and at prompt I try agtctl.exe but without sucess, an utility for Heterogeneous Services).
    Now when I test the connection I can hear Oracle running something.
    This is what I've done step by step (following my previous message)I test with Sybase Entreprise and Sybase Anywhere :
    8. C:\Oracle\Ora81\Database\initoracle.ora
    I set a parameter in init file and I reload Oracle database :
    global_names = false
    OR in SQL+
    alter session set global_names=false;
    WITH SYBASE ENTREPRISE
    9. C:\Oracle\Ora81\hs\Admin\iniths_syb.ora
    At the beginning my iniths_syb.ora file was wrong then I correct parameters by viewing errors in C:\Oracle\Ora81\hs\trace :
    #Using a dsn file generate by the Windows ODBC Manager
    HS_FDS_CONNECT_INFO="FILEDSN=C:\sybase.dsn"
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = C:\hs_syb.log
    set SYBASE=C:\\Sybase\\ASE
    Contents of sybase.dsn
    [ODBC]
    DRIVER=Sybase System 11
    UID=USERNAME
    SRVR=SVRNAME
    DB=master
    10. Test Database link
    CREATE PUBLIC DATABASE LINK syb
    CONNECT TO USERNAME IDENTIFIED BY SECRET
    USING 'hs_syb';
    select * from anytable@syb;
    ORA-00942: table or view does not exist
    [Transparent gateway for ODBC]393330(0,0,1[[]])
    ORA-02063: preceding 2 lines from SYB
    I try to set parameters in iniths_syb.ora without success :
    HS_DB_DOMAIN=SVRNAME
    HS_DB_NAME=master
    HS_FDS_DEFAULT_OWNER=USERNAME
    WITH SYBASE ANYWHERE
    11. C:\Oracle\Ora81\hs\Admin\iniths_any.ora
    #Using a dsn file generate by the Windows ODBC Manager
    HS_FDS_CONNECT_INFO="FILEDSN=C:\anywhere.dsn"
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = C:\hs_any.log
    Contents of anywhere.dsn
    [ODBC]
    DRIVER=Adaptive Server Anywhere 6.0
    UID=USERNAME
    Integrated=No
    AutoStop=Yes
    EngineName=SERVICE
    12. Test Database link
    CREATE PUBLIC DATABASE LINK anywhere
    CONNECT TO USERNAME IDENTIFIED BY SECRET
    USING 'hs_any';
    select * from anytable@anywhere;
    In SYBASE ANYWHERE I've got this data
    select * from anytable
    go
    dateini col1 col2
    2002-02-01 00:00:00.0000 1.5000 1.4000
    In ORACLE I've got
    SQL> select * from anytable@anywhere;
    dateini col1 col2
    01/02/02 1 1
    There isn't the decimal.
    The reason doesn't like to be 1.4 or 1,4 because in Anywhere and in Oracle It is the same insert "insert into anytable values ('02/02/01', 1.5, 1.4)".
    13. Now I try a select of one column
    select col1 from anytable@anywhere;
    this error occur :
    ORA-00904 invalid column name
    I am sure that this column exist ! "select * from anytable@anywhere;" and "select count(*) from anytable@anywhere;" are OK.
    14. And this doesn't work anymore :
    insert into bx_surcharge@anywhere values ('01/02/02',1,2);
    ORA-02047: cannot join the distributed transaction in progress
    15. Step 6 and 7 doesn't mean to be necessary ? And Where are used parameters of the "ODBC Connectivity Requirements" in the documentation. http://technet.oracle.com/doc/oracle8i_816/server.816/a76960/hs_genco.htm (And How to use Datatype Mapping ?)
    So How to successful a ODBC connection (Maybe I forget some parameters) ? For me, using a connection with ODBC is generic and have to work fine with any type of datasource, isn't it ?
    Have you got any idea to deal ? Thanks a lot.
    Jobar Team

  • HS generic connection to ingres

    Hi, I'm having a small problem with setting up a connection from oracle to ingres.
    Oracle: 9.2.0.1
    Ingres: AdvantageIngres 2.6
    OS: Win2K for both
    Error Msg:
    select * from "airline"@HSG
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][S1000] [9013]General error in nvITrans_BeginT - rc = -1. Please refer to the log file for details.
    ORA-02063: preceding 2 lines from HSG
    Trace file:
    Oracle Corporation --- WEDNESDAY SEP 24 2003 15:56:38.797
    Heterogeneous Agent Release
    9.2.0.1.0
    (0) hoagprd (2): ; Entered.
    (0) (0): ; [Generic Connectivity Using ODBC] version: 3.3.00.00.0030
    (0) (0): ; Class version: 117
    (0) hoagprd (2): ; Exited with retcode = 0.
    (0) hoainit (3): ; Entered.
    (0) (0): ; connect string is: defTdpName=HSG;SYNTAX=(ORACLE8_HOA,
    (0) BASED_ON=ORACLE8, IDENTIFIER_QUOTE_CHAR="",
    (0) CASE_SENSITIVE=CASE_SENSITIVE_QUOTE);BINDING=&lt;navobj&gt;
    &lt;binding&gt;
    &lt;datasources&gt;
    (0) &lt;datasource name='HSG' type='ODBC' connect='HSG'&gt;
    (0) &lt;driverProperties/&gt;&lt;/datasource&gt;&lt;/datasources&gt;&lt;environment&gt;
    &lt;misc
    (0) year2000Policy='-1' consumerApi='1' sessionBehavior='4'/&gt;&lt;queryProcessor
    (0) parserDepth='2000' noInsertParameterization='true' noThreadedReadAhead='true'
    (0) noCommandReuse='true'/&gt;&lt;debug
    (0) generalTrace='true'/&gt;&lt;/environment&gt;&lt;/binding&gt;&lt;/navobj&gt;
    (0) ORACLE GENERIC GATEWAY Log File Started at 24-Sep-03 15:56:39
    (0) hoainit (3): ; Exited with retcode = 0.
    (0) hoalgon (7): ; Entered. name = lochard.
    (0) Created new ODBC connection (16585544)
    (0) DATABASE.C (475): ; [G000] Failed to notify driver of changed property
    (0) ISOLATION_LEVEL for TDP HSG
    (0) hoalgon (7): ; Exited with retcode = 0.
    (0) hoaulcp (4): ; Entered.
    (0) hoaulcp (4): ; Exited with retcode = 0.
    (0) hoauldt (5): ; Entered.
    (0) hoauldt (5): ; Exited with retcode = 0.
    (0) hoabegn (9): ; Entered. formatID = 306206, hoagttln = 25, hoagttid =
    (0) OIDOEM.2443a62f.10.10.193, hoagtbln = 10, hoagtbid =
    , tflag = 0, initial = 1
    (0) errors.h (1129): ; [CA][Ingres ODBC Driver]Invalid argument value (SQL State:
    (0) S1009; SQL Code: 0)
    (0) DRV_TransBegin: [CA][Ingres ODBC Driver]Invalid argument value (SQL State:
    (0) S1009; SQL Code: 0)
    (0)
    (0) nvRETURN (p:\src\NAV_TM.C 141): -1
    (0) nvRETURN (p:\src\UTIL\GETERROR.C 59): -1231
    (0) apiutil.c (913): ; [S1000] [9013]General error in nvITrans_BeginT - rc = -1.
    (0) Please refer to the log file for details.
    Looks like its actually connecting ok, as it includes the message "Created new ODBC connection (16585544)"
    The ODBC driver is from CA (ingres) v3.5
    - not sure that this fully supports all the requirements specified in the doc, and its not very well documented.
    - the latest version available from their website is 2.8 which has some docs to say what it supports:
    "The Ingres ODBC driver is a 2.x ODBC driver that supports all core and level 1 functions plus the following level 2 functions:
    SQLExtendedFetch (through Microsoft Cursor Library only)
    SQLForeignKeys
    SQLMoreResults
    SQLNumParam
    SQLPrimaryKeys
    SQLProcedureColumns
    SQLProcedures
    SQLSetPos (through Microsoft Cursor Library only)"
    In order to test the configuration, I also copied the entries in the tnsnames and listener files, created a separate DSN, and set up a connection to an Access database - and this works fine, so I don't believe it is a configuration problem.
    Is there anyone out there who has tried to connect to ingres, and is there an issue with the ingres ODBC driver.
    Any help appreciated.
    Leo

    I'm using the Ingres 2.80.00.64 driver on NT successfully with hsodbc delivered with V92 Oracle database release.
    About the provided trace file... Normally you should have a look at the odbc driver AND the hsodbc log file to see the real cause.
    But according t the file you provided:
    This error is normal: [G000]
    The S1009 needs more clarification and thus an ODBC driver trace would help as well.

Maybe you are looking for

  • Branching quiz based on unanswered questions

    I'm using Captivate 5.5 to design an awareness module that contains 2 short knowledge checks at key points in the module (around 5-6 questions for each). The knowledge checks aren't compulsory and learners can move freely backwards and forwards throu

  • Lagging freezing and crashing

    I can't remember when it started. My iMac (2 years) started taking too much time processing: while typing, for example, it showed nothing, and after I stopped he started showing the letters. Then the beach ball appeared most of the time. i was using

  • Select whole row in a JTable

    I would like to know how I can fix so that when a user clicks a cell in my JTable the whole row gets selected. Not with the clicked cell as white and the rest of the row in blue, but with the whole row in blue. I would also like to stop the cell from

  • Removing items caught on video

    I did a shoot recently and there is a soda can, the legs of a light tripod, and some shadows in the background. Is there a way to clone over these as can be done in Photoshop? Is a garbage matte the way to approach this? Thanks.

  • Trouble with re-installing CS5.5

    I am trying to re-install AAdobe CS 5.5 on a new laptop.  I have the installation files and the original license key.  But when I try to install, it says invalid license.