Connect my Sql from Oracle

Hi all

I installed Oracle 10.2.0 Linux and My Sql installed in Windows, can someone explain me how to connect from oracle to my sql?

Thank you
Prakash S

Prakash,
You can use the database for ODBC (DG4ODBC) 11g gateway to connect to MySQL from Oracle.
See the following notes in My Oracle Support for more details and information-

Note to master note.1083703.1 for the Oracle Gateway products

Note.233876.1 Connection Options abroad of banks of data and databases non-Oracle

Note.466228.1 how DG4ODBC Setup on Linux x 86 32 bit
Note.561033.1 how to Setup DG4ODBC on 64 bit OS Unix (Linux, Solaris, AIX, HP - UX)
Note.466225.1 How to Setup DG4ODBC (database gateway for ODBC Oracle) on 32-bit Windows
Note.1266572.1 How to Setup DG4ODBC (gateway for ODBC Oracle database) on 64-bit Windows operating systems

Your RDBMS 10.2 should be 10.2.0.4 or 10.2.0.5 use DG4ODBC.

Kind regards
Mike

Tags: Database

Similar Questions

  • Connection to Microsoft SQL Server 2008 from Oracle 11 g

    Hello

    I'm working on a requirement to connect from Oracle 11 g DB for Microsoft SQL Server 2008. After serching for the options available on the web I found the follwing link

    Connectivity ODBC - http://www.dbapool.com/Articles/06280701.html using UNIX ODBC and FreeTDS

    I have configured everying as stated in the article, but I'm stuck to test the connection.

    Isql both tsql not working and giving the below error.

    locale is "" fr_FR. UTF-8 ".
    locale charset is 'UTF-8 '.
    using the set of characters by default "UTF-8".
    Error 20009 (9 severity):
    Unable to connect: Adaptive Server is unavailable or does not exist
    Operating system error 111, 'connection refused '.
    There was a problem connecting to the server

    $ isql - v mstest
    [S1000] [unixODBC] [FreeTDS] [SQL Server] Unable to connect to the data source
    [S 08, 01] [unixODBC] [FreeTDS] [SQL Server] Impossible to connect: Adaptive Server is unavailable or does not exist
    [ISQL] ERROR: Not impossible not SQLConnect

    Here are my files.

    FreeTDS.conf


    [MSTEST]
    Host = 19.x.x.x
    #instance = xxx
    port = 614xx
    TDS version = 8.0


    ODBC.ini

    [MSTEST]
    Driver = TDS
    Description = MS SQL Test
    Trace = Yes
    Trace file = /tmp/mstest_odbc_ini.log
    Server = 19.x.x.x
    #Servername = xxxx
    Address = 19.x.x.x
    Database = multilingual
    TDS_version = 8.0
    Port = 614xx

    odbcinst.ini

    [TDS]
    Description = FreeTDS driver
    Driver = /usr/local/lib/libtdsodbc.so
    Setup = /usr/local/lib/libtdsodbc.so
    Trace = Yes
    Trace file = /tmp/freetd.log
    FileUsage = 1

    Has anyone tried this before... Any help is very appreciated.

    Thank you
    Steve.

    I tried and it worked. What's in your trace files? You specified two different, both files in / tmp. Journal will be in one of them. Please, view the contents of the log file. In addition, the problem may be with the SQL Server. ODBC 20009 error is "error of numerical value": http://www.wiki-errors.com/err.php?wiki=20009

  • Connection from Oracle to Sql Server (64-bit on Windows 2003)

    Hello

    I want to install heterogeneous connectivity between our Oracle 10 g version 10.0.2.0.1 (on 64-bit Windows 2003) to a SQL Server on another computer on the network. I found that HSODBC is removed, and that this is is not supported on 64-bit Windows systems. So, I couldn't make it work obviously.

    It is even possible to set up a heterogeneous connectivity in our situation (using DG4ODBC or something?)
    If so, could someone point me in the right direction on where to start?

    Thank you!

    (I'm not a dba, previous attempt using hsodbc cost me two weeks before finding out that it doesn't even work...)

    Edit:
    Oh, and it is possible to display the Metalink notes as (Metalink Note: 361676.1, is generic connectivity available on The LINUX or Windows 64 - bit Platforms?) without a support contract? Or only customers with a support contract have the right to know that some features are not available?

    Published by: user574699 on March 18, 2009 06:24

    According to your last update, your actions are:
    1.) upgrade Oracle on SERVER1 to 10.2.0.4.0-online Yes
    2.) DG4ODBC is not certified to run on SERVER1, then I should install on SERVER2 tell you? That there is no installed Oracle... ?
    Yes, install it on the server of SQL Server 32-bit.

    The gateway comes with a complete Oracle SQL * Net listener. Just so install the 32-bit to SQL Server and configure the Oracle listener as well as the bridge and the ODBC driver.
    Now on the Oracle database server adds a TNSNAMES file. Entry of ORA that points the listener to the Oracle of the gateway on the SQL Server computer. The link of database within the 10 g, which oracle databased then connects using tnsnames.ora alias in the SQL Server computer that has an active Oracle listener that generates connection DG4ODBC. DG4ODBC executable load DG4ODBC configuration file and connects to SQL Server you have configured.

    The Oracle gateway are very flexible. You don't need to install them on the Oracle database machine. They can be installed independently; even on a 3rd machine if you do not want to touch the SQL Server computer. In this case, the scenario is similar as described above; only difference now is the driver ODBC to connect to a SQL Server computer on a remote host.

  • DB link from oracle to sql server

    Hi all

    Which is the easiest way to connect to sql server from oracle database? Require a separate permit? It's 11.1.0.7 on RHEL 5.7, 64 bit.

    Kind regards

    Vinod

    Hello

    There is a simple example using the 'free' method described here Ed

    http://dbaharrison.blogspot.co.UK/2014/12/Oracle-talking-to-SQL-Server-over.html

    See you soon,.

    Rich

  • Urgent: db link from oracle 10g to sql server 2000

    Hello

    I have an oracle 10g db connection to sql server 2000. It was created a couple of years. This works.

    I have now created another link db of the same oracle on the same sql server server but it does not work.

    But I'm getting ORA-28500 and error IM002

    . Please notify.

    I can't understand what is wrong as I followed the hs odbc set up on this link db in the same way as I did 2 years ago.

    Thank you

    Shailaja

    Just sort the problem.

    Basically, I use HSODBC to connect to SQL Server from Oracle (on windows 2003 64-bit).

    To do this, I need to create a connection ODBC from Oracle to SQL Server.

    HSODBC is a 32-bit application and is why we use the ODBC 32-bit driver when we create the ODBC connection.

    When I created the connection ODBC from Oracle to SQL Server, I used the ODBC 64-bit driver and that's why the system could not find the name of the data source.

    I have now created connection ODBC from Oracle to SQL Server via the ODBC 32-bit driver and everything works fine now.

    No offense to anyone, but as you all works using Oracle software, I was hoping a better answer than some of the answers above. You can say that you did not understand the question or you do not know the reason why it happened.

    I have just listed how the problem was fixed so that in the future one having the same problem can benefit.

  • Oracle SQL Developer/Oracle 11 g/Windows 7 - cannot connect 'sys as sysdba'

    Hello

    I downloaded and installed SQL Developer 3.2.20.09, the latest version, separately from Oracle 11 g, because the version provided with Oracle 11 g did not work properly.

    Now, I'm trying to connect SQL Developer 3.2 to my instance of 11g Oracle installed on Windows 7.

    I can log in with the user name SYS AS SYSDBA using SQLPLUS, text bundled with Oracle 11g, with a password to null and without any problem.

    However, when I try to connect to the same instance using the graphical tool based on Java, Oracle SQL Developer 3.2 I get this error:

    Status: Failure-Test failed: ORA-01031: insufficient privileges

    I already checked the computer management and I am already a member of administrators and 'ORA_DBA' groups.
    I already checked tnsnames.ora, etc. and everything is indicated as it should.
    I also checked my SID and it corresponds to what was named during the installation of Oracle 11 g.

    Is someone can you please tell me why I can't connect using SYS AS SYSDBA?

    Connection to SQL Developer as the user SYS to Getting Started tutorial

  • Use of RegExp and connect by level in Oracle SQL

    Hello

    Can someone help me to know about the use of regular expressions and the concept connect by level in oracle SQL?

    Thanks adavance

    Prakash wrote:
    Hello

    select regexp_substr(str, '[^,]+', 1, level) val
    from (select 'a,b,c,d' str from dual)
    connect by level <= length(str) - length(replace(str,','))+1
    
    i  tried my level to understand it but couldn't
    
    Please explain  how it works
    

    Please only put code in tags code, otherwise it's hard to see what you're asking.

    In response to your question look at the query...

    SQL> select regexp_substr(str, '[^,]+', 1, level) val
      2      from (select 'a,b,c,d' str from dual)
      3   connect by level <= length(str) - length(replace(str,','))+1
      4  /
    
    VAL
    -------
    a
    b
    c
    d
    

    OK, so clearly it's split the string anywhere where there is a comma, then, how he does it.

    Firsly we look at connect by clause it when we use it as a generator of line...

    SQL> select level from dual connect by level <= 4;
    
         LEVEL
    ----------
             1
             2
             3
             4
    

    Now, look at how the number 4 is calculated from the string...

    SQL> select length('a,b,c,d') - length(replace('a,b,c,d',','))+1 from dual;
    
    LENGTH('A,B,C,D')-LENGTH(REPLACE('A,B,C,D',','))+1
    --------------------------------------------------
                                                     4
    

    ... looking at the length of the string and the length of it without comma, we can determine how many commas are in the chain and the surmize that there must be 1 more value there are commas.

    Now look at the regular expression...

    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 1) from dual;
    
    R
    -
    a
    
    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 2) from dual;
    
    R
    -
    b
    
    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 3) from dual;
    
    R
    -
    c
    
    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 4) from dual;
    
    R
    -
    d
    

    The 4th parameter of the regexp_substr function is the 'presence' of the search string to return.

    The actual regular expression itself is looking for 1 or more characters (sign +) who are not (the ^ symbol) a comma.

    Is that more clear?

  • Connect to a Postgre SQL to oracle database.

    I'm trying to connect to a database of Postgre SQL of Oracle SQL Developer, I downloaded the drivers from http://jdbc.postgresql.org/ if the form of a jar and showed up at them in the section preferences drivers third party JDBC. Should I have a new tab connections? If someone could help it would be much appreciated.

    I don't think that Postgres is supported.

  • Developer unable to connect SQL database Oracle as a SYSDBA

    Hi all
    Recently, I installed SQL Developer3.0 on my machine and try to create the connection to the local Oracle server. But something confuses me. When I login as normal role, it can connect DB successfully; When I connect as sysdba role named sys, it has always failed and show "name of user and password invalid. I don't know that the username and password are right, because I haved connected the oracle DB from pl/SQL with the same user name and password. And I also chose the role as sysdba. SQL Developer3.0 not support connect as sysdba? I would be very grateful if someone could give me a helping hand. Thanks in advance.

    Hi 851634,

    Do you need a password for remote sysdba (old link) file?
    Cannot connect as sysdba in Oracle Enterprise Management Console

    You can try to open a session (loopback) on the network as sysdba, which requires a password file.

    -Turloch
    Team SQLDeveloper

  • DB Link from Oracle to SQL Server error

    Dear friends,

    I need met some select on tables that are in SQL Server 2005 from Oracle 10 g.

    I followed the steps:
    http://www.DBA-Oracle.com/t_heterogeneous_database_connections_sql_server.htm

    I could ping TNS who is successful, but only when I run a select I get this error.

    ERROR on line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Cannot retrieve the text of the message NETWORK/NCR 65535
    ORA-02063: preceding 2 lines of SQLS

    I checked my dsn name is in small caps completely everywhere where it is used (since its proposed in many sites).

    Please guide me.

    I'm looking for really come to a solution.

    Kind regards

    Nith

    similar use to Setup ODBC and datasource
    http://www.databasejournal.com/features/Oracle/article.php/3442661/making-a-connection-from-Oracle-to-SQL-Server.htm
    and then create server link in sql server after testing WLAN with oracle

  • Oracle to connect to SQL Server - does not

    Hi friends,

    OS version: R Linux EL5
    Oracle version: 10.2.0.4

    I had followed by document http://www.databasejournal.com/features/oracle/article.php/10893_3442661_2/Making-a-Connection-from-Oracle-to-SQL-Server.htm and modified tnsnames.ora, listener.ora HS directory files.

    When I tried to start new listening port, his next pitch error

    *+[Oracle@viadbscph802v admin] $ lsnrctl start LISTENERMSCRM_CONFIGDSN + *.

    LSNRCTL for Linux: release 10.2.0.4.0 - Production on March 30, 2010 08:35:08*.

    Copyright (c) 1991, 2007, Oracle.  All rights reserved. *

    from /opt/oracle/protas/product/10.2.0/db/bin/tnslsnr: Please wait..... *

    TNSLSNR for Linux: release 10.2.0.4.0 - Production*.
    System settings file is /opt/oracle/protas/product/10.2.0/db/network/admin/listener.ora*.
    Log messages written to /opt/oracle/protas/product/10.2.0/db/network/log/listenermscrm_configdsn.log*.
    TNS-01151: lack the name of the listener, LISTENERMSCRM_CONFIGDSN, listener. ORA*.

    Listener could start. See the above error messages... *

    My listener.ora entry is as below

    *+[Oracle@viadbscph802v admin] $ listener.ora + * more
    + # This is a sample listener.ora which contains the parameters of NET8 are +.
    + # required to connect to an Agent + HS

    LISTENERMSCRM_CONFIGDSN =*.
    + (ADDRESS_LIST = +
    + (Address = (Protocol = TCP (port = 1522))(Host=localhost)) +.
    + (Address = (Protocol = IPC) (Key = PNPKEY))) +.

    SID_LIST_LISTENER =*.
    + (SID_LIST = +
    + (SID_DESC = +
    + (SID_NAME = MSCRM_CONFIGDSN) +.
    + (ORACLE_HOME=/opt/oracle/protas/product/10.2.0/db)+
    + (Program = hsodbc) +.
    +)+
    +)+

    + #CONNECT_TIMEOUT_LISTENER = 0 +.

    When I do tnsping, it's show the following error

    *+[Oracle@viadbscph802v admin] $ tnsping mscrm_configdsn + *.

    TNS Ping utility for Linux: release 10.2.0.4.0 - Production on March 30, 2010 08:49:32*.

    Copyright (c) 1997, 2007, Oracle.  All rights reserved. *

    Uses settings files:*.

    TNS-03505: failed to resolve the name*.

    My tnsnames.ora entry is as below

    *+[Oracle@viadbscph802v admin] $ tnsnames.ora + * more
    + # This is a sample tnsnames.ora which contains the parameters of NET8 are +.
    + # required to connect to an Agent + HS

    + #hsagent = +.
    + # (DESCRIPTION = +)
    + # (ADDRESS = (PROTOCOL = tcp)(HOST=localhost) (PORT = 1521)) +.
    + # (CONNECT_DATA = (SID = hsagent)) +.
    +#    (HS=)+
    +#  )+
    MSCRM_CONFIGDSN =*.
    + (DESCRIPTION = +
    + (Address = (Protocol = TCP (port = 1522))(Host=localhost)) +.
    + (CONNECT_DATA = (SID = MSCRM_CONFIGDSN)) +.
    +(HS=OK) +.
    +)+

    My GLOBAL_NAMES is set to flase

    Please help me solve this problem.
    I have a doubt, we would have the client software oracle must be installed on the computer that is running sql server?

    Thanks in advance

    better would be to start a new thread for the installation of 32-bit and to put an end to it with:

    HSODBC was never focused on 64-bit Linux.

  • How to export a .sql file, I created from Oracle Application Express of SQL Server Management 2012?

    Hello

    I was wondering if you could help me.

    I'm trying to find out how to export a .sql file, I created from Oracle Application Express of SQL Server Management 2012? I'm not very technical, but it seems that the Oracle code does not work with SQL Management Studio when I drag the file inside.

    I need the database Oracle express and its data to enter in SQL Management Studio, so any help would be much appreciated!

    Thank you.

    Hello

    Your question is beyond the scope of this community.

    Please repost your question in the SQL Server TechNet Forums.

    https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer

    See you soon.

  • Data migration from Oracle to SQL Server

    Hello

    I have the Oracle database in one or several table, I also blob data, i.e. images are stored, now I want to move that data to the sql server database, which is the best way to do this?

    I would like to test for a migration of the table that contains the image data in the Oracle database and invade the SQL Server table.

    How to test for an Oracle table data to SQL Server migration?

    But the first thing I want to confirm is that if the Image from Oracle DB to SQL Server DB data are possible? is there something must be supported during the migration?

    Thanks in advance.

    Kind regards

    Vishal

    Published by: 968331 on October 31, 2012 02:31

    I think that it is supported. The equivalent data type in sql server is IMAGE/varbinary (max)

    See the bottom of the article for the mapping of data types:

    http://weblogs.sqlteam.com/jamesw/archive/2010/07/28/datatypes-translation-between-Oracle-and-SQL-Server-part-1.aspx

  • transfer of data from the sql for oracle server

    Can we use the tools datapumps or oracle exp in oracle to transfer data from oracle to sql server database? Is it possible to do through the use of these tools expdp or exp in oracle. Create oracle dump files and import them to sql server?
    I know there are third-party tools for the same. but I'm just curious?

    No, these tools cannot be used for the transfer of data from oracle to sql server. The two write files in an oracle proprietary format, that they not fixed data or sql scripits files.

  • Developer SQL 4.1.2 uses Windows authentication to connect to SQL Server

    I'm using SQL Developer 4.1.2 and tries to connect to SQL Server through Windows authentication.  If I use SQL Server authentication, everything works so the jTDS driver appears to be installed and working properly (I use jTDS 1.2).  When I switch to Windows authentication, I get the error

    Status: Failure-Test failed: IO error: failure of the SSO: library Native SSPI has not loaded. Check the system java.library.path property.

    Of course, I googled the error and came up with dozens of people asking the same question and is told to move the ntlmauth.dll from the \SSO directory to the jTDS directory in various other directories.  That seems to work for others so for the last few hours, I was copying the DLL in each directory that I can find someone on the internet suggesting without success (I do restart SQL Developer each time).  In the Directory SQL Developer, I tried

    Developer c:\Oracle SQL 4.1.2.20.64\sqldeveloper

    Developer c:\Oracle SQL 4.1.2.20.64\sqldeveloper\sqldeveloper\bin

    Developer c:\Oracle SQL 4.1.2.20.64\sqldeveloper\jdk\jre\bin


    On the off chance that something was still making reference to a directory of a SQL Developer previous install, I put it in the same directories in the front THAT SQL Developer installed on this machine.  On the theory that she was using the FMV of the machine rather than that I downloaded and installed with SQL Developer, I advanced and dropped the DLL in the directory \bin for each installation of Java, that I could find on the system.


    c:\Program Files\Java\jrd1.8.0_45\bin

    C:\Program Files (x86)\Java\jre1.8.0_45\bin

    C:\Program Files (x86)\Java\jre1.8.0_60\bin


    Still no luck.  SQL Developer, I went to help. Everything | Properties and checked that the first way to java.library.path is what I expected and where I dropped the ntlmauth.dll first.  I even put it in c:\windows and c:\windows\system32 just to be sure.


    Java.Library.PathC:\Oracle SQL Developer 4.1.2.20.64\sqldeveloper\sqldeveloper\bin. C:\WINDOWS\Sun\Java\bin; C:\Windows\System32; C:\WINDOWS;


    Despite the DLL just about everywhere that I guess I would need to have it, I still get the same error.  I must be missing something obvious.  But at this point I was looking at it so long that I just can't see it.


    Justin



    I use SQL Developer 4.1.2 and tries to connect to SQL Server through Windows authentication using jTDS 1.2

    Not sure if this has anything to do with your problem, but according to jTDS - SQL Server and Sybase JDBC driver / newsand since SQL Developer 4.1.x requires Java 8, '' you should stick only to jTDS 1.2 If you need to use a version of Java before Java 7 '' . Perhaps using a version 1.3.x jTDS driver might help.

Maybe you are looking for