Configure HS talk to mysql through ODBC

Hello
Running 10g rel2 on Linux 64bit. Need to dblink to mysql 5.
Configured:
/etc/odbc.ini
[myodbc]
Driver = /usr/lib64/libmyodbc.so
Description = MyODBC 2.50 Driver DSN
SERVER = 209.71.254.40
PORT = 3306
USER = posman
Password = posman
Database = poseidon
OPTION = 0
SOCKET =
Listener.ora
(SID_DESC=
(PROGRAM=hsodbc)
(SID_NAME=myodbc3)
(ORACLE_HOME=/opt/oracle/product/10.2.0/rtbrs3)
(ENVS=LD_LIBRARY_PATH = /opt/oracle/product/10.2.0/rtbrs3/lib32:/lib:/usr/lib64)
Tnsnames.ora
HSODBC =
(DESCRIPTION=
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = everest.ca)
(PORT = 1521)
(CONNECT_DATA =
(SID= myodbc3)
(HS=OK)
inintmyodbc3.ora
HS_FDS_CONNECT_INFO = myodbc3
HS_FDS_TRACE_LEVEL = off
When I do tnsping HSODBC is works.
I create the DBLINK and that works.
I test the dblink and it fails with
SQL> select * from "emp"@testdb;
select * from "emp"@testdb
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 TESTDB
Please help

we had problems with the * wildcard and also with aliases and synonyms for table joins.
make them simple like this: select "column_name" from table_name@testdb;
and make a separate view for each query then use a query to join the views in Oracle.

Similar Messages

  • Problem on 10gr2 for configure HS talk to mysql through ODBC

    Hello, all,
    did someone tried configure HS on 10gr2 talk to mysql 3.5 on xp?
    I tried it on my environment and got some issues here. any advice will be appreciated:
    1) environment: OS=xp professional sp2. oracle database=10gr2. mysql database=mysql 3.5. ODBC was setup as mysql_shan and works perfect with some other application like php communication
    2) my configuration:
    a. hs init file: name=%ORACLE_HOME%/hs/admin/initmysql.ora with HS_FDS_CONNECT_INFO = mysql_shan
    HS_FDS_TRACE_LEVEL = ON
    b. listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = D:\oracle\ora10g\product\10.2.0\db_1)
    (SID_NAME = grid)
    (SID_DESC =
    (GLOBAL_DBNAME = EMREP.CORPORATE)
    (ORACLE_HOME = D:\oracle\ora10g\product\10.1.0\em_1)
    (SID_NAME = EMREP)
    (SID_DESC =
    (PROGRAM = extproc)
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\ora10g\product\10.2.0\db_1)
    (SID_DESC =
    (PROGRAM = mysql_shan)
    (SID_NAME = mysql)
    (ORACLE_HOME = D:\oracle\ora10g\product\10.2.0\db_1)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MIS-DT-49769.corporate)(PORT = 1521))
    c.tnsnames.ora:
    mysql =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=MIS-DT-49769.corporate)(PORT=1521))
    (CONNECT_DATA=(SID=mysql))
    (HS=OK)
    d. instance parameter setting:
    hs_autoregister=true
    3)here's my test results:
    (1)listener service status:
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 01-JUN-2006 10:04:10
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "EMREP.CORPORATE" has 1 instance(s).
    Instance "EMREP", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "grid" has 2 instance(s).
    Instance "grid", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:1 refused:0
    LOCAL SERVER
    Instance "grid", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:6 refused:0 state:ready
    LOCAL SERVER
    Service "gridXDB" has 1 instance(s).
    Instance "grid", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: MIS-DT-49769, pid: 4320>
    (ADDRESS=(PROTOCOL=tcp)(HOST=MIS-DT-49769.corporate)(PORT=4617))
    Service "grid_XPT" has 1 instance(s).
    Instance "grid", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:6 refused:0 state:ready
    LOCAL SERVER
    Service "mysql" has 1 instance(s).
    Instance "mysql", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:2
    LOCAL SERVER
    The command completed successfully
    (2)tnsping:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)) (CONNECT_DAT
    A=(SID=mysql)) (HS=OK))
    OK (30 msec)
    (3) create database link mysql: SQL> CREATE DATABASE LINK "mysql" USING 'mysql';
    Database link created.
    (4) query mysql through sqlplus:
    SQL> select * from MEMBERS@mysql;
    select * from MEMBERS@mysql
    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 MYSQL
    check the listener.log:
    01-JUN-2006 10:36:10 * (CONNECT_DATA=(SID=mysql)(CID=(PROGRAM=)(HOST=CORPORATE\MIS-DT-49769)(USER=CORPORATE\Richard.Shan))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=4026)) * establish * mysql * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 2: No such file or directory
    looks something wrong , can someone give some advice?
    thanks in advance!

    thanks all, problem solved:
    the listener.ora, has to be like this:
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = mysql)
    (ORACLE_HOME = D:\oracle\ora10g\product\10.2.0\db_1)
    )

  • Tnsping timed out using dg4odbc from Oracle to MYSQL through ODBC

    Hi,
    I encountered problem when trying to connect from Oracle to MYSQL using dg4odbc, hope you can shed some light
    Oracle database is 11.1.0.7 on SUSE Linux 64-bit.
    Since the application which runs on MYSQL DB only offers ODBC driver on Windows platform, so I installed the 32-bit ODBC driver (from ServiceNow) on a 32-bit windows server (driver download from http://wiki.service-now.com/index.php?title=ODBC_Driver) .
    created system DSN: MYSQLDEV, The DSN connection works fine. I then installed Oracle 11.2.0.1 gateway for ODBC 32-bit on the same windows server, the following configurations were done:
    On 32-bit Windows server:
    in gatewayHome\hs\admin
    initMYSQLDEV.ora:
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQLDEV
    HS_FDS_TRACE_LEVEL = DEBUG
    in gatewayHome\network\admin:
    listener.ora
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abcdes.sda.sdva.com)(PORT = 1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=MYSQLDEV)
    (ORACLE_HOME=C:\product\11.2.0\tg_1)
    (PROGRAM=dg4odbc)
    ADR_BASE_LISTENER = C:\product\11.2.0\tg_1
    stop and started listener on windows server and check listener status
    C:\product\11.2.0\tg_1\bin>lsnrctl status listener
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 29-MAR-2012 21:42:08
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=abcdes.sda.sdva.com)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date 29-MAR-2012 21:11:36
    Uptime 0 days 0 hr. 30 min. 32 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\product\11.2.0\tg_1\network\admin\listener.ora
    Listener Log File c:\product\11.2.0\tg_1\diag\tnslsnr\abcdes\list
    ener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=abcdes.sda.sdva.com)(PORT=1521)))
    Services Summary...
    Service "MYSQLDEV" has 1 instance(s).
    Instance "MYSQLDEV", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    On Linux server where Oracle DB resides.
    Added the following tns entry "jelly" on the Linux server ORACLE_HOME/network/admin:
    jelly =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=TCP)
    (HOST=abcdes.sda.sdva.com)
    (PORT=1521))
    (CONNECT_DATA=(SID=MYSQLDEV))(HS=OK)
    tnsping from Linux server (64-bit) failed with timeout error:
    tnsping jelly
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 29-MAR-2012 21:12:38
    Copyright (c) 1997, 2008, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=abcdes.sda.sdva.com) (PORT=1521)) (CONNECT_DATA=(SID=MYSQLDEV))(HS=OK))
    TNS-12535: TNS:operation timed out
    tnsping from Windows server works fine: (added same tnsnames entry on windows server for testing purpose only)
    C:\product\11.2.0\tg_1\bin>tnsping jelly
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 29-MAR-2
    012 21:45:20
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\product\11.2.0\tg_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=abcdes.sda.sdva.com)(PORT=1521)) (CONNECT_DATA=(SID=MYSQLDEV)) (HS=OK))
    OK (20 msec)
    if listener is not listening to the service, then the tnsping on the windows server should fail as well.
    I don't know why only the tnsping from Linux failed, is it due to the 32-bit ODBC uncompatibility with 64-bit oracle server? or my configuration problem?
    Of course, when I created the DB link from oracle, the connection failed with
    create database link mysqldev connect to xxxx identified by "xxxxx" using 'jelly';
    Database link created.
    select * from tab1;
    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 MYSQLDEV
    Thanks for your help,

    Hi Mike,
    This is part of the tnsping.trc file which contains the error. IP address is in the tnsnames entry with this tnsping.
    nsopen: opening transport...
    nttcon: entry
    nttcon: toc = 1
    nttcnp: entry
    nttcnp: creating a socket.
    nttcnp: exit
    nttcni: entry
    nttcni: Tcp conn timeout = 0 (ms)
    nttcni: trying to connect to socket 5.
    ntt2err: entry
    ntt2err: soc 5 error - operation=1, ntresnt[0]=505, ntresnt[1]=110, ntresnt[2]=0
    ntt2err: exit
    nttcni: exit
    nttcon: exit
    nserror: entry
    nserror: nsres: id=0, op=65, ns=12535, ns2=12560; nt[0]=505, nt[1]=110, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
    nsopen: unable to open transport
    nsiocancel: entry
    nsiofrrg: entry
    nsiofrrg: cur = 53b9f8
    nsbfr: entry
    nsbaddfl: entry
    nsbaddfl: normal exit
    nsbfr: normal exit
    nsiofrrg: exit
    nsiocancel: exit
    nsvntx_dei: entry
    nsvntx_dei: exit
    nsopenfree_nsntx: nlhthdel from mplx_ht_nsgbu, ctx=53a7e0 nsntx=53ade0
    nsiocancel: entry
    nsiofrrg: entry
    nsiofrrg: exit
    nsiocancel: exit
    nsmfr: entry
    nsmfr: 2712 bytes at 0x53ade0
    nsmfr: normal exit
    nsmfr: entry
    nsmfr: 1528 bytes at 0x53a7e0
    nsmfr: normal exit
    nsopen: error exit
    nscall: error exit
    nscall: entry
    nscall: connecting...
    nsclose: entry
    nsclose: normal exit
    nladget: entry
    nladget: exit
    nsmfr: entry
    nsmfr: 264 bytes at 0x528900
    nsmfr: normal exit
    nladtrm: entry
    nladtrm: exit
    nscall: error exit
    nlse_term_audit: entry
    nlse_term_audit: exit
    Thanks,

  • Crystal Crashes when Creating a Connection to MySQL 5.0 through ODBC

    Post Author: [email protected]
    CA Forum: Data Connectivity and SQL
    I am using a MS Server to run BO Server.  I open Crystal Reports, create a new connection to my MySQL Database through ODBC (that is set up as a System DSN).  After i put in the log in credentials the dang thing crashes... Anyone?

    Now the problem has gone from bad to worse.
    I previously had a connection to my database but just couldn't see the tables.
    Now after I added another user I can't even make a connection. Instead I get an error message that says "An unidentified error has occured"
    My server and database are actually running. I can loginto my database through the MySQL workbench. It says it's running. The apache server also says it's running and if I key in localhost in my internet explorer it says "It works!"
    I have now deleted the new user in MySQL  that I added and now I can't even connect to the database in Dreamweaver.
    Any suggestions?
    Thank you,
    Blain

  • Connect PostgreSQL to Oracle 10g through ODBC: can't read all_tables

    Oracle 10g is not able to read the database table names (all_tables and all_objects, es. select * from all_tables@hspostgresodbc) from PostgreSQL using ODBC (v. 08.01.0200). This functionality is essential to be able to use Oracle Warehouse Builder and import external database definitions (heterogeneous services).
    However, Oracle (SQL*Plus) is able to retrieve records when the table name is stated in the SQL query (es. select * from “my_table”).
    The problem seems to be specifically with the PostgreSQL ODBC because Oracle is able to read schemes from other databases through ODBC. I’ve done some tests with Access dbs just to be sure that the problem is not with my system (Windows XP SP2).
    The problem appears both with ANSI and UNICODE PostgreSQL drivers.
    Any suggestion of how workaround this problem?
    thanks in advance,
    Raoni

    Dear all,
    I’ve tried different tracing levels with out success. The log file does not seem to be created by Oracle.
    Looking closer to the debug and comm logs from the driver 8.01.0200, I’ve found out that the problem was generated after a table wasn’t found (the driver seems to search for the all_tables table, and just afterwards to query the scheme pg_catalog). In this case the all the following queries returned with the error “ERROR: current transaction is aborted, commands ignored until end of transaction block”. Maybe this problem is related with the bug [#1000641] http://pgfoundry.org/tracker/index.php?func=detail&aid=1000641&group_id=1000125&atid=538
    Following the Postgres odbc developers suggestion, I’ve installed the psqlODBC v 08.02.0002 and I’ve got a completely different result.
    As before, the simple query “select * from my_table@hsodbc” returns the result using SQL*Plus clearly faster than before.
    Doing the query “select * from all_tables@hsodbc” the result is OK (the name of 56 tables) but the process is very slow and burdensome. The file paging memory in the machine running Oracle and the SQL*Plus jumps from the normal 700 MB to 1.7 GB, and the query takes about 20 minutes to complete.
    Also the 1.7 GB remains allocated and the query process halted in PostGreSQL even after the on screen result of the query. The memory is freed and the process terminated after the logging out SQL*Plus.
    Probably as result of this memory explosion, the system runs out of memory and Oracle Warehouse Builder selecting data base link -> schema, after some minutes get an error similar to: “can’t read from memory address XXXXX”
    All those test where done with PostGreSQL 8.0.1 (on Linux Suse 9.0) and Oracle 10g (Windows XP SP2).
    To be sure that the problem was not related to the PostGreSQL version, we updated the server to the 8.1.3 (running in Linux Suse 9.0 with psqlODBC v 08.02.0002 ) and OWB couldn’t see any table as before and doing Select * from all_tables@hsodbc we’ve got the message:
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]
    ORA-02063: preceding 2 lines from HSPG
    no rows selected
    On the other hand, with the same configuration as before (Oracle 10g under Windows XP SP1, psqlODBC v 08.02.0002) but with PostGreSQL 8.1.3 under Windows XP SP1, OWB can read table names (same tables imported from Linux PostgreSQL) but not all_tables (a minor problem, because what is important for us is to make OWB work with PostgreSQL).
    The encoding for all DBs is UTF8.
    Any ideas of where could be the problem?
    regards,
    R.

  • ACS 4.2.1: adding new AAA clients through odbc import

    Hello,
    we have added the user defined vendor RADIUS_HUAWEI to our Cisco ACS 4.2.1  Windows Server.
    Unfortunately there is a problem with importing network devices through odbc  connection using the accountactions table with the action code 220.
    The documentation tells us :
    220
    ADD_NAS
    VN, V1, V2, V3
    Adds a new AAA client (named in VN) with an IP address (V1), shared secret key  (V2), and vendor (V3). Valid vendors are:
    •VENDOR_ID_IETF_RADIUS—For IETF RADIUS.
    •VENDOR_ID_CISCO_RADIUS—For Cisco IOS/PIX RADIUS.
    •VENDOR_ID_CISCO_TACACS—For Cisco TACACS+.
    •VENDOR_ID_AIRESPACE_RADIUS—For Cisco Airespace RADIUS.
    •VENDOR_ID_ASCEND_RADIUS—For Ascend RADIUS.
    •VENDOR_ID_ALTIGA_RADIUS—For Cisco 3000/ASA/PIX 7.x+ RADIUS.
    •VENDOR_ID_AIRONET_RADIUS—For Cisco Aironet RADIUS.
    •VENDOR_ID_NORTEL_RADIUS—For Nortel RADIUS.
    •VENDOR_ID_JUNIPER_RADIUS—For Juniper RADIUS.
    •VENDOR_ID_CBBMS_RADIUS—For Cisco BBMS RADIUS.
    •VENDOR_ID_3COM_RADIUS—For Cisco 3COMUSR RADIUS.
    The new user defined vendor is:
    C:\Program Files\CiscoSecure ACS v4.2\bin>CSUtil.exe -listUDV
    CSUtil v4.2(1.15), Copyright 1997-2009, Cisco Systems Inc
    UDV 0 - RADIUS (RADIUS_HUAWEI)
    Our action code and variables look like:
    A=220
    VN="xxx"
    V1="10.10.10.10"
    V2="blabla"
    V3="VENDOR_ID_RADIUS_HUAWEI"
    Error Code is as following:
    06/22/2010,10:21:12,W03P-3413,ERROR,Parse Error: Reason - Host vendor is unknown   [A=220 UN="" GN="" AI="" VN="xxx" V1="10.10.10.10" V2="blabla"  V3="VENDOR_ID_RADIUS_HUAWEI"]
    Does anybody knows the correct name for the V3-variable to import the network  device in a correct way?
    Best regards
    Torsten Waibel

    Hello,we
    have a new acs appliance (1113) with version 4.2.1.15 and we want to
    authenticate user through ssh from routers with ios xr software.
    unfortunately this doesn't work.Here ist our configuration of the router:##################################################line template VTY
    access-class ingress abcd!tacacs-server host x.x.x.x port 49 single-connectiontacacc-server key 7 test!tacacs source-interface Loopback13!ssh server v2
    ssh timeout 60! AAA config
    aaa accounting exec default start-stop group tacacs+
    aaa accounting network default start-stop group tacacs+
    aaa accounting commands default start-stop group tacacs+
    aaa authorization exec default group tacacs+ none
    aaa authorization commands default group tacacs+ none
    aaa authentication login default group tacacs+ local##################################################does anybody has a solution for this problem?thnx and best regardsTorsten Waibel
    Hi Torsten Waibel,
    For ssh to support you should have a cryptography ios image in router and check the following command in line vty that transpot input ssh under line vty cofiguration.
    If helpful do rate the post
    Ganesh.H

  • How to execute STP with Named type table as parameter through ODBC calls.

    Hi All,
    I am using Oracle 10g release 2. I am having a Stored function which takes Named Type Table as its parameter.
    For example
    CREATE OR REPLACE TYPE tblName is table of someUDT.
    CREATE OR REPLACE function nestfunction(t tblName)
    return NUMBER
    as
    //function body here.
    end;
    Now, I want to call this Stored function nestfunction through ODBC calls. Also want to add multiple rows in tblName parameter.
    But am unable to perform the above mentioned task. If you have answers please, reply.
    Thanks and regards
    ftil555

    Hi Arik,
    Thanks for the reply. I got the solution by configuring a NonXA data source. The problem was with internal commits of the fnd_global.initialize api.
    If the DB adapter is calling aPL/SQL procedure (written inside a pakcage) using the data source configured to support XA, will expect not to have any commits in side the procedure or anywhere, the XA driver will take of the commits and whole transactions. By default the FND_GLOBAL.INITIALIZE(...) procedure will have the internal commits, so it was throwing the errors.
    The solution was configuring the a NonXA Data source in the databae adapter configuration will allow the commits inside the callings procedures. So we created Two data sources one for XA and another for NonXA and we are using the NonXA datasource whereever we are calling the EBS APIs which have the internal commits.
    -- Khaleel

  • Unable to import tables through ODBC in obiee 11g

    Hi all,
    In obiee 11g,
    OBIEE 11g is successfully installed but when i am trying to import the tables in RPD through odbc then it is giving a problem.
    I have tried using the OCI and it is working fine but can anyone tell me why it is not happening through odbc.
    created the dSN for it and it is working fine.
    any help would be appreciated.
    thanks in advance.

    Hi,
    You need do full installation of obiee11g.
    Go through this..May help you.Not getting connected to a data source in obiee 11g
    How to install 11g ODBC client drivers to access OBIEE 11g server?
    Regards,
    Srikanth

  • Error connecting to mysql via ODBC

    Hi folks,
    I set up Oracle Database Gateway for ODBC with mysql driver (I tried mysql-connector-odbc-5.1.11-1.x86_64.rpm (currently used and log output shown) and mysql-connector-odbc-5.2.2-1.x86_64.rpm). I am unable to create a connection to the mysql database.
    Here are the parameters:
    Oracle database: 11gR2, AL32UTF8 , Suse SLES11 64 Bit
    Oracle Database Gateway for ODBC: installed on Suse SLES10, 64 Bit
    ODBC DSN: ona_nb
    initona_nb.ora in /opt/oracle/product/11.2.0/gtw_odbc/hs/admin:
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO=ona_nb
    HS_FDS_TRACE_LEVEL=255
    HS_FDS_SHAREABLE_NAME =/usr/lib64/libmyodbc5.so
    HS_LANGUAGE=AMERICAN_AMERICA.ISO8859P1
    #HS_TRANSACTION_MODEL=READ_ONLY
    #HS_FDS_SQLLEN_INTERPRETATION=32
    # ODBC specific environment variables
    set ODBCINI=/home/oracle/odbc/ona_nb-odbc.ini
    set ODBCINSTINI=/home/oracle/odbc/ona_nb-odbc.ini
    (I tried diffenet Language settings or no language setting at all, slightly different ..../hs/log trace files)
    ODBC file:
    ona_nb-odbc.ini :
    [ODBC Data Sources]
    ona_nb= MySQL ODBC Driver 5.2.2-1
    [ona_nb]
    Driver = /usr/lib64/libmyodbc5.so
    DATABASE = ona_default
    DESCRIPTION = MySQL Verbindung zur ona V11 Datenbank auf Christians Notebook
    PORT = 3306
    SERVER = cwolbert.gsi.de
    UID = oreader
    PWD = xxxxxx
    [ODBC]
    TRACEFILE = /tmp/mysql-odbc-ona_nb.trc
    TRACE = Yes
    ForceTrace = Yes
    set LD_LIBRARY_PATH=/usr/lib64:/opt/oracle/product/11.2.0/gtw_odbc/
    Listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/product/11.2.0/dbhome_3)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = gridrep.gsi.de)
    (ORACLE_HOME = /opt/oracle/product/11.2.0/dbhome_3)
    (SID_NAME = gridrep)
    (SID_DESC=
    (SID_NAME=ona_nb)
    (ORACLE_HOME=/opt/oracle/product/11.2.0/gtw_odbc)
    (PROGRAM=dg4odbc)
    (ENVS=LD_LIBRARY_PATH=/usr/lib64:/opt/oracle/product/11.2.0/gtw_odbc/lib)
    Trying
    select * from locations@ona_nb
    whre ona_nb is the dblink
    CREATE DATABASE LINK "ONA_NB.GSI.DE"
    CONNECT TO OREADER
    IDENTIFIED BY <PWD>
    USING 'ona_nb';
    I get the error
    ORA-28511: RPC-Verbindung zu heterogenem Remote Agent mit SID=ORA-28511: RPC-Verbindung zu heterogenem Remote Agent mit SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pcora11.gsi.de)(PORT=1521))(CONNECT_DATA=(SID=ona_nb))) abgebrochen abgebrochen
    ORA-02063: vorherige line von ONA_NB
    and here is the trace file from hs/log. I am unable to create any ODBC trace file, fiddling around with differnt settings
    Oracle Corporation --- FRIDAY NOV 23 2012 15:37:21.114
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- FRIDAY NOV 23 2012 15:37:21.113
    Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    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 "ona_nb"
    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:ona_nb
    Exiting hgogprd, rc=0
    hostmstr: 0: HOA After hoagprd
    hostmstr: 0: HOA Before hoainit
    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 2012/11/23-15:37:21
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libmyodbc5.so"
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLAllocHandle
    symbol_peflctx=0xaab3f456
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLBindCol
    symbol_peflctx=0xaab44ce3
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLBindParameter
    symbol_peflctx=0xaab4342c
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLCancel
    symbol_peflctx=0xaab3e6e5
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLDescribeParam
    symbol_peflctx=0xaab4346b
    .... many similar stuff
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLStatisticsW
    symbol_peflctx=0xaab477de
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLTablesW
    symbol_peflctx=0xaab47a16
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Exiting hgolofn, rc=0 at 2012/11/23-15:37:21
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2012/11/23-15:37:21
    hostmstr: 0: HOA After hoainit
    hostmstr: 0: HOA Before hoalgon
    Entered hgolgon at 2012/11/23-15:37:21
    reco:0, name:OREADER, tflag:0
    Entered hgosuec at 2012/11/23-15:37:21
    Exiting hgosuec, rc=0 at 2012/11/23-15:37:21
    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 OREADER as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2012/11/23-15:37:21
    HS_FDS_CONNECT_INFO = "ona_nb"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2012/11/23-15:37:21
    dsn:ona_nb, name:OREADER
    optn:
    Entered hgocip at 2012/11/23-15:37:21
    dsn:ona_nb
    Exiting hgocip, rc=0 at 2012/11/23-15:37:21
    ##>Connect Parameters (len=33)<##
    ## DSN=ona_nb;
    #! UID=OREADER;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2012/11/23-15:37:21
    Entered hgopoer at 2012/11/23-15:37:21
    hgopoer, line 233: got native error 0 and sqlstate H; message follows...
    Exiting hgopoer, rc=0 at 2012/11/23-15:37:21
    hgocont, line 2752: calling SqlDriverConnect got sqlstate H
    Using no HS_LANGUAGE or HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8
    I still get the same error meassages and logs.
    Can you help please?
    Cheers Michael

    Hi Klaus,
    I think the unixODBC driver manager is installed
    I have:
    oracle@pcora11:/opt/oracle/product/11.2.0/gtw_odbc/hs/log> odbcinst -j
    unixODBC 2.2.11
    DRIVERS............: /etc/unixODBC/odbcinst.ini
    SYSTEM DATA SOURCES: /etc/unixODBC/odbc.ini
    USER DATA SOURCES..: /home/oracle/.odbc.ini
    and
    cat /etc/unixODBC/odbcinst.ini
    [MySQL ODBC 5.1 Driver]
    Driver = /usr/lib64/libmyodbc5.so
    UsageCount = 1
    but the two file for SYSTEM and USER DSN are empty.
    I tried now:
    HS_FDS_SHAREABLE_NAME =/usr/lib64/libodbc.so
    and
    HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
    and the result is still the same, what I posted in the prevoius answer to Mike,
    ORA-28500: Verbindung von ORACLE zu Fremdsystem gab diese Nachricht zur³ck:
    [unixODBC][MySQL][ODBC 5.1 Driver]Access denied for user
    'OREADER'@'pcora11.gsi.de' (using password: YES) {HY000,NativeErr = 1045}
    ORA-02063: vorherige 2 lines von ONA_NB
    and in the trace file:
    ##>Connect Parameters (len=33)<##
    ## DSN=ona_nb;
    #! UID=OREADER;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2012/11/26-13:25:50
    Entered hgopoer at 2012/11/26-13:25:50
    hgopoer, line 233: got native error 1045 and sqlstate HY000; message follows...
    [unixODBC][MySQL][ODBC 5.1 Driver]Access denied for user 'OREADER'@'pcora11.gsi.de' (using password: YES) {HY000,NativeErr = 1045}
    Exiting hgopoer, rc=0 at 2012/11/26-13:25:50
    hgocont, line 2752: calling SqlDriverConnect got sqlstate HY000
    Exiting hgocont, rc=28500 at 2012/11/26-13:25:50 with error ptr FILE:hgocont.c LINE:2772 FUNCTION:hgocont() ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2012/11/26-13:25:50 with error ptr FILE:hgolgon.c LINE:781 FUNCTION:hgolgon() ID:Calling hgocont
    hostmstr: 0: HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr: 0: RPC Before Exit Agent
    hostmstr: 0: HOA Before hoaexit
    Entered hgoexit at 2012/11/26-13:25:50
    Exiting hgoexit, rc=0
    hostmstr: 0: HOA After hoaexit
    hostmstr: 0: RPC After Exit Agent
    Even if I copy the content of ona_nb-odbc.ini file to /etc/unixODBC/obc.ini
    I still get the same error.
    Any ideas?
    Michael

  • How can i configure advance payment to vendors through cash jounal

    how can i configure advance payment to vendors through cash jounal pls its urgent for me kindly help me out

    HI,
    I think u need not configure anyting new for this, you can use the existing Business Tran. Type K and rename it as Vendor Advance for separate identity. You can do the normal FBCJ posting.
    But doing this you will not have separate identity for the Advances paid.
    Thanks
    VK

  • Can't view a report connecting through ODBC(RDO)  to DB with InfoView (CMC)

    Environment :
    Crystal Reports machine :
    OS :
    Windows Server 2008 64-bit
    Crystal Reports Developer 2008 SP0
    Crystal Reports Server 2008
    DB Server:
    Windows Server 2003 32-bit
    SQL Server 2000 SP3
    What is going on:
    All the reports connecting through ODBC (RDO) to the database server work fine in the developer interface (I can preview them) but cannot be accessed if I try to view them in InfoView / CMC ("Please wait while the document is being processed" message box doesn't go away...).
    I have tried both the SQL Server driver 6.00.6001.1800 and SQL Server Native Client 10.0 2007.100.1600.22 with the same results.
    PS All the reports using OLE DB work just fine, I would prefer to have the ODBC option working through the web interface because I have a few hundreds report to change otherwise ...
    Virgil Rucsandescu

    Our solution is a php web application, but this is not relevant (in my opinion), and here it is why:
    The php code should show the reports by using the direct links given by InfoView
    (like http://dev-web:8080/CrystalReports/viewrpt.cwr?id=801&apsuser=user&apspassword=password).
    Actually in this moment these links are looking different because currently we're using C.R. 10 + C.R. Server 10, but we are planning to move to CR 2008 + CR Server 2008.
    So now I am testing how these direct links do work, they're actually working perfectly till now, but only if I connect through OLEDB to the DB server (SQL Server 2000). Any attempt to do it through the 2 ODBC drivers failed until now.
    And I don't want to think about changing the data source hundreds of reports (lot of them having subreports too) ...

  • Heterogeneous Services through ODBC

    There has been some different remarks about if Heterogeneous Services through ODBC will be available in XE. So now when we are getting close to the production release of XE I want to know what the final answer is on this feature

    For the sake of future readers: This works! I just paraphrased this approach to successfully create a dblink to my Sql Server 2000 EE running on MS W2K Svr. It took some time to sort out the details, and then to discover that the test in Tak Tang's excellent writeup did not work for me. I could not do: select table_name from all_tables@mydblink; without getting:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]
    ORA-02063: preceding 2 lines from DBLINK_IMS
    However, when I finally woke up and tried: SELECT * FROM <MySmallTable>; I realized that it was actually working.
    I hope this hint is helpful to future readers. Many thanks to TTang for his excellent writeup. Thanks also to Oracle for an excellent product.

  • How to configure header note in quotation through va22.

    how to configure header note in quotation through va22.
    i want a manually enter the data through va22..
    please give me idea step by step process how to solve
    <h4>We have not configured text determination because the there are no fixed rules mentioned by our client. Hence the users are keying in text based on some other characteristics. Once the quotation is final then they need to change the customer number in VA22 which is wiping off the texts. Now I need to fill that text box with the texts keyed in while creating the quotation. I can read the texts using the function module "READ_TEXT" but the question is how can I fill the textarea so that the user can modify the text before saving.</h4>

    Try creating dummy text id which will be part of text determination procedure @ Customers sales text & document header text.
    else, maintain the SO10-text against this text ID. whenver user createds quotation this text will be defaulted irrespective of the cusotmer.
          then based on if user want to modify the text they have to enter manually in this text id. print this text in header.
    Regards,
    Reazuddin MD

  • How to upload 20MB of file into MySQL through Java

    Hi Friends
    Anyone let me know how to upload 20MB of file into MySQL through Java programming, is there is any feature available, or any changes to be made in MySQL
    Thanks
    Sella

    Don't know. Ask the MySQL folks. This is not a Java issue.

  • MySQL Connector/ODBC-3.52

    Hi, does anyone has or know where to get MySQL Connector/ODBC-3.52
    I think that is the solution for the problem "Bad handshake" with MySQL 4.1.1a
    greetings

    Its not yet available in binary form, you have to compile it from the source.

Maybe you are looking for

  • Ipod charges but not recognized by computer or itunes

    When I plug my 5th gen ipod into my computer it charges up but it isn't recognized in the computer or itunes. The ipod has worked in the past and I just updated itunes to the latest version but it still doesn't work.Can anyone help?

  • Code is not working

    below is my code. It is not working. When i click launch on wireless toolkit suddenly this line, java.io.IOException, appears in output panel on netbeans 6.5. Nothing is launched on wireless toolkit. Please help import javax.microedition.midlet.*; im

  • ALE IDoc : Vendor Master : Cremas: Inbound IDocs are bypassing the Customiz

    Hi, Create Vendor master inbound IDocs - CREMAS - are overridding the customizing settings. For example for a particular vendor group  a number range is set in customizing. When we try to create a vendor through XK01 which does not fall in a particul

  • Multiple insance of same transaction (asynchronous mode)

    Hello I created a structured service composed by: - a master transaction executed every 10 minutes which runs several instances (30) of a slave transaction with Asynchronous mode - a slave transaction with duration between 1 minute and 3 minutes. I f

  • Full Stop/Period turned into circle

    I can't enter a full stop/period into text.  One day "double space bar" produced a small circle instead of ".". I cannot insert via symbol keyboard or via "double space bar". My messages look wrong and I cannot enter email addresses as can't produce