DG4ODBC (11.2 g) on LINUX 64bit using FreeTDS ODBC Driver Manager

Hi,
I got a problem to connect via dg4odbc using usind database link. Below I've listed all my configuration files + dg4odbc trace output.
This is what I've already done:
1. Configured FreeTDS with odbc (see below)
2. I did some test using odbc.ini using isql,tsql and all were succeed :)
3. Configured three files initMSSQL.ora, listener and tnsnames
4. tnsping tns_entry also was succeed (HS=OK)
But when I created public dblink (CREATE PUBLIC DATABASE LINK hslink CONNECT TO "dbuser" IDENTIFIED BY "dbpassword" using 'my_tns entry') i cannot use it becouse it shows me errors listed in dg4odbc file.
Please see my configuration and help me tu figure out what I could done wrong or missmatch something !!!!!!!!!!!!
DATABASE INFO:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production Built with
Oracle Database Gateway for ODBC
**********typical freetds.conf, odbc.ini, odbcinst.ini configuration*********
/etc/freetds/freetds.conf
# Microsoft server
[SQLSERVER]
host = my_host_ip
port = 593377
tds version = 7.0
/etc# cat odbc.ini
[MSSQL]
Driver = FreeTDS
Description = ODBC connection via FreeTDS
Trace = No
Servername = SQLSERVER
Language =
Database = mydb_name
User = mydb_user
Password = mydb_passwd
Logging = 0
LogFile =
QuotedId = Yes
AnsiNPW = Yes
/etc# cat odbcinst.ini
[FreeTDS]
Description = TDS driver (Sybase/MS SQL)
Driver = /usr/lib/odbc/libtdsodbc.so
Setup = /usr/lib/odbc/libtdsS.so
CPTimeout =
CPReuse =
FileUsage = 1
*****Configuration init[SID].ora, listener.ora, tnsnames.ora*****
/u01/app/oracle/product/11.2.0/dbhome_1/hs/admin$ cat initMSSQL.ora
# is a sample agent init file containing the HS parameters that
# are needed for an ODBC Agent.
# HS init parameters
HS_FDS_CONNECT_INFO = MSSQL
HS_FDS_SHAREABLE_NAME = /usr/lib/odbc/libtdsodbc.so
set ODBCINI=/etc/odbc.ini
set ODBCINSTINI=/etc/odbcinst.ini
HS_FDS_TRACE_LEVEL = Debug
#HS_FDS_SUPPORT_STATISTICS = FALSE
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin$ cat 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.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC=
(SID_NAME=MSSQL)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM=dg4odbc)
(ENVS=LD_LIBRARY_PATH = /usr/lib:/usr/lib/odbc)
/u01/app/oracle/product/11.2.0/dbhome_1/network/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.
MSSQLCONN=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))
(CONNECT_DATA= (SID=MSSQL))
(HS=OK)
*******dg4odbc trace output***********
:/u01/app/oracle/product/11.2.0/dbhome_1/hs/log$ cat MSSQL_agt_12650.trc
Oracle Corporation --- MONDAY MAY 09 2011 16:22:44.248
Heterogeneous Agent Release
11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "Debug"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "MSSQL"
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:MSSQL
Exiting hgogprd, rc=0
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=873
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=873
HOCXU_SEM_VER=112000
Entered hgolofn at 2011/05/09-16:22:44
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib/odbc/libtdsodbc.so"
Entered hgolofns at 2011/05/09-16:22:44
symbol_peflctx=0xbff65b50
hoaerr:0
Exiting hgolofns at 2011/05/09-16:22:44
Entered hgolofns at 2011/05/09-16:22:44
symbol_peflctx=0xbff63720
hoaerr:0
Exiting hgolofns at 2011/05/09-16:22:44
Entered hgolofns at 2011/05/09-16:22:44
symbol_peflctx=0xbff62f30
hoaerr:0
Exiting hgolofns at 2011/05/09-16:22:44
Entered hgolofns at 2011/05/09-16:22:44
symbol_peflctx=0xbff638f0
hoaerr:0
Exiting hgolofns at 2011/05/09-16:22:44
Entered hgolofns at 2011/05/09-16:22:44
hoaerr:28500
Exiting hgolofns at 2011/05/09-16:22:44
Failed to load ODBC library symbol: /usr/lib/odbc/libtdsodbc.so(SQLDescribeParam)
Exiting hgolofn, rc=28500 at 2011/05/09-16:22:44
Exiting hgoinit, rc=28500 with error ptr FILE:hgoinit.c LINE:337 FUNCTION:hgoinit() ID:Loading ODBC aray of function ptrs
Entered hgoexit
HS Gateway: NULL connection context at exit
Exiting hgoexit, rc=0 with error ptr FILE:hgoexit.c LINE:108 FUNCTION:hgoexit() ID:Connection context
Could somebody help me please to figure out what is wrong with??????

Hi,
Thanks for very quick response Kgronau!!!
I applied the changes which you suggest and this is what I achived - "Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION" but when I changed HS_FDS_SQLLEN_INTERPRETATION to 32 it disapered and appeared new one :).
I won't pase all trace couse it silly long:
*************trace*******************
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
HOSGIP returned value of "32" 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 "MSSQL"
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:MSSQL
Exiting hgogprd, rc=0
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=873
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=873
HOCXU_SEM_VER=112000
Entered hgolofn at 2011/05/10-09:25:57
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/unixODBC/lib/libodbc.so"
Entered hgolofns at 2011/05/10-09:25:57
symbol_peflctx=0x9bf405f0
hoaerr:0
Exiting hgolofns at 2011/05/10-09:25:57
Entered hgolofns at 2011/05/10-09:25:57
symbol_peflctx=0x9bf40750
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"
treat_SQLLEN_as_compiled = 0
Exiting hgoinit, rc=0 at 2011/05/10-09:25:57
Entered hgolgon at 2011/05/10-09:25:57
reco:0, name:monitoringdb, tflag:0
Entered hgosuec at 2011/05/10-09:25:57
Exiting hgosuec, rc=0 at 2011/05/10-09:25:57
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_CHARACTER_SEMANTICS" returned "FALSE"
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 monitoringdb as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2011/05/10-09:25:57
HS_FDS_CONNECT_INFO = "MSSQL"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2011/05/10-09:25:57
dsn:MSSQL, name:monitoringdb
optn:
Entered hgocip at 2011/05/10-09:25:57
dsn:MSSQL
Exiting hgocip, rc=0 at 2011/05/10-09:25:57
Exiting hgogenconstr, rc=0 at 2011/05/10-09:25:57
Entered hgopoer at 2011/05/10-09:25:57
hgopoer, line 233: got native error 0 and sqlstate I; message follows...
Exiting hgopoer, rc=0 at 2011/05/10-09:25:57
hgocont, line 2752: calling SqlDriverConnect got sqlstate I
Exiting hgocont, rc=28500 at 2011/05/10-09:25:57 with error ptr FILE:hgocont.c LINE:2772 FUNCTION:hgocont() ID:Something other than invalid authorization
Exiting hgolgon, rc=28500 at 2011/05/10-09:25:57 with error ptr FILE:hgolgon.c LINE:781 FUNCTION:hgolgon() ID:Calling hgocont
Entered hgoexit at 2011/05/10-09:25:57
Exiting hgoexit, rc=0
So I've no idea why it's doesen't work :( . Does somebody know if there is any patch to solve it ??? I did not install any patch on database 11.2.
Thanks a lot

Similar Messages

  • Not able to connect to database using Oracle ODBC Driver

    Hi,
    I have installed Oracle client on a system. there are 2 homes installed. When I check the ODBC administrator, I see that only one ODBC driver is present. There are Net 8 services configured in both the homes.
    When I try to connect to a database with the services configured in the second home using the ODBC driver, I am getting an error that the TNS name could not be resolved.
    How can I use the ODBC driver to connect to the databases using services defined in the second home?
    The name of the ODBC driver is 'Oracle in <firsthomename>
    Thanks & Regards

    Hi,
    Thanks for the help.
    I tried this, but it doesn't work. I'm still getting the error.
    Now I am not able to create a DSN when I set the ORACLE_PATH to the second home. It says 'the setup routines for the Oracle in ora1 ODBC Driver could not be loaded due to system error code 998.'
    Any other solution?
    Thanks in advance & Regards
    Anuja

  • How to connect Sql Server 2000 using JDBC ODBC Driver

    How to connect Sql Server 2000 using JDBC ODBC Driver ?
    plz Send Syntax.
    thanks

    In SQL Server 2000 the driver class is com.microsoft.jdbc.sqlserver.SQLServerDriver
    The connection URL for the default SQL Server 2000 database is jdbc:sqlserver://localhost:1433
    Class.forName(
      "com.microsoft.sqlserver.jdbc.
      SQLServerDriver");
    String url =
      "jdbc:sqlserver://localhost:1433";
    Connection conn = DriverManager.
      getConnection(
      url, "sa", "sqlserver");

  • Slow performance in W2K using Oracle ODBC Driver

    My company is upgrading our NT4 servers to W2K. One or our App servers is running MTS with several packages, one of those being a dataaccess package that is responsible for all data actions.
    In testing the OS upgrade, I found considerable performance degradation with our data access package. I finally solved the problem by changing the ODBC driver from Oracle ODBC Driver to the Microsoft ODBC for Oracle Driver. I have also found that under XP, I can still retain the use of the Oracle ODBC Driver without any performance hits.
    All systems currently have the 8.1.7 Oracle Client and MDAC 2.7. I have also tried the Oracle Objects for OLE with similar performance losses in W2K.
    More info about the problem...
    In using the Oracle ODBC Driver, I connect this way -
    Dim RS As ADOR.Recordset
    Set RS = CreateObject("ADOR.Recordset")
    RS.ActiveConnection = "DSN=" & p_strDSN & ";" & "uid=" & strUser & ";pwd=" & strPassword & ";"
    RS.Source = "Select stuff from aTable"
    RS.LockType = adLockReadOnly
    RS.Open
    Using W2K, I found that the majority of processing time comes from the RS.ActiveConnection call, not from object creation.
    I would like to use an Oracle developed driver to connect to my database, however, I am forced to use the Microsoft driver. I have not seen any similar problem on this message board, nor have I seen any mention of this in MSDN's discussion board. Can anyone shed some light on what is going on?
    Thanks,
    Matt

    The performance lag we have been seeing is in the milliseconds, but when we make repeated calls, those milliseconds add up. I am seeing a difference of about 7 - 10 milliseconds each call between the Oracle ODBC Driver and the Microsoft driver.
    TNSPings seem quick in all setups as does the connection tests.
    The Oracle ODBC driver version is 8.01.07.00. I haven't tried the new 8.01.07.6+ drivers yet. I'll give them a shot and reply back with results in a day or so.

  • ASP connection to Oracle using MS ODBC Driver fails

    I have a Win2000 server with ORCL9.2 client and MDAC2.7 and the following code fails (last line gives the error):
    set dbConn = Server.CreateObject("ADODB.Connection")
    set rsSeq = server.CreateObject("ADODB.Recordset")
    sSql = "Select count(*) From bs_table"
    dbConn.Open "DSN=tp10;UID=aaa;PWD=aaa;"
    The error text is :
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC driver for Oracle][Oracle]Error while trying to retrieve text for error ORA-01019
    This code works fine with Oracle 8i client on the server, I really appreciate if any one can help me out here.
    Thanks

    Can you try with the Oracle ODBC driver, rather than the Microsoft ODBC driver for Oracle? Microsoft's driver still uses the old Oracle 7 OCI calls, which are no longer supported on an Oracle 9.2 client.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • DG4ODBC  is available for linux 64bit, but i need to buy ODBC driver??

    Hi guys,
    I need to connect to Microsoft SQL Server from Oracle rdbms 10.2.0.3 on linux_64bit platform and I've read that HSODBC DOES NOT AVAILABLE ON 64BIT PLATFORM.
    So DG4ODBC can run with Oracle Version 10.2.0.3 (patch 5965763 is mandatory) but the Note:561033.1 says to buy a ODBC vendors driver..
    I don't understand, i need to install DG4ODBC for Heterogeneous Connectivity but it works only throught other ODBC vendor driver? so i need to buy ODBC license for my aim.
    There isn't any workaround for it? some opensource driver or method for connect to external SQL server without any cost effort?
    thanks very much!
    Andrea

    Yes, you are right. DG4ODBC offers only the option to connect to the foreign database using an ODBC driver; but there is NO ODBC driver shipped with it.
    There are some ODBC drivers outside (like freetds.org) for free, but there is no guarantee it will work with DG4ODBC as they commonly do not offer the functionality like a commercial ODBC driver from DataDirect or Easysoft does.
    If you do not want to pay for a commerical ODBC driver then think about moving DG4ODBC to the SQL Server or any other 32bit Windows machine as you can then here use the SQL Server ODBC driver shipped with the OS or with the MDAC.
    DG4ODBC is now a gateway and thus independant from the Oracle database (another improvement compared to HSODBC).
    You can then connect from the database on Linux to the gateway on Windows which uses the SQL Server ODBC driver for Windows and connects to the SQL Server.

  • Using Oracle ODBC Gateway connecting to a remote Oracle database

    Oracle 11gR2
    RHEL 6.4
    Has anyone use the Oracle ODBC Gateway to connect to another Oracle database?  Any issues with that configuration?  Where do I get the ODBC drivers for Linux?
    (I know, "why not use a dblink?" -- well that would be against company security policies)

    Hi,
       From the Oracle point of view we support using DG4ODBC for Oracle to Oracle connections. However, we have not actually tested it as DG4ODBC is primarily designed for access to non-Oracle databases.
    How DG4ODBC will work between Oracle databases depends on the ODBC driver and what that supports. You will need an ODBC Oracle driver which you can get from various suppliers including Oracle but also vendors such as DataDirect, Easysoft etc. You could try a Google search.
    You say you do not want to use database links but that is how DG4ODBC is used, You cannot do -
    sqlplus user/password@dg4odbc_oracle
    Once Dg4ODBC is setup and configured as in this note - if you are using Linux 64-bit -
    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)
    then in the Oracle database you create a database link and select from tables in the other Oracle database -
    select * from table@dg4odbc_db_link ;
    Regards,
    Mike

  • Error using "Microsoft ODBC for Oracle" driver

    I am trying to connect to Oracle 10g Express Edition from Access 2003 on Windows XP. I created a DSN using "Microsoft ODBC for Oracle" driver. When I try to connect using ADO, I get this error:
    [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
    I googled this error and got a lot of hits but no solution.
    Any help would be greatly appreciated. I am new to Oracle and am coming from SQL Server 2000.
    Thanks a lot!

    This is the connection string I am using:
    Conn1.ConnectionString = "driver={Oracle in XE};Dbq=GMIS_LIVE.WORLD;Uid=Administrator;Pwd=ubs;"
    These are the contents of my tnsnames.ora (what entries do I add to make this work)?
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = your-a9279112e3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )

  • Cannot create DSN using ODBC Driver 8.1.5

    I was able to create new DSNs using Oracle ODBC Driver 8.1.5 and linked Access tables. But all of a sudden (yes, without any reason, I was not downloading anything at that time) , I got ODBC-Call Failed. And when I tried to reopen (browse) the linked table, a message saying -
    One of the library files needed to run this application cannot be found.
    Then I realized that I cannot configure existing DSNs using Oracle ODBC Driver 8.1.5. I trid to create a new one. But after I selected the Oracle ODBC Driver, it did not bring me to the screen to set up DSN, and just went back to the same ODBC Datasource Administrator window.
    I tried to use SQL Plus to connect to the Oracle server and it worked. But when I tried the ODBCtest, I got the same message with more details -
    SQLSTATE: IM003, Native Error Code: 160, Driver Message: Specified Driver could ont be loaded due to system error 1114. (Oracle ODBC Driver).
    I tried to follow the 'help' hint but nothing's working. I reinstalled the ODBC driver, and even downloaded the MDAC 2.6 that appeared in one old discussion topic, but still have problems.
    Was it something suddenly crashed? Could someone please help? (p.s. I am using win98). Thanks!

    What version of the mfc42*.dll's do you have in your system directory?
    Justin

  • Problems using Oracle ODBC with Access

    Windows xp 64
    Oracle thick client 10.2.0.1
    When I test my ODBC connection in the Windows ODBC Admin Utility, it tests out fine. However whenever i try using a connection or creating within Access, I get error: "[Microsoft][ODBC Driver for Oracle][Oracle]ORA-12154: TNS:could not resolve the connect identifier specified (#12154) [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed IM006 0 [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (#0)"
    Any suggestions? Thanks

    There's a known issue where 12154 occurs when an application has parenthesis in it's path, and MSAcces (being 32 bit) would get installed by default to c:\program files(x86).
    Patching the client to 10204 should resolve this issue for you.
    Greg

  • ORA 2005 error when you using ODBC driver of 10.2.0.3

    I am getting following error when connecting Oracle 10.2.0.3 to Oracle 11.1 database from a thrid part application:
    Issue Description. An application using Oracle ODBC driver version 10.2.0.3 to communicate with the Oracle database 11g tries to update the field “SOURCE_CODE” of LONG data type in table “SUBROUTINE” returns the following error.
    ORA-02005: Implict -1 length not valid for the bind or dfeine datatype.
    I updated my client to 10.2.0.4,, error is still present. Does any one know what patch to install to get rid of this error. I cannot modify the third party code.

    What are the system requirements (supported config) of 3rd party app?
    According to the 9.2 Error Messages document,
    >
    ORA-02005 implicit (-1) length not valid for this bind or define datatype
    Cause: A negative length for the define variable was passed to a define function.
    Action: An explicit, non-negative, length parameter must be passed.
    >
    Perhaps you should report this back to vendor as a bug.
    You could also turn on odbc tracing (driver/dsn config) to catch the cuplrit statement.

  • Problems using ODBC Driver. Connection never opens.

    Hi,
    I have a problem with the ODBC driver for oracle.
    This is the behaviour: the first attemp of connection doesn't work, the connection never opens. the second attempt is almost instantaneous but 10 minutes later the connection fails again. It is neccesary to close and open the app using the odbc driver again.
    I've tried everything.
    Thanks in advance,Regards.

    Hi,
    Quote: "ERROR [IM002] [Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified".
    This error is typically thrown because the code is specifying a DSN that does not exist. So, please make sure you are referencing a DSN that has been created.
    You can refer to this article below:
    https://community.microfocus.com/borland/test/silk_test/w/knowledge_base/10737.how-do-i-resolve-error-im002-microsoft-odbc-driver-manager-data-source-name-not-found-and-no-default-driver-specified.aspx
    Or please add the right conenction string. You can look at following website:
    http://www.connectionstrings.com/
    Note This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and
    has not tested any software or information found on these sites.
    Andy Altmann
    TechNet Community Support

  • Linux 64bit to MSSQL

    Hi,
    This is a rookie question but it is better to ask than assume. I looked through the certification matrix for Heterogeneous Agent 11g. It says that the gateway can be installed on Linux x64 and this can talk to MSSQL 2000 on Windows (obviously). What I am not clear on is if I still need 3rd party ODBC drivers and the like to get this to work? Also in 10g, hsodbc did not work on 64 bit but worked fine on 32-bit (the hsagent binary was 0 bytes). Is that still the case?
    If not, can this be installed on a 10gR2 database or does the database also have to be 11g?
    Or is a better option to install the gateway on a windows box and use that as a bridge?
    Thanks.

    Please pay attention; there are 2 products now availablr for Linux 64 bit:
    DG4ODBC and DG4MSQL.
    DG4ODBC is a generic component which uses ODBC drivers to connect to the foreign database. DG4ODBC requires a 3rd party ODBC driver (which is now a 64bit ODBC driver on 64bit platforms).
    DG4MSQL is the GATEWAY to SQL server. This product is not for free; but it comes with a branded ODBC driver for SQL Server. This product is ONLY for connections to a SQl Server; thus its capabilities are trimmed for SQL Server optimisation. This means Oracle functions are mapped to equivalent SQL Server functions. In addition this product supports distributed trasnaction required for STREAMS or other operations like TRIGGER data distribution.
    You can use the V11 gateways DG4ODBC and DG4MSQL with 9.2, 10.1, 10.2 and V11 databases. Only thing you need to be aware is you need a COMPATIBILITY patch for the database which is available (or built) only for the latest patchsets - 9208, 10105, 10203; for 10204 which will be available soon the patch is already included.

  • Oracle 10.2.0.3 - LINUX 64bit to sql server 2003

    I have applied Patch 5965763 and installed DG4ODBC in seperate oracle home
    I have the Data Direct ODBC drivers for linux 64-bit and am using ddsqls24.so driver
    my connection to sql server 2003 is "AFMAC"
    my listener on 11.2 works and is started from the 11g home
    my previous listeners are working from the 10g home
    i have create the database link: create database link AFMAC connect to "mysql" identified by "mysql" using 'AFMAC';
    select * from dual@AFMAC;
    select * from dual@AFMAC
    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 AFMAC
    I have exhausted my searches and have not found the issue. any suggestions?
    below are my files:
    initAFMAC.ora file
    # 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 = AFMAC
    HS_FDS_SHAREABLE_NAME=/opt/oracle/gateway/hs/lib/dg4odbc.o:/opt/oracle/odbc/lib/libodbc.so
    # ODBC specific environment variables
    set ODBCINI=/opt/oracle/odbc/odbc.ini
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    listener.ora on 11g
    AFMAC =
    (ADDRESS_LIST=
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxxxxxxx-dev-vip)(PORT = 1522))
    SID_LIST_LISTENER =
    (SID_LIST=
    (SID_DESC=
    (SID_NAME = AFMAC)
    (ORACLE_HOME = /opt/oracle/gateway)
    (PROGRAM = dg4odbc)
    listener.ora on 10g
    LISTENER_XXXXXXXXXXXXX-DEV =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxxxxxxxx-dev-vip)(PORT = 1521)(IP = FIRST))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 1xx.xxx.xxx.136)(PORT = 1521)(IP = FIRST))
    tnsnames.ora on 10g
    COHODEV1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rac1-dev-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = XXX.XXX.XXX.136)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XXXXdev)
    (INSTANCE_NAME = XXXXdev1)
    AFMAC =
    (DESCRIPTION =
    (ADDRESS= (PROTOCOL = TCP) (HOST = XXXXXXXX-dev-vip) (PORT = 1522))
    (CONNECT_DATA = (SID = AFMAC))
    (HS=OK)
    11g alert/log.xml
    <msg time='2009-12-01T14:49:39.752-06:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='cohortrac1-dev'
    host_addr='140.140.200.136'>
    <txt>01-DEC-2009 14:49:39 * service_update * cohodev1 * 0
    </txt>
    </msg>
    <msg time='2009-12-01T14:50:39.758-06:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='cohortrac1-dev'
    host_addr='140.140.200.136'>
    <txt>01-DEC-2009 14:50:39 * service_update * cohodev1 * 0
    </txt>
    </msg>
    <msg time='2009-12-01T14:52:06.774-06:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='cohortrac1-dev'
    host_addr='140.140.200.136'>
    <txt>01-DEC-2009 14:52:06 * service_update * cohodev1 * 0
    </txt>
    </msg>
    <msg time='2009-12-01T14:53:39.787-06:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='cohortrac1-dev'
    host_addr='140.140.200.136'>
    <txt>01-DEC-2009 14:53:39 * service_update * cohodev1 * 0
    </txt>
    </msg>
    <msg time='2009-12-01T14:54:15.791-06:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='cohortrac1-dev'
    host_addr='140.140.200.136'>
    <txt>01-DEC-2009 14:54:15 * service_update * cohodev1 * 0
    </txt>
    </msg>
    <msg time='2009-12-01T14:55:18.062-06:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='cohortrac1-dev'
    host_addr='140.140.200.136'>
    <txt>01-DEC-2009 14:55:18 * (CONNECT_DATA=(SID=AFMAC)(CID=(PROGRAM=)(HOST=cohortrac1-dev)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=140.140.200.137)(PORT=10706)) * establish * AFMAC * 12505
    </txt>
    </msg>
    <msg time='2009-12-01T14:55:18.062-06:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='cohortrac1-dev'
    host_addr='140.140.200.136'>
    <txt>TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
    </txt>
    </msg>
    <msg time='2009-12-01T14:56:18.790-06:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='cohortrac1-dev'
    host_addr='140.140.200.136'>
    <txt>01-DEC-2009 14:56:18 * service_update * cohodev1 * 0
    </txt>
    </msg>
    <msg time='2009-12-01T14:56:39.794-06:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='cohortrac1-dev'
    host_addr='140.140.200.136'>
    <txt>01-DEC-2009 14:56:39 * service_update * cohodev1 * 0
    </txt>
    </msg>
    <msg time='2009-12-01T14:56:45.797-06:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='cohortrac1-dev'
    host_addr='140.140.200.136'>
    <txt>01-DEC-2009 14:56:45 * service_update * cohodev1 * 0
    </txt>
    </msg>
    trace file -- afmac.log
    Tue Dec 01 14:40:22 2009
    01-DEC-2009 14:40:22 * service_update * cohodev1 * 0
    Tue Dec 01 14:42:12 2009
    01-DEC-2009 14:42:12 * service_update * cohodev1 * 0
    Tue Dec 01 14:43:21 2009
    01-DEC-2009 14:43:21 * service_update * cohodev1 * 0
    Tue Dec 01 14:44:27 2009
    01-DEC-2009 14:44:27 * service_update * cohodev1 * 0
    Tue Dec 01 14:45:39 2009
    01-DEC-2009 14:45:39 * service_update * cohodev1 * 0
    Tue Dec 01 14:47:15 2009
    01-DEC-2009 14:47:15 * service_update * cohodev1 * 0
    Tue Dec 01 14:48:39 2009
    01-DEC-2009 14:48:39 * service_update * cohodev1 * 0
    Tue Dec 01 14:49:39 2009
    01-DEC-2009 14:49:39 * service_update * cohodev1 * 0
    Tue Dec 01 14:50:39 2009
    01-DEC-2009 14:50:39 * service_update * cohodev1 * 0
    Tue Dec 01 14:52:06 2009
    01-DEC-2009 14:52:06 * service_update * cohodev1 * 0
    Tue Dec 01 14:53:39 2009
    01-DEC-2009 14:53:39 * service_update * cohodev1 * 0
    Tue Dec 01 14:54:15 2009
    01-DEC-2009 14:54:15 * service_update * cohodev1 * 0
    Tue Dec 01 14:55:18 2009
    odbctrace.out
    EXIT SQLError with return code 100 (SQL_NO_DATA_FOUND)
    HENV 0x0adaaa30
    HDBC 0x0adab960
    HSTMT 0x00000000
    UCHAR * 0x2f5cd5b0 (NYI)
    SDWORD * 0x2f5cd3ac
    UCHAR * 0x2f5cd3b0
    SWORD 511
    SWORD * 0x2f5cd3aa
    ENTER SQLAllocStmt
    HDBC 0x0adab960
    HSTMT * 0x2f5cdce8
    EXIT SQLAllocStmt with return code 0 (SQL_SUCCESS)
    HDBC 0x0adab960
    HSTMT * 0x2f5cdce8 ( 0x0adc66d0)
    ENTER SQLFreeStmt
    HSTMT 0x0adc66d0
    UWORD 2 <SQL_UNBIND>
    EXIT SQLFreeStmt with return code 0 (SQL_SUCCESS)
    HSTMT 0x0adc66d0
    UWORD 2 <SQL_UNBIND>
    ENTER SQLDisconnect
    HDBC 0x0adab960
    EXIT SQLDisconnect with return code 0 (SQL_SUCCESS)
    HDBC 0x0adab960
    ENTER SQLFreeConnect
    HDBC 0x0adab960
    EXIT SQLFreeConnect with return code 0 (SQL_SUCCESS)
    HDBC 0x0adab960
    ENTER SQLFreeEnv
    HENV 0x0adaaa30
    EXIT SQLFreeEnv with return code 0 (SQL_SUCCESS)
    HENV 0x0adaaa30

    I have change the path to below. do i need to point something to the dg4odbc.o?
    my oracle home is /opt/oracle/product/10.2.0/db_1/database
    the oracle gateway is in /opt/oracle/gateway
    HS_FDS_SHAREABLE_NAME=/opt/oracle/gateway/lib/libodbc.so
    [oracle@xxxxxxxxxx-dev lib]$ pwd
    /opt/oracle/odbc/lib
    [oracle@xxxxxxxxxxdev lib]$ da
    total 77592
    -rwxr-xr-x 1 oracle oinstall 11864950 Apr 8 2009 libddicu24.so*
    -rwxr-xr-x 1 oracle oinstall 1862747 Apr 8 2009 ddor824r.so*
    -rwxr-xr-x 1 oracle oinstall 1846224 Apr 8 2009 ddmsss24r.so*
    -rwxr-xr-x 1 oracle oinstall 28748 Apr 8 2009 ddmsssdlg24.so*
    -rwxr-xr-x 1 oracle oinstall 1684501 Apr 8 2009 ddor824s.so*
    -rwxr-xr-x 1 oracle oinstall 3071461 Apr 8 2009 ddor824.so*
    -rwxr-xr-x 1 oracle oinstall 1960824 Apr 9 2009 libddssl24.so*
    -rwxr-xr-x 1 oracle oinstall 785197 Apr 13 2009 ddmsss24.so*
    -rwxr-xr-x 1 oracle oinstall 1680661 Apr 13 2009 ddmsss24s.so*
    -rwxr-xr-x 1 oracle oinstall 1853846 Jun 25 10:34 ddifcl24r.so*
    -rwxr-xr-x 1 oracle oinstall 2780278 Jun 25 10:36 ddifcl24.so*
    -rwxr-xr-x 1 oracle oinstall 1919201 Aug 6 12:50 ddase24r.so*
    -rwxr-xr-x 1 oracle oinstall 1876326 Aug 6 12:50 ddtera24r.so*
    -rwxr-xr-x 1 oracle oinstall 4445059 Aug 6 12:50 ddase24.so*
    -rwxr-xr-x 1 oracle oinstall 1688747 Aug 6 12:50 ddtera24s.so*
    -rwxr-xr-x 1 oracle oinstall 2857765 Aug 6 12:50 ddtera24.so*
    -rwxr-xr-x 1 oracle oinstall 1844597 Aug 24 10:23 ddgplm24r.so*
    -rwxr-xr-x 1 oracle oinstall 1844629 Aug 24 10:24 ddpsql24r.so*
    -rwxr-xr-x 1 oracle oinstall 1806678 Sep 21 15:19 libddmbackw.so*
    -rwxr-xr-x 1 oracle oinstall 1926162 Sep 21 15:20 ddora24r.so*
    -rwxr-xr-x 1 oracle oinstall 1819448 Sep 21 15:20 libddmback.so*
    -rwxr-xr-x 1 oracle oinstall 3639409 Sep 21 17:48 ddora24.so*
    -rwxr-xr-x 1 oracle oinstall 3008211 Oct 8 11:30 ddmysql24.so*
    -rwxr-xr-x 1 oracle oinstall 3010496 Oct 13 14:57 ddpsql24.so*
    -rwxr-xr-x 1 oracle oinstall 3009760 Oct 13 15:02 ddgplm24.so*
    -rwxr-xr-x 1 oracle oinstall 3869943 Oct 14 09:39 dddb224.so*
    -rwxr-xr-x 1 oracle oinstall 1944521 Oct 14 16:21 dddb224r.so*
    -rwxr-xr-x 1 oracle oinstall 15283 Oct 19 10:52 ddtrn24.so*
    -rwxrwxr-x 1 oracle oinstall 3390754 Oct 20 10:03 ddsqls24.so*
    -rwxrwxr-x 1 oracle oinstall 77982 Oct 20 13:35 vscnctdlg.so*
    -rwxrwxr-x 1 oracle oinstall 335288 Oct 20 13:35 odbctrac.so*
    -rwxrwxr-x 1 oracle oinstall 1840285 Oct 20 13:35 odbccurs.so*
    -rwxrwxr-x 1 oracle oinstall 2115774 Oct 20 13:35 libodbc.so*
    -rwxrwxr-x 1 oracle oinstall 1530695 Oct 20 13:35 libodbcinst.so*
    [oracle@xxxxxxxxxx-dev database]$ tnsping AFMAC
    TNS Ping Utility for Linux: Version 10.2.0.3.0 - Production on 02-DEC-2009 07:17:02
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    /opt/oracle/product/10.2.0.1/db_1/database/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS= (PROTOCOL = TCP) (HOST = xxxxxxxxxx-dev-vip) (PORT = 1522)) (CONNECT_DATA = (SID = AFMAC)) (HS=OK))
    OK (0 msec)
    [oracle@xxxxxxxxxx-dev admin]$ lsnrctl status AFMAC
    LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 02-DEC-2009 07:21:21
    Copyright (c) 1991, 2006, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxxxxxxx-dev-vip)(PORT=1522))(CONNECT_DATA=(SID=AFMAC))(HS=OK))
    STATUS of the LISTENER
    Alias AFMAC
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 01-DEC-2009 14:37:20
    Uptime 0 days 16 hr. 44 min. 1 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /opt/oracle/gateway/network/admin/listener.ora
    Listener Log File /opt/oracle/diag/tnslsnr/cohortrac1-dev/afmac/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.137)(PORT=1522)))
    The listener supports no services
    The command completed successfully
    SQL> select count(*) from "test_table"@AFMAC;
    select count(*) from "test_table"@AFMAC
    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 AFMAC
    Edited by: user11986618 on Dec 2, 2009 5:31 AM

  • Oracle 11g installation on Oracle Enterprise Linux, 64bit version.

    Hi
    I want to install oracle 11g on Oracle Enterprise Linux, 64bit version.
    Do I need to set kernel parameters in this operating system, since it is not standart Linux editions.
    or
    Can I have a step by step documentation for installing oracle 11g on this operating system?

    Hello,
    Yes you do need to set kernal parameters in order to meet pre-requisites, otherwise your installation will fail and oracle might not work or unstable.
    Here is the best place to find out stepwise installation instruction and kernel parameter configuration
    Quick Installation Guide*
    http://download.oracle.com/docs/cd/B28359_01/install.111/b32285/toc.htm
    Kernel parameter configuration*
    http://download.oracle.com/docs/cd/B28359_01/install.111/b32285/toc.htm#CEGFBCFD
    You can use this tutorial to install oracle 11g*
    http://www.oracle.com/technology/obe/11gr1_db/install/dbinst/dbinst.htm#o
    Regards

Maybe you are looking for

  • Sales order report with Net value (NETWR) and Tax amount (MWSBP)

    Hi all,         I would like to know if somebody know if exist a report of sales order where it can see the Net value and the Tax amount per sales order. Regards, Mariano.

  • How to get client IP in custom UCM Service

    how to get client IP in custom UCM Service ?

  • How Do you add Your APP to XP windows system in control panel??.

    Hi, Is there a way to make your APP be part of XP windows? to go or have it list in Add/Remove programs in control panel and to show up and stay in the Taskbar( next to the time on dask top) and how do y ou add to Rigister in XP windows. Other words,

  • Help in Mapping

    Hi Experts, i need your help in Multi mapping. Input file structure Message   Message1     bpm_in_MT       details          name          id Output file Structure Message   Message1    bpm_out_MT     details       name       id   Message2    bpm_out1

  • Filing in an image to fit a photo cut out

    upgraded to keynote version 4. Now in placing an image in a photo cut out I can no longer fill in the area surrounding the image. In Inspector: graphics 'Fill' is not activated like it did previously. I cannot activate the pop up menu of Fill in anyw