Accessing mysql database from oracle using dg4odbc

I've been trying to create a database link from a MySQL database to Oracle using the Oracle dg4odbc gateway. I downloaded and installed DataDirect's ODBC package which includes mysql ODBC library (ddmysql24.so) and a generic ODBC libary (libodbc.so). After creating the DSN in odbc.ini, I tested it and it can connect to the mysql database. Then I created the init{SID}.ora file in hs/admin directory, added dg4odbc lines in the listener.ora, and added lines in tnsnames.ora. Then I tnspinged the new SID with success. Finally, I created the database link. However, when I tried to access the database link using the commands "select * from mdl_user@moodle;", I got the ORA-28500 error like the following:
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[DataDirect][ODBC 20101 driver][20101]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 '"mdl_user"' at line 1
ORA-02063: preceding 2 lines from MOODLE
My mysql database is utf8 by default. Do I have to use latin1?
It seems to me that the dg4odbc translates the sql commands incorrectly (having double quotes around the selected table).
Any help is greatly appreciated.
Jeffrey

The syntax error occures for example when MySQL isn't running in ANSI mode and thus does not allow double quotes around the objects. DG4ODBC 11.1.0.6 by default always adds double quotes to table/column/view names.
A quick test to check if you hit the double quote issue would be to set the MySQL DB into ANSI mode:
- Open SQL*Plus
- execute:
DECLARE
ret integer;
c integer;
BEGIN
c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@moodle;
DBMS_HS_PASSTHROUGH.PARSE@moodle(c, 'SET SESSION SQL_MODE=''ANSI_QUOTES'';');
ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@moodle(c);
dbms_output.put_line(ret ||' passthrough output');
DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@moodle(c);
END;
- Now run your select statement
=> if it now works, you can permanently change the MySQL config to be ANSI compliant or you can apply the 11.1.0.7 patchset to DG4ODBC.

Similar Messages

  • Access remote MonetDB from Oracle using ODBC

    Hello,
    I really need your help, I have been trying for more that one week to figure out what is the problem without success
    Here is the details of my problem:
    I have oracle  11g installed on machine1 (ubuntu 64bit) , and I have MonetDB installed on machine2 (ubuntu 64bit, ip= 192.168.56.101)
    I need to access MonetDB database from oracle.
    I followed the configurations steps but I get always the following error:
    select "id" from "test"@monetdb;
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [unixODBC][MonetDB][ODBC Driver 11.11.11]Client unable to establish connection
    {08001}
    ORA-02063: preceding 2 lines from MONETDB
    I installed unixODBC on the machine1 and I used MonetDB ODBC driver which generates the following odbc.ini file
    [monetdb]
    Description = MonetDB
    Driver = /usr/lib64/libMonetODBC.so
    Host = 192.168.56.101
    Port = 50000
    Database = demo
    User = monetdb
    Password = monetdb
    Debug =
    Here are my configurations:
    tnsnames.ora:
    monetdb =
       (DESCRIPTION =
          (ADDRESS =
             (PROTOCOL = TCP)
             (HOST =localhost)
             (PORT =1521)
          (CONNECT_DATA =
             (SID=monetdb))
          (HS = OK))
    Listner.ora
    SID_LIST_LISTENER=
       (SID_LIST=
          (SID_DESC=
             (SID_NAME=monetdb)
             (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
             (PROGRAM=dg4odbc)
             (ENVS=LD_LIBRARY_PATH=/usr/lib64:$ORACLE_HOME/lib)
    In $ORACLE_HOME/hs/admin I created the file initmonetdb.ora
    HS_FDS_CONNECT_INFO=monetdb
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
    HS_LANGUAGE=american_america.we8iso8859p1
    set ODBCINI=/etc/odbc.ini
    when I do lsnrctl start i get the following
    Log messages written to /u01/app/oracle/diag/tnslsnr/OracleUbuntu/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    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                26-OCT-2013 01:32:37
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/OracleUbuntu/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "monetdb" has 1 instance(s).
      Instance "monetdb", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    any ideas why I get this error??
    Regards
    Baraa

    Hi,
    Firstly, try to configure your gateway listener on another port than 1521 as it is the default one for database. Don't forget to change also the port in TNSNAMES.ORA.
    Then use the host machine or ip address rather than the local host in the LISTENER.ORA and TNSNAMES.ORA.
    Avoid to use  $ORACLE_HOME in the ENVS from LISTENER.ORA but use a complete PATH.
    Then test your ODBC connection outside Oracle. What is the result?
    Try to get result of the following commands on the Oracle machine1 :
    $cd /usr/bin
    $./odbcinst -q -d
    $./odbcints -q -s
    Change parameter in gateway init file:
    HS_FDS_TRACE_LEVEL=DEBUG
    Execute your SELECT statement:
    select "id" from "test"@monetdb;
    Get the gateway trace file in /u01/app/oracle/product/11.2.0/dbhome_1/hs/log and send us
    Thanks
    Regards,
    Mireille MEGE

  • 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

  • Accessing mySQL database from Labview PDA

    Hi,
    Has anyone tried writing data to a mySQL database or any other database for that matter using the Labview PDA module?  I know it's easy to do from Labview and you have to download the ODBC drivers to get it working but I don't think these drivers are available for Windows Mobile (I've seen XP and Linux drivers only).  Any help would be appreciated.
    Thanks

    Hello,
    I don't have experience with this, but you might look into the following:
    1. remote connections: http://www.geekzone.co.nz/content.asp?contentid=2656
    2. this thread seems to indicate .NET doesn't support it yet (but it's over a year old...): http://forums.mysql.com/read.php?38,73109,73109
    3. Another option - you can use VI Server to have your PDA VI call a VI on your host machine if they are networked... there is an example of this that ships with LabVIEW PDA I think - check it out!  Thus, if the db is on your host machine, you could write your host VI, and have your PDA VI call it etc.
    I hope this helps!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Error accessing mysql database from a remote host

    Hi all,
    I'm running the following PL/SQL script and encountered some errors. The MySQL server is hosted off campus by a hosting company. However, when I run the same script against a MySQL database server hosted on campus, the script works fine. Here's the error:
    ERROR at line 3:
    ORA-04052: error occurred when looking up remote object
    cmswhit_odbc13.mdl_user@RLTEST
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [MySQL][ODBC 5.1 Driver][mysqld-4.1.22-standard]SELECT command denied to user
    'cmswhit_odbc13'@'192.160.216.13' for table 'mdl_user'
    ORA-02063: preceding 2 lines from RLTEST
    Here's the script:
    sqlplus -s <<endofit
    $USERPASS
    set serveroutput on;
    DECLARE
    user_name varchar2(30);
    moo_user_name varchar2(300);
    routine VARCHAR2(40);
    cntr NUMBER(8);
    CURSOR read_saradap is
    select gobtpac_external_user
    from gobtpac
    where gobtpac_external_user in ('greenup','yfeng');
    CURSOR read_mdl_user is
    select "username" from "mdl_user"@rltest where "username" = user_name;
    -- E N D O F C U R S O R S --
    BEGIN
    dbms_output.enable(1000000000);
    -- STEP 1: Read through Banner
    cntr := 0;
    OPEN read_saradap;
    LOOP
    routine := 'Read applicant';
    -- Read an applicant record
    dbms_output.put_line('Reading Banner user');
    FETCH read_saradap INTO user_name;
    EXIT WHEN read_saradap%NOTFOUND;
    dbms_output.put_line('Read Banner username=' || user_name);
    cntr := cntr + 1;
    -- Read the Moodle user;
    routine := 'Read moodle user';
    OPEN read_mdl_user;
    FETCH read_mdl_user INTO moo_user_name;
    IF read_mdl_user%NOTFOUND THEN
    dbms_output.put_line('Moodle user not found');
    ELSE
    dbms_output.put_line('Read Moodle username=' || moo_user_name);
    END IF;
    CLOSE read_mdl_user;
    END LOOP;
    rollback;
    CLOSE read_saradap;
    dbms_output.put_line('Total processed: ' || cntr);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(SQLCODE);
    dbms_output.put_line(SQLERRM);
    dbms_output.put_line('Error user=' || user_name);
    dbms_output.put_line(routine);
    END;
    EXIT;
    endofit

    The error seems to be quite clear: the user 'cmswhit_odbc13'@'192.160.216.13' lacks the SELECT privilege on the 'mdl_user' table...
    Max
    http://oracleitalia.wordpress.com

  • Accessing SQL Server from ORACLE using Transparent Gateway

    So I had downloaded the gateway installer and was following the guide here to set up the Transparent Gateway for SQL Server: http://www.orafusion.com/art_orahs.htm
    After I had created the database link, I was prompted the following error when trying to do a simple select statement from the SQL Server DB:
    >
    ORA-12154: TNS:could not resolve service name
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    *Action:  
    - If you are using local naming (TNSNAMES.ORA file):
    - Make sure that "TNSNAMES" is listed as one of the values of the
    NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
    (SQLNET.ORA)
    - Verify that a TNSNAMES.ORA file exists and is in the proper
    directory and is accessible.
    - Check that the net service name used as the connect identifier
    exists in the TNSNAMES.ORA file.
    - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
    file. Look for unmatched parentheses or stray characters. Errors
    in a TNSNAMES.ORA file may make it unusable.
    - If you are using directory naming:
    - Verify that "LDAP" is listed as one of the values of the
    NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    (SQLNET.ORA).
    - Verify that the LDAP directory server is up and that it is
    accessible.
    - Verify that the net service name or database name used as the
    connect identifier is configured in the directory.
    - Verify that the default context being used is correct by
    specifying a fully qualified net service name or a full LDAP DN
    as the connect identifier
    - If you are using easy connect naming:
    - Verify that "EZCONNECT" is listed as one of the values of the
    NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    (SQLNET.ORA).
    - Make sure the host, port and service name specified
    are correct.
    - Try enclosing the connect identifier in quote marks.
    Error at Line: 3 Column: 27
    >
    Here are my configuration files:
    initMSQL.ora
    >
    HS_FDS_CONNECT_INFO=webdatasvr:1433.InfoWeb
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    >
    listener.ora
    >
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC=
    (GLOBAL_DBNAME=UGCMAC)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (SID_NAME=UGCMAC)
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = MSQL)
    (ORACLE_HOME = C:\oracle\product\11.2.0\tg_1)
    (PROGRAM = dg4msql)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS LIST=
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1524))
    >
    tnsname.ora
    >
    UGCMAC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = UGCMAC)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    MSQL=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1524))
    (CONNECT_DATA =
    (SID = MSQL)
    (HS=OK)
    >
    Can anyone assist me? thanks!

    Hi kgronau,
    >
    After changing a listener.ora file you need to STOP and START the listener to get the changes loaded. It looks like your listener is not serving the 1524 port which could be related to the fact that you didn't stop/start the listener after you've edited the listener.ora file.
    ... But as stated earlier - please do not use a 10.2 listener to start an 11g gateway. Instead configure the listener of the gateway home.
    >
    I did restart my listener under services.msc whenever I make the changes but there are no effect. Please also note that I can only find "OracleOraDb10g_home1TNSListener" under my services.msc. There is no 11.2 Listener. I did install the gateway and the installation was successful as far as I can tell. But perhaps because there's no 11.2 Listerner under my services.msc, could that mean it was a bad installation?
    >
    Next point is the tnsping you've used is 11.2. You need to make sure that you use the tnsping of the Oracle Database home as the database initiates the gateway connection so the database home tnsnames,ora needs the tns entry for the gateway.
    >
    My current PATH environment variables setting is as follow: C:\oracle\product\11.2.0\tg_1\bin;C:\oracle\product\10.2.0\db_1\bin; So perhaps, I just need to ensure the 10.2 ORACE home is the first?
    >
    As a final tip: There are so many web sites explaining how to configure DG4ODBC - many of them are faulty. If you need a reliable configuration, please have a look at "My Oracle Support" => How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit to Connect to Non-Oracle Databases Post Install     [Document 466225.1]     )
    >
    Is there a link?
    Edited by: omnri on 21-Jul-2011 23:59

  • Can we access Oracle 10g R2 database from Oracle 11g Client

    Hi,
    Can any1 tell me can we access Oracle 10g R2 database from Oracle 11g Client ? I m unable to find a Oracle Client 10g R2 for Windows 7 32 bit.
    Below link is for Vista only
    http://www.oracle.com/technetwork/database/10203vista-087538.html

    832812 wrote:
    Hi,
    Can any1 tell me can we access Oracle 10g R2 database from Oracle 11g Client ? I m unable to find a Oracle Client 10g R2 for Windows 7 32 bit.
    Below link is for Vista only
    http://www.oracle.com/technetwork/database/10203vista-087538.html
    Check this note for client/server compatibility
    Client / Server / Interoperability Support Between Different Oracle Versions [ID 207303.1]

  • Is it possible to read a mySQL database from an ABAP report?

    We have some information stored in a mySQL database which is now required on ABAP reports.
    Is it possible to read the mySQL database from an ABAP report? I'm still a bit confused on that.
    So far I have setup DBCO with information about the mySQL server using MMS as the DBS because mySQL was not an option. I have made sure we have the latest dbmssslib.dll installed.
    When I try to run the following code
    EXEC SQL.
        CONNECT TO :con
    ENDEXEC.
    I get error: SQL Server does not exist or access denied.
    Then I have tried to connect using the function CHECK_CONNECTION_SDB.
    I get the following messages in the return table:
    1     OS-AppServ:Windows NT
    2     dbmcli_neg: no_client_software
    3     dbmrfc_c_neg: no_client_software
    4     dbmrfc_s_neg: no_client_software
    5     sql_neg
    6     work_proc: 1
    Does anyone know what I need to do to connect to the mySQL database.
    Thank you
    Karen

    Thank you for your reply. I've gone through all the documentation you sent and much more and I'm still not sure what the problem is.
    One thing that concerns me is that this all relates to MS SQL server and I'm trying to link to a mySQL database. Is this even possible?
    Some posts talk about changing Oracle settings and having J2EE installed. Is this necessary to connect to a mySQL database via ABAP?
    Which user should I enter into DBCO? Is it the mySQL server user or a SAP user? Does the person in charge of the mySQL database need to add any permissions for SAP to access the database or is that done by the user in DBCO?
    Does anyone have any more advice?
    Thank you
    Karen
    Also, does anyone know what the messages from the CHECK_CONNECTION_SDB function mean
    1 OS-AppServ:Windows NT
    2 dbmcli_neg: no_client_software
    3 dbmrfc_c_neg: no_client_software
    4 dbmrfc_s_neg: no_client_software
    5 sql_neg
    6 work_proc: 1
    Edited by: Karen Dean on Oct 6, 2009 4:44 AM

  • How do I connect to a DB2 database from Oracle 10G on linux?

    Hi
    I have tryed to connect to a DB2 database from oracle 10 G on linux.
    I have installed unixODBC and a db2 odbc driver. I can connect to the db2 using isql, but oracle comes with this error:
    select * from testtable@acc_spc_gr2
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]DRV_InitTdp: DB_ODBC_INTERFACE (718): ; [C077]
    Could not find symbol 'SQLAllocConnect' in dynamic library
    DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library
    '/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'
    ORA-02063: preceding 3 lines from ACC_SPC_GR2
    What am I doing wrong? Any one have a guide to do this?
    - Jesper

    this is my complete configuration
    Database_
    -bash-3.2$ export ORACLE_SID=XE
    -bash-3.2$ sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Mié Jul 7 10:04:43 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Conectado a:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Platform_
    Linux srvpdf 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:47:32 EDT 2009 i686 i686 i386 GNU/Linux
    */usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/initDB2DATABASE.init*
    #This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    #HS_FDS_CONNECT_INFO = ODBC_DSN
    HS_FDS_CONNECT_INFO = prueba
    HS_FDS_TRACE_FILE_NAME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/DB2DATABASE.log
    HS_FDS_CONNECT_INFO = DB2DATABASE
    #HS_FDS_TRACE_LEVEL = debug
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SHAREABLE_NAME = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
    # ODBC specific environment variables
    set ODBCINI=/etc/odbc.ini
    # Environment variables required for the non-Oracle system
    set DB2INSTANCE=is400
    listener.ora_
    # listener.ora Network Configuration File:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = DB2DATABASE)
    (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
    (PROGRAM =hsodbc)
    (ENVS = LD_LIBRARY_PATH = /opt/ibm/iSeriesAccess/lib:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.32)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.31)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    tnsnames.ora_
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = srvpdf)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    DB2DATABASE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost )(PORT=1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DB2DATABASE)
    (HS=OK)
    odbc.ini_
    [prueba]
    Description = iSeries Access ODBC Driver
    Driver = iSeries Access ODBC Driver
    System = xxx.xx.3.2
    UserID = xxxxxx
    Password = xxxxxx
    Naming = 0
    DefaultLibraries = QGPL
    Database = CHERRYWEB
    ConnectionType = 0
    CommitMode = 2
    ExtendedDynamic = 0
    DefaultPkgLibrary = QGPL
    DefaultPackage = A/DEFAULT(IBM),2,0,1,0,512
    AllowDataCompression = 0
    MaxFieldLength = 32
    BlockFetch = 1
    BlockSizeKB = 128
    ExtendedColInfo = 0
    LibraryView = 0
    AllowUnsupportedChar = 0
    ForceTranslation = 0
    Trace = 0
    odbcinst.ini_
    [PostgreSQL]
    Description = ODBC for PostgreSQL
    Driver = /usr/lib/libodbcpsql.so
    Setup = /usr/lib/libodbcpsqlS.so
    FileUsage = 1
    [iSeries Access ODBC Driver]
    Description = iSeries Access for Linux ODBC Driver
    Driver = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
    Driver64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
    Setup = /opt/ibm/iSeriesAccess/lib/libcwbodbcs.so
    Setup64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
    UsageCount = 1
    CPTimeout =
    CPReuse =
    System = 172.18.3.2
    User = inf5mito
    Password = lonco3pue
    NOTE1 = If using unixODBC 2.2.11 or later and you want the 32 and 64-bit ODBC drivers to share DSN's,
    NOTE2 = the following Driver64/Setup64 keywords will provide that support.
    Threading = 2
    DontDLClose = 1
    ODBC Driver_
    -bash-3.2$ cd /opt/ibm/iSeriesAccess/lib
    -bash-3.2$ ls -ltr
    total 2260
    -r-xr-xr-x 1 root root 443939 Apr 5 2008 libcwbxda.so
    -r-xr-xr-x 1 root root 94504 Apr 5 2008 libcwbrc.so
    -r-xr-xr-x 1 root root 16636 Apr 5 2008 libcwbodbcs.so
    -r-xr-xr-x 1 root root 729572 Apr 5 2008 libcwbodbc.so
    -r-xr-xr-x 1 root root 998060 Apr 5 2008 libcwbcore.so
    and this is my error.
    SQL> /
    select from display@db2database*
    ERROR en línea 1:
    ORA-28500: la conexión de ORACLE a un sistema no Oracle ha devuelto este
    mensaje:
    *[Generic Connectivity Using ODBC][C077] Could not find symbol 'SQLAllocConnect'*
    in dynamic library
    *[C079] Failed to load dynamic library*
    *'/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'*
    ORA-02063: 3 lines precediendo a DB2DATABASE
    Edited by: user6669081 on 07-jul-2010 6:31

  • Accessing MySql database in jsp

    hi everyone!!!
    i m new to java with little knowledge of jsp.
    i want to access mysql database in jsp to develop a web page.
    i have jdk and mysql installed and these are working. what are other requirements and how to do this.
    plz help.
    OS: MS Windows XP/ Fedora 10

    Learn JDBC API: [http://java.sun.com/docs/books/tutorial/jdbc/index.html]. Create a DAO class which uses JDBC to interact with Java and takes or returns the desired data in form of DTO's. Use and test it as a plain vanilla Java application with a main() method. This require a JDBC driver (a concrete implementation of the JDBC API) in the classpath. MySQL offers JDBC drivers as download at their homepage, it is called "Connector/J".
    Once you got the JDBC part to work, create a Servlet class which holds an instance of the DAO class and uses its methods to interact with the database. In the doGet() you can place logic to preload data from the DAO class for display. In the doPost() you can place logic to process data for create, update or delete using the DAO class. Finally let it forward the request to a JSP.
    In the JSP you can use JSTL/EL to display data. For tabular view you may find the JSTL c:forEach useful. For plain display, just use EL the usual way.

  • How do we migrate Hyperion HFM/FDM database from Oracle to MS SQL?

    So I have this issue at hand and have ideas that I need to run by people with some expertise. I need to change the databases from Oracle to SQL in a completely new Hyperion installation. I am keeping the version 11.1.2.3 as is. No upgrades.
    So I am thinking, Install EPM from scratch into new environment.
    Then for HFM just use application copy utility.
    For FDM, copy the application file structure and then use SSMA tool to convert the database from Oracle to SQL then configure FDM to new database.
    I need to know if there is a better method than these.
    Thank you in advance.
    Gideon Seroney
    [email protected]

    HDM - Copy App Utility, DRM - Use the upgrade wizard should work across same version, FDM is more tricky is the no way you can access the original Oracle db from 11.1.2.3, if so then export everything from workbench.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • I can't connect to MySQL database from The JSP Standard Tag Library

    Hi All !
    I have a problem, please help me anybody !
    I don't connect to MySQL database from jsp page using JSTL tag but from servlet all work correctly. I set my path and put �mysql-connector-java-3.1.13-bin.jar� in ENVIRONMENT WinXP(classpath=C:\Java\jdk1.5.0_10\jre\lib\ext\mysql-connector-java-3.1.13-bin.jar) and in War project folder �WEB-INF/lib� and in [TomcatServer]\common\lib.
    I have in folder�WEB-INF/lib� following files:
    antlr.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-fileupload.jar
    commons-logging.jar
    commons-validator.jar
    jakarta-oro.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    mysql-connector-java-3.1.13-bin.jar
    standard.jar
    struts.jar
    I'm using:
    NetBeans 5.5 Build200610171010 (bundled Tomcat 5.5.17)
    Ent.Pack 20061020 Visual Wb Pack 061103
    OS WinXP SP2
    Java 1.5.0_10
    MySQL 5.0.18-nt
    1:<%@page contentType="text/html"%>
    2:<%@page pageEncoding="UTF-8"%>
    8: <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    9: <%@taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>
    10:
    11: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    12: "http://www.w3.org/TR/html4/loose.dtd">
    13:
    14: <sql:setDataSource var="ds"
    15: driver="com.mysql.jdbc.Driver"
    16: url="jdbc:mysql://localhost:3306/test"
    17: user="root"
    18: password="xxxx"/>
    19:
    20:
    21:<sql:query sql="select name, age from People" var="res"
    22: dataSource="${ds}"/>
    I have received report on mistake when entered code at the top:
    �/index.jsp [21;0] According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions�
    I used instead of (dataSource="${ds}")->(dataSource="ds") but this did not work.
    After build and run I have received
    =========================================START=================================
    HTTP Status 500
    type Exception report:
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
    org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:955)
    org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)
    org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    =======================================END================================
    Error: "According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions" - but according to documentation such parameter possible.
    BUT WHEN JOINING With DATABASE FROM SERVLET ALL WORK FINE.
    I read this doc - [http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html], this applicable if I Tomcat Admin, but i'am not Admin
    I simply user, i.e. I want to place its database on virtual host (Tomcat+(JSP-JSTL)+MySQL).
    There is idea how can resolve this problem
    Thank you in advance ;)

    For all how have similar problem.
    Decision instead of these ways
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    it is necessary to indicate these
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

  • Trying to access 10gr2 database from sqlplus utility but it connects to 11g

    Hi All,
    I am facing below issue while access 10gr2 database from sqlplus.
    I am having two oracle homes on one server one belongs to 11gr2 and another belongs to 10gr2.
    I want to access a 10gr2 database through sqlplus utility.but instaed of connecting to 10gr2 it is connecting to 11gr2 after I enter a user name and passowrd.
    I have set all the env variables such as oracle_home ,oracle_sid and path with respect to Oracle 10gr2.
    Can you please let me kno what I need to do to connect to 10gr2 database and not 11gr2 database through sql plus.
    Let me know if I need to give any more details on this.
    Best Regards,
    Dipti S

    Hi Rocky,
    I got the resolution.
    I made a mistake by creating an oracle instance/service(e.g. fsdmo) when Oracle_home was pointing to 11gR2 Directory.so that service was refering to 11gr2 oracle home.
    hence when I was setting oracle_sid(fsdmo) and trying to access database instance from 11g sqlplus utility ,it was directing to 11g and not 10g since oracle service was pointing to 11g.
    So now after chnaging the oracle home directory to 11g,I am creating a service and its working fine.
    thank you so much for responding.
    hope I am clear with my reply.
    Best Regards,
    Dipti S

  • Upgrading the database from Oracle 8.0.6 to Oracle 9.2.0

    Dear SDN,
    We are in the process of upgrading SAP 4.6b to 4.7 R/3 Enterprise.
    Source Release:Windows 2000/Oracle 8.0.6/SAP 4.6b
    Target Release:Windows 2000/Oracle 9.2.0/SAP R/3 4.7
    Can anyone help us in explaining the procedure for upgrading the database from Oracle 8.0.6 to Oracle 9.2.0.
    Thanks n Regards ,
    Anantha Raman E.

    Thanks Mr.Mohan
        We tried to upgrade from 8.0.6 to 8.1.7 with the help of Inst Guides from service market place..the thing is we created another oracle home with new DBSID ither than the old DBSID...when we started the migration using 8.1.7 Data migration tool its not responding after the first phase CHECKING THE OLD DATABASE...
    Pls help us in this regard
    Whether we have to migrate or what...

  • Migrating Database from Oracle 8.0.5 for NT to Oracle 8.1.7 for Unix.

    Hello!
    Please help me in Migrating Database(Including Data,Stored
    Procdures, Views, Indexes,Forms, Triggers etc.) from Oracle 8.0.5 for NT to Oracle 8.1.7 for Unix.

    Check the installation option that you chose.
    Not all of the options will install a database.
    P.S.
    I have a similar problem on NT.
    Where I am able to access the database after the 8i Enterprise
    Install. I can not access the database from a Developer or
    Designer Installation. I am trying to run these tools locally.
    How do I configure NET8 to access the local 8i Database?
    Any ideas??
    Regards, Jim
    Emeka (guest) wrote:
    : I just installed the Oracle 8 Enterprise Edition for windows NT
    : and i can't find the Oracle database to support the tables.
    Also
    : the username and password of scott and tiger didn't work for
    the
    : SQL Plus.ERROR' ORA-12203: TNS: unable to connect to
    destination'
    : was the message when i try getting into SQL. Could someone
    please
    : tell me how to install the database and how to get the user
    name
    : and password for the SQL Plus.
    null

Maybe you are looking for

  • Multiple Macs... sharing same iTunes folder....

    Not sure if there's a solution or not.... I have an external drive hooked up to my Airport Extreme. it's a shared drive for 3 of my Macs. That's where the iTunes folder is located for all machines as well (The drive is specifically for shared media).

  • Why does ical on icloud have a different lay out than on my mac

    Why does iCal on my MacBook Pro have a different lay out than on iCloud? I like the iCloud layout better, the only missing niceties is the year calendar. How do I get both iCals to look the same? The ideal iCal? The one from iCloud WITH the year cale

  • Master-Detail Forms (Populating a Foreign Key Automatically)

    Master-Detail Form When inserting a MD Form, the Master ID (e.g. Deptno,the Primary Key) is generated. How is it possible for this also to be generated in the Detail Form (as the Foreign Key)? The requirement is for the foreign key to be populated au

  • I cant use some keys and i login as a result

    My keyboard is playing up some characters get stuck on repeat. Some just don't work. A couple of these letters are with in my password. I think i just need to restore and back up but I can't get any further than the keyboard problem.

  • TOC missing data

    I am trying to produce a Table of Contents for a CS3 document and quite a few of the items that should be in the TOC are missing. I am creating the TOC from one paragraph style and have checked that all the data that I want to appear is set to that s