Dblink Oracle -- MySQL

Hi.
I made a dblink in an Oracle db to a MySQL db. This works ok. But when i want to query in a table with a lot of records (the biggest one has about 250 million records), it takes a long time to return something. Like hours. Or nothing at all.
When i do the same query in Access with a MySQL ODBC driver, it shows results in seconds. Also with another tool direct on the MySQL db.
How can i make it to perform?
Thankx.

I made a dblink in an Oracle db to a MySQL db. This
works ok. But when i want to query in a table with aHow is that possible? My understanding is that a database link could only be to another oracle
database unless you used a transparent gateway.

Similar Messages

  • Oracle dblink to mysql in Linux machines

    Hi,
    I want to make a dblink between to linux machines, one with oracle 11g database and the other with MySQL 5.0.77 database. The objective is to create triggers on a few tables in the oracle side and automatically synchronize it with same other tables in the mysql side. Can someone explain me how to accomplish this?
    Thanks in advance
    Edited by: 859234 on 18/Mai/2011 7:23

    Hi,
    To connect to MySQL from Oracle you can use the Database Gateway for ODBC (DG4ODBC). There are various notes available in My Oracle Support which give details of the setup -
    Note.1083703.1 Master Note for Oracle Gateway Products
    Note.466228.1 How to Setup DG4ODBC on Linux x86 32bit
    Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX)
    Once you have the gateway installed and configured you can refer to MySQL tables in the triggers using the gateway database link.
    However, you need to be aware that DG4ODBC does not support distributed transactions so you would need to have a commit between any Oracle updates and updates to MySQL in the trigger, so you would need to be careful about error checking.
    Regards,
    Mike

  • Create a dblink oracle to postgres with dg4odbc

    Hi,
    I'm trying to create a dblink from a database Oracle (10.2.0.3) to PostgreSQL database (8.3.11) with DG4ODBC (11.2.0.1.0).
    I've installed the postgres driver 64 bit :
    file /usr/lib64/psqlodbc.so
    /usr/lib64/psqlodbc.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), strippedI'm configuring the /oracle/.odbc.ini :
    [record]
    Driver=/usr/lib64/psqlodbc.so
    Description  = PostgreSQL ODBC
    Servername       = cdxlan035
    Port         = 5435
    Username         = rec_lct
    Password     = rec_lct
    Database     = REC_TESTI'm configuring the /oracle/product/DG4ODBC/hs/admin/initrecord.ora like this :
    # HS init parameters
    HS_FDS_CONNECT_INFO = record
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_TRACE_FILE_NAME = /oracle/product/DG4ODBC/hs/log/hsodbc.trc
    HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbc.so
    # ODBC specific environment variables
    set ODBCINI=/oracle/.odbc.iniI'm configuring the /oracle/product/DG4ODBC/network/admin/listener.ora
    LISTENER_HS =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = cdxlan036.douane)(PORT = 1525))
    ADR_BASE_LISTENER_HS = /oracle/product/DG4ODBC
    SID_LIST_LISTENER_HS =
      (SID_LIST =
        (SID_DESC =
          (PROGRAM = dg4odbc)
          (ORACLE_HOME = /oracle/product/DG4ODBC)
          (SID_NAME = record)
          (ENVS=LD_LIBRARY_PATH=/usr/lib64:/oracle/product/DG4ODBC/lib:/oracle/product/10.2.0/lib)
      )I'm updating my /oracle/product/10.2.0/network/admin/tnsnames.ora :
    RECORD2 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = cdxlan036)(PORT = 1525))
        (CONNECT_DATA =
          (SID = record)
        (HS=OK)
       )In last i'm creating the dblink :
    CREATE  DATABASE LINK "RECORD"  CONNECT TO "rec_lct" IDENTIFIED BY "rec_lct"  USING 'RECORD2';When i'm trying to select my postgres database, that doesn't work. Here the /oracle/product/DG4ODBC/hs/log/record.log :
    [oracle@cdxlan036 log]$ cat record_agt_30445.trc
    Oracle Corporation --- MONDAY    FEB 27 2012 17:11:31.204
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- MONDAY    FEB 27 2012 17:11:31.204
        Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "4"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "record"
    Product-Info:
      Port Rls/Upd:1/0 PrdStat:0
      Agent:Oracle Database Gateway for ODBC
      Facility:hsa
      Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:record
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=31
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=31
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2012/02/27-17:11:31
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/psqlodbc.so"
    Entered hgolofns at 2012/02/27-17:11:31
    libname=/usr/lib64/psqlodbc.so, funcname=SQLAllocHandle
    peflerr=6521, libname=/usr/lib64/psqlodbc.so, funcname=SQLAllocHandle
    hoaerr:28500
    Exiting hgolofns at 2012/02/27-17:11:31
    Failed to load ODBC library symbol: /usr/lib64/psqlodbc.so(SQLAllocHandle)
    Exiting hgolofn, rc=28500 at 2012/02/27-17:11:31
    Exiting hgoinit, rc=28500 with error ptr FILE:hgoinit.c LINE:337 FUNCTION:hgoinit() ID:Loading ODBC aray of function ptrs
    Entered hgoexit
    HS Gateway:  NULL connection context at exit
    Exiting hgoexit, rc=0 with error ptr FILE:hgoexit.c LINE:108 FUNCTION:hgoexit() ID:Connection contextWhat's wrong with my configuration?
    thanks for your help
    regards,
    Mathieu

    HS_FDS_SHAREABLE_NAME needs to point to the ODBC driver manager. Commonly the ODBC driver manager is a separate library (common name is libodbc.so). It can be downloaded for example from unixodbc.org. Only a few rare ODBC drivers (some ODBC drivers from MySQL and also some IBM DB2 drivers have a built in ODBC driver manager into the ODBC driver itself, all other require a stand alone ODBC driver manager).
    Background info:
    In general the ODBC set up consists of 2 parts, an ODBC driver manager and an ODBC driver itself. The ODBC driver manager is providing generic ODBC functions and it is also responsible to load the driver specified in the odbc.ini file. The ODBC driver itself is then dedicated for a foreign database and provides specific foreign database functions.

  • Insert / update data to a table through DBLINK (oracle)

    I try to insert / update a table from one instance of oracle database to another one through oracle dblink, get following error:
    java.sql.SQLException: ORA-01008: not all variables bound
    ORA-02063: preceding line from MYLINK
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2152)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2035)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2876)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:609)
    The same code to insert / update the exact same table in local instance works fine.No any binding problem. So i am pretty sure all ? mark in SQL are set with some value before sending to Oracle.
    Someone please advise what is possible problem. Db link is not set correctly? or we can not update remote table by dblink.
    By the way i can do insert / update from TOAD to the remote table through DBLINK. Problem happens only in Java code.
    thanks!
    Gary

    dblink links from one database instance to another.
    So it is certainly a source of possible problems when it works on one database and not another.
    You should start by looking at the dblink and it possible testing it in the database not via java.
    Note as well that that error suggests that it is coming from the Oracle database. I believe if you had a bind parameter problem in your java code that the error would come from the driver. But that is a guess on my part.

  • Error while accessing DBlink to mysql

    Getting following error (trace file content) when querying suing the DB link (select * from "DeviceWindows_Devices"@monolith2.us.oracle.com;)
    table: DeviceWindows_Devices
    Entered hgopcda at 2012/11/15-18:56:59
    Column:1(WindowID): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2012/11/15-18:56:59
    Entered hgopcda at 2012/11/15-18:56:59
    Column:2(DeviceID): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2012/11/15-18:56:59
    The hoada for table DeviceWindows_Devices follows...
    hgodtab, line 651: Printing hoada @ 0x281a100
    MAX:2, ACTUAL:2, BRC:1, WHT=6 (TABLE_DESCRIBE)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER N 4 4 0/ 0 0 0 0 WindowID
    4 INTEGER N 4 4 0/ 0 0 0 0 DeviceID
    Exiting hgodtab, rc=0 at 2012/11/15-18:56:59
    Entered hgodafr, cursor id 0 at 2012/11/15-18:56:59
    Exiting hgodafr, rc=0 at 2012/11/15-18:56:59
    Entered hgopars, cursor id 1 at 2012/11/15-18:56:59
    type:0
    SQL text from hgopars, id=1, len=60 ...
    00: 53454C45 43542041 312E5769 6E646F77 [SELECT A1.Window]
    10: 49442C41 312E4465 76696365 49442046 [ID,A1.DeviceID F]
    20: 524F4D20 44657669 63655769 6E646F77 [ROM DeviceWindow]
    30: 735F4465 76696365 73204131 [s_Devices A1]
    Exiting hgopars, rc=0 at 2012/11/15-18:56:59
    Entered hgoopen, cursor id 1 at 2012/11/15-18:56:59
    hgoopen, line 83: NO hoada to print
    Exiting hgoopen, rc=0 at 2012/11/15-18:56:59
    Entered hgodscr, cursor id 1 at 2012/11/15-18:56:59
    Entered hgopcda at 2012/11/15-18:56:59
    Column:1(WindowID): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:0, sign:0, radix:0
    Exiting hgopcda, rc=0 at 2012/11/15-18:56:59
    Entered hgopcda at 2012/11/15-18:56:59
    Column:2(DeviceID): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:0, sign:0, radix:0
    Exiting hgopcda, rc=0 at 2012/11/15-18:56:59
    Entered hgopoer at 2012/11/15-18:56:59
    hgopoer, line 159: got native error 0 and sqlstate HY092; message follows...
    [unixODBC][Driver Manager]Invalid attribute/option identifier
    Exiting hgopoer, rc=0 at 2012/11/15-18:56:59
    hgodscr, line 456: calling SQLSetStmtAttr got sqlstate HY092
    hgodscr, line 506: NO hoada to print
    Exiting hgodscr, rc=28500 at 2012/11/15-18:56:59 with error ptr FILE:hgodscr.c LINE:456 FUNCTION:hgodscr() ID:Set array fetch size
    Driver : ODBC 5.2(w) Driver
    Oracle Database: 11.1.0.7
    Mysql Database: 5.5.20
    Able to connect from isql and select commands also works fine from there
    -bash-3.2$ isql -v monolith_itasmon
    | Connected! |
    | |
    | sql-statement |
    | help [tablename] |
    | quit |
    | |
    Please help in resolving this, thanks in advance.
    Thanks,
    Vani
    Edited by: user580543 on Nov 16, 2012 2:10 AM

    Hi ,
    Sorry for the delay.
    Please find the trace file.
    Thanks,
    Vani
    [ODBC][26106][__handles.c][444]
              Exit:[SQL_SUCCESS]
                   Environment = 0x532c160
    [ODBC][26106][SQLSetEnvAttr.c][182]
              Entry:
                   Environment = 0x532c160
                   Attribute = SQL_ATTR_ODBC_VERSION
                   Value = 0x3
                   StrLen = -6
    [ODBC][26106][SQLSetEnvAttr.c][349]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLAllocHandle.c][345]
              Entry:
                   Handle Type = 2
                   Input Handle = 0x532c160
    [ODBC][26106][SQLAllocHandle.c][463]
              Exit:[SQL_SUCCESS]
                   Output Handle = 0x5361780
    [ODBC][26106][SQLSetConnectAttr.c][318]
              Entry:
                   Connection = 0x5361780
                   Attribute = SQL_ATTR_AUTOCOMMIT
                   Value = (nil)
                   StrLen = -5
    [ODBC][26106][SQLSetConnectAttr.c][500]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLDriverConnect.c][678]
              Entry:
                   Connection = 0x5361780
                   Window Hdl = (nil)
                   Str In = [DSN=MONOLITH_ITASMON;UID=itasmon;PWD=********][length = 45]
                   Str Out = 0x5363848
                   Str Out Max = 1024
                   Str Out Ptr = 0x7fffe146fe44
                   Completion = 0
              UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE 'UCS-2LE'
    [ODBC][26106][SQLDriverConnect.c][1487]
              Exit:[SQL_SUCCESS]
                   Connection Out [[DSN=MONOLITH_ITASMON;UID=itasmon;PWD=********][length = 45 (SQL_NTS)]]
    [ODBC][26106][SQLGetInfo.c][214]
              Entry:
                   Connection = 0x5361780
                   Info Type = SQL_DRIVER_NAME (6)
                   Info Value = 0x7fffe146fb20
                   Buffer Length = 512
                   StrLen = 0x7fffe146fe48
    [ODBC][26106][SQLGetInfo.c][528]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetInfo.c][214]
              Entry:
                   Connection = 0x5361780
                   Info Type = SQL_DRIVER_VER (7)
                   Info Value = 0x7fffe146fb20
                   Buffer Length = 512
                   StrLen = 0x7fffe146fe48
    [ODBC][26106][SQLGetInfo.c][528]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetInfo.c][214]
              Entry:
                   Connection = 0x5361780
                   Info Type = SQL_DBMS_NAME (17)
                   Info Value = 0x7fffe146fb20
                   Buffer Length = 512
                   StrLen = 0x7fffe146fe48
    [ODBC][26106][SQLGetInfo.c][528]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetInfo.c][214]
              Entry:
                   Connection = 0x5361780
                   Info Type = SQL_DBMS_VER (18)
                   Info Value = 0x7fffe146fb20
                   Buffer Length = 512
                   StrLen = 0x7fffe146fe48
    [ODBC][26106][SQLGetInfo.c][528]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetInfo.c][214]
              Entry:
                   Connection = 0x5361780
                   Info Type = SQL_CATALOG_NAME (10003)
                   Info Value = 0x7fffe146fe90
                   Buffer Length = 512
                   StrLen = 0x7fffe1470124
    [ODBC][26106][SQLGetInfo.c][528]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetInfo.c][214]
              Entry:
                   Connection = 0x5361780
                   Info Type = SQL_IDENTIFIER_QUOTE_CHAR (29)
                   Info Value = 0x7fffe146fd60
                   Buffer Length = 512
                   StrLen = 0x7fffe147021c
    [ODBC][26106][SQLGetInfo.c][528]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetInfo.c][214]
              Entry:
                   Connection = 0x5361780
                   Info Type = SQL_COLUMN_ALIAS (87)
                   Info Value = 0x7fffe146fd60
                   Buffer Length = 512
                   StrLen = 0x7fffe147021c
    [ODBC][26106][SQLGetInfo.c][528]
              Exit:[SQL_SUCCESS]
    Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_NO_DATA]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetTypeInfo.c][164]
              Entry:
                   Statement = 0x538ae20
                   Data Type = SQL_INTEGER
    [ODBC][26106][SQLGetTypeInfo.c][314]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetTypeInfo.c][164]
              Entry:
                   Statement = 0x538ae20
                   Data Type = SQL_SMALLINT
    [ODBC][26106][SQLGetTypeInfo.c][314]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_NO_DATA]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetTypeInfo.c][164]
              Entry:
                   Statement = 0x538ae20
                   Data Type = SQL_SMALLINT
    [ODBC][26106][SQLGetTypeInfo.c][314]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetTypeInfo.c][164]
              Entry:
                   Statement = 0x538ae20
                   Data Type = SQL_VARBINARY
    [ODBC][26106][SQLGetTypeInfo.c][314]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_NO_DATA]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetTypeInfo.c][164]
              Entry:
                   Statement = 0x538ae20
                   Data Type = SQL_BIGINT
    [ODBC][26106][SQLGetTypeInfo.c][314]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_NO_DATA]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetTypeInfo.c][164]
              Entry:
                   Statement = 0x538ae20
                   Data Type = SQL_BIGINT
    [ODBC][26106][SQLGetTypeInfo.c][314]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetTypeInfo.c][164]
              Entry:
                   Statement = 0x538ae20
                   Data Type = SQL_TINYINT
    [ODBC][26106][SQLGetTypeInfo.c][314]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_NO_DATA]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetTypeInfo.c][164]
              Entry:
                   Statement = 0x538ae20
                   Data Type = SQL_TINYINT
    [ODBC][26106][SQLGetTypeInfo.c][314]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetTypeInfo.c][164]
              Entry:
                   Statement = 0x538ae20
                   Data Type = SQL_LONGVARCHAR
    [ODBC][26106][SQLGetTypeInfo.c][314]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetTypeInfo.c][164]
              Entry:
                   Statement = 0x538ae20
                   Data Type = SQL_LONGVARBINARY
    [ODBC][26106][SQLGetTypeInfo.c][314]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 2
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLEndTran.c][315]
              Entry:
                   Connection = 0x5361780
                   Completion Type = 0
    [ODBC][26106][SQLGetInfo.c][214]
              Entry:
                   Connection = 0x5361780
                   Info Type = SQL_CURSOR_COMMIT_BEHAVIOR (23)
                   Info Value = 0x7fffe14700de
                   Buffer Length = 8
                   StrLen = 0x7fffe14700dc
    [ODBC][26106][SQLGetInfo.c][528]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLEndTran.c][488]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetInfo.c][214]
              Entry:
                   Connection = 0x5361780
                   Info Type = SQL_TXN_CAPABLE (46)
                   Info Value = 0x7fffe1470274
                   Buffer Length = 2
                   StrLen = 0x7fffe1470278
    [ODBC][26106][SQLGetInfo.c][528]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLGetInfo.c][214]
              Entry:
                   Connection = 0x5361780
                   Info Type = SQL_TXN_ISOLATION_OPTION (72)
                   Info Value = 0x7fffe1470270
                   Buffer Length = 4
                   StrLen = 0x7fffe1470278
    [ODBC][26106][SQLGetInfo.c][528]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLSetConnectAttr.c][318]
              Entry:
                   Connection = 0x5361780
                   Attribute = SQL_ATTR_TXN_ISOLATION
                   Value = 0x2
                   StrLen = -5
    [ODBC][26106][SQLSetConnectAttr.c][671]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFreeHandle.c][365]
              Entry:
                   Handle Type = 3
                   Input Handle = 0x538ae20
    [ODBC][26106][SQLFreeHandle.c][462]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLAllocHandle.c][510]
              Entry:
                   Handle Type = 3
                   Input Handle = 0x5361780
    [ODBC][26106][SQLAllocHandle.c][872]
              Exit:[SQL_SUCCESS]
                   Output Handle = 0x538ae20
    [ODBC][26106][SQLBindCol.c][165]
              Entry:
                   Statement = 0x538ae20
                   Column Number = 4
                   Target Type = 1 SQL_CHAR
                   Target Value = 0x7fffe1470028
                   Buffer Length = 124
                   StrLen Or Ind = 0x7fffe1470110
    [ODBC][26106][SQLBindCol.c][251]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLBindCol.c][165]
              Entry:
                   Statement = 0x538ae20
                   Column Number = 5
                   Target Type = -15 SQL_C_SSHORT
                   Target Value = 0x7fffe14701c0
                   Buffer Length = 0
                   StrLen Or Ind = (nil)
    [ODBC][26106][SQLBindCol.c][251]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLBindCol.c][165]
              Entry:
                   Statement = 0x538ae20
                   Column Number = 6
                   Target Type = 1 SQL_CHAR
                   Target Value = 0x7fffe146ffb0
                   Buffer Length = 120
                   StrLen Or Ind = 0x7fffe1470108
    [ODBC][26106][SQLBindCol.c][251]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLBindCol.c][165]
              Entry:
                   Statement = 0x538ae20
                   Column Number = 7
                   Target Type = -16 SQL_C_SLONG
                   Target Value = 0x7fffe14701a8
                   Buffer Length = 0
                   StrLen Or Ind = 0x7fffe1470130
    [ODBC][26106][SQLBindCol.c][251]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLBindCol.c][165]
              Entry:
                   Statement = 0x538ae20
                   Column Number = 9
                   Target Type = -15 SQL_C_SSHORT
                   Target Value = 0x7fffe14701cc
                   Buffer Length = 0
                   StrLen Or Ind = 0x7fffe1470128
    [ODBC][26106][SQLBindCol.c][251]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLBindCol.c][165]
              Entry:
                   Statement = 0x538ae20
                   Column Number = 10
                   Target Type = -15 SQL_C_SSHORT
                   Target Value = 0x7fffe14701c4
                   Buffer Length = 0
                   StrLen Or Ind = 0x7fffe1470120
    [ODBC][26106][SQLBindCol.c][251]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLBindCol.c][165]
              Entry:
                   Statement = 0x538ae20
                   Column Number = 11
                   Target Type = -15 SQL_C_SSHORT
                   Target Value = 0x7fffe14701c8
                   Buffer Length = 0
                   StrLen Or Ind = (nil)
    [ODBC][26106][SQLBindCol.c][251]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLBindCol.c][165]
              Entry:
                   Statement = 0x538ae20
                   Column Number = 16
                   Target Type = -16 SQL_C_SLONG
                   Target Value = 0x7fffe14701a4
                   Buffer Length = 0
                   StrLen Or Ind = 0x7fffe1470118
    [ODBC][26106][SQLBindCol.c][251]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLColumns.c][208]
              Entry:
                   Statement = 0x538ae20
                   Catalog Name = [NULL]
                   Schema Name = [itasmon][length = 7]
                   Table Name = [DeviceWindows_Devices][length = 21]
                   Column Type = [NULL]
    [ODBC][26106][SQLColumns.c][405]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFetch.c][158]
              Entry:
                   Statement = 0x538ae20
    [ODBC][26106][SQLFetch.c][340]
              Exit:[SQL_NO_DATA]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 0
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLFreeStmt.c][140]
              Entry:
                   Statement = 0x538ae20
                   Option = 2
    [ODBC][26106][SQLFreeStmt.c][246]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLAllocHandle.c][510]
              Entry:
                   Handle Type = 3
                   Input Handle = 0x5361780
    [ODBC][26106][SQLAllocHandle.c][872]
              Exit:[SQL_SUCCESS]
                   Output Handle = 0x53bdd30
    [ODBC][26106][SQLPrepare.c][189]
              Entry:
                   Statement = 0x53bdd30
                   SQL = [SELECT A1.WindowID,A1.DeviceID FROM DeviceWindows_Devices A1][length = 60]
    [ODBC][26106][SQLPrepare.c][364]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLNumResultCols.c][149]
              Entry:
                   Statement = 0x53bdd30
                   Column Count = 0x532c880
    [ODBC][26106][SQLNumResultCols.c][234]
              Exit:[SQL_SUCCESS]
                   Count = 0x532c880 -> 2
    [ODBC][26106][SQLExecute.c][183]
              Entry:
                   Statement = 0x53bdd30
    [ODBC][26106][SQLExecute.c][344]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLDescribeCol.c][231]
              Entry:
                   Statement = 0x53bdd30
                   Column Number = 1
                   Column Name = 0x7fffe146ff00
                   Buffer Length = 30
                   Name Length = 0x7fffe1470044
                   Data Type = 0x7fffe1470040
                   Column Size = 0x7fffe146ffe8
                   Decimal Digits = 0x7fffe147003c
                   Nullable = 0x7fffe1470038
    [ODBC][26106][SQLDescribeCol.c][474]
              Exit:[SQL_SUCCESS]
                   Column Name = [WindowID]
                   Data Type = 0x7fffe1470040 -> 4
                   Column Size = 0x7fffe146ffe8 -> 10
                   Decimal Digits = 0x7fffe147003c -> 0
                   Nullable = 0x7fffe1470038 -> 0
    [ODBC][26106][SQLColAttribute.c][277]
              Entry:
                   Statement = 0x53bdd30
                   Column Number = 1
                   Field Identifier = SQL_DESC_UNSIGNED
                   Character Attr = (nil)
                   Buffer Length = 0
                   String Length = (nil)
                   Numeric Attribute = 0x7fffe146fff0
    [ODBC][26106][SQLColAttribute.c][648]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLDescribeCol.c][231]
              Entry:
                   Statement = 0x53bdd30
                   Column Number = 2
                   Column Name = 0x7fffe146ff00
                   Buffer Length = 30
                   Name Length = 0x7fffe1470044
                   Data Type = 0x7fffe1470040
                   Column Size = 0x7fffe146ffe8
                   Decimal Digits = 0x7fffe147003c
                   Nullable = 0x7fffe1470038
    [ODBC][26106][SQLDescribeCol.c][474]
              Exit:[SQL_SUCCESS]
                   Column Name = [DeviceID]
                   Data Type = 0x7fffe1470040 -> 4
                   Column Size = 0x7fffe146ffe8 -> 10
                   Decimal Digits = 0x7fffe147003c -> 0
                   Nullable = 0x7fffe1470038 -> 0
    [ODBC][26106][SQLColAttribute.c][277]
              Entry:
                   Statement = 0x53bdd30
                   Column Number = 2
                   Field Identifier = SQL_DESC_UNSIGNED
                   Character Attr = (nil)
                   Buffer Length = 0
                   String Length = (nil)
                   Numeric Attribute = 0x7fffe146fff0
    [ODBC][26106][SQLColAttribute.c][648]
              Exit:[SQL_SUCCESS]
    [ODBC][26106][SQLSetStmtAttr.c][243]
              Entry:
                   Statement = 0x53bdd30
                   Attribute = SQL_ATTR_ROW_ARRAY_SIZE
                   Value = 0x1
                   StrLen = 0
    [ODBC][26106][SQLSetStmtAttr.c][636]Error: HY092
    [ODBC][26106][SQLGetDiagRec.c][710]
              Entry:
                   Statement = 0x53bdd30
                   Rec Number = 1
                   SQLState = 0x7fffe146fe48
                   Native = 0x7fffe146fec0
                   Message Text = 0x7fffe146fc30
                   Buffer Length = 510
                   Text Len Ptr = 0x7fffe146fec4
    [ODBC][26106][SQLGetDiagRec.c][747]
              Exit:[SQL_SUCCESS]
                   SQLState = HY092
                   Native = 0x7fffe146fec0 -> 0
                   Message Text = [[unixODBC][Driver Manager]Invalid attribute/option identifier]
    [ODBC][26106][SQLGetDiagRec.c][710]
              Entry:
                   Statement = 0x53bdd30
                   Rec Number = 2
                   SQLState = 0x7fffe146fe48
                   Native = 0x7fffe146fec0
                   Message Text = 0x7fffe146fc30
                   Buffer Length = 510
                   Text Len Ptr = 0x7fffe146fec4
    [ODBC][26106][SQLGetDiagRec.c][747]
              Exit:[SQL_NO_DATA]

  • How to query data from Oracle, MySQL, and MSSQL?

    For an environment consisting of Oracle 11g/12c enterprise edition, MySQL 5.7 community edition, and MSSQL 2008/2012 stanard/enterprise edition, is there any major issue using DG4ODBC to query data from all 3 platforms?
    Is there other free alternatives?
    If the queried data is mostly contained in MySQL or MSSQL, will it be more efficient to query from MySQL or MSSQL?
    If yes, any suggestion of how to do it in those platforms? I know MSSQL can use linked server but it is quite slow.

    mkirtley-Oracle wrote:
    Hi Ed,
        It is semantics.  By multiple instances I mean you have the gateway installed in an ORACLE_HOME which has 1 listener. However, if you are connecting to different non-Oracle databases or different individual databases of that non-Oracle database then you need multiple gateway instances for each database being connected.  I did not mean that you need a gateway installed in a separate ORACLE_HOME for each non-Oracle database to which you are connecting.
    Each of these would have a separate instance file within that ORACLE_HOME/hs/admin directory with the connection details for the non-Oracle database to which that instance connects.. So, you would have -
    initgtw1.ora - connects to MySQL
    initgtw2.ora - connect to SQL*Server northwind database
    initgtw3.ora - connect to SQL*Server test database
    etc
    etc
    Each of these instances would have a separate entry in the gateway listener.ora.
    In MOS have a look at this note -
    How To Add A New Database or Destination To An Existing Gateway Configuration (Doc ID 1304573.1)
    Regards,
    Mike
    Ah yes, we are in agreement, it was just semantics.  Thanks.

  • Making Application Database (SyBase, Oracle, MySql) Independent

    Hello Experts ,
    I am having an application running on SyBase DB and frontend is VB.NET. I would like to make it somehow databaseindependent. Means, I want somthing like on installation time if I specify Oracle then Oracle db to used else Mysql or else SyBase.
    Also, is there any solution for the coding too ? means, in case of ORACLE databse the relevent code to be installed on machine, in case of sybase only relevent code to be installed.
    I dont want all 3 codes to be installed on machine as it will lead to space problems.
    Please send me links , docs at [email protected]
    Warm Greeting to all of you.

    There are a couple of question here,
    Does the application is installed on the same system of database?
    If yes, Does the Oracle and Sybase have been installed
    while Application is installing?
       If yes, then you can try to detect such database
    installation (different databases on different OS have
    different ways to find out DB installation)
       If no, there's no way your installation program can
    predict the DB of choice, user who perform installation must provide.
    If no, Does the server have DB specific client installed
    while Application is installing?
       If yes, then you can try to detect such database
    client installation (different databases on different OS
    have different ways to find out client installation)
       If no, there's no way your installation program can
    predict the DB of choice, user who perform installation must provide.

  • Encoding conversion issue on dblink (Oracle - Postgresql)

    I have sucessfully setup a dblink from Oracle to Postgresql.
    The Postgresql database use UTF-8 encoding for all its data.
    When I try this request SELECT * FROM "table"@Postgres , I receive this error :
    ORA-00942: Table ou vue inexistante
    [Generic Connectivity Using ODBC]DRV_DescribeTable: DB_ODBC_RECORD (1093): ; ERREUR:  le caractère 0xc5a1 du codage « UTF8 » n'a pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL Code: 1)
    ORA-02063: précédant 2 lines de RECORD
    00942. 00000 -  "table or view does not exist"
    *Cause:   
    *Action:
    Erreur à la ligne 2, colonne 5How can I get rid off of this error ?

    Do you get the same problem for all tables or if you run the select as -The problem is raised only on some tables not all.
    select * from "owner"."tablename"@hsodbc ;On a failing select, adding the "owner" doesn't solve the problem.
    Are there any error sin the trace file and if so could you post them here ?I perform this query : select * from "owner"."table"@POSTGRE
    Here are the traces :
    Oracle Corporation --- MONDAY    FEB 27 2012 16:21:54.959
        Version 10.2.0.1.0
    hoagprd (2): ; hoagprd Entered.
    HOACONN.C (244): ; [Generic Connectivity Using ODBC] version: 4.6.2.0.0070
    HOACONN.C (295): ; Class version: 200
    hoagprd (2): ; hoagprd Exited with retcode = 0.
    hoainit (3): ; hoainit Entered.
    (0): ; connect string is: defTdpName=Postgre;SYNTAX=(ORACLE8_HOA,
    BASED_ON=ORACLE8, IDENTIFIER_QUOTE_CHAR="",
    CASE_SENSITIVE=CASE_SENSITIVE_QUOTE);BINDING=<navobj><binding><datasources><da-
    tasource name='Postgre' type='GENERIC_ODBC_FOR_HS'
    connect='Postgre'><driverProperties/></datasource></datasources><remoteMachines-
    /><environment><optimizer noFlattener='true'/><misc year2000Policy='-1'
    consumerApi='1' sessionBehavior='4'/><queryProcessor parserDepth='2000'
    tokenSize='1000' noInsertParameterization='true'
    noThreadedReadAhead='true'
    noCommandReuse='true'/><debug
    generalTrace='true'/></environment></binding></navobj>
    ORACLE GENERIC GATEWAY Log File Started at 2012-02-27T16:21:54
    hoainit (3): ; hoainit Exited with retcode = 0.
    hoalgon (7): ; hoalgon Entered. name = rec_lct.
    Created new ODBC connection (136751296)
    hoalgon (7): ; hoalgon Exited with retcode = 0.
    hoaulcp (4): ; hoaulcp Entered.
    hoaulcp (4): ; hoaulcp Exited with retcode = 0.
    hoauldt (5): ; hoauldt Entered.
    hoauldt (5): ; hoauldt Exited with retcode = 0.
    hoabegn (9): ; hoabegn Entered. formatID = 306206, hoagttln = 29, hoagttid =
    PDELTAA.286b8407.4.69.1747760, hoagtbln = 10, hoagtbid = ^D, tflag = 0, initial
    = 1
    hoabegn (9): ; hoabegn Exited with retcode = 0.
    hoadtab (26): ; hoadtab Entered. count = 1
    hoadtab (26): ; schema_name = owner, table_name = table
    odbc_owner: select * from "owner"."table"
    DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du codage « UTF8 » n'a
    pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL Code: 1)
    DRV_DescribeTable: DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du
    codage « UTF8 » n'a pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL
    Code: 1)
    nvRETURN (drv_priv.c 948): -2202
    hoadtab (26): ; hoadtab Exited with retcode = 0.
    hoapars (15): ; hoapars Entered. stmtType = 0, id = 1.
    nvOUT (qp_sqtxt.c 55): SELECT * FROM "owner"."table"
    nvRETURN (qpsynon.c 1140): -1
    odbc_owner: select * from "owner"."table"
    DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du codage « UTF8 » n'a
    pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL Code: 1)
    DRV_DescribeTable: DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du
    codage « UTF8 » n'a pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL
    Code: 1)
    nvRETURN (drv_priv.c 948): -2202
    [A00D] Failed to open table Postgre:owner.table
    nvRETURN (qpbldbtn.c 502): -2202
    nvRETURN (qpbldbtn.c 382): -2202
    nvRETURN (qp_seman.c 3153): -2202
    nvRETURN (qp_yacc.c 1930): -2202
    nvRETURN (qp_compl.c 515): -2202
    nvRETURN (qp_compl.c 232): -2202
    nvRETURN (qp_compl.c 200): -2202
    hoapars (15): ; hoapars Exited with retcode = 942.
    hoadtab (26): ; hoadtab Entered. count = 1
    hoadtab (26): ; schema_name = owner, table_name = table
    odbc_owner: select * from "owner"."table"
    DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du codage « UTF8 » n'a
    pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL Code: 1)
    DRV_DescribeTable: DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du
    codage « UTF8 » n'a pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL
    Code: 1)
    nvRETURN (drv_priv.c 948): -2202
    hoadtab (26): ; hoadtab Exited with retcode = 0.
    hoapars (15): ; hoapars Entered. stmtType = 0, id = 1.
    nvOUT (qp_sqtxt.c 55): SELECT * FROM "owner"."table"
    odbc_rec: select * from "owner"."table"
    DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du codage « UTF8 » n'a
    pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL Code: 1)
    DRV_DescribeTable: DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du
    codage « UTF8 » n'a pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL
    Code: 1)
    nvRETURN (drv_priv.c 948): -2202
    [A00D] Failed to open table Postgre:owner.table
    nvRETURN (qpbldbtn.c 502): -2202
    nvRETURN (qpbldbtn.c 382): -2202
    nvRETURN (qp_seman.c 3153): -2202
    nvRETURN (qp_yacc.c 1930): -2202
    nvRETURN (qp_compl.c 515): -2202
    nvRETURN (qp_compl.c 232): -2202
    nvRETURN (qp_compl.c 200): -2202
    hoapars (15): ; hoapars Exited with retcode = 942.

  • Comparison of Oracle, MySQL and PostgreSQL DBMS

    Hi,
    Wanted to share this article:
    http://www-css.fnal.gov/dsg/external/freeware/mysql-vs-pgsql.html
    Regards,
    Priyanka

    thanks for the link. i wonder how they determined
    the % of installations though.
    anyone know?Very approximately it would seem. They quote market share as of July 1 2004 showing MySQL at 33%, the same numbers are on the MySQL site.
    SQL Server with 78%, Oracle - 55%, MySQL - 33% and PostgreSQL - 8%.
    While this story from June 4 2004 quoting IDC research has the Market shares for 2003 at
    http://www.internetnews.com/stats/article.php/3363801
    Oracle garnered 39.8 percent of the market for software that helps users retrieve and store information, with IBM nabbing 31.3 percent and Microsoft grabbing 12.1, ... open source database leader MySQL's market share is a negligible one-tenth of 1 percent now
    And I'm sure a bit more googling could throw up even more wildly different numbers.
    Like this more recent Gartner survey for 2005
    http://www.forbes.com/markets/2006/05/25/oracle-0525markets13.html
    According to the Gartner study, Oracle (nasdaq: ORCL - news - people ) enjoys about 50% of the total RDBMS market
    This would be nice if Oracle ever implemented it,
    Oracle: Yes. ON DELETE CASCADE supported
    PostgreSQL: Yes. ON DELETE CASCADE and ON UPDATE CASCADE supported. Message was edited by:
    3360
    I never noticed that the quoted numbers don't even add up to 100% percent so it is not really market share.

  • Dblink oracle to postgres with dg4odbc | ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line

    Hi, i'm trying to create database link from a database Oracle 11g to PostgreSQL with DG4ODBC, and unixODBC
    my configured to /etc/odbc.ini
    [PostgreSQL]
    Description = Test to Postgres
    Driver = psqlodbc
    Trace = Yes
    TraceFile = /tmp/sql.log
    Database = danieldb
    Servername =
    UserName = SA
    Password = password
    Port = 5432
    Protocol = 6.4
    ReadOnly = No
    RowVersioning = No
    ShowSystemTables = No
    ShowOidColumn = No
    FakeOidIndex = No
    my configured to /etc/odbcinst.ini
    [ODBC]
    CommLog=1
    Debug=1
    FileUsage=1
    Pooling=No
    Trace=1
    [psqlodbc]
    Description=PostgreSQL ODBC driver
    Driver=/usr/lib64/psqlodbcw.so
    CommLog=1
    Debug=0
    FileUsage=1
    my configured to /u01/app/oracle/product/11.2.0/xe/hs/admin/initPostgreSQL.ora
    HS_FDS_CONNECT_INFO = PostgreSQL
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbcpsql.so
    set ODBCINI=/etc/odbc.ini
    my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
    Listener =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
    SID_LIST_LISTENER =
            (SID_LIST =
                    (SID_DESC=
                            (SID_NAME=PostgreSQL)
                            (ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe)
                            (PROGRAM=dg4odbc)
                            (ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/xe/lib")
    my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/tnsname.ora
    PostgreSQL=
            (DESCRIPTION =
                    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
                    (CONNECT_DATA =
                            (SID = PostgreSQL)
                    (HS = OK)
    i'm try to created public database link :
    CREATE PUBLIC DATABASE LINK "orapos" CONNECT TO "SA" IDENTIFIED BY "password" USING 'PostgreSQL';
    when i used tnsping
    [root@oracle-poc admin]# tnsping PostgreSQL
    TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 16-MAY-2013 20:34:19
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/xe/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521)) (CONNECT_DATA = (SID = PostgreSQL)) (HS = OK))
    OK (0 msec)
    and last i try to use the database link :
    SQL> select * from "tabel2"@orapos
      2  ;
    select * from "tabel2"@orapos
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from ORAPOS
    Whats wrong with my configuration??
    Thank you and best regards,
    Daniel

    Mike,
    yes i've downloaded the ODBC driver manager..
    for HS_FDS_SHAREABLE_NAME i use /usr/lib/psqlodbc.so
    and i get this error when i call the db link(orpos)
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from ORAPOS
    for HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbcw.so
    and i get this error when i call the db link(orpos)
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    c
    and when i used isql isql to call DNS(PostgreSQL) is success
    whats wrong with my config?
    about PostGres ODBC did you mean postgresql-odbc-08.04.0200-1.el6.x86_64 ??
    Thank you and best regards,
    Daniel

  • DBLink Oracle - PostgreSQL

    Hello,
    any ideas on this type of error?
    ERROR at line 1:
    ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oradb3)(
    PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=UMAPLINK)))
    ORA-02063: preceding line from UMAPLINK
    Process ID: 870
    Session ID: 272 Serial number: 27677
    is there any thing else you like me to add?

    sorry again it took some time to response
    here is the current situation
    when I do
    SQL> select * from [email protected];
    select * from [email protected]
    ERROR at line 1:
    ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oradb3)(
    PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=UMAPLINK)))
    ORA-02063: preceding line from UMAPLINK
    Process ID: 31918
    Session ID: 93 Serial number: 83
    here is the trace file
    Oracle Corporation --- FRIDAY JAN 27 2012 09:16:34.880
    Heterogeneous Agent Release
    11.2.0.2.0
    Oracle Corporation --- FRIDAY JAN 27 2012 09:16:34.848
    Version 11.2.0.2.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "UMAPLINK"
    Product-Info:
    Port Rls/Upd:2/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.2.0_0008, Instance:UMAPLINK
    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 not specified
    LANG=en_US.UTF-8
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2012/01/27-09:16:35
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libodbc.so"
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLAllocHandle
    symbol_peflctx=0xef0083c0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLBindCol
    symbol_peflctx=0xef008450
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLBindParameter
    symbol_peflctx=0xef008c10
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLCancel
    symbol_peflctx=0xef009e80
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLDescribeParam
    symbol_peflctx=0xef0118f0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLDisconnect
    symbol_peflctx=0xef011d90
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLEndTran
    symbol_peflctx=0xef014590
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLExecute
    symbol_peflctx=0xef015a40
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLFetch
    symbol_peflctx=0xef016240
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLFreeHandle
    symbol_peflctx=0xef017c60
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLFreeStmt
    symbol_peflctx=0xef017c80
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLGetData
    symbol_peflctx=0xef019380
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLGetEnvAttr
    symbol_peflctx=0xef01c520
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLGetFunctions
    symbol_peflctx=0xef01c8c0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLMoreResults
    symbol_peflctx=0xef01e360
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLNumResultCols
    symbol_peflctx=0xef01efb0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLParamData
    symbol_peflctx=0xef01f2b0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLPutData
    symbol_peflctx=0xef0210e0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLRowCount
    symbol_peflctx=0xef0214b0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLSetEnvAttr
    symbol_peflctx=0xef022ff0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLSetDescRec
    symbol_peflctx=0xef022e40
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLColAttribute
    symbol_peflctx=0xef00a4a0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLColumns
    symbol_peflctx=0xef00bc40
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLConnect
    symbol_peflctx=0xef00f550
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLDescribeCol
    symbol_peflctx=0xef0111b0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLDriverConnect
    symbol_peflctx=0xef012920
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLExecDirect
    symbol_peflctx=0xef0154d0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLForeignKeys
    symbol_peflctx=0xef016b60
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLGetConnectAttr
    symbol_peflctx=0xef017fd0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLGetDescField
    symbol_peflctx=0xef0199e0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLGetDescRec
    symbol_peflctx=0xef019ea0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLGetDiagField
    symbol_peflctx=0xef01b080
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLGetDiagRec
    symbol_peflctx=0xef01bcc0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLGetInfo
    symbol_peflctx=0xef01cb00
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLGetStmtAttr
    symbol_peflctx=0xef01d500
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLGetTypeInfo
    symbol_peflctx=0xef01dfc0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLPrepare
    symbol_peflctx=0xef01f9e0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLPrimaryKeys
    symbol_peflctx=0xef01fef0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLProcedureColumns
    symbol_peflctx=0xef0204a0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLProcedures
    symbol_peflctx=0xef020b30
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLSetConnectAttr
    symbol_peflctx=0xef0217a0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLSetStmtAttr
    symbol_peflctx=0xef024350
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLSetDescField
    symbol_peflctx=0xef022b60
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLStatistics
    symbol_peflctx=0xef0258f0
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Entered hgolofns at 2012/01/27-09:16:35
    libname=/usr/lib64/libodbc.so, funcname=SQLTables
    symbol_peflctx=0xef026580
    hoaerr:0
    Exiting hgolofns at 2012/01/27-09:16:35
    Exiting hgolofn, rc=0 at 2012/01/27-09:16:35
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2012/01/27-09:16:35
    hostmstr: 0:      HOA After hoainit
    hostmstr: 0:      HOA Before hoalgon
    Entered hgolgon at 2012/01/27-09:16:35
    reco:0, name:content_ro_user, tflag:0
    Entered hgosuec at 2012/01/27-09:16:35
    Exiting hgosuec, rc=0 at 2012/01/27-09:16:35
    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 content_ro_user as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2012/01/27-09:16:35
    HS_FDS_CONNECT_INFO = "UMAPLINK"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2012/01/27-09:16:35
    dsn:UMAPLINK, name:content_ro_user
    optn:
    Entered hgocip at 2012/01/27-09:16:35
    dsn:UMAPLINK
    Exiting hgocip, rc=0 at 2012/01/27-09:16:35
    ##>Connect Parameters (len=47)<##
    ## DSN=UMAPLINK;
    #! UID=content_ro_user;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2012/01/27-09:16:35
    Entered hgopoer at 2012/01/27-09:16:35
    hgopoer, line 231: got native error 0 and sqlstate 01000; message follows...
    [unixODBC][Driver Manager]Driver does not support the requested version {01000}
    Exiting hgopoer, rc=0 at 2012/01/27-09:16:35
    hgocont, line 2687: calling SqlDriverConnect got sqlstate 01000
    Entered hgolosf at 2012/01/27-09:16:35
    ODBC Function-Available-Array 0xFFFE 0x00FF 0xFF00 0xFA7F 0x03B2 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 0xA400 0x114C
    Exiting hgolosf, rc=0 at 2012/01/27-09:16:35
    DriverName:libpsqlodbc.so, DriverVer:07.01.0003
    DBMS Name:PostgreSQL, DBMS Version:07.01.0003 PostgreSQL 9.1.2 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6), 64-bit
    Exiting hgocont, rc=0 at 2012/01/27-09:16:35 with error ptr FILE:hgocont.c LINE:2687 FUNCTION:hgocont() ID:SQLDriverConnect
    Entered hgopoer at 2012/01/27-09:16:35
    hgopoer, line 231: got native error 209 and sqlstate HYC00; message follows...
    [unixODBC]Unrecognized key passed to SQLGetInfo. {HYC00,NativeErr = 209}
    Exiting hgopoer, rc=0 at 2012/01/27-09:16:35
    hgolgon, line 804: calling SQLGetInfo got sqlstate HYC00
    SQLGetInfo returns N for SQL_CATALOG_NAME
    Exiting hgolgon, rc=0 at 2012/01/27-09:16:35 with error ptr FILE:hgolgon.c LINE:804 FUNCTION:hgolgon() ID:GetInfo: Support catalogs
    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 2012/01/27-09:16:35
    Entered hgowlst at 2012/01/27-09:16:35
    Exiting hgowlst, rc=0 at 2012/01/27-09:16:35
    SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
    TXN Capable:2, Isolation Option:0x2
    SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 32 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
    SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns N for SQL_COLUMN_ALIAS
    4 instance capabilities will be uploaded
    capno:1964, context:0x00000000, add-info: 0
    capno:1989, context:0x00000000, add-info: 0
    capno:1991, context:0x00000000, add-info: 0
    capno:1992, context:0x0001ffff, add-info: 0
    Exiting hgoulcp, rc=0 at 2012/01/27-09:16:35
    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 2012/01/27-09:16:35
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2012/01/27-09:16:35
    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 2012/01/27-09:16:35
    tflag:0 , initial:1
    hoi:0x9c9098a8, ttid (len 39) is ...
    00: 55494343 44422E46 494E4445 58412E4E [UICCDB.COM.N]
    10: 45542E35 33656336 6562392E 31312E32 [ET.53ec6eb9.11.2]
    20: 342E3132 343832 [4.12482]
    tbid (len 36) is ...
    00: 55494343 44422E46 494E4445 58412E4E [UICCDB.COM.N]
    10: 45545B31 312E3234 2E313234 38325D5B [ET[11.24.12482][]
    20: 312E345D [1.4]]
    Exiting hgobegn, rc=0 at 2012/01/27-09:16:35
    hostmstr: 0:      HOA After hoabegn
    hostmstr: 0: RPC After Begin Trans
    hostmstr: 0: RPC Before Describe Table
    hostmstr: 0:      HOA Before hoadtab
    Entered hgodtab at 2012/01/27-09:16:35
    count:1
    table: COMPAZ_CONTENT_VW
    Allocate hoada[0] @ 0x143d290
    Free hoada[0] @ 0x143d290
    SQL text from hgodtab, id=0, len=33 ...
    00: 73656C65 6374202A 2066726F 6D202243 [select * from "C]
    10: 4F4D5041 5A5F434F 4E54454E 545F5657 [OMPAZ_CONTENT_VW]
    20: 22 ["]
    Entered hgodscr_process_sellist_description at 2012/01/27-09:16:35

  • Dblink mysql 5

    I have installed a dblink to mysql database. Using this dblink I can access to the tables but only to the numeric fields!
    if you have solution to my problem please help me
    thanks
    I use:
    - orable 9.2 and mysql 5.1

    Error No 1:
    using the following sql statement(SELECT ID1, NAME, LASTNAME FROM CUSTOMER@DLINK1) with
    or without surrounding field names with double or single quotes and with or without using
    table and column aliases produces the coming error in short and statement fails to return
    any data :
    {Error encountered ORA-00904 : "FIELD NAME": invalid identifier}
    using the following sql statement(SELECT * FROM CUSTOMER@DLINK1) with or without using
    table aliases produces the coming results :
    Returns only the data from the integer typed field(ID1).
    Error No 2:
    Suppose the table trying to access its data has the following layout:
    oracle database link name : DLINK1
    table name : customer
    fields     : name -> varchar(30), lastname -> varchar(40)
    using the following sql statement(SELECT ID1, NAME, LASTNAME FROM CUSTOMER@DLINK1) with
    or without surrounding field names with double or single quotes and with or without using
    table and column aliases produces the coming error in short and statement fails to return
    any data :
    {Error encountered ORA-00942 : table or view does not exist }
    The same is true for the following sql statement : (SELECT * FROM CUSTOMER@DLINK1)solution:
    change the character set settings to "utf8" of mysql odbc driver
    through "Details -> Misc Options"
    refer: http://bugs.mysql.com/bug.php?id=47680

  • Creating a DB link between mySQL and Oracle

    How can I create a dblink in mySQL to view the data in an Oracle 10g table?
    Thanks
    Roald

    Roald.vandenBerg wrote:
    How can I create a dblink in mySQL to view the data in an Oracle 10g table?
    Thanks
    Roaldheterogeneous services;

  • Oracle 9i to access MySQL

    Hello ,
    I need to set up HS on Oracle 9i to access MySQL.
    Could you post some link with example doing this or some material I should read ?
    Both servers are linux. Is there a way to do this without unixODBC or iODBC, just direct link Oracle - MySQL ?
    Thanks in advance,
    Asen

    First of all I would suggest to just add to an existing listener.ora file the HSODBC SID.
    The listener is configured in $OH/network/admin using listener.ora.
    Make sure you correct the path names and the SID section looks like:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /home/oracle/oracle/product/9i)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = mysql)
    (ORACLE_HOME = /home/oracle/oracle/product/9i) (ENVS=LD_LIBRARY_PATH=/home/oracle/oracle/product/9i/lib:/home/odbc/mysql/unixODBC/lib:/home/odbc/mysql/lib)
    (PROGRAM = hsodbc)
    Then STOP and START the listener.
    COMMENT:
    LD_LIBRARY_PATH includes the $ORACLE_HOME/lib, the UnixODBC library and the MySQL library directory.
    The tnsnames.ora entry is also similar to the note:
    mysql =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = linux.de.oracle.com)(PORT = 1521))
    (CONNECT_DATA =
    (SID = mysql)
    (HS=OK)
    My initmysql.ora file located in $OH/hs/admin looks like:
    HS_FDS_CONNECT_INFO = mysql
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_SHAREABLE_NAME = /home/odbc/mysql/unixODBC/lib/libodbc.so
    HS_FDS_CONNECT_PROPERTIES="disableExtendedFetch='true'"
    set ODBCINI=/etc/odbc.ini
    COMMENT:
    The HS_FDS_SHAREABLE_NAME points to the unixODBC driver manager libodbc.so
    So more detailed to your update:
    I have the sample .ora files in $ORACLE_HOME/hs/admin but I was unable to get it working.
    => just copy the relevant SID section from my posting above or from the sample listener.ora file located in $OH/hs/admin to the listener.ora located in $OH/network/admin
    Which .ora files should I edit? Those in $ORACLE_HOME/network/admin/ or to add such files in the $ORACLE_HOME/hs/admin?
    The listener and tnsnames is by default located in $OH/network/admin.
    Should I input the lines for the SID & LISTENER for the new HS Service in the current lists in listener.ora or I should only paste the adapted listener.ora from the manual you posted at the end of the current listener.ora?
    Depends on what you prefer.
    If you want a separate listener for HSODBC, then you have to define a complete new listener entry in your listener.ora file. If you prefer only one listener, then just add the SID section to the existing listener.ora
    In either ways I get error. If I add the adjusted template from the manual at the end of the file, I get: TNS-01201: Listener cannot find executable …. for SID …. .
    => Post your config and I'll have a look.

  • Configure HS talk to mysql through ODBC

    Hello
    Running 10g rel2 on Linux 64bit. Need to dblink to mysql 5.
    Configured:
    /etc/odbc.ini
    [myodbc]
    Driver = /usr/lib64/libmyodbc.so
    Description = MyODBC 2.50 Driver DSN
    SERVER = 209.71.254.40
    PORT = 3306
    USER = posman
    Password = posman
    Database = poseidon
    OPTION = 0
    SOCKET =
    Listener.ora
    (SID_DESC=
    (PROGRAM=hsodbc)
    (SID_NAME=myodbc3)
    (ORACLE_HOME=/opt/oracle/product/10.2.0/rtbrs3)
    (ENVS=LD_LIBRARY_PATH = /opt/oracle/product/10.2.0/rtbrs3/lib32:/lib:/usr/lib64)
    Tnsnames.ora
    HSODBC =
    (DESCRIPTION=
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = everest.ca)
    (PORT = 1521)
    (CONNECT_DATA =
    (SID= myodbc3)
    (HS=OK)
    inintmyodbc3.ora
    HS_FDS_CONNECT_INFO = myodbc3
    HS_FDS_TRACE_LEVEL = off
    When I do tnsping HSODBC is works.
    I create the DBLINK and that works.
    I test the dblink and it fails with
    SQL> select * from "emp"@testdb;
    select * from "emp"@testdb
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from TESTDB
    Please help

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

Maybe you are looking for

  • Iphone 5 and 5s visual voicemail and call forwarding problems in UK

    Hi I am in the UK on a monthly pay 4G package with O2 with my iphone 5S. Every two or three days, visual voicemail switches off saying there is an error with visual voicemail. When this happens, voicemails are left for me, but the caller does not hea

  • How do I create an emergency stop custom control in LabVIEW that looks like an actual E-stop button

    How can I find (or buy) a variety of custom controls for various applications that look better than the standard NI controls.

  • FRM-92100 Jacob / Quit Word.

    When using jacob to quit a Word document I'm getting an error as follows: The error message is as follows: FRM-92100: Your connection to the Server was interrupted. Details: Java Exception: com.jacob.com.ComFailException: A COM exception has been enc

  • Commission agent issue

    Hi guys,     Can any one hlep me out,my cleints wantss us to add comison agent for evey order, how exactly we need to map this scenario in partner function determination. Thanks

  • Package not found javax.sql.*

    Hi I'm trying to import the following and compile. It prompts me package not found for javax.sql.* ? Any idea what is going wrong ? Thanks. import java.io.*; import java.sql.*; import java.util.*; import javax.sql.*; import javax.naming.*;