Oracle database to Sql server connection

Hi,
Can anyone please suggest any documents to create db link from oracle to sql server.
Thanks and Regards
Phani

You can use Oracles heterogeneous Services ODBC agent to connect to SQL Server, if your Oracle database is running in windows then very easy to do the ODBC connection
control pannel-->ODBC icon -->System DSN tab and then click the Add button.
After this add the connectivity details in $ORACLE_HOME/hs/admin/initMYSQLSERVERDSN.ora file
If your Oracle database is running on Linux then you need to install something called FreeTDS driver can be downloaded from http://ibiblio.org/pub/Linux/ALPHA/freetds/freetds-0.60.tgz ; to define ODBC connection and then add the details into $ORACLE_HOME/hs/admin/initMYSQLSERVERDSN.ora file
Thanks
Raj

Similar Messages

  • Migrating OBIEE Repfrom Oracle database to SQL server database in Solaris.

    Hi,
    I need inputs in how we would migrate our connections in Repository from Oracle database to SQL server database in Sloaris server.
    Is there a complication here.
    Regards,
    Bhavik

    Well that makes more sense, you probably have phrased your question better. Microsoft SQL Server Connectivity Components are not supported in any other operating system than Windows. So you will not be able to use the SQL Server native drivers to connect to your SQL Server. ODBC it's an option but there aren't many ODBC drivers for Unix systems. Luckily for you OBIEE includes the DataDirect ODBC drivers and supports using them to connect to a SQL Server. Check [the documentation|http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/general_101331.htm#sthref9] on how to use them. Having said that I would say that whoever is pushing to move your DWH to SQL Server should consider also moving OBIEE to a Windows server to be able to use the SQL Server native drivers to connect to SQL Server.
    PS: No needs to post 3 times. :-)

  • I want to query oracle database from sql server can anyone tell steps 2 fo

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • I want to query oracle database from sql server can anyone tell steps 2 fol

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • Migrating Oracle Databases to SQL Server 2000

    Hi friends,
    I wanna to Migrating Oracle Databases to SQL Server 2000.
    But i don have idea abt that.
    could u plz help how to start and procced.
    Neeraj Goel

    Hi Neeraj,
    This forum is dedicated to Migrating from SQLServer and other third party databases to Oracle.
    Not the other way round.
    The Oracle Migration Workbench facilitates migrations to Oracle.
    Regards,
    Dermot.

  • How to convert Oracle database to Sql server Database

    Hi All,
    I have one database made in the Oracle 8i, i want to convert that database to Sql Server Database,
    Can anyone please give me the step by step process to do this conversion.
    Regards
    Ramesh Jha

    Try using the DTS (data transformation services) services of SQL Server 2000
    DTS is based on an OLE DB architecture that allows you to copy and transform data from a variety of data sources. For example: Oracle directly, using native OLE DB providers.
    Alternatively, you could follow the following broad steps for data migration (assuming you are retaining the same table structures in SQL Server, and that you are talking about SQL Server 2000).
    1. Get the CREATE scripts corresponding to each Oracle table / view / index. These can be reverse engineered from the database using a tool.
    2. Map Oracle datatypes to SQL server datatypes e.g: date maps to datetime/smalldatetime, numeric maps to one of int, bigint, smallint, etc depending on the range of values in the CREATE scripts.
    3. Indexes in SQL Server are of two types: Clustered / non-clustered. There can only be one clustered index on each table.
    4. Converting procedures and triggers will have to be line by line, since SQL Server uses a proprietary T-SQL instead of ORacle's PL/SQL
    I have yet to see a really good tool to do this migration, but it is possible to write a PL/SQL procedure / Pro*C program to automate the script creation for creating tables in the SQL Server database.
    For the actual data import into SQL Server, export the Oracle data table by table into flat files, and then use the import wizard of SQL Server enterprise manager

  • Cannot connect to Oracle database from SQL Server

    Hi
    We have set up a SQL Server linked server and tried to use this SQL Server linked server to connect to Oracle database. We are using SQL Server 2008 and Oracle client 11g 11.02.00.01. However, we got this error message:
    Msg 7347, Level 16, State 1, Line 1
    OLE DB provider 'OraOLEDB.Oracle' for linked server 'OurLinkedServer' returned data that does not match expected data length for column '[OraOLEDB.Oracle].Ourfieldname'. The (maximum) expected data length is 6, while the returned data length is 2.
    We are able to connect some of the tables ok but some of the tables are not connected and got the above error message.
    Any suggestions are greatly appreciated.
    Thanks a lot
    Tom

    Hi
    Here is more information. We just found out that the Oracle database team changed the character set to something else and then they changed it back to UTF8.
    Currently, it is using UTF8 character set on the Oracle side. Will this causing us this error message on our sql server linked server?
    The error message said "The (maximum) expected data length is 6, while the returned data length is 2."
    This refers to a field/column with char(1)
    Any suggestions are greatly appreciated
    Thank you
    Tom

  • Oracle warehouse Builder Sql server connectivity

    Hi ...
    I want to import tables from sqlserver into my datawarehous
    using warehouse builder 3i.
    Is it posiible to connect to sqlserver from warehouse builder.
    Do we have any gateways available for connecting sqlserver.
    I wouid appreciate any help.
    Regards
    Gopi

    Hi,
    The gateway that Oracle provides for this purpose is Pure
    Integrate.In pure integrate define a project(as we do in
    warehouse builder).Then configure your ODBC source(it supports
    SQl server, MS Access and variuos other Databases).Once defined
    and configured take export of the project and import in
    warehouse builder.
    In OWB then You can keep on adding various modules and other
    object in the imported Projects.The imported project will have
    source module as configured in Pure integrate.With this you
    don't need to export SQl server objects as flat files.

  • Cannot connect to Oracle 11gR2 database from SQL Server 2005

    Both SQL Server (Windows) and Oracle (Linux) are in 64bit environments.
    I have done the following on a Windows 2008 R2 with SQL Server 2005:
    Install InstantClient from Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64) to C:\Oracle
    Install oledb from 64-bit ODAC 11.2 Release 3 (11.2.0.2.1) for Windows x64 by executing install.bat oledb c:\oracle odac
    Note: Not sure whether 11.2.0.2.1 version of ODAC will cause any problem since I cannot find 11.2.0.1.0 version.
    I have checked the Allow inprocess of OraOLEDB.Oracle provider in SSMS.
    I have executed sp_addlinkedserver @server = 'ORACLE_TEST', @srvproduct = 'Oracle', @provider = 'OraOLEDB.Oracle', @datasrc = '##.##.##.##:1521/TEST'
    The ##.##.##.## is the ip address of the Linux server which has the Oracle 11gR2 database TEST.
    I have executed sp_addlinkedsrvlogin @rmtsrvname = 'ORACLE_TEST', @useself = 'FALSE', @rmtuser = 'xxxx', @rmtpassword = 'yyyy'
    The xxxx is the oracle username and yyyy is the password for the oracle user xxxx.
    I know the oracle database TEST is up since I have setup connection in Oracle SQL Developer having:
    ##.##.##.## as the hostname
    1521 as the Port
    xxxx as the username
    yyyy as the password
    TEST as the service name
    When I click Test Connection for the linked server ORACLE_TEST in SSMS, it just hang.
    When I issue a query like select count(*) from oracle_test..xxxx.table1, it just run forever. I'm not so sure how to query an oracle table. I have also tried select count(*) from oracle_test.xxxx.xxxx.table1.
    When I retype the password in the Linked Server Properties, it just run forever.
    Do I need to create a tnsnames.ora on the Windows machine?
    Do I need to change the tnsnames.ora on Linux machine?
    I'm very new to Oracle.

    This forum is dealing with connections from an Oracle database to SQL Server - so the Oracle database is the driving site and this is the way round from your linked server set up.
    As you're suing the instant client you might post your issue in the instant client forum:
    Instant Client

  • Connect to Oracle database from SQL Sever

    Can you help on an issue of connection from SQL Server to Oracle database:
    In SQL Server, I create a "linked server" to connect to Oracle database on a different machine. But it will take a unreasonable time (about 30 seconds) to call a Oracle query from SQL Server.

    No there are no entries required in the TNSNAMES.ORA
    When you are using ODBC for connection, Oracle does not look fo rany enteries in TNSNAMES.ORA file.
    Now I am able to connect to both SQL Plus and Forms 6i. But while connecting to SQL Plus its giving an error
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    Server not available or version too low for this feature
    Connected to:
    Oracle Open Client Adapter for ODBC 6.0.5.35.0
    Microsoft SQL Server 08.00.0534
    Also while disconnecting the Windows Program Error comes, and the application closes abruptly.

  • Unable to configure Oracle Publisher in SQL SERVER 2008 R2

    Hi, All,
    I am trying to talk to my Oracle database from SQL server. I already had Oracle Client 11g installed in my SQL server. 
    Following the guidance in the technet on configuring the Distributer successfully. I now trying to configure the Publisher, by choosing "Adding Oracle Publisher" option. Then it prompt for the user id & password, I have enter the login (which
    is replication user id created in Oracle). I encounter following error msg:
    TITLE: Distributor Properties
    Oracle server instance 'ssluat' cannot be enabled as a Publisher because of the following error:
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1&EvtSrc=Microsoft.SqlServer.Management.UI.ConfigureWizardErrorSR&EvtID=OraclePublisherValidateFailed&LinkId=20476
    Quote:
    ADDITIONAL INFORMATION:
    Unable to run SQL*PLUS. Make certain that a current version of the Oracle client code is installed at the distributor. For addition information, see SQL Server Error 21617 in Troubleshooting Oracle Publishers in SQL Server Books Online. (Microsoft SQL Server,
    Error: 21617)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=21617&LinkId=20476
    Unquote
    In fact  I can run SQL*PLus from my c:\drive command prompt and the Path in Envinronment variable has set to "c:\app\product\11.2.0\client_1\bin". So I don't know why thing msg prompt?
    I have search the guideline on this error in Technet and do what I can to troubleshoot but still got error.
    Kindly pls help me.
    Thank you.
    Avelyn

    1.Make certain that a current version of the oracle client code is installed at the distributor”, please install corresponding version of Oracle
    Client tools on Distributor Box
    2.Are you able to connect to your Oracle server from the Distributor Box?if so,Distributor
    box needs to have Oracle client tools installed on it before you can setup replication , I hope you have installed the Oracle client tools on Distributor Box. If yes, check if using SQLPlus you can connect manually to Oracle server or not from your Distributor
    Box.
    Moreover,Please refer the below
    Before attempting to configure the Oracle Publisher, SQL Server verifies that SQL*PLUS is accessible through the system path on the Distributor. If SQL*PLUS cannot be loaded, the following error message is shown:
    "Unable to run SQL*PLUS. Make certain that a current version of the Oracle client code is installed at the distributor."
    Try to locate SQL*PLUS on the Distributor. For an Oracle 10g client install, the name of this executable is sqlplus.exe. It is typically installed in %ORACLE_HOME%/bin. To verify that the path of SQL*PLUS appears in the system path, examine the value of the
    system variable Path:
    Right-click My Computer, and then click Properties.
    Click the Advanced tab, and then click Environment variables.
    In the Environment Variables dialog box, in the System variables list, select the Path variable,
    and then click Edit.
    In the Edit System Variable dialog box: if the path to the folder that contains sqlplus.exe is not present in the Variable
    value text box, edit the string to include it.
    Click OK on each open dialog box to exit and save changes.

  • What is the easiest way to export all tables data from Oracle to MS SQL Server?

    Hello MS,
    I would like to export all tables from Oracle 11.2 to MS SQL Server 2012 R1.
    Using the tool "Microsoft SQL Server Migration Assistant v6.0 for Oracle" did not work for me because there are too many warnings and errors regarding the schema creation (MS cannot know it because they are not the schema designer). My idea is
    to leave/skip the schema creation to the application designer/supplier and instead concentrate on the Oracle data export and MS SQL data import.
    What is the easiest way to export all tables data from Oracle to MS SQL Server quickly?
    Is it:
    - the „MS SQL Import and Export Data“ Tool
    - the “MS SQL Integration Services” Tool
    - not Oracle dump *.dmp format because it is a propritery binary format
    - flat file *.csv (delimited format)
    Thanks!

    Hi lingodingo,
    If you want to directly export all tables from Oracle database to SQL Server, I suggest you use SQL Server Import and Export Wizard. Because you just need to follow the wizard with GUI, this is the easiest way.
    If you want to make some modification for the tables‘ data before loading to SQL Server, I suggest you use SQL Server Integration Services package. For more details, please refer to the following similar thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/38b2bed2-9d4e-48d4-a33f-1d9eed1c062d/flat-file-to-sql-server?forum=sqldatamining
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Oracle .dmp to SQL Server 2005

    I am trying to import an Oracle .dmp database into SQL Server 2005, what would you suggest as the fastest and easiest way to do this?  DTS/SSIS doesn't have an instant solution and the script I tried to use gave me an error...
    Msg 3241, Level 16, State 0, Line 1
    The media family on device '<DATABASE>' is incorrectly formed. SQL Server cannot process this media family.
    Msg 3013, Level 16, State 1, Line 1
    RESTORE DATABASE is terminating abnormally.
    I would like a GUI based way to do this if at all possible.  Thanks
    -Kyle

     JohnMCIC wrote:
    HI Suprotim,
    I am having the same problem. Could you explain in more detail how to import the Oracle .dmp file to SQL 2005. Thank you in advance.
    john
    I don't believe that the earlier responder was saying that SSIS could work with .DMP files. I think he was saying "use SSIS to transfer data from your Oracle database to SQL Server instead of trying to use .DMP files at all."

  • Oracle 10g to SQL Server 2012

    Hi,
    We are planning to upgrade our SAP. Our environment: Windows Server 2003, ERP ECC 6, Oracle 10g.
    Am looking for guides to migrate our Oracle database to SQL Server 2012.
    With new server, may I know how to convert our data from oracle to SQL Server 2012?
    Thank you.

    Hi,
    First place to start
    https://websmp207.sap-ag.de/OSDBMIGRATION
    Then check PAM to ensure the direction and versions you want to migrated are supported https://websmp207.sap-ag.de/pam.
    Please check link here.
    http://scn.sap.com/docs/DOC-8324
    In marketplace you can also use the guidefinder, for your versions this should be correct.
    https://websmp209.sap-ag.de/~form/sapnet?_SHORTKEY=00200797470000085733&_SCENARIO=01100035870000000202&
    Kind Regards,
    Johan

  • Connect to a oracle database in another server

    Hi people,
    I have to read some tables on a oracle database in another server.
    I know that I will have to use EXEC SQL command, but how can I make the connection between SAP and that oracle database.
    I have seen something about the DBCON table, but I am not sure if I can connect on another server from ther and how...
    Thanks...

    Dear,
    Check the below links:
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/connection-between-sap-system-with-external-oracle-database-with-tcode-dbco-1178583
    http://help.sap.com/saphelp_nwpi71/helpdata/en/df/455ec9747111d6b25100508b6b8a93/content.htm
    Hope it will help you.
    Regards,
    Alok Tiwari

Maybe you are looking for

  • ICal won't recognize calendars in a calendar group

    First - I do not use the cloud, everything is stored on my local hardDisk Second - the problem is only with iCal. Other programs can see calandars within calendar groups just fine. Third and most importantly - I apologize in advance for misspelling c

  • Shipping Date was off and no updates on when it wil arrive.

     Hi there, I purchased a 50" inch Samsung TV at the beginning of this week 4/27 and when I chose my shipping option, Best Buy's website stated that I could either pay 60 bucks for a next day (4/28 Tuesday) delivery or get it delivered by Weds 4/29 fo

  • G3 iMac video problems

    After some recent problems with my iMac shutting itself off with no warning (diagnosed from other posts on this site), I replaced the PAV board, but now when I try booting up, I just get a solid green screen after the usual start-up chime. Does anyon

  • Dashboard Query about Database

    Hello, I have a query regarding dashboard performance. Can I use the filter button on the dashboard in combo boxes so when user selects something in the combo box, the dashboard does not render the result set all at once but make trips back to Databa

  • Reset - evaluate or..

    Post Author: shedevel143 CA Forum: Formula I have a formula :  IF {Customers.PriceLevel} = 0 THEN {LineItem.PriceLevel1Amount} ELSEIF {Customers.PriceLevel} = 1 THEN {LineItem.PriceLevel2Amount} ELSEIF {Customers.PriceLevel} = 2 THEN {LineItem.PriceL