ODBC Generic Connectivity error

I'll link to the pgSQL(or mySQL) server wih Oracle.
and if my pgsql table has the "varchar" type fields, there will be some mistakes:
select * from "code_area" @ PGSQL
ORA-00942: the table or views doesn't exists
[Generic Connectivity Using ODBC]Warning: index pk_code_area is ignored.
Warning: index idx_code_area is ignored.
Table code_area has no fields. Loading failed
ORA-02063: at 4 lines (From PGSQL)
Message was edited by:
user629425

It will be helpful if you could post your Oracle version and Transparent Gateway version if any.
also consider post your question in this forum
Heterogeneous Connectivity

Similar Messages

  • About the generic connectivity error.

    I use the Generic Connectivity to link a mySQL database and appeared some mistakes:
    ORA-28500: [Generic Connectivity Using ODBC][MySQL][ODBC 5.1 Driver]Access denied for user 'SA'@'SERVER' (using password: YES) (SQL State: S1000; SQL Code: 1045)
    Is that the reason why?
    I checked once, that my ODBC parameter establishes normally.

    you need to surround the username and password while creating the database link to SQL Server with DOUBLE QUOTES.
    Look at the error message; it states: SA instead of sa.
    As MS SQL Server usernames/passwords as well as columns and tables are case sensitive for some settings you need to define the db link using double quotes as follows:
    create database link server connect to "sa" identified by "PaSSworD" using '<tns alias>':

  • Jdbc-odbc bridge connection error

    Hi,
    Please help me to create a jdbc-odbc connection from Jdev10g to a TSM server database.
    I have created a database connection with the following parameters:
    Connection name: tsm1a
    Connection type: jdbc-odbc bridge
    Username: admin
    Password: ***
    Datasource name: tsm1 (this is the name of the DSN datasource name in my Windows ODBC DSN datasource)
    Extra parameters: NONE
    Clicking on the Test button shows Success!
    I have tried to launch the SQL worksheet, it is success and give me a correct result to my "select * from volumes" query.
    I have created a simple JSP page:
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/sqltaglib.tld"
    prefix="database"%>
    <html>
    <body>
    <database:dbOpen connId="c1" URL="jdbc:odbc:TSM1a" user="admin" password="***">
    <database:dbQuery connId="c1" output="html" queryId="q1" >
    select * from volumes
    </database:dbQuery>
    </database:dbOpen>
    </body>
    </html>
    The result of the run of it:
    javax.servlet.jsp.JspTagException: Failed to establish connection     at oracle.jsp.dbutil.tagext.dbOpenTag.doStartTag(dbOpenTag.java:115)
    Please help me, how to get a connection to the ODBC datasource from a jsp page.
    What is wrong in the URL string or elsewhere ?
    Thanks a lot in advance:
    Arpad

    Hi,
    Please help me to create a jdbc-odbc connection from Jdev10g to a TSM server database.
    I have created a database connection with the following parameters:
    Connection name: tsm1a
    Connection type: jdbc-odbc bridge
    Username: admin
    Password: ***
    Datasource name: tsm1 (this is the name of the DSN datasource name in my Windows ODBC DSN datasource)
    Extra parameters: NONE
    Clicking on the Test button shows Success!
    I have tried to launch the SQL worksheet, it is success and give me a correct result to my "select * from volumes" query.
    I have created a simple JSP page:
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/sqltaglib.tld"
    prefix="database"%>
    <html>
    <body>
    <database:dbOpen connId="c1" URL="jdbc:odbc:TSM1a" user="admin" password="***">
    <database:dbQuery connId="c1" output="html" queryId="q1" >
    select * from volumes
    </database:dbQuery>
    </database:dbOpen>
    </body>
    </html>
    The result of the run of it:
    javax.servlet.jsp.JspTagException: Failed to establish connection     at oracle.jsp.dbutil.tagext.dbOpenTag.doStartTag(dbOpenTag.java:115)
    Please help me, how to get a connection to the ODBC datasource from a jsp page.
    What is wrong in the URL string or elsewhere ?
    Thanks a lot in advance:
    Arpad

  • 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

  • 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

  • Windows ODBC connections error

    I have oracle installed a client machine, linking to the server. When i sign into the server using SQL+ this works fine. However when i try and edit any ODBC driver connections in windows-control panel i get an error telling me that the networking components were not found. Also when i try to open the application that runs with oracle i get two similar errors.
    The error boxes are as follows :-
    little: Microsoft ODBC for oracle
    Message:The Oracle(tm) client and networking components were not found. These components are supplied by oracle corporation and are part of the oracle version 7.3 (or greater) client installation.
    You are unable to use this driver until these components have been installed.
    2.Title: Database error
    Message: IM004:[Microsoft][ODBC driver manager] Drivers SQLAllocHandle on SQL_HANDLE_ENV failed.
    This is strange because i have the connection in SQL plus to the same server and the other client machines i look after are working fine.
    Right before the crash the machine had Nortan antivirus 7.61 and a Disk Defrag on C:
    To remedy this i have un-installed and re-installed oracle client several times with no look.
    Any help would be greatly appreciated.
    I have no further information about the Defrag of C: as our team did not run this, it was the IT support team we use.
    Thanks in advance
    Dave

    I am trying to connect through ODBC to an external Oracle (Solaris) database from a Windows Server 2003 Web Edition machine. I am getting the exact same error scenario with the MS ODBC Driver for Oracle. I would love to use the Oracle ODBC driver rather than the Microsoft one, but OUI installation of it (any version) fails (with no explanation in the log) every time.
    I am using Oracle9i Client 9.2.0.1.0 with Oracle 9iR2 Patch Set 9.2.0.3.0. Do I need to get rid of that and go back to an older version of the client? And, if I do, will it work with WIndows Server 2003 Web Edition? I know my attempted installation of an 8.05 client failed with no error information.
    I have verified that %ORACLE_HOME%\bin is in the path and that the user has read/execute rights to %ORACLE_HOME%.
    Thanks in advance for any help you can provide.
    Bob Nelson
    Spokane Community College

  • Database Connection Error 42000:[Microsoft][ODBC driver for oracle] Syntax

    Hi,
      This is Sathish, I am trying to create a report and retrieve data through stored procedure using ODBC Connection. When connecting to the Stored Procedure it is showing Database Connection Error 42000:[Microsoft][ODBC driver for oracle] Syntax error or access violation' Error.
    CRXI R2, Oracle 9i.
    What do i do to solve this issue.
    Regards,
    Sathish

    Hi Satish
    It could be an issue with the driver.
    You can try with the OLEDB n Oracle native connection to test if the issue persists.
    Also you can refer to the [Troubleshooting Database Connectivity for Crystal Reports|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e&overridelayout=true]
    Hope this helps!!
    Regards
    Sourashree

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

  • Sybase,ODBC,Solaris, Generic connectivity

    Please tell me what do I need to do to set up Oracle Generic Connectivity?
    I have Oracle9i EE 9.2.0.5.0 64bit for Solaris.
    Do I need to install Sybase Client?
    Where can I get ODBC driver?
    Thanks!
    Ilya

    Yo need an ODBC driver from a 3rd party vendor like Data Direct Technologies or Openlink.
    To get hsodbc on Solaris working, you need a 32Bit ODBC driver even if you have a 64Bit Oracle installation. The reason is, that hsodbc itself is a 32 bit application.
    Depending on the implementation of the ODBC driver the driver needs the Sybase client installed or some drivers like the Data Direct Technologied WIRED driver do not need the Sybase Client. Please refer to the ODBC vendor documentation.
    Install the ODBC driver and configure it so that you can connect with the ODBC driver to the Sybase db.
    Then configure hsodbc as mentioned in several notes on Metalink.

  • ODBC Connection Error

    Hi,
    I try to connect the Access Database in Dreamweaver. So I put
    the DB at ..\Tomcat 5.5\webapps\ROOT and add the odbc driver
    (Microsoft Access Driver) at ODBC data source administrator (both
    system DSN and user DSN). And then I setup the connection in the
    "Databases" box in dreamweaver and test ok. However, when I preview
    the jsp page (which also placed in ..\Tomcat 5.5\webapps\ROOT), an
    error occurs and display "Data Source Not Found". What is the
    possible cause for it?
    The following are the error shown in the browser.
    <<exception >>
    org.apache.jasper.JasperException: Exception in JSP:
    /TMP6596j18tj4.jsp:9
    6: <BODY>
    7: <%
    8: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    9: Connection con =
    DriverManager.getConnection("jdbc:odbc:StudentDB,root,1234");
    10: Statement stmt = con.createStatement();
    11: ResultSet rs;
    12: rs = stmt.executeQuery("SELECT * FROM Stu");
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504 )
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.ServletException: [Microsoft][ODBC Driver
    Manager] Data source name not found and no default driver specified
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
    org.apache.jsp.TMP6596j18tj4_jsp._jspService(TMP6596j18tj4_jsp.java:105)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data
    source name not found and no default driver specified
    sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
    sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
    sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
    java.sql.DriverManager.getConnection(Unknown Source)
    java.sql.DriverManager.getConnection(Unknown Source)
    org.apache.jsp.TMP6596j18tj4_jsp._jspService(TMP6596j18tj4_jsp.java:51)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Thanks in advance!!
    Best regards,
    Terry

    Is that the "full" Client, not Instant Client?
    Anyway, possibly you have a 64/32 bit mismatch (based on the system error 193, bad exe format). Do you have a 64-bit version of Office? If that is the case, is the Oracle Client and odbc driver installed also 64-bit?

  • 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

  • Excel / Oracle ( HS) Generic Connectivity?

    Hi All!
    i have connected to Excel using Heterogeneous services Oracle generic connectivity. It's showing all the data in the excel sheets and describe the table(sheets) as wel.
    But the operation like delete , insert and update are not working..
    1) How can i get all these working?
    SQL> desc class$@dlcompany2;
    Name Null? Type
    cno FLOAT(49)
    cname VARCHAR2(32512 CHAR)
    SQL> desc student$@dlcompany2;
    Name Null? Type
    sno FLOAT(49)
    sname VARCHAR2(32512 CHAR)
    SQL> desc lab$@dlcompany2;
    Name Null? Type
    LNO FLOAT(49)
    LNAME VARCHAR2(32512 CHAR)
    SQL> delete from student$@dlcompany;
    delete from student$@dlcompany
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC Excel Driver] Could not
    delete from specified tables. (SQL State: S1000; SQL Code: -3049)
    ORA-02063: preceding 2 lines from DLCOMPANY
    SQL> insert into student$@dlcompany2
    2 ("sno","sname")
    3 values
    4 (8,'hh');
    insert into student$@dlcompany2
    ERROR at line 1:
    ORA-02047: cannot join the distributed transaction in progress
    SQL>
    1 update student$@dlcompany2
    2 set "sname"='tt'
    3* where "sno"=7
    SQL> /
    update student$@dlcompany2
    ERROR at line 1:
    ORA-02047: cannot join the distributed transaction in progress
    SQL> delete from student$@dlcompany2
    2 where "sno"=7;
    delete from student$@dlcompany2
    ERROR at line 1:
    ORA-02047: cannot join the distributed transaction in progress...
    ____________x____________________x_______________________
    2) My main task is to getting the data from oracle table into Excel How can i do this Using Heterogeneous services Oracle generic connectivity?
    I will be extremely Thankfull
    Thanks
    Rana Adnan

    Hi Kim and ALL!!!!
    1)for Access this works perfectly and insert the data in class@dlcollege.
    when_button_pressed triggerDECLARE
         X NUMBER;
    BEGIN
         FOR X IN (SELECT tno, tname FROM TEST)
         LOOP
              INSERT INTO CLASS@DLCOLLEGE
              ("cno","cname")
              VALUES
              (X.tno,X.tname);
         END LOOP;
         commit;
    end;
    2)For MS Excel it niether gives any error message nor insert the data in class$@DLCOMPANY3.
    when_button_pressed trigger
    DECLARE
         X NUMBER;
    BEGIN
         FOR X IN (SELECT tno, tname FROM TEST)
         LOOP
              INSERT INTO class$@DLCOMPANY3
              ("cno","cname")
              VALUES
              (X.tno,X.tname);
         END LOOP;
         commit;
    end;
    Help needed for Excel?
    Thanks
    Rana Adnan

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

  • Could not find symbol 'SQLAllocConnect' for generic connectivity

    Hi,
    I am using Oracle 10gR2 64-bit on Linux 64-bit. I am trying to connect to an MSSQL box on Windows. I know that hsodbc is officially not supported on 64-bit OS.
    My connection using freetds works as well from unixODBC (verified by tsql, isql). The problem is in the next layer up - hsodbc. I copied it from a 32-bit Linux box as it was 0 bytes on 64-bit box.
    Here is what I have in initSQLGUY.ora -
    HS_FDS_CONNECT_INFO = sqltest
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_TRACE_FILE_NAME = freetds.trc
    HS_FDS_SHAREABLE_NAME = /usr/local/lib/libodbc.so
    # ODBC specific environment variables
    set ODBCINI=/usr/local/etc/odbc.ini
    set LD_LIBRARY_PATH=/usr/local/lib:/opt/oracle/product/10.2/lib32
    where sqltest is the name of my dsn. My listener.ora has -
    (SID_DESC =
    (SID_NAME = SQLGUY)
    (ORACLE_HOME = /opt/oracle/product/10.2)
    (PROGRAM = hsodbc)
    (ENVS=LD_LIBRARY_PATH=/usr/local/lib:/opt/oracle/product/10.2/lib32)
    My tnsnames.ora has -
    sqlguyid=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=myhost.mydomain.com)(PORT=1521))
    (CONNECT_DATA= (SID=SQLGUY))
    (HS=OK)
    with this configuration, tnsping works -
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=myhost.mydomain.com)(PORT=1521)) (CONNECT_DATA= (SID=SQLGUY)) (HS=OK))
    OK (0 msec)
    However my db link fails with -
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]DRV_InitTdp: DB_ODBC_INTERFACE (718): ; [C077]
    Could not find symbol 'SQLAllocConnect' in dynamic library
    DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library
    '/usr/local/lib/libodbc.so'
    ORA-02063: preceding 3 lines from SQLGUYLNK
    I am sure that others have gotten this to work in the past. I must be missing something trivial. Can anyone please point out what I need to do to get this working?
    Thanks

    You didn't explicite mention it, but I assume you are using a 32bit ODBC driver?
    The SQLAllocConnect function is built into the ODBC driver manager which is refered in your case as: /usr/local/lib/libodbc.so
    - check out this library exists and has sufficient permissins to be loaded by the Oracle user
    - check out this library is 32 bit
    - check out this library contains the SQLAllocConnect symbol

Maybe you are looking for

  • My pages is showing error while opening a document in microsoft word format. Please help

    While trying to open documents in microsoft word format, pages is showing an error. It is unable to complete the task and is requesting me to reopen pages but then no response. However I am able to work on pages format. Please help. thanks

  • Printing to a Deskjet 1000 from a terminal services session (2003) on my XP laptop.

    The printer is a CH340-64001 and it works fine on an XP laptop.  When an attempt is made to use it during a terminal services session it fails because Server 2003 does not have the drivers for the printer. When I try to run the installation from the

  • Wireless slow reconnect after sleep.

    After my laptop wakes from sleep it takes about 30 seconds for it to reconnect to my wireless network. Windows does this almost instantly. Is there any way I can get this to happen instantly?

  • Can't edit the Message Popup in TestStand 3.5

    I'm using TestStand 3.5/Labview 8, and when I inserted a Message Popup in my sequence, I found that I'm unable to edit it. I started with a new sequence file, right click->Insert Step->Message Popup, then right clicked the message popup and select Ed

  • My subscription dissapear

    I've received a message saying that my payment was refused, then that my subscription was cancelled which I´ve never done. I've updated my credit card details but I'm not able to renew my subscription. In the email i received it says that I have up t