Oracle to mysql

dear all,
             i was connecting MYSQL database from oracle database.i got the following error ,shown below-
]$ ./isql myodbc5 -v
[01000][unixODBC][Driver Manager]Can't open lib '/opt/oradb/patches/myodbc-5.3.4/lib/libmyodbc5.so' : file not found
[ISQL]ERROR: Could not SQLConnect.
                kindly help,your help will be appreciated thanks in advance.
oracle db:11.2.0.3
oracle os:rhel 6
mysql db:5.6.19
mysql os:win 7
thanks and regards

Hello,
        thanks once again for replying me,i am using "compressed TAR archive" .
OS is RHEL 6.7 64 bit ,all the steps which i am following are as shown below.
1. i checked for avaible unixodbc manager and mysql connector odbc
]$ rpm -qa unix*
unixODBC-devel-2.2.14-11.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
]$ rpm -qa mysql*
mysql-5.1.52-1.el6_0.1.x86_64
mysql-devel-5.1.52-1.el6_0.1.x86_64
mysql-server-5.1.52-1.el6_0.1.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64
2) i downloaded unixODBC driver manager
1. copy the unixODBC-2.3.2.tar.gz file somewhere you can create files and directories
2. gunzip unixODBC*.tar.gz
3. tar xvf unixODBC*.tar
Make the Libraries and Programs
The install uses the standard GNU autoconf process. So its simply a matter of running
./configure  --prefix=/opt/oradb/patches/unixODBC
make
make install
3) i downloaded mysql connector odbc(i did not install it because already there in my machine)
1.download mysql-connector-odbc-5.3.4-linux-el6-x86-64bit.tar.gz
2.gunzip -c mysql-connector-odbc-5.3.4-linux-el6-x86-64bit.tar.gz | tar xvf -
]$ls /opt/oradb/patches/mysql connector/lib     (no file libmyodbc5.so)
libmyodbc5a.so
libmyodbc5s.so
libmyodbc5w.so
4)
etc]$ cat odbc.ini
[myodbc5]
Description = ortomysql
Driver      = /opt/oradb/patches/mysql connector/lib/libmyodbc5.so
Server      = 192.168.0.21
Database    =<dbname>
LogonID     =root
Password    =<pwd>
Port        =3306
Socket      =
Option      =
Stmt        =
[ODBC Data Sources]
5)
]$ cd /opt/oradb/patches/unixODBC/bin------------(unixODBC driver manager directory)
]$./isql myodbc5 -v
[01000][unixODBC][Driver Manager]Can't open lib '/opt/oradb/patches/myodbc-5.3.4/lib/libmyodbc5.so' : file not found
[ISQL]ERROR: Could not SQLConnect
i got error shown above.

Similar Messages

  • What is the difference between Oracle and MySQL

    Hi,
    I would like to know the major difference between Oracle and MySQL. I have a project to generate XML files from database tables, i have used oracle's built XML functions XMLELEMENT, XMLATTRIBUTES, XMLFOREST, XMLAGG. I really want to know if these functions (or) similar functions are supported/availabe in MySQL.
    I am having a hard time to find out best linux distro for installing Oracle11g, so i am planning to switch to MySQL. Please help, Thanks in advance.

    Oracle_Walker wrote:
    Hi,
    <snip>>
    I am having a hard time to find out best linux distro for installing Oracle11g, Then you must be "looking for love in all the wrong places."
    What's so hard about finding a "best linux distro for installing Oracle11g"? The supported distros are listed in the fine Installation Guide for Linux. At the top of the list is Oracle's own Oracle Linux, which is in the same family as Red Hat.
    so i am planning to switch to MySQL. Please help, Thanks in advance.

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

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

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

  • Database link Oracle to MySql Error [Microsoft][ODBC Driver Manager]

    Dear all:
    I need your help, I want to access mysql database from oracle 11g r2. When I try to connect mysql database from oracle database I'm getting the error shown below, kindly help your help will be appreciated, thanks in advance
    When I excute:
    select * from test1@mysqltest;
    [ERROR]
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified {IM002}
    ORA-02063: preceding 2 lines from THAONT1.MYSQL
    28500. 00000 -  "connection from ORACLE to a non-Oracle system returned this message:"
    *Cause:    The cause is explained in the forwarded message.
    *Action:   See the non-Oracle system's documentation of the forwarded message.
    My config
    oracle db:11.2.0.3 enterprise edition
    os:win 7 64 bits
    mysql connector odbc:64 bit
    mysql db:5.1.19
    ODBC Config
    LISTENER.ORA:
    =============
    # listener.ora Network Configuration File: D:\app\THAONTSE90151\product\11.2.0\dbhome_3\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = D:\app\THAONTSE90151\product\11.2.0\dbhome_3)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:D:\app\THAONTSE90151\product\11.2.0\dbhome_3\bin\oraclr11.dll")
        (SID_DESC =
          (SID_NAME = tst)
          (ORACLE_HOME = D:\app\THAONTSE90151\product\11.2.0\dbhome_3)
          (PROGRAM = dg4odbc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.1.58)(PORT = 1521))
    ADR_BASE_LISTENER = D:\app\THAONTSE90151
    TNSNAMES.ORA:
    ================
    TSTLINK =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.1.58)(PORT = 1521))
        (CONNECT_DATA =
          (SID = tst)
        (HS = OK)
    inittst.ora($ORACLE_HOME/hs/admin)
    ========================
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = testmysql
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set ODBCINI=D:\ODBC.INI
    dblink created from oracle to mysql:
    ==========================
    SQL> create public database link mysqltest
    connect to thaont identified by abc123 using 'TSTLINK';
    SQL>select * from test1@mysqltest;
    [ERROR]
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified {IM002}
    ORA-02063: preceding 2 lines from THAONT1.MYSQL
    28500. 00000 -  "connection from ORACLE to a non-Oracle system returned this message:"
    *Cause:    The cause is explained in the forwarded message.
    *Action:   See the non-Oracle system's documentation of the forwarded message.
    kindly help.
    thanks & regards.

    The error message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified {IM002}" is self explainind - DG4ODBC is not able to find the ODBC DSN you created.
    In your gateway init file you configured the DSN: HS_FDS_CONNECT_INFO = testmysql
    And according to the Windows ODBC Admin screenshot you created a DSN called testmysql - unfortunately you created it as a USER DSN. But DG4ODBC needs a SYSTEM DSN. The reasin why it needs a system DSN is that by default the Oracle listener is running in the local system account. So when you create an ODBC USER DSN it can be access by the user who created it, but nobody else can use it - also not the local system account which is serving the Oracle listener. So you need to create a system DSN that every user on this machine can use the DSN (including the local system account) .
    - Klaus

  • Oracle to MySql character set problem

    Dear Gurus,
    My database is Oracle 11g R2 (11.2.0.1.0) on Sun Solaris 10. To get data from mysql database for reporting purpose, I used DG4ODBC and followed strictly the OMSC note "Detailed Overview of Connecting Oracle to MySQL Using DG4ODBC Database Link [ID 1320645.1]. Here are main configuration steps:
    - Check DG4ODBC 32/64-bit
    - Install and configure ODBC Driver Manager unixodbc-2.2.14
    - Install and configure MyODBC 5.1.8
    - Configure tnsnames.ora and listener.ora
    - Create db links
    Oracle character set is AL32UTF8
    MySQL charactoer set is uft8
    $ODBC_HOME/etc/odbc.ini
    [ODBC Data Sources]
    myodbc5 = MyODBC 5.1 Driver DSN
    [myodbc5]
    Driver = /opt/mysql/myodbc5/lib/libmyodbc5.so
    Description = Connector/ODBC 5.1 Driver DSN
    SERVER = <mysql server ip>
    PORT = 3306
    USER = <mysql_user>
    PASSWORD = ****
    DATABASE = <mysql db name>
    OPTION = 0
    TRACE = OFF
    $ORACLE_HOME/hs/admin/initmyodbc5.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO=myodbc5 # Data source name in odbc.ini
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_SHAREABLE_NAME=/opt/unixodbc-2.2.14/lib/libodbc.so
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
    # ODBC env variables
    set ODBCINI=$ODBC_HOME/etc/odbc.ini
    My issue is I can query data from mysql database tables but the output is incorrect in character type columns (VARCHAR columns). It just shows the first character in such columns. I tried to read through some OMSC notes but none is useful. If you experienced on such issues, please share your idea / help me resolve it.
    Thanks much in advance,
    Hieu

    S. Wolicki, Oracle wrote:
    I have little experience with MySQL and ODBC Gateway, but this setting looks weird to me: HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1. Why do you configure WE8ISO8859P1 when both databases are Unicode UTF-8. Shouldn't the setting be AMERICAN_AMERICA.AL32UTF8 instead?
    -- SergiuszIf I set HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8 or without the HS_LANGUAGE setting, the following error will happen.
    SQL> select count(*) from "nicenum_reserve"@ussd;
    select count(*) from "nicenum_reserve"@ussd
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    I followed the metalink note "Error Ora-28500 and Sqlstate I Issuing Selects From a Unicode Oracle RDBMS With Dg4odbc To Mysql or SQL*Server [ID 756186.1]" to resolve the above error. The note guides to set HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1 and resolved the above error.
    The following are the output from original database (MySql) and Oracle via SQLPLUS and TOAD.
    On MySQL database (Sorry because of the output format)
    SQL> select ID, source_msisdn, target_msisdn, comment from nicenum_reserve where ID=91;
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | ID | source_msisdn | target_msisdn | comment |
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | 91 | 841998444408 | 84996444188 | Close reservation becasue of swap activity |
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    SQLRowCount returns 1
    1 rows fetched
    Via Sqlplus on Oracle server:
    SQL> select "ID","source_msisdn","target_msisdn","comment" from "nicenum_reserve"@ussd where "ID"=91;
    ID
    source_msisdn
    target_msisdn
    comment
    91
    8 4 1 9 9 8 4 4 4 4 0 8
    8 4 9 9 6 4 4 4 1 8 8
    C l o s e r e s e r v a t i o n b e c a s u e o f s w a p a c t i v i
    t y
    Via TOAD connected to Oracle server:
    ID source_msisdn target_msisdn comment
    91     8     8     C
    It's likely this issue related to character set settings but I don't know how to set it properly.
    Brgds,
    Hieu

  • ODBC connect from Oracle to MySQL!

    Dear All,
    I know its not very much related to the subject of this forum but DBA's often have to perform such tasks.
    I am in process of developing replication between Oracle and MySQL. For this I have planned to create materialized views in oracle that query MySQL database.
    I am using Oracle 11gR1 on Linux for Oracle Server and MySQL is on windows based server version is 5.1.
    I am stuck at the very first step that is to create a database link between Oracle and MySQL.
    On Oracle's server, I did the following:
    Installed unixODBC rpm (Installed successfully)
    Installed mysql-connector-odbc (Installed successfully)
    when i write this command odbcinst -j it gives the following information
    unixODBC 2.2.11
    D|RIVER........... : /etc/odbcinst.ini ; (my comments : Files exists)
    SYSTEM DATA SOURCE : /etc/odbc.ini (my comments : File exists )
    USER DATA SOURCE : /root/.odbc.ini (my comments : File DO NOT exists)
    Now i tried to add the following entry in the file /etc/odbc.ini
    [bssdata]
    Driver = MySQL ODBC 3.51 Driver
    DATABASE = bssdata
    DESCRIPTION = views_on_bssdata
    PWD =
    PORT = 3306
    SERVER = 192.168.0.68
    UID = root
    Now when i try to check the connectivity with the command:
    isql -v bssdata root
    Error: data source name not found, and no default driver specified.
    ERROR: Could not SQLConnect
    Anyone have tried this before, please help me out of it.
    Regards, Imran

    Hope these links help you :
    http://www.pythian.com/news/1554/how-to-access-mysql-from-oracle-with-odbc-and-sql/
    http://sysinfo.bascomp.org/2008/03/setting-oracle-heterogenous-service-mysql-to-oracle/
    http://www.idevelopment.info/data/Oracle/DBA_tips/Heterogeneous_Services/HETERO_2.shtml
    http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
    Regards
    Rajesh

  • Can Hyperion repository be migrated from Oracle to MySQL

    Hi Gurus,
    I was wondering if Hyperion Repository can be migrated from an existing Oracle database to MySQL database. If yes, then how? Any kind of advice is greatly appreciated.
    Regards,
    Uday

    Hi,
    First question is why you want to move from Oracle to MySQL as in newer versions of Hyperion MySQL is not supported anymore.
    There is no direct way of migrating the database you would have to look at using a 3rd party conversion tool or writing some custom code.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Migrating Stored procedure from Oracle to Mysql

    Dear All,
    Please suggest, is ther any tool of stored procedure migration from oracle to mysql.
    I tried some tool like
    1. Intelligent Converter.
    2. Sql way
    3. Mysql Migration Toolkit.
    But procedure cannot migrate properly.
    hb venki

    Venki,
    I think you are in the wrong place, try finding a MySQL forum ;0)

  • How To Convert Oracle To Mysql

    Hi,
    I have an oracle database with certain number of objects in it and I want it to convert/migrate to mysql.
    I have done the reverse using oracle sql developer and it was pretty convenient,but I am not finding any likewise feature for converting oracle to mysql.
    Can someone help me to do so?
    Thanks
    Arnab

    Arnab,
    Even if Google didn't provide a 'free lunch', ie software you don't need to pay for, your attempt to get something for free should be directed at a MySQL forum and not at an Oracle forum.
    Why would anyone using Oracle convert to a product with much less features?
    Your question is off-topic here.
    Sybrand Bakker
    Senior Oracle DBA

  • Oracle to Mysql character set conversion problem!!! PLZ HELP

    Hi Experts,
    I have created a database link from Oracle 10g to Mysql 5.
    I have installed Oracle Gateway 11g for this purpose.
    When i retreive the data from sql plus the text is displayed as question marks.
    Oracle 10g Database character set is WE8MSWIN1252
    Mysql character set --->latin1
    Character set of ODBC connector for mysql is  latin7
    Character set in the parameter file of HS folder is WE8MSWIN1252When i retrieve data from sql developer the text is fine(as i think it directly takes the character set of target) but
    when i login from sqlplus i get question marks!
    Appreciate your help,
    regards

    thank you for replying damorgan,
    my previous two threads in the "heterogeneous Connectivity" forum were for different issues, one was to enquire as to how i could connect from oracle to mysql(which i have marked as answered), the other is for error when i get when i tried accessing data(which i am still facing on my office machine ).
    I followed the steps from these two threads and was able to successfully connect to mysql on my personal PC at home, but faced some problem with text not displayed so i created this thread.
    I had created another thread similar to this in the globalisation support as i was facing issue with the character sets in a heterogenous setup, so wasen't clear as to which forum would be suitable for this issue.
    My apologies to everyone if this has offended you.

  • Oracle to Mysql character set conversion problem!!! PLZ IGNORE

    Hi Experts,
    I have created a database link from Oracle 10g to Mysql 5.
    I have installed Oracle Gateway 11g for this purpose.
    When i retreive the data from sql plus the text is displayed as question marks.
    Oracle 10g Database character set is WE8MSWIN1252
    Mysql character set --->latin1
    Character set of ODBC connector for mysql is  latin7
    Character set in the parameter file of HS folder is WE8MSWIN1252When i retrieve data from sql developer the text is fine(as i think it directly takes the character set of target) but
    when i login from sqlplus i get question marks!
    I have another post in Heterogeneous Connectivity forum
    Re: Oracle to Mysql character set conversion problem!!! PLZ HELP
    Kindly update your comments there,
    @@@@@@@@@@@@@@2
    Appreciate your help,
    regards
    Edited by: user10243788 on Apr 21, 2010 3:25 AM

    It is OK to post a globalization-related question in this forum in addition to the forum pertaining to the main technology. Not all experts follow all possible forums on OTN. Of course, you should cross-link the posts to let people merge the answers.
    Regarding the problem itself, make sure that SQL*Plus has the right NLS_LANG setting in the environment. On Windows, in the Command Prompt:
    C:\> set NLS_LANG=.WE8PC850
    C:\> sqlplus ...On Unix:
    $ setenv NLS_LANG .WE8ISO8859P1   (or NLS_LANG=.WE8ISO8859P1; export NLS_LANG)
    $ sqlplus ...-- Sergiusz

  • Create a Database Link from Oracle to MYSQL on windows

    Hi
    I need to create a database link from oracle to mysql database on windows to fetch some records.Can anyone help me on this?

    Search for Transparent Gateways, Heterogeneous Services...
    The Oracle SQL Developer have drivers to Access, MySQL and SQL Server.

  • Error: Databaselink Oracle XE - MySQL

    Hi,
    I try to set up a database link from my OracelXE to a MySQL server.
    I know here are a lot of discussion for this problem, but I read a lot and tried a lot, but it's not working.
    So I want to explain you what I did and give you my configuration, maybe you will find the error:
    My System properties
    Windows 7 64bit
    Oracle XE (11.2)
    1. I downloaded MySQL ODBC driver and set up a System-DNS in data source administration -> Test OK
    2. Following an old instructions I found in www (Making a connection from Oracle XE to MySQL with ODBC - APEX-AT-WORK by Tobias Arnhold and Oracle und MySQL vereinigen, – HS Service und Datenbanklink | hman-projects) I have done the following
         create file initMYSQL_DB.ora in C:\oraclexe\app\oracle\product\11.2.0\server\hs\admin:
    # 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 = MYSQL_DB
    HS_FDS_TRACE_LEVEL = OFF
    # Environment variables required for the non-Oracle system
    #set =
    update Listener.ora (found it in path C:\oraclexe\app\oracle\product\11.2.0\server\hs\admin and C:\oraclexe\app\oracle\product\11.2.0\server\network\admin, so I'm not sure which one will be used, I changed the one in network path and copied it to hs path, sone this also for the tnsnames)
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC=
          (SID_NAME=MYSQL_DB)
          (ORACLE_HOME=C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM=dg4odbc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = PC.local)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    tnsnames.ora
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = PC.local)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    MYSQL_DB =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(Port = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = MYSQL_DB)
        (HS = OK)
    3. Making a tnsping MYSQL_DB is working
    C:\oraclexe\app\oracle\product\11.2.0\server\bin>tnsping MYSQL_DB
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 22-OKT-2
    014 13:02:09
    Copyright (c) 1997, 2014, Oracle.  All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = localhost)(Port = 1521))) (CONNECT_DATA = (SERVICE_NAME = MYSQL_DB)) (HS
    = OK))
    OK (20 msec)
    4. Creating database link in SQL Developer
    create database link MYSQL_DB
      connect to "mysqluser" identified by "mysqluserpwd"
      using 'MYSQL_DB';
    is successful, but the testing the link, bringing back the following error:
    Bei der Ausführung des angeforderten Vorgangs ist ein Fehler aufgetreten:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from MYSQL_DB
    28545. 0000 -  "error diagnosed by Net8 when connecting to an agent"
    *Cause:    An attempt to call an external procedure or to issue SQL
               to a non-Oracle system on a Heterogeneous Services database link
               failed at connection initialization.  The error diagnosed
               by Net8 NCR software is reported separately.
    *Action:   Refer to the Net8 NCRO error message.  If this isn't clear,
               check connection administrative setup in tnsnames.ora
               and listener.ora for the service associated with the
               Heterogeneous Services database link being used, or with
               'extproc_connection_data' for an external procedure call.
    Herstellercode 28545
    Can anybody find the error???
    Thanks for your help,
    chrissy

    sHi Mike,
    sorry for the late answer ...
    I have just done what you told me.
    After reload of lsnrctl I get the following output.
    C:\>lsnrctl services listener
    LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 10-NOV-2014 08:52
    :34
    Copyright (c) 1991, 2014, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "MYSQL_DB" has 1 instance(s).
      Instance "MYSQL_DB", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "XEXDB" has 1 instance(s).
      Instance "xe", status READY, has 1 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: PC, pid: 4652>
             (ADDRESS=(PROTOCOL=tcp)(HOST=PC.local)(PORT=65125))
    Service "xe" has 1 instance(s).
      Instance "xe", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVER
    The command completed successfully
    C:\>lsnrctl status listener
    LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 10-NOV-2014 08:53
    :08
    Copyright (c) 1991, 2014, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 - Produ
    ction
    Start Date                22-OKT-2014 10:20:51
    Uptime                    18 days 23 hr. 32 min. 17 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
    Listener Log File         C:\oraclexe\app\oracle\diag\tnslsnr\PC\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PC.local)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PC.local)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "MYSQL_DB" has 1 instance(s).
      Instance "MYSQL_DB", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
      Instance "xe", status READY, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
      Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Thanks,
    chrissy

  • Open source tool for oracle to mysql migration

    Hi,
    Is there any open source tools available for the database migration from Oracle to MySQL.
    Please advice.

    Hi,
    This forum is for migrating to Oracle from non-Oracle databases. It would be better if you tried an Internet search or the MySQL forum -
    http://forums.mysql.com/
    for information about moving from Oracle to MySQL.
    Regards,
    Mike

  • SQL Server 2008 to Oracle or MYSQL?

    Hi guys,
    I need some advice/help on DB transfer for a current site I'm working on. I have built a website http://london-school-of-makeup.com which I have installed on an IIS Server which means I am using SQL Server 2008 for the DB. This, I know now was a big mistake as SQL Server is only good for my .net projects, and terrible for my php projects (especially a wordpress website). What I am trying to do is transfer the DB to an Oracle environment, but I don't know whether Oracle is better or MYSQL for a site like this? I have been trying to export the data from SQL Server 2008 which I then want to transfer, but even that is a huge headache. Any help or advice would be greatly appreciated.

    Hi,
      I don't know if there are any direct comparisons of Oracle and MySQL but one thing to consider is licensing. If you use Oracle you will need to pay for a license but there is a free community version of MySQL.
    The free MySQL version is only supported via the MySQL communities and you cannot open SRs with Oracle support as to do that also needs a MySQL support license.
    Regards,
    Mike

  • Update/Insert records from Oracle to MySQL

    Hi team, 
    My application will insert/update records into Oracle database, I need to sync all of records into MySQL database.  I designed a package to load data from Oracle to MySQL, the Oracle database use OLE DB component and MySQL database use ADO.NET.
    How to insert new records into MySQL? If the old record exists, we also need to replace with new record. I did some research, someone suggest to create a stage table to handle this scenario, but I have 14 tables in this case. How to handle this scenario
    with high performance? 
    If there is anything unclear, please let me know. 
    Thank you in advance. 

    Finally, I created 14 tables as same as in our MySQL database system with prefix "updated" , they are use to store the updated records from Oracle system. All of new records we add a flag, the "1" means insert a new record into the system,
    and the "0" means we should updated. So, I can use the conditional split component to split all of new records. The new records insert into the target table and the updated records insert into the "updated_table". Finally, we can add a
    SQL Script task to run a update script to sync all of records. 
    I don't use Lookup Transformation because we must use Cache
    Transform transformation in this case, the Cache connection manager to save the data to a cache file (.caw), it will hard to
    trace the history data in the future.  
    In addition, I recommend to use ODBC connection if somebody face the similar scenario with me, there is a bug  if we use ADO.NET to
    load data from Oracle to MySQL by using SSIS. For more information, please refer the MSDN document: http://blogs.msdn.com/b/mattm/archive/2009/01/07/writing-to-a-mysql-database-from-ssis.aspx
    @Arthur, thanks again for your input.  Have a nice day! :)

Maybe you are looking for

  • Why can't I see tabs that are on my other computer?

    I have synced this computer with another and it says it is connected and I can see my favourites but why can't I see the tabs that I frequenly use on the other computer?

  • Roles not visible in the Catalog while requesting roles in OIM 11gr2

    Hi Experts, We have recently installed the OIM 11g r2 for a POC purpose and created few roles. The issue is we are unable to see the roles created while requesting the roles in catalog. Already run the Catalog Synchronization Job and its scheduled to

  • A Huge Problem

    First of all, let me say I am new to the forums here, and wanted to say hello. Now, on to my iPod... About two years ago, I purcahsed an iPod with the Color Display. i was satisfied with my purchase, until recently. About a week ago, it started to fr

  • JBIG2 files open only after 'rebuilding'....

    I use a third party app to generate PDF files using JBIG2 compression. I notice unusual behavior in Adobe Acrobat 8 Standard that does not occur in 9 or 10 (Std or Pro). When v8 opens these files, it performs a "Rebuilding" process before the file is

  • Web Services wsdl file

    I am creating a web service from LabVIEW 2009, but I need a wsdl file to be able to query from the client end. Does LabVIEW 2009 allow me to create one automatically? If not can anyone help point me in the right direction for creating one.  A.