Access MySQL from Oracle Tnsping problem.

Dears
I am trying to connect to MysqlDB from Oracle.
I have installed Oracle Gateway and ODBC diver on Linux server.
Oracle gateway was installed on same server with Oracle Database but in different home and it has a different listener.
please look at my configuration files which I have created and maintained to established connections to MySqlDB.
I think I did some mistake and seize up in it so I could not find a solution. I am trying to fix it as well but if somebody can help me it will be very nice.
Gateway version is 11.2.0.3.0 and it is on ORAHOME /oracle/11203/GTW and its listener port is 1522.
I am able to tnsping port 1522 (dg4odbc) from gateways home. Gateway configuration files are below.
####/etc/odbc.ini####
[ODBC Data Sources]
MySQL = MySQL ODBC Driver 5.2
[MySQL]
Driver = /usr/lib64/libmyodbc5a.so
DATABASE = veritabani
DESCRIPTION = MySQL ODBC 5.2 Driver
PORT = nnnn
SERVER = x.x.x.x
UID = kullanici
PWD = sifre
CHARSET = latin1
TRACEFILE = /tmp/myodbc-demodsn.trc
TRACE = OFF
####/oracle/11203/GTW/hs/admin/initdg4odbc.ora####
HS_FDS_CONNECT_INFO = MySQL
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME = /usr/lib64/libmyodbc5a.so
set ODBCINI=/etc/odbc.ini
set HOME=/home/oracle
####/oracle/11203/GTW/network/admin/listener.ora####
LISTENER =
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1522))
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=dg4odbc)
(ORACLE_HOME=/oracle/11203/GTW)
(PROGRAM=dg4odbc)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:/oracle/11203/GTW/lib)
####/oracle/11203/GTW/network/admin/tnsnames.ora####
dg4odbc =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)
(HOST = hostname)
(PORT = 1522)
(CONNECT_DATA =
(SID = dg4odbc)
(HS = OK)
Oracle Database version is 11.2.0.2.0 and Its on ORAHOME /oracle/11202/BDW and its listener port is 1521.
I am not able to tnsping port 1522 (dg4odbc) from Database Home. Database configuration file is below.
####/oracle/11202/BDW/network/admin/tnsnames.ora####
dg4odbc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1522)))
(CONNECT_DATA = (SID = dg4odbc))
(HS=OK))
Also I have created a DBLINK and tried to get info from MySqlDB but it did not work as usual.
CREATE PUBLIC DATABASE LINK dg4odbc CONNECT TO "kullanici" IDENTIFIED BY "sifre" USING ’dg4odbc’;
SQL> select * from kullanici@dg4odbc;
select * from kullanici@dg4odbc
ERROR at line 1:
ora-12154 tns could not resolve the connect identifier specified
Thank you so much to everybody who reads and writes this...
Best regards,
Eren.
Edited by: BeymenAdmin on Mar 21, 2013 8:52 AM

BeymenAdmin wrote:
Dears
I am trying to connect to MysqlDB from Oracle.
I have installed Oracle Gateway and ODBC diver on Linux server.
Oracle gateway was installed on same server with Oracle Database but in different home and it has a different listener.
please look at my configuration files which I have created and maintained to established connections to MySqlDB.
I think I did some mistake and seize up in it so I could not find a solution. I am trying to fix it as well but if somebody can help me it will be very nice.
Gateway version is 11.2.0.3.0 and it is on ORAHOME /oracle/11203/GTW and its listener port is 1522.
I am able to tnsping port 1522 (dg4odbc) from gateways home. Gateway configuration files are below.
####/etc/odbc.ini####
[ODBC Data Sources]
MySQL = MySQL ODBC Driver 5.2
[MySQL]
Driver = /usr/lib64/libmyodbc5a.so
DATABASE = veritabani
DESCRIPTION = MySQL ODBC 5.2 Driver
PORT = nnnn
SERVER = x.x.x.x
UID = kullanici
PWD = sifre
CHARSET = latin1
TRACEFILE = /tmp/myodbc-demodsn.trc
TRACE = OFF
####/oracle/11203/GTW/hs/admin/initdg4odbc.ora####
HS_FDS_CONNECT_INFO = MySQL
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME = /usr/lib64/libmyodbc5a.so
set ODBCINI=/etc/odbc.ini
set HOME=/home/oracle
####/oracle/11203/GTW/network/admin/listener.ora####
LISTENER =
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1522))
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=dg4odbc)
(ORACLE_HOME=/oracle/11203/GTW)
(PROGRAM=dg4odbc)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:/oracle/11203/GTW/lib)
####/oracle/11203/GTW/network/admin/tnsnames.ora####
dg4odbc =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)
(HOST = hostname)
(PORT = 1522)
(CONNECT_DATA =
(SID = dg4odbc)
(HS = OK)
Oracle Database version is 11.2.0.2.0 and Its on ORAHOME /oracle/11202/BDW and its listener port is 1521.
I am not able to tnsping port 1522 (dg4odbc) from Database Home. Database configuration file is below.
####/oracle/11202/BDW/network/admin/tnsnames.ora####
dg4odbc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1522)))
(CONNECT_DATA = (SID = dg4odbc))
(HS=OK))
Also I have created a DBLINK and tried to get info from MySqlDB but it did not work as usual.
CREATE PUBLIC DATABASE LINK dg4odbc CONNECT TO "kullanici" IDENTIFIED BY "sifre" USING ’dg4odbc’;
SQL> select * from kullanici@dg4odbc;
select * from kullanici@dg4odbc
ERROR at line 1:
ora-12154 tns could not resolve the connect identifier specified
see: [url http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/] ora-12154 TNS:could not resolve the connect identifier specified
Remember that the database from which you issued the "select * from kullanici@dg4odbc;" is, at that point, acting just like any other client trying to connect to a remote database.
Thank you so much to everybody who reads and writes this...
Best regards,
Eren.
Edited by: BeymenAdmin on Mar 21, 2013 8:52 AM

Similar Messages

  • How to access MYSQL from Oracle 10g and vice versa

    I will like to know how do I create a database link between Oracle 10g and MYSQL database on windows.  I have been saddled with responsibility of ensuring the communications between the 2 databases and I have searched everywhere on google, I could not find anywhere where this is explain explicitly and made work.
    THank you

    In general Oracle offers 2 different products to connect from an Oracle database to a MS SQL Server. The first product is for free and it is called
    As DG4ODBC is a generic connectivity based on ODBC it allows you to connect to many foreign databases as long as you have a suitable ODBC driver.It for example allows you to read from text files but also connect to foreign databases like MS SQL Server or IBM DB2. Due to this wide variety of foreign data sources tha capabilities of DG4ODBC are very limited. It only supports a few Oracle functions that it can directly map to foreign database equivalents. All other functions will be post processed. Post processing means that ALL records from the foreign table(s) will be fetched into the Oracle database and the result is then processed locally - so depending on the amount of data stored in the foreign database it might take a while.
    To be complete here some notes to follow up:
    This Oracle support note describes possible options you have to connect to a foreign database:
    Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
    So you see, to connect from Oracle to MySQL you need to use the Database gateway for ODBC release 11.2 (HSODBC which was shipped with 10g was desupported in march 2008).
    The Database Gateway for ODBC 11.2 (=DG4ODBC) license is included in the Oracle database license and it allows you to connect with a suitable 3rd party ODBC driver to a foreign database.
    For your MySQL connection you only need to download and configure the MySQL ODBC driver from the MySQL web site. Once you can connect with the ODBC driver you could then download and configure DG4ODBC.
    As you didn't post on which platform your Oracle database is installed, here 2 notes for common platforms:
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle (Doc ID 561033.1)
    How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on 64bit Windows Operating Systems to Connect to Non-Oracle Databases Post Install (Doc ID 1266572.1)
    - Klaus

  • ORA-28500 and ORA-02063 while connecting MySQL from Oracle-

    Dear All,
    My Database is Oracle 11gR2 Rac of 2 nodes and on Linux 64-Bit operating system.
    Version of my MySQL database is 5.5.17 it is on Linux 32-Bit operating system.
    I am trying to connect MySQL database from Oracle database using a database link.
    These are the step by step process that I am following to achieve my target. All my processes are on one node of Oracle RAC.
    1)
    Yum install mysql-connector-odbc
    Yum install unixODBC
    2)
    Edit file /etc/odbc.ini
    [test]
    Driver = /usr/lib64/libmyodbc3.so
    Description = MySQL ODBC 3.51 Driver DSN
    SERVER = 10.0.0.1
    PORT = 3306
    USER = test
    Password = test
    Database = test
    OPTION = 3
    SOCKET =
    3)
    Edit file /etc/odbcinst.ini
    [MySQL]
    Description = ODBC for MySQL
    Driver = /usr/lib64/libmyodbc3.so
    Setup = /usr/lib64/libodbcmyS.so
    FileUsage = 1
    4) test connection
    isql –v test test test
    Returns:
    | Connected! |
    | |
    | sql-statement |
    | help [tablename] |
    | quit |
    | |
    SQL>
    5) Now I edit listener.ora file and add the entry. After entry my listener.ora file is like this:
    LISTENER =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER))
    (ADDRESS = (PROTOCOL = TCP)(HOST=testnode1)(PORT = 1521))
    # line added by Agent
    LISTENER_SCAN1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_SCAN1))
    # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1 = ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON # line added by Agent
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (PROGRAM = dg4odbc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME = test)
    (ENVS=LD_LIBRARY_PATH = /usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
    6) After these entries the listener status after RESTART is as following:
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 27-DEC-2011 01:19:32
    Uptime 0 days 9 hr. 31 min. 12 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
    Listener Log File /u01/app/grid/diag/tnslsnr/racnode1/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testnode1)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+ASM1", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "test" has 1 instance(s).
    Instance "test", status UNKNOWN, has 1 handler(s) for this service...
    Service "testdb" has 1 instance(s).
    Instance "testdb1", status READY, has 1 handler(s) for this service...
    Service "racdbXDB" has 1 instance(s).
    Instance "testdb1", status READY, has 1 handler(s) for this service...
    The command completed successfully
    7) Then in the tnsnames.ora file I added the following entry:
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = EXTPROC1521)
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    test =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
    (SID = test)
    (HS = OK)
    When i tnsping test, it works.
    8) I edit the .bash_profile file for Oracle
    ORACLE_HOME, ORACLE_BASE were already pointing to the correct destination, I added:
    LD_LIBRARY_PATH=/usr/local/lib:/u01/app/oracle/product/11.1.0/db_1/lib:/u01/app/oracle/product/11.2.0/dbhome_1/hs/lib:/usr/lib64:/usr/lib
    export LD_LIBRARY_PATH
    ODBCINI=/etc/odbc.ini
    export ODBCINI
    ODBCINSTINI=/etc/odbc.ini
    export ODBCINSTINI
    ODBCSYSINI=/etc
    export ODBCSYSINI
    9) Then i configured $ORACLE_HOME/hs/admin/inithsodbc.ora
    And Modified these lines:
    HS_FDS_CONNECT_INFO = test
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = odbc_test.log
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_FDS_SUPPORT_STATISCTICS = FALSE
    HS_LANGUAGE = AMERICAN_AMERICA.WE8ISO8859P1
    set ODBCINI = /etc/odbc.ini
    10) Then i created a database link with the following command:
    Create public database link test connect to test identified by test using ‘test’;
    I tried username and password in database link with double quotes also.
    11) Now Finally when I try to select records from mysql table:
    select count(*) from "table"@"test"; -- I have tried with and without double quotes
    I get the following error:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from TEST
    How to get through this error, and how to check logs for HS?
    Your help is required.
    Regards, Imran
    Edited by: misterimran on Dec 27, 2011 1:21 PM

    Hi,
    In your listener.ora for the DG4ODBC entry you had -
    (ENVS=LD_LIBRARY_PATH = /usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
    but this should also include the path for the driver manager directory which in your case is /usr/lib64 so could you add this ?
    The error -
    Failed to load ODBC library symbol: /usr/lib64/libmyodbc3.so(SQLSetDescRec)
    indicates the /usr/lib64 directory cannot be accessed.
    The entry should then look like -
    (SID_DESC =
    <space>(PROGRAM = dg4odbc)
    <space>(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    <space>(SID_NAME = test)
    <space>(ENVS=LD_LIBRARY_PATH = /usr/local/lib:/usr/lib64:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
    <space>)
    The spaces may have bene lost when posting but there should be at least one space in the file as indicated by the <space>.
    After making the change then stop and start the listener.
    If you still have problems then please post again the current versions of the configuration files, the full errors shown in SQLPLUS for a select and the output from a debug trace showing the errors.
    The information shows you are using the 3.51 MySQL ODBC driver so could you also try with the latest version of the 5.1 driver and see if you have the same problem ?
    Regards,
    Mike

  • Why data change in linked table in Access - link from Oracle DB

    Can someone please help me to solve this situation? I try to find out why data is changed from Oracle to Access. I must come back to this thread because lot of data in my Oracle database is defined as NUMBER(22), and I am using Access heavily.
    Here is the problem:
    In Access, I created ODBC connection (System DSN) to Oracle 9.2 database by using Oracle driver (NOT Microsoft ODBC for Oracle). Then I linked tables from Access with the Oracle table. What happens is that the number in Access linked table is displayed as a scientific number. Is there a way that I can preserve whatever I have in Oracle database?
    For example:
    Comp_ID in Oralce is defined as NUMBER(22) = 40000000000324003; In Access it looks like this 4.0000000000324E+16.
    What I have in my system:
    1- Oracle 9.2 client
    2- Oracle driver
    3- Access 2003
    4- Jet - SP 8

    Can someone please help me to solve this situation? I try to find out why data is changed from Oracle to Access. I must come back to this thread because lot of data in my Oracle database is defined as NUMBER(22), and I am using Access heavily.
    Here is the problem:
    In Access, I created ODBC connection (System DSN) to Oracle 9.2 database by using Oracle driver (NOT Microsoft ODBC for Oracle). Then I linked tables from Access with the Oracle table. What happens is that the number in Access linked table is displayed as a scientific number. Is there a way that I can preserve whatever I have in Oracle database?
    For example:
    Comp_ID in Oralce is defined as NUMBER(22) = 40000000000324003; In Access it looks like this 4.0000000000324E+16.
    What I have in my system:
    1- Oracle 9.2 client
    2- Oracle driver
    3- Access 2003
    4- Jet - SP 8

  • Unicode characters not transferred correctly to mysql from oracle

    Hi,
    We are transferring data from Oracle11g to MySQL5.5 using DG4ODBC. Data is getting transferred successfully to MySQL, but the Characters like Russian, Chinese etc. are not transferred succesfully. They are shown as ? in MySQL database and even with GUI tools like sqldevelopper or squirrel.
    Oracle Uses NLS_Character set is AL32UTF8 and MySQL database is UTF8.
    Oracle version is 11.1.0.6.0
    MySQL is 5.5.
    unixODBC 2.2.11, comes from redhat for RHEL 5
    I tried setting HS_LANGUAGE=american_america.al32utf8, but no luck.
    Can someone please give hint to configure gateway initialization parameters or some other configuration which is required to support all language characters during transfer.
    -Sudhakar

    Hi,
    Updated to the versions you suggested..Now receiving below error when trying to transfer data from oracle to Mysql using DBMS_HS_PASSTHROUGH.
    Actually written procedure to transfer all records..it works on few tables, but throws below error when transferring data from other tables.
    Any idea where could be wrong?
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02067: transaction or savepoint rollback required
    ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXXX)(PORT=1521))
    (CONNECT_DATA=(SID=mysqlodbc)))
    ORA-02055: distributed update operation failed; rollback required
    ORA-02063: preceding lines from MYSQL
    ORA-06512: at "XXXXXXX.TRANSFER_XXXXXX", line 41
    ORA-06512: at line 1
    below is the gateway trace file dump.....
    Oracle Corporation --- TUESDAY DEC 20 2011 14:10:19.578
    Heterogeneous Agent Release
    11.2.0.3.0
    Oracle Corporation --- TUESDAY DEC 20 2011 14:10:19.577
    Version 11.2.0.3.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
    HOSGIP returned value of "REPEATABLE_READ" for HS_FDS_TRANSACTION_ISOLATION
    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_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 32 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 "mysqlodbc"
    Product-Info:
    Port Rls/Upd:3/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.3.0_0011, Instance:mysqlodbc
    Exiting hgogprd, rc=0
    hostmstr: 0: HOA After hoagprd
    hostmstr: 0: HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=31
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HS_LANGUAGE is AMERICAN_AMERICA.WE8ISO8859P1
    LANG=en_US.UTF-8
    HOCXU_SEM_VER=110000
    Entered hgolofn at 2011/12/20-14:10:19
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib/libodbc.so"
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLAllocHandle
    symbol_peflctx=0x8b0790
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLBindCol
    symbol_peflctx=0x8b0930
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLBindParameter
    symbol_peflctx=0x8b1350
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLCancel
    symbol_peflctx=0x8b2b50
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLDescribeParam
    symbol_peflctx=0x8bc280
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLDisconnect
    symbol_peflctx=0x8bc810
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLEndTran
    symbol_peflctx=0x8bf820
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLExecute
    symbol_peflctx=0x8c1480
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLFetch
    symbol_peflctx=0x8c1e10
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLFreeHandle
    symbol_peflctx=0x8c4060
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLFreeStmt
    symbol_peflctx=0x8c4090
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLGetData
    symbol_peflctx=0x8c5df0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLGetEnvAttr
    symbol_peflctx=0x8c9a30
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLGetFunctions
    symbol_peflctx=0x8c9e30
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLMoreResults
    symbol_peflctx=0x8cbef0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLNumResultCols
    symbol_peflctx=0x8cce10
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLParamData
    symbol_peflctx=0x8cd1d0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLPutData
    symbol_peflctx=0x8cf810
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLRowCount
    symbol_peflctx=0x8cfd00
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLSetEnvAttr
    symbol_peflctx=0x8d26a0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLSetDescRec
    symbol_peflctx=0x8d2420
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLColAttribute
    symbol_peflctx=0x8b3680
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLColumns
    symbol_peflctx=0x8b5580
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLConnect
    symbol_peflctx=0x8b96c0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLDescribeCol
    symbol_peflctx=0x8bb9a0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLDriverConnect
    symbol_peflctx=0x8bd4f0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLExecDirect
    symbol_peflctx=0x8c0dc0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLForeignKeys
    symbol_peflctx=0x8c2950
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLGetConnectAttr
    symbol_peflctx=0x8c44f0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLGetDescField
    symbol_peflctx=0x8c6620
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLGetDescRec
    symbol_peflctx=0x8c6cc0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLGetDiagField
    symbol_peflctx=0x8c8160
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLGetDiagRec
    symbol_peflctx=0x8c9030
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLGetInfo
    symbol_peflctx=0x8caa00
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLGetStmtAttr
    symbol_peflctx=0x8cad80
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLGetTypeInfo
    symbol_peflctx=0x8cba60
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLPrepare
    symbol_peflctx=0x8cdab0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLPrimaryKeys
    symbol_peflctx=0x8ce110
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLProcedureColumns
    symbol_peflctx=0x8ce8b0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLProcedures
    symbol_peflctx=0x8cf0d0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLSetConnectAttr
    symbol_peflctx=0x8d0040
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLSetStmtAttr
    symbol_peflctx=0x8d3f00
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLSetDescField
    symbol_peflctx=0x8d1f80
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLStatistics
    symbol_peflctx=0x8d5ff0
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Entered hgolofns at 2011/12/20-14:10:19
    libname=/usr/lib/libodbc.so, funcname=SQLTables
    symbol_peflctx=0x8d7060
    hoaerr:0
    Exiting hgolofns at 2011/12/20-14:10:19
    Exiting hgolofn, rc=0 at 2011/12/20-14:10:19
    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 32 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2011/12/20-14:10:19
    hostmstr: 0: HOA After hoainit
    hostmstr: 0: HOA Before hoalgon
    Entered hgolgon at 2011/12/20-14:10:19
    reco:0, name:sudhakar, tflag:0
    Entered hgosuec at 2011/12/20-14:10:19
    Exiting hgosuec, rc=0 at 2011/12/20-14:10:19
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using sudhakar as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2011/12/20-14:10:19
    HS_FDS_CONNECT_INFO = "mysql5_hgw"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2011/12/20-14:10:19
    dsn:mysql5_hgw, name:sudhakar
    optn:
    Entered hgocip at 2011/12/20-14:10:19
    dsn:mysql5_hgw
    Exiting hgocip, rc=0 at 2011/12/20-14:10:19
    ##>Connect Parameters (len=40)<##
    ## DSN=mysql5_hgw;
    #! UID=sudhakar;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2011/12/20-14:10:19
    Entered hgolosf at 2011/12/20-14:10:19
    ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFFFF 0x03FF 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0xFE00 0x3F5F
    Exiting hgolosf, rc=0 at 2011/12/20-14:10:19
    DriverName:libmyodbc5.so, DriverVer:05.01.0008
    DBMS Name:MySQL, DBMS Version:5.5.17-log
    Exiting hgocont, rc=0 at 2011/12/20-14:10:19
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 192 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2011/12/20-14:10:19
    hostmstr: 0: HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr: 0: RPC Before Upload Caps
    hostmstr: 0: HOA Before hoaulcp
    Entered hgoulcp at 2011/12/20-14:10:19
    Entered hgowlst at 2011/12/20-14:10:19
    Exiting hgowlst, rc=0 at 2011/12/20-14:10:19
    SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
    TXN Capable:3, Isolation Option:0xf
    SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 192 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 192 for SQL_MAX_PROCEDURE_NAME_LEN
    HOSGIP returned value of "TRUE" for HS_FDS_QUOTE_IDENTIFIER
    SQLGetInfo returns ` (0x60) for SQL_IDENTIFIER_QUOTE_CHAR
    3 instance capabilities will be uploaded
    capno:1964, context:0x00000000, add-info: 0
    capno:1989, context:0x00000000, add-info: 0
    capno:1992, context:0x0001ffff, add-info: 1, translation:"`"
    Exiting hgoulcp, rc=0 at 2011/12/20-14:10:19
    hostmstr: 0: HOA After hoaulcp
    hostmstr: 0: RPC After Upload Caps
    hostmstr: 0: RPC Before Upload DDTR
    hostmstr: 0: HOA Before hoauldt
    Entered hgouldt at 2011/12/20-14:10:19
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2011/12/20-14:10:19
    hostmstr: 0: HOA After hoauldt
    hostmstr: 0: RPC After Upload DDTR
    hostmstr: 0: RPC Before Begin Trans
    hostmstr: 0: HOA Before hoabegn
    Entered hgobegn at 2011/12/20-14:10:19
    tflag:0 , initial:1
    hoi:0xbfb25bdc, ttid (len 35) is ...
    00: 4F52434C 2E454445 4C4B4559 2E4E4554 [ORCL.EDELKEY.NET]
    10: 2E653064 34343962 342E332E 312E3535 [.e0d449b4.3.1.55]
    20: 363334 [634]
    tbid (len 32) is ...
    00: 4F52434C 2E454445 4C4B4559 2E4E4554 [ORCL.EDELKEY.NET]
    10: 5B332E31 2E353536 33345D5B 312E345D [[3.1.55634][1.4]]
    Exiting hgobegn, rc=0 at 2011/12/20-14:10:19
    hostmstr: 0: HOA After hoabegn
    hostmstr: 0: RPC After Begin Trans
    hostmstr: 0: RPC Before SQL Bundling
    hostmstr: 0: HOA Before hoxpars
    Entered hgopars, cursor id 1 at 2011/12/20-14:10:19
    type:1
    SQL text from hgopars, id=1, len=530 ...
    000: 696E7365 72742069 6E746F20 73746174 [insert into xxxx]
    010: 696F6E73 20282273 74617469 6F6E6964 [xxxx ("xxxxxxxxx]
    020: 222C2261 646D696E 64657363 72697074 [","xxxxxxxxxxxxx]
    030: 696F6E22 2C22636F 756E7472 79696422 [xxx","xxxxxxxxx"]
    040: 2C226465 73637269 7074696F 6E222C22 [,"xxxxxxxxxxx","]
    050: 6C616E67 75616765 6964222C 226C696E [xxxxxxxxxx","xxx]
    060: 6B6F7468 65727365 72766963 6573222C [xxxxxxxxxxxxxx",]
    070: 226C6F67 6F75726C 222C226C 6F6E6764 ["xxxxxxx","xxxxx]
    080: 65736372 69707469 6F6E222C 226E616D [xxxxxxxxxx","xxx]
    090: 65222C22 73746174 7573222C 2274696D [e","xxxxxx","xxx]
    0A0: 65637265 61746564 222C2274 696D6575 [xxxxxxxx","xxxxx]
    0B0: 70646174 6564222C 22757365 72696463 [pdated","xxxxxxx]
    0C0: 72656174 6564222C 22757365 72696475 [xxxxxx","xxxxxxx]
    0D0: 70646174 6564222C 22776562 73697465 [pdated","xxxxxxx]
    0E0: 222C2262 726F6164 63617374 65726964 [","xxxxxxxxxxxxx]
    0F0: 222C2273 74617469 6F6E735F 696E7465 [","xxxxxxxxxxxxx]
    100: 6765725F 69647822 2C226261 6E6E6572 [ger_idx","xxxxxx]
    110: 5F616363 6573735F 64617465 222C2262 [xxxxxxxxxxxx","b]
    120: 616E6E65 725F696D 706C5F64 61746522 [xxxxxxxxxxxxxxx"]
    130: 2C226261 6E6E6572 5F72656D 6F766564 [,"xxxxxxxxxxxxxx]
    140: 5F646174 65222C22 62726F61 64636173 [_date","xxxxxxxx]
    150: 745F7479 7065222C 227A6F6E 65696422 [t_type","xxxxxx"]
    160: 2C226272 6F616463 6173745F 72616E64 [,"xxxxxxxxxxxxxx]
    170: 6F6D5F72 6561736F 6E222C22 6669656C [xxxxxxxxx","fiel]
    180: 64736368 65636B65 64222C22 65787465 [xxxxxxxxx","exte]
    190: 726E616C 73746174 696F6E69 64222C22 [xxxxxxxxxxxxx","]
    1A0: 6D61696E 74656E61 6E636562 726F6164 [xxxxxxxxxxxxxxxx]
    1B0: 63617374 65726964 222C2261 6C746572 [xxxxxxxx","alter]
    1C0: 6E617469 76655F6E 616D6522 290A2020 [xxxxxxxxxxx").  ]
    1D0: 20202020 56414C55 45532028 3F2C3F2C [    VALUES (?,?,]
    1E0: 3F2C3F2C 3F2C3F2C 3F2C3F2C 3F2C3F2C [?,?,?,?,?,?,?,?,]
    210: 3F29 [?)]
    Exiting hgopars, rc=0 at 2011/12/20-14:10:19
    hostmstr: 0: HOA After hoxpars
    hostmstr: 0: RPC After SQL Bundling
    hostmstr: 0: RPC Before SQL Bundling
    hostmstr: 0: HOA Before hoaexec
    Entered hgoexec, cursor id 1 at 2011/12/20-14:10:19
    octype=0 (?????)
    hgoexec, line 145: Printing hoada @ 0x9e7e1b8
    MAX:27, ACTUAL:27, BRC:1, WHT=3 (BIND_LIST)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    3 DECIMAL N 6 0 0/ 0 0 0 0
    12 VARCHAR Y 0 0 0/ 0 31 -1 200
    3 DECIMAL N 2 0 0/ 0 0 0 0
    12 VARCHAR N 18 0 0/ 0 31 0 200
    3 DECIMAL N 3 0 0/ 0 0 0 0
    3 DECIMAL N 1 0 0/ 0 0 0 0
    12 VARCHAR Y 0 0 0/ 0 31 -1 200
    12 VARCHAR N 196 0 0/ 0 31 0 200
    12 VARCHAR N 33 0 0/ 0 31 0 200
    3 DECIMAL N 1 0 0/ 0 0 0 0
    93 TIMESTAMP N 16 0 0/ 0 0 0 0
    93 TIMESTAMP Y 0 0 0/ 0 0 -1 0
    3 DECIMAL N 4 0 0/ 0 0 0 0
    3 DECIMAL Y 0 0 0/ 0 0 -1 0
    12 VARCHAR N 52 0 0/ 0 31 0 200
    3 DECIMAL N 5 0 0/ 0 0 0 0
    3 DECIMAL N 5 0 0/ 0 0 0 0
    93 TIMESTAMP Y 0 0 0/ 0 0 -1 0
    93 TIMESTAMP Y 0 0 0/ 0 0 -1 0
    93 TIMESTAMP Y 0 0 0/ 0 0 -1 0
    3 DECIMAL N 1 0 0/ 0 0 0 0
    3 DECIMAL Y 0 0 0/ 0 0 -1 0
    12 VARCHAR Y 0 0 0/ 0 31 -1 200
    3 DECIMAL N 1 0 0/ 0 0 0 0
    3 DECIMAL N 6 0 0/ 0 0 0 0
    3 DECIMAL Y 0 0 0/ 0 0 -1 0
    12 VARCHAR Y 0 0 0/ 0 31 -1 200
    Entered hgoprbv at 2011/12/20-14:10:19
    hgoprbv, line 162: Printing hoada @ 0x9e7e1b8
    MAX:27, ACTUAL:27, BRC:1, WHT=3 (BIND_LIST)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    3 DECIMAL N 6 0 0/ 0 0 0 0
    12 VARCHAR Y 0 0 0/ 0 31 -1 200
    3 DECIMAL N 2 0 0/ 0 0 0 0
    12 VARCHAR N 18 0 0/ 0 31 0 200
    3 DECIMAL N 3 0 0/ 0 0 0 0
    3 DECIMAL N 1 0 0/ 0 0 0 0
    12 VARCHAR Y 0 0 0/ 0 31 -1 200
    12 VARCHAR N 196 0 0/ 0 31 0 200
    12 VARCHAR N 33 0 0/ 0 31 0 200
    3 DECIMAL N 1 0 0/ 0 0 0 0
    93 TIMESTAMP N 16 0 0/ 0 0 0 0
    93 TIMESTAMP Y 0 0 0/ 0 0 -1 0
    3 DECIMAL N 4 0 0/ 0 0 0 0
    3 DECIMAL Y 0 0 0/ 0 0 -1 0
    12 VARCHAR N 52 0 0/ 0 31 0 200
    3 DECIMAL N 5 0 0/ 0 0 0 0
    3 DECIMAL N 5 0 0/ 0 0 0 0
    93 TIMESTAMP Y 0 0 0/ 0 0 -1 0
    93 TIMESTAMP Y 0 0 0/ 0 0 -1 0
    93 TIMESTAMP Y 0 0 0/ 0 0 -1 0
    3 DECIMAL N 1 0 0/ 0 0 0 0
    3 DECIMAL Y 0 0 0/ 0 0 -1 0
    12 VARCHAR Y 0 0 0/ 0 31 -1 200
    3 DECIMAL N 1 0 0/ 0 0 0 0
    3 DECIMAL N 6 0 0/ 0 0 0 0
    3 DECIMAL Y 0 0 0/ 0 0 -1 0
    12 VARCHAR Y 0 0 0/ 0 31 -1 200
    Entered WP_SQLBindParameter at 2011/12/20-14:10:19
    ParameterNumber 1, InputOutputType 1, ValueType 1, ParameterType 3,
    ColumnSize 6, DecimalDigits 0, BufferLength 6,StrLen_or_IndPtr 0x0x9e909cc (*0x6)
    (Array size: 1)
    6 bytes of data at 0x0x9e8d684...
    0: 32303536 3835 [205685]
    Exiting WP_SQLBindParameter, rc=0 at 2011/12/20-14:10:19
    Entered WP_SQLBindParameter at 2011/12/20-14:10:19
    ParameterNumber 2, InputOutputType 1, ValueType 1, ParameterType 12,
    ColumnSize 1, DecimalDigits 0, BufferLength 0,StrLen_or_IndPtr 0x0x9e909d0 (*0xffffffff)
    NULL Data Specified
    Exiting WP_SQLBindParameter, rc=0 at 2011/12/20-14:10:19
    Entered WP_SQLBindParameter at 2011/12/20-14:10:19
    ParameterNumber 3, InputOutputType 1, ValueType 1, ParameterType 3,
    ColumnSize 2, DecimalDigits 0, BufferLength 2,StrLen_or_IndPtr 0x0x9e909d4 (*0x2)
    (Array size: 1)
    2 bytes of data at 0x0x9e8d634...
    0: 3330 [30]
    Exiting WP_SQLBindParameter, rc=0 at 2011/12/20-14:10:19
    Entered WP_SQLBindParameter at 2011/12/20-14:10:19
    ParameterNumber 4, InputOutputType 1, ValueType 1, ParameterType 12,
    ColumnSize 18, DecimalDigits 0, BufferLength 18,StrLen_or_IndPtr 0x0x9e909d8 (*0x12)
    (Array size: 1)
    18 bytes of data at 0x0x9e7df70...
    00: 41205265 64652064 61204661 6DED6C69 [A Rede da Fam.li]
    10: 612E [a.]
    Exiting WP_SQLBindParameter, rc=0 at 2011/12/20-14:10:19
    Entered WP_SQLBindParameter at 2011/12/20-14:10:19
    ParameterNumber 5, InputOutputType 1, ValueType 1, ParameterType 3,
    ColumnSize 3, DecimalDigits 0, BufferLength 3,StrLen_or_IndPtr 0x0x9e909dc (*0x3)
    (Array size: 1)
    3 bytes of data at 0x0x9e8d5e4...
    0: 313336 [136]
    Exiting WP_SQLBindParameter, rc=0 at 2011/12/20-14:10:19
    Entered WP_SQLBindParameter at 2011/12/20-14:10:19
    ParameterNumber 6, InputOutputType 1, ValueType 1, ParameterType 3,
    ColumnSize 1, DecimalDigits 0, BufferLength 1,StrLen_or_IndPtr 0x0x9e909e0 (*0x1)
    (Array size: 1)
    1 bytes of data at 0x0x9e8d594...
    0: 31 [1]
    Exiting WP_SQLBindParameter, rc=0 at 2011/12/20-14:10:19
    Entered WP_SQLBindParameter at 2011/12/20-14:10:19
    ParameterNumber 7, InputOutputType 1, ValueType 1, ParameterType 12,
    ColumnSize 1, DecimalDigits 0, BufferLength 0,StrLen_or_IndPtr 0x0x9e909e4 (*0xffffffff)
    NULL Data Specified
    Exiting WP_SQLBindParameter, rc=0 at 2011/12/20-14:10:19
    Entered WP_SQLBindParameter at 2011/12/20-14:10:19
    ParameterNumber 8, InputOutputType 1, ValueType 1, ParameterType 12,
    ColumnSize 196, DecimalDigits 0, BufferLength 196,StrLen_or_IndPtr 0x0x9e909e8 (*0xc4)
    (Array size: 1)
    196 bytes of data at 0x0x9e8d4b8...
    00: 41207072 6F677261 6D61E7E3 6F206461 [A xxxxxxxx..o da]
    10: 20526564 6520416C 656C7569 6120E920 [ Rede Aleluia . ]
    20: 636F6D70 6F737461 20706F72 2063616E [xxxxxxxx por can]
    30: E7F56573 2073656C 6563696F 6E616461 [..es xxxxxxxxxxx]
    40: 73206520 666C6173 68626163 6B732071 [s e xxxxxxxxxx q]
    50: 7565206D 61726361 72616D20 E9706F63 [ue marcaram .poc]
    60: 612C2061 6CE96D20 6465206D 656C6F64 [a, al.m de melod]
    70: 69617320 696E7374 72756D65 6E746169 [ias xxxxxxxxxxxx]
    80: 732C2074 75646F20 656D2070 65726665 [s, tudo em perfe]
    90: 69746120 6861726D 6F6E6961 2C207072 [ita xxxxxxxx, pr]
    A0: 6F706F72 63696F6E 616E646F 20756D61 [xxxxxxxxxxxx uma]
    B0: 2072E164 696F2064 65207175 616C6964 [ r.dio de qualid]
    C0: 6164652E [ade.]
    Exiting WP_SQLBindParameter, rc=0 at 2011/12/20-14:10:19
    Entered WP_SQLBindParameter at 2011/12/20-14:10:19
    ParameterNumber 9, InputOutputType 1, ValueType 1, ParameterType 12,
    ColumnSize 33, DecimalDigits 0, BufferLength 33,StrLen_or_IndPtr 0x0x9e909ec (*0x21)
    (Array size: 1)
    33 bytes of data at 0x0x9e8d488...
    00: 52E16469 6F20416C 656C7569 6120464D [R.xxx xxxxxxxxxx]
    10: 20285269 62656972 E36F2050 7265746F [ (xxxxxx.o xxxxx]
    20: 29 [)]
    Exiting WP_SQLBindParameter, rc=0 at 2011/12/20-14:10:19
    Entered WP_SQLBindParameter at 2011/12/20-14:10:19
    ParameterNumber 10, InputOutputType 1, ValueType 1, ParameterType 3,
    ColumnSize 1, DecimalDigits 0, BufferLength 1,StrLen_or_IndPtr 0x0x9e909f0 (*0x1)
    (Array size: 1)
    1 bytes of data at 0x0x9e8d438...
    0: 31 [1]
    Exiting WP_SQLBindParameter, rc=0 at 2011/12/20-14:10:19
    Entered WP_SQLBindParameter at 2011/12/20-14:10:19
    ParameterNumber 11, InputOutputType 1, ValueType 93, ParameterType 93,
    ColumnSize 19, DecimalDigits 0, BufferLength 16,StrLen_or_IndPtr 0x0x9e909f4 (*0x10)
    (Array size: 1)
    16 bytes of data at 0x0x9e74d30...
    00: DB070C00 12001400 17003700 00000000 [..........7.....]
    Exiting WP_SQLBindParameter, rc=0 at 2011/12/20-14:10:19
    Edited by: 902859 on 20-Dec-2011 05:00
    Edited by: 902859 on 20-Dec-2011 05:01

  • Data source from Oracle 10g problem

    Dear Sir,
    We met a problem when we moved on Oracle 10g from Oracle 9i in the loading process. The scenario is that SQL Server as Data Warehouse, SSIS as ETL tool. But the length of string column as data source table in SSIS grows up 4 times when using Oracle 10g. For example, ABC table x varchar2(8) --> x varchar(32) -->x varchar(8) --> x varchar(8) {Oracle 10g        SSIS(source) }
    This doesn’t influence the loaded result (I did not find any problem until now), but that influence loading performance and we worry about potential problems.
    Do you have any idea or have you met the same problem before? Is I need setup some parameters like "code page"
    Thanks,
    Jacob

    You could try General Database Discussions the main db foum.
    What are you using to migrate your database? Why is it being mapped from varchar2(8) to varchar2(32). It sounds like someone/something is intervening here.
    Barry

  • Accessing Postgres from Oracle using DG4ODBC and psqlodbc very slow

    I have set up DG4ODBC on a Windows 2003 32-bit 11g Oracle database to access a Windows 2008 64-bit 9.1 Postgres database, using the psqlodbc driver (32-bit).
    I am able to issue queries, but they are very slow. The reason is that the where clause of the query is being removed somewhere along the line (I have seen the actual queries run by Postgres using pgAdmin server status screen), and all the rows in the table are retrieved from Postgres. Naturally with tables bigger than a few rows that means doing a full table scan in Postgres, as well as transferring lots of bytes through the network.
    For instance, if I query from Oracle like this: select * from "dps_user"@pg where "id" = '2423', the sql run at Postgres is this: select * from dps_user, which retrieves all rows on the table! When I get the query result in Oracle, I only get the row with id 2423, so I assume that Oracle gets the whole table, and does the filtering at its end.
    In a 32-bit Windows XP separate machine I have set up the same psqlodbc driver, and I have run the same query using Microsoft Query. In this case, the query run in Postgres contains the where clause, and therefore it is much faster because a unique index scan is performed in Postgres, and only one row is transferred back to Microsoft Query.
    Could you help me, please?
    Thanks a lot,
    Carlos

    Hi Mike,
    Thanks a lot for your help. The gateway version must be 11.2.0.3 since the Oracle database has patchset 11.2.0.3 applied.
    This is the ini file once I changed the trace level:
    HS_FDS_CONNECT_INFO = pg
    HS_FDS_TRACE_LEVEL = 255
    I tried this query:
    select *
    from dps_user
    where id = 'W106606';
    Where dps_user is a view on the Oracle database which translates to this:
    CREATE OR REPLACE FORCE VIEW dps_user (ID,
    login,
    first_name,
    last_name,
    lastactivity_date,
    registration_date,
    email,
    email_status,
    receive_email
    AS
    SELECT "id", "login", "first_name", "last_name", "lastactivity_date",
    "registration_date", "email", "email_status", "receive_email"
    FROM "dynamo_web"."dps_user"@pg.es.lladro.com;
    The generated trace file is:
    Oracle Corporation --- JUEVES MAY 09 2013 18:13:35.968
    Heterogeneous Agent Release
    11.2.0.3.0
    Oracle Corporation --- JUEVES MAY 09 2013 18:13:35.968
    Version 11.2.0.3.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "UCS2"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 32 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 "PG"
    Product-Info:
    Port Rls/Upd:3/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.3.0_0011, Instance:PG
    Exiting hgogprd, rc=0
    hostmstr: 2051219456:      HOA After hoagprd
    hostmstr: 2051219456:      HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=873
    HS_LANGUAGE not specified
    rc=1000 attempting to get LANG environment variable.
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2013/05/09-18:13:36
    Exiting hgolofn, rc=0 at 2013/05/09-18:13:36
    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 32 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2051219456:      HOA After hoainit
    hostmstr: 2051219456:      HOA Before hoalgon
    Entered hgolgon at 2013/05/09-18:13:36
    reco:0, name:dynamoselect, tflag:0
    Entered hgosuec at 2013/05/09-18:13:36
    Exiting hgosuec, rc=0 at 2013/05/09-18:13:36
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using dynamoselect as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2013/05/09-18:13:36
    HS_FDS_CONNECT_INFO = "pg"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2013/05/09-18:13:36
    dsn:pg, name:dynamoselect
    optn:
    Entered hgocip at 2013/05/09-18:13:36
    dsn:pg
    Exiting hgocip, rc=0 at 2013/05/09-18:13:36
    ##>Connect Parameters (len=40)<##
    ## DSN=pg;
    #! UID=dynamoselect;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2013/05/09-18:13:36
    Entered hgolosf at 2013/05/09-18:13:36
    ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFA7F 0x03DF 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0xFE00 0x3B5C
    Exiting hgolosf, rc=0 at 2013/05/09-18:13:36
    DriverName:PSQLODBC35W.DLL, DriverVer:09.01.0100
    DBMS Name:PostgreSQL, DBMS Version:9.1.7
    Exiting hgocont, rc=0 at 2013/05/09-18:13:36
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 0 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2049228800:      HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr: 2049228800: RPC Before Upload Caps
    hostmstr: 2049228800:      HOA Before hoaulcp
    Entered hgoulcp at 2013/05/09-18:13:36
    Entered hgowlst at 2013/05/09-18:13:36
    Exiting hgowlst, rc=0 at 2013/05/09-18:13:36
    SQLGetInfo returns 0x1d for SQL_OWNER_USAGE
    TXN Capable:2, Isolation Option:0xa
    SQLGetInfo returns 64 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 64 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
    HOSGIP returned value of "TRUE" for HS_FDS_QUOTE_IDENTIFIER
    SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
    2 instance capabilities will be uploaded
    capno:1989, context:0x00000000, add-info: 0
    capno:1992, context:0x0001ffff, add-info: 0
    Exiting hgoulcp, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2049228800:      HOA After hoaulcp
    hostmstr: 2049228800: RPC After Upload Caps
    hostmstr: 2049228800: RPC Before Upload DDTR
    hostmstr: 2049228800:      HOA Before hoauldt
    Entered hgouldt at 2013/05/09-18:13:36
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2049228800:      HOA After hoauldt
    hostmstr: 2049228800: RPC After Upload DDTR
    hostmstr: 2049228800: RPC Before Begin Trans
    hostmstr: 2049228800:      HOA Before hoabegn
    Entered hgobegn at 2013/05/09-18:13:36
    tflag:0 , initial:1
    hoi:0x12f090, ttid (len 39) is ...
    00: 44455341 322E4553 2E4C4C41 44524F2E [DESA2.ES.LLADRO.]
    10: 434F4D2E 65336530 30323865 2E31312E [COM.e3e0028e.11.]
    20: 332E3133 303836 [3.13086]
    tbid (len 36) is ...
    00: 44455341 322E4553 2E4C4C41 44524F2E [DESA2.ES.LLADRO.]
    10: 434F4D5B 31312E33 2E313330 38365D5B [COM[11.3.13086][]
    20: 312E345D [1.4]]
    Exiting hgobegn, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2049228800:      HOA After hoabegn
    hostmstr: 2049228800: RPC After Begin Trans
    hostmstr: 2049228800: RPC Before Describe Table
    hostmstr: 2049228800:      HOA Before hoadtab
    Entered hgodtab at 2013/05/09-18:13:36
    count:1
    table: dynamo_web.dps_user
    Allocate hoada[0] @ 033A88D4
    Entered hgopcda at 2013/05/09-18:13:36
    Column:1(id): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:0, octet:80, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:2(login): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:0, octet:200, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:3(auto_login): dtype:12 (VARCHAR), prc/scl:5/0, nullbl:1, octet:-1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:4(password): dtype:-9 (WVARCHAR), prc/scl:35/0, nullbl:1, octet:70, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:5(member): dtype:12 (VARCHAR), prc/scl:5/0, nullbl:1, octet:-1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:6(first_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:7(middle_name): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:1, octet:80, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:8(last_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:9(user_type): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:10(locale): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:11(lastactivity_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:12(registration_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:13(email): dtype:-9 (WVARCHAR), prc/scl:100/6, nullbl:1, octet:200, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:14(email_status): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:15(receive_email): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:16(gender): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:17(date_of_birth): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:18(securitystatus): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    The hoada for table dynamo_web.dps_user follows...
    hgodtab, line 1092: Printing hoada @ 033A88D4
    MAX:18, ACTUAL:18, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 80 80 128/ 40 1000 0 440 id
    12 VARCHAR N 200 200 128/100 1000 0 440 login
    -1 LONGVARCHAR Y 0 0 0/ 0 0 0 220 auto_login
    12 VARCHAR Y 70 70 128/ 35 1000 0 440 password
    -1 LONGVARCHAR Y 0 0 0/ 0 0 0 220 member
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
    12 VARCHAR Y 80 80 128/ 40 1000 0 440 middle_name
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_type
    -5 BIGINT Y 8 8 0/ 0 0 0 20 locale
    91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
    91 DATE Y 16 16 0/ 0 0 0 0 registration_date
    12 VARCHAR Y 200 200 128/100 1000 0 440 email
    -5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
    -5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
    -5 BIGINT Y 8 8 0/ 0 0 0 20 gender
    91 DATE Y 16 16 0/ 0 0 0 0 date_of_birth
    -5 BIGINT Y 8 8 0/ 0 0 0 20 securitystatus
    Exiting hgodtab, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2048180224:      HOA After hoadtab
    hostmstr: 2048180224:      HOA Before hoadafr
    Entered hgodafr, cursor id 0 at 2013/05/09-18:13:36
    Free hoada @ 033A88D4
    Exiting hgodafr, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2048180224:      HOA After hoadafr
    hostmstr: 2048180224: RPC After Describe Table
    hostmstr: 2048180224: RPC Before SQL Bundling
    hostmstr: 2048180224:      HOA Before hoxpars
    Entered hgopars, cursor id 1 at 2013/05/09-18:13:36
    type:0
    SQL text from hgopars, id=1, len=152 ...
    00: 53454C45 43542022 6964222C 226C6F67 [SELECT "id","log]
    10: 696E222C 22666972 73745F6E 616D6522 [in","first_name"]
    20: 2C226C61 73745F6E 616D6522 2C226C61 [,"last_name","la]
    30: 73746163 74697669 74795F64 61746522 [stactivity_date"]
    40: 2C227265 67697374 72617469 6F6E5F64 [,"registration_d]
    50: 61746522 2C22656D 61696C22 2C22656D [ate","email","em]
    60: 61696C5F 73746174 7573222C 22726563 [ail_status","rec]
    70: 65697665 5F656D61 696C2220 46524F4D [eive_email" FROM]
    80: 20226479 6E616D6F 5F776562 222E2264 [ "dynamo_web"."d]
    90: 70735F75 73657222 [ps_user"]
    Exiting hgopars, rc=0 at 2013/05/09-18:13:56
    hostmstr: 2001973248:      HOA After hoxpars
    hostmstr: 2001973248:      HOA Before hoxopen
    Entered hgoopen, cursor id 1 at 2013/05/09-18:13:56
    hgoopen, line 87: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2013/05/09-18:13:56
    hostmstr: 2001973248:      HOA After hoxopen
    hostmstr: 2001973248:      HOA Before hoxdscr
    Entered hgodscr, cursor id 1 at 2013/05/09-18:13:56
    Allocate hoada @ 033A88BC
    Entered hgodscr_process_sellist_description at 2013/05/09-18:13:56
    Entered hgopcda at 2013/05/09-18:13:56
    Column:1(id): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:0, octet:80, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:56
    Entered hgopcda at 2013/05/09-18:13:56
    Column:2(login): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:0, octet:200, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:56
    Entered hgopcda at 2013/05/09-18:13:57
    Column:3(first_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:4(last_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:5(lastactivity_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:6(registration_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:7(email): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:1, octet:200, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:8(email_status): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:200, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:9(receive_email): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:200, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    hgodscr, line 464: Printing hoada @ 033A88BC
    MAX:9, ACTUAL:9, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 80 80 128/ 40 1000 0 440 id
    12 VARCHAR N 200 200 128/100 1000 0 440 login
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
    91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
    91 DATE Y 16 16 0/ 0 0 0 0 registration_date
    12 VARCHAR Y 200 200 128/100 1000 0 440 email
    -5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
    -5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
    Exiting hgodscr, rc=0 at 2013/05/09-18:13:57
    hostmstr: 2001973248:      HOA After hoxdscr
    hostmstr: 2001973248: RPC After SQL Bundling
    hostmstr: 2001973248: RPC Before Fetch Row
    hostmstr: 2001973248:      HOA Before hoaftch
    Entered hgoftch, cursor id 1 at 2013/05/09-18:13:57
    hgoftch, line 133: Printing hoada @ 033A88BC
    MAX:9, ACTUAL:9, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 80 80 128/ 40 1000 0 440 id
    12 VARCHAR N 200 200 128/100 1000 0 440 login
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
    91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
    91 DATE Y 16 16 0/ 0 0 0 0 registration_date
    12 VARCHAR Y 200 200 128/100 1000 0 440 email
    -5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
    -5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
    Performing delayed open.
    SQLBindCol: column 1, cdatatype: -8, bflsz: 82
    SQLBindCol: column 2, cdatatype: -8, bflsz: 202
    SQLBindCol: column 3, cdatatype: -8, bflsz: 122
    SQLBindCol: column 4, cdatatype: -8, bflsz: 122
    SQLBindCol: column 5, cdatatype: 93, bflsz: 16
    SQLBindCol: column 6, cdatatype: 93, bflsz: 16
    SQLBindCol: column 7, cdatatype: -8, bflsz: 202
    SQLBindCol: column 8, cdatatype: -25, bflsz: 8
    SQLBindCol: column 9, cdatatype: -25, bflsz: 8
    SQLFetch: row: 1, column 1, bflsz: 82, bflar: 14
    SQLFetch: row: 1, column 1, bflsz: 82, bflar: 14, (bfl: 80, mbl: 80)
    SQLFetch: row: 1, column 2, bflsz: 202, bflar: 54
    SQLFetch: row: 1, column 2, bflsz: 202, bflar: 54, (bfl: 200, mbl: 200)
    SQLFetch: row: 1, column 3, bflsz: 122, bflar: 10
    SQLFetch: row: 1, column 3, bflsz: 122, bflar: 10, (bfl: 120, mbl: 120)
    SQLFetch: row: 1, column 4, bflsz: 122, bflar: 8
    SQLFetch: row: 1, column 4, bflsz: 122, bflar: 8, (bfl: 120, mbl: 120)
    SQLFetch: row: 1, column 5, bflsz: 16, bflar: -1
    SQLFetch: row: 1, column 5, bflsz: 16, bflar: SQL_NULL_DATA
    SQLFetch: row: 1, column 6, bflsz: 16, bflar: 16
    SQLFetch: row: 1, column 6, bflsz: 16, bflar: 16, (bfl: 16, mbl: 16)
    SQLFetch: row: 1, column 7, bflsz: 202, bflar: 44
    SQLFetch: row: 1, column 7, bflsz: 202, bflar: 44, (bfl: 200, mbl: 200)
    SQLFetch: row: 1, column 8, bflsz: 8, bflar: 8
    SQLFetch: row: 1, column 8, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
    SQLFetch: row: 1, column 9, bflsz: 8, bflar: 8
    SQLFetch: row: 1, column 9, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
    SQLFetch: row: 2, column 1, bflsz: 82, bflar: 14
    SQLFetch: row: 2, column 1, bflsz: 82, bflar: 14, (bfl: 0, mbl: 80)
    (I have clipped it because it is huge, since all rows from the table are brought into Oracle. In fact, the query did not finish yet because the process dg4odbc.exe is busy writing the trace file, I may have to kill it ).
    Thanks a lot,
    Carlos

  • Problem accessing Big5 from Oracle

    Hi Guys..
    I am running oracle 8i under 2000. It is set for Big5. I can insert the chineese value in one of th eclolumn but when try ti access it using java/jdbc the method resultset.getString() returns me result in hex something like this 0xE882A..anyone has any idean what's wrong. The column names are chineese and i can query them and get them properly..it's the content that getting hexed. Any help'd be really appreciated.
    Cheers
    Neelesh

    Can you provide more details. Are you using Oracle's
    JDBC driver? Is it the Thin driver? Where is the input
    data coming from? Have you set up Windows 2000 for
    Traditional Chinese? Perhaps you can provide a code sample.
    What is your NLS_LANG setting?

  • Setup heterogeneous service to connect MySQL from Oracle

    Hello,
    I have got an issue with heterogeneous service configuration like
    SQL> select * from colour@mysql_local;
    select * from colour@mysql_local
    ERROR at line 1:
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-02063: preceding line from MYSQL_LOCAL
    If anybody can advise me what is wrong in conf or might be I missed something
    Thanks
    Environment:
    OS: Windows 7 Pro
    Oracle 11.2.0.3
    MySQL: 5.6
    Configuration:
    System ODBC configured : MYSQL_LOCAL
    Tested connection - sucessful
    Listener
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\app\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (SID_NAME = MYSQL_LOCAL)
    (ORACLE_HOME = C:\app\product\11.2.0\dbhome_1)
    (PROGRAM=dg4odbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = C:\app
    Tnsnames.ora
    MYSQL_LOCAL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSQL_LOCAL)
    (HS = OK)
    initdg4odbc.ora
    HS_FDS_CONNECT_INFO = mysql_local
    HS_FDS_TRACE_LEVEL = OFF
    SQL> conn / as sysdba
    SQL> create public database link MYSQL_LOCAL connect to root identified by 12346 using 'MYSQL_LOCAL';
    C:\Windows\system32>lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.3.0 - Production on 08-MAY-2013 17:44:24
    Copyright (c) 1991, 2011, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.2.0.3.0 - Production
    Start Date 08-MAY-2013 17:44:05
    Uptime 0 days 0 hr. 0 min. 18 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\app\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File C:\app\diag\tnslsnr\D-9RGC8X1\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "MYSQL_LOCAL" has 1 instance(s).
    Instance "MYSQL_LOCAL", status UNKNOWN, has 1 handler(s) for this service...
    Service "QA_IMS_MYSQL" has 1 instance(s).
    Instance "QA_IMS_MYSQL", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\Windows\system32>tnsping mysql_local
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on 08-MAY-2013 17:44:36
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    C:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SID = MYSQL_LOCAL) (HS = OK)))
    OK (0 msec)
    SQL> conn / as sysdba
    Connected.
    SQL> select * from colour@mysql_local;
    select * from colour@mysql_local
    ERROR at line 1:
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-02063: preceding line from MYSQL_LOCAL

    Hi,
    The gateway file initMYSQL_LOCAL.ora should be placed in the directory -
    $ORACLE_HOME\hs\admin
    which is the expected location. In your setup this should be -
    C:\app\product\11.2.0\dbhome_1\hs\admin
    If the file is already in that location then make sure that in the listener.ora and tnsnames.ora that in each section every line except the first line starts with at least one space -
    SID_LIST_LISTENER =
    <space>(SID_LIST =
    <space>(SID_DESC =
    LISTENER =
    <space>(DESCRIPTION_LIST =
    Tnsnames.ora
    MYSQL_LOCAL =
    <space>(DESCRIPTION =
    <space>(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    However, there is also a problem with the tnsnames.ora file. You have -
    Tnsnames.ora
    MYSQL_LOCAL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSQL_LOCAL)
    (HS = OK)
    ) <=== move this bracket
    but it should be -
    Tnsnames.ora
    MYSQL_LOCAL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSQL_LOCAL)
    ) <=== bracket moved here
    (HS = OK)
    Of course, with spaces as shown above. They are often lost in the forums.
    You may also need to change -
    (HOST = localhost)
    to -
    (HOST = <actual host name>)
    but it depends on your setup.
    Try these changes and let me know what happens.
    Regards,
    Mike

  • Error while connecting to Access Database from Oracle

    Dear All,
    I'm trying to connect Oracle 9i to Access Database.
    but im getting the below error while executing query.
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from MYSQLi did the following thing through to connect the database.
    1) First i made odbc driver called ODBC1
    2) I create the following file on oracle server C:\oracle\ora9I\hs\admin\initodbc1.ora
    i edit the below thing in initodbc1.ora
    HS_FDS_CONNECT_INFO =ODBC1
    HS_FDS_TRACE_LEVEL = ON3) I made some changes in sqlnet.ora
    SQLNET.AUTHENTICATION_SERVICES= NONE
    before it was *NTS*4) Below are the entries in tnsnames.ora i changed the port from 1521 to 1522 cos 1521 already exists.
    ODBC1.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = ODBC1)
    ODBC1.WORLD =
      (DESCRIPTION =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.251) (PORT = 1522)
      (CONNECT_DATA =
          (SID = ODBC1)
      (HS=OK)
    )5) Listener file code
    ODBC1 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oracle\ora9I)
          (PROGRAM = extproc)
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = orcl)
         (SID_DESC =
          (PROGRAM = hsodbc)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = ODBC1)
      )6) after that i created
    SQL> CREATE DATABASE LINK MYSQL CONNECT TO XTRACK IDENTIFIED BY XTRACK USING 'ODBC1.WORLD'
    Database link created.7) Listener Status
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 04-MAR-2012 21:26:16
    Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
    Start Date                04-MAR-2012 20:52:33
    Uptime                    0 days 0 hr. 33 min. 44 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   C:\oracle\ora9I\network\admin\listener.ora
    Listener Log File         C:\oracle\ora9I\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
    Services Summary...
    Service "ODBC1" has 1 instance(s).
      Instance "ODBC1", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 2 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfullyi did exactly what documentation says and it will not through any error but atlast when i try to access the access database tables it give me the below error
    SELECT * FROM DBO_COMPANY@MYSQL
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from MYSQLi'm using Oracle9i Enterprise Edition Release 9.2.0.1.0 any help will appreciate.
    Regards
    Moazam
    Edited by: Moazam Shareef on Mar 4, 2012 10:25 AM

    first of all thanks for your support Mr. Kgronau
    I did what u said but still its giving me below error.
    SQL> SELECT * FROM DBO_PATINS@MYSQL
      2  ;
    SELECT * FROM DBO_PATINS@MYSQL
    ERROR at line 1:
    ORA-12154: TNS:could not resolve service namei re-check the service, and restart the listener as you said below are the logs could you help me to solve this issue plz.
    TNSNAMES.ORA
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora9I\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    ODBC1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = ODBC1)
    INST1_HTTP.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = SHARED)
          (SERVICE_NAME = MODOSE)
          (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
      )LISTENER.ORA
    # LISTENER.ORA Network Configuration File: C:\oracle\ora9I\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    ODBC1 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
    SID_LIST_ODBC1 =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = ODBC1)
          (ORACLE_HOME = C:\oracle\ora9I)
          (PROGRAM = hsodbc)
        (SID_DESC =
          (GLOBAL_DBNAME = ODBC1)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = ODBC1)
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oracle\ora9I)
          (PROGRAM = extproc)
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = orcl)
      )then i restart both listener entries (ie lsnrctl start ODBC1 and lsnrctl start ) and both are running fine without any error below are the status.
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:42:09
    Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
    Start Date                05-MAR-2012 18:32:15
    Uptime                    0 days 0 hr. 9 min. 56 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   C:\oracle\ora9I\network\admin\listener.ora
    Listener Log File         C:\oracle\ora9I\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 2 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfullyLISTENER.ORA ODBC1 status
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:41:52
    Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1522)))
    STATUS of the LISTENER
    Alias                     ODBC1
    Version                   TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
    Start Date                05-MAR-2012 18:32:08
    Uptime                    0 days 0 hr. 9 min. 46 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   C:\oracle\ora9I\network\admin\listener.ora
    Listener Log File         C:\oracle\ora9I\network\log\odbc1.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1522)))
    Services Summary...
    Service "ODBC1" has 1 instance(s).
      Instance "ODBC1", status UNKNOWN, has 2 handler(s) for this service...
    The command completed successfullyWhere hope i'm near to retrive the access data.
    Regards
    Moazam

  • Can't connect to MySQL from Oracle 11g R1

    Hello Oracle's guru.
    Sorry for my English it's not my native langauge
    Enviroments: Oracle 11g R1, Windows 7, ODBC Driver 5.1.8
    I have a some problem with creation gateway to connection to MySQL, and I hope somebody can help me.
    So,
    1) ODBC name - MYSQLDSN
    2) initMYSQLDSN.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQLDSN
    HS_FDS_TRACE_LEVEL = 0
    3) listener.ora
    # listener.ora Network Configuration File: E:\app\voxa\product\11.1.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=MYSQLDSN)
    (ORACLE_HOME=E:\app\voxa\product\11.1.0\db_1)
    (PROGRAM=dg4odbc)
    4) tnsnames.ora
    # tnsnames.ora Network Configuration File: E:\app\voxa\product\11.1.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    CXWH =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = CXWH)
    MYSQLDSN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (CONNECT_DATA =(SID = MYSQLDSN))
    (HS = OK)
    Then I trying to connect to MySQL using sql*plus:
    C:\Windows\system32>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Ср Июн 1 12:13:39 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    login: system
    pass:
    Connect to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create public database link MYSQLDSN
    2 connect to DEMO identified by "DEMO" using 'MYSQLDSN';
    Channel was created
    SQL> select * from items@MYSQLDSN;
    select * from items@MYSQLDSN
    Error in line 1:
    ORA-28500: connection with ORACLE with other system return message:
    [MySQL][ODBC 5.1 Driver][mysqld-5.5.12]You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for the right
    syntax to use near
    '"ITEMS_KEY",A1."ITEM_NAME",A1."ITEM_CATEGORY",A1."ITEM_VENDOR",A1."ITEM_SKU",A1
    .' at line 1
    ORA-02063: предшествующий 2 lines из MYSQLDSN
    If I trying create new ODBC mobule via OWB, I had next error:
    [MySQL][ODBC 5.1 Driver][mysqld-5.5.12]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"DUAL"' at line 1
    ORA-02063: предшествующий 2 lines из OWB_56
    What I do wrong? Please help me

    Hi,
    You can download the 11.1.0.7 patchset from My Oracle Support -
    support.oracle.com
    as patch 6890831.
    Once logged in click on 'Patches and Updates' and enter the patch number as 6890831 and choose whichever platform you are running.
    the readme explains how to apply the patch to an existing 11.1.0.6 install.
    The url you posted is only for complete product installs, but 11.1.0.7 is only a patchset that must be applied to an existing install.
    Regards,
    Mike

  • Accessing MySQL from Java query

    I've been getting the following message:
    Data source rejected establishment of connection, message from server: "Host 'x.x.x.x' is not allowed to connect to this MySQL server"
    and was wondering if there's any chance it's a problem with my Java code? Seems to me like a problem with the URL i'm entering to connect to the database in which case it's more of a mysql/server problem rather than java. If it could be my code, I'll post it if it will help. Thanks.

    No applet or JFrame, just command line. The same mySQL database is being accessed by PHP locally if that helps. Everywhere I've looked up information on this seems to indicate I'm doing it correctly but it still doesn't work. Maybe its something to do with how the database is setup.
    I tried granting priveleges anyway but only got "ERROR 1044: Access denied for user: 'user@localhost' to database 'db'". I tried granting in multiple ways too, but got the same error:
    grant all privileges on db to user@localhost identified by 'password' with grant option;
    grant all privileges on db.* to user@localhost identified by 'password' with grant option;
    grant all privileges on db.table to user@localhost identified by 'password' with grant option;
    grant all privileges on table to user@localhost identified by 'password' with grant option;
    grant all privileges on db to user identified by 'password' with grant option;
    use db; grant all privileges on db to user@localhost identified by 'password' with grant option;
    My code to try and connect is as follows:
    private void login() {
              Connection con;
              try {
                   // Connect to database
                  String dburl = new String ("jdbc:mysql://localhost/" + database + "?user=" + username + "&password=" + password);
                   try {
                        Class.forName("com.mysql.jdbc.Driver").newInstance();
                   catch (InstantiationException e) {
                        System.out.println("Instantiation error.");
                   catch (IllegalAccessException e) {
                        System.out.println("Illegal Access error.");
                   con = DriverManager.getConnection(dburl, username, password);
                   System.out.println("Connected to database");
              // On SQL exception, display SQL error message
              catch(SQLException e) {
                   System.out.println("SQLException:\n" + e.getMessage());
              // On ClassNotFound exception, display error message
              catch(ClassNotFoundException e) {
                   System.out.println("ClassNotFoundException:\n" + e.getMessage());
         }Thanks for your help so far guys, hopefully I or someone can work it out soon.

  • Odbc access-xp  from oracle 9i

    om the moment we have oracle 7.3.4 and we connect with msaccess via an odbc driver ORACLE73 Ver 3.5
    next month we get oracle 9i, but how can we connect msacces to that tables? right now connection to test-databases dont work.

    Which client do you have installed?
    I didn't have problems using either the MS ODBC client or the Oracle ODBC client from MS Windows XP Pro (8i client connecting to an 8i server; 9i client connecting to a 9i or 10g server). Linking Access 2002/2003 tables using the 10g client to a 10g server is not working, however; I get "#DELETED" instead of data in the cells.

  • General error when accessing blob from oracle

    Hi
    I have successfully uploaded and saved images into oracle(8.1.5) table DATA_TYPE(dtid number, iconname varchar2(30), icon blob). When I try to retrieve icon from the database, I get "javax.servlet.ServletException: General error" at:
    PreparedStatement pstmt = myConnection.prepareStatement(mySQL);
    My code looks like this:
    imgModifyDataType.jsp
    <%
    ResultSet myResultSet = null;
    Statement myStatement = null;
    Connection myConnection = null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    myConnection = DriverManager.getConnection("Jdbc:Odbc:Te","te","te");
    String iconName;
    String pDTID = request.getParameter("dtid");
    String mySQL = "Select iconname, icon from data_types where dtid=?";
    //Following statement throws general error exception
    PreparedStatement pstmt = myConnection.prepareStatement(mySQL);
    pstmt.setString(1,pDTID);
    myResultSet = pstmt.executeQuery();
    iconName = myResultSet.getString("iconname");
    myUpload.initialize(pageContext);
    myUpload.downloadField(myResultSet,"icon","application/x-msdownload", iconName);
    %>
    One more thing. The error occurs only when I try to execute query retrieving blob data. The same set of statements works fine for simple text or numbers.
    Please help

    When you read a BLOB with ORACLE,
    you have to lock the corresponding row.
    This means that...
    - the connection must not be in "AUTO COMMIT" mode
    - you have to do a "SELECT ... FOR UPDATE"

  • Weird Can not access class from outside package problem

    Hi, I have this problem and it seems the error message is very clear what the problem is but I did make the GeneralTestResult class PUBLIC already. What could be wrong? I did search for it but this is too general and didn't find any solution. Anyone can point out the problem? TIA.
    public abstract class GeneralTestResult
      public static int FAILING_THRESHOLE = 25;
      public abstract String getTestName();
      public abstract boolean isPassed();
      public abstract int getLeftEyeResult();
      public abstract int getRightEyeResult();
      public abstract Calendar getTestDate();
    // in a different file
    package VisionSaver.Tests.TestResults;
    import java.util.*;
    public class AcuityORContrastTestResult extends GeneralTestResult
      private String m_testName;
      private int m_leftEyeVision, m_rightEyeVision;
      private Calendar m_testDate;
    // in a different file
    package VisionSaver.Tests;
    import VisionSaver.Tests.TestResults.*;
    public class Acuity extends VirtualKeyboard implements ActionListener, Runnable, WindowListener
    AcuityORContrastTestResult r = new AcuityORContrastTestResult(...);
    }The compiling error is:
    "Acuity.java": GeneralTestResult() in VisionSaver.Tests.TestResults.GeneralTestResult is not defined in a public class or interface; cannot be accessed from outside package at line 529, column 40

    The GeneralTestResult class is a packaged class. Sorry, when I cut and paste, I didn't copy everything. So here is the complete GeneralTestResult file:
    package VisionSaver.Tests.TestResults;
    import java.util.*;
    public abstract class GeneralTestResult
      public static int FAILING_THRESHOLE = 25;
      public abstract String getTestName();
      public abstract boolean isPassed();
      public abstract int getLeftEyeResult();
      public abstract int getRightEyeResult();
      public abstract Calendar getTestDate();
    }From the compiler's message, it seems like the import is OK. It just won't allow me to access non-public class but my classes here are declared public. Any other ideas? TIA

Maybe you are looking for