SQL Server 2K "Linked Server" to Oracle 9i Release 2 via "Oracle Provider

Hi,
I'm trying to set up a SQL Server 2000 "Linked Server" to Oracle 9i Release 2 via "Oracle Provider for OLE DB". I have downloaded and installed "Oracle Provider for OLE DB Release 9.2.0.2.0"
My SQL*Net alias/datasource in tnsnames.ora works (It passes the test in "Net 9i Configuration Assistant", I can connect from SQL*Plus, and I can get a Linked server going with the "Microsoft OLE DB Provider for Oracle").
When I set up my Linked Server with Oracle Provider for OLE DB, I need to supply the following three fields (with description from the read-only field at the bottom of the "Linked Server Properties)
Product name: (The product name is the OLE DB data source to add as a linked server.)
Data source: (The data source is usually the name of the server or filename.)
Provider string: (This is the entire provider string.)
Here is my tnsnames.ora entry that works as described above (names may have been changed to protect the innocent)...
PROD9I.XYZ.LOCAL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = nn.nn.nn.nn)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PROD.ora2.xyz.mno.com)
With every combination of values I have tried for these fields, when I try to use the Linked Server I get this error message...
Could not create an instance of OLE DB provider 'OraOLEDB.Oracle'.
OLE DB error trace [Non-interface error:  CoCreate of DSO for OraOLEDB.Oracle returned 0x80040154].
Any help would be greatly appreciated
Thank you,
Daniel Jameson

Thanks Norman.
Well, I've made it a step closer. I uninstalled everything Oracle from my machine and reinstalled the 9i stuff, including the Oracle OLE DB Provider. Now, after I set up the linked server, and I try to view the Tables or Views under the Linked Servers, I get this error message...
Error 7399: OLE DB provider 'OraOLEDB.Oracle' reported an error.
OLE DB error trace [OLE/DB Provider 'OraOLEDB.Oracle' IDBINitialize::Initialize returned 0x80004005:   ].
Does anyone have any idea what this is about? My other Linked Server using the same Oracle SQL*Net alias, but using the Microsoft OLE DB Provider, works fine.

Similar Messages

  • SQL Server 2012 Linked server

    We have created a linked server in SQL 2012.
    Using this we are able to access tables,procs and functions.
    But we are not able to access functions using dynamic values

    Hi S.Vijay,
    According to your description, as other post, you need to show a clear question and more experts can assist you. About linked server in SQL Server, after we configure a linked server, we can
     enable the Database Engine to execute a Transact-SQL statement that includes tables in another instance of SQL Server, or another database product such as Oracle. Linked servers offer the following advantages:
    •The ability to access data from outside of SQL Server.
    •The ability to issue distributed queries, updates, commands, and transactions on heterogeneous data sources across the enterprise.
    •The ability to address diverse data sources similarly.
    There is a similar issue about access function on remote server through linked server, you can review the following post.
    http://social.msdn.microsoft.com/Forums/en-US/e639d83f-3829-4bdb-89e8-6ae1b958ee2c/can-i-access-function-on-remote-server-through-linked-server?forum=transactsql
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to data insert Source server and Linked server (Target Server) at same transaction

    I have try several times for Data insert Source server and Linked server (Target Server) at same transaction.  I am using Begin transaction.  but Source server is completed and Linked server error (or Linked server Completed and source server
    ERROR). at this moment I want ROLL back. how?

    Hi
    Run below query by changing to yourr linked server name and see if DTC is enable or not.. if not
    Begin distributed transaction
    select * from [ServerName].master.dbo.sysprocesses
    Commit Transaction
    To enable MSDTC on each Web server on Windows Server 2008
    Click Start, click Run, type dcomcnfg and then click OK to open Component Services.
    In the console tree, expand Component Services, expand Computers, expand My Computer, and then expand Distributed Transaction Coordinator.
    Right click Local DTC, and click Properties to display the Local DTC Properties dialog box.
    Click the Security tab.
    In the Security Settings section, click Network DTC Access.
    In the Client and Administration section, select Allow Remote Clients and Allow Remote Administration.
    In the Transaction Manager Communication section, select Allow Inbound and Allow Outbound.
    In the Transaction Manager Communication section, select Mutual Authentication Required (if all remote machines are running Windows Server 2003 SP1), select Incoming Caller Authentication Required (if running MSDTC in a cluster), or select No Authentication
    Required if some of the remote machines are pre-Windows Server 2003 SP1. No Authentication Required is the recommended selection.
    Select Enable XA Transactions, and then click OK.
    Repeat steps 1 through 9 on the other Web servers.
    Thanks
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • MS SQL 2005 x64 Linked Server to Oracle 10g 32bit

    I need to connect to a 10.2.0.4 Oracle DB from a SQL Server 2005 x64 on W2003.
    The Instant Client installed is 10.2.0.1 with ODP 10.2.0.3, which is used to connect to another Oracle DB.
    I get de error ORA-12154 while doing the linked server query.
    Do I really need to update de Instant Client?
    Thankx and some more info.
    I can reach it with TOAD from my laptop which has Instant Client 11.1.0.7.
    I followed several how-tos while configuring the linked server.
    The other linked server supposely works but I'm not sure and don't know the Oracle version.

    Hi sanjay,
    but why sysdate is giving me the today's date and when i use getdate ...it does not give me anything..
    i am using openquery tooracle data base..usually i have to use Oracle command..
    Mo..

  • Trigger problem on Sql Server with linked server to Oracle

    Hi All,
    I have a simple insert trigger on Sql Server 2005, it uses linked server to Oracle.
    like that ;
    USE [YTM08]
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ANSI_NULLS ON
    go
    ANSI_WARNINGS ON
    CEATE TRIGGER [dbo].[YTM_TBLSTSABIT_I]
    ON [dbo].[TBLSTSABIT] FOR INSERT
    AS
    BEGIN
    INSERT INTO YTM_ORACLE..SECTOR.STOCKS
    stock_name,
    stock_code,
    insert_date
    SELECT
    SBT.STOCKNAME,
    SBT.STOCKCODE,
    GETDATE()
    FROM INSERTED SBT
    END
    The YTM_ORACLE is a linked server and it's provider is OraOLEDB.Oracle.
    Trigger does not works for that linked server but other triggers for local
    sql server works fine...
    I get this error from sql server
    'Heterogeneous queries require the ANSI_NULLS and
    ANSI_WARNINGS options to be set for the connection. This ensures consistent query semantics. Enable these options and then reissue your query.'
    Does someone know how to solve this issue the right way?
    Thanks in advance.
    Thanks !
    Adam

    Hi Lars,
      Thanks for the data. I've already read this note and configure all this parameters. But when I'm executing the Create Source System in the BI system the process dies.
      If I look into the logs I see this:
    M  call semaphore clean-up function ...
    M  ***LOG Q0E=> DpSigGenHandler, Exception (c06d007e) [dpnttool.c   432]
      That's the reason why I start guessing about other possible problem.
    Regards

  • SQL server 2012 link server 2000

    I am trying to link an SQL Server 2000 to SQL Server 2012.
    From the management studio i am giving the configuration below
    Other data source
    Provider --> SQL Server Native Client 10.0
    Product name: SQLSERVER
    Data Source: machines_ip/Servername
    Provider string: (null)
    Catalog: (null)
    Security Tab
    Be made using this security context: (credentials)
    Server Option Default except of changing RPC out to True
    I get the error 7302 but and help returns no results:
    There is no additional information about this issue in the Error and Event Log Messages or Knowledge Base databases at this time. You can use the links in the Support area to determine whether any
    additional information might be available elsewhere.
    What am i missing?

       can check with 
    In SQL Server Enterprise Manager, open \Server Objects\Linked Servers\Providers, right click on the  provider, select
    properties and check the "Allow inprocess" option and set 1. Recreate your linked server and test again.
    13down
    vote
    In SQL Server Enterprise Manager, open \Server Objects\Linked Servers\Providers, right click on the OraOLEDB.Oracle provider, select properties and check the "Allow inprocess" option. Recreate your linked server
    and test again.

  • Running a SSIS package with SQL Job and Linked Server

    I have a SSIS 2008 package. In one of the Script task I am calling a stored procedure which is  using Openquery using linked server. I deployed this package with protection level as "EncryptWithPassword" and gave a password to the package.
    Created a SQL job and edited its command line to include the password. If I login to SQL Server Mgmt Studio with Windows Authentication and run the job manually it runs fine. But when I schedule it then I get an error that "The Communication link to Linked
    server failed".
    Please help 

    Hi Vivek.B,
    The issue should occur because the SQL Server Agent Service Account or SQL Agent Proxy account under which the job step runs doesn’t have sufficient permissions on the linked server.
    If the job owner is the sysadmin fixed server role, the job can be run under the SQL Server Agent Service Account or a proxy account, then please make sure the SQL Agent Service Account or the proxy account has corresponding login on the linked server. If
    the job owner is not a sysadmin fixed server role, the job must run under a proxy account. In this case, make sure the proxy account has a corresponding login on the linked server.
    Reference:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2009/10/13/who-owns-my-job-and-who-runs-it.aspx
    Regards,
    Mike Yin
    TechNet Community Support

  • Like Server error Linked Server error: Login Failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

     Getting error when trying to test the link server from remote ... Please help

    Hello,
    You've supplied us with little information other than what little is in the title. I'll refer you to a post I wrote about this. Please read
    through it and post back if it does not fix your issue. There are a few other resource links in the post to check out, but it's most likely related to a Kerberos/SPN issue.
    -Sean
    The views, opinions, and posts do not reflect those of my company and are solely my own. No warranty, service, or results are expressed or implied.

  • Create sql view from linked server ?

    server1.database1.dbo.table1
    Table1 contains columns
    Name, Author, Date, Quantity
    server2.database2.dbo.table2
    Table2 contains columns
    Id, Author
    How can I create a view on server2 that cointains all data from
    server1.database1.dbo.table1, but instead of value of column Author,
    I need a value of column Id ?

    Try the below :Its a sample method, you can use it in your actual code.
    --My local server,I created tablecreate table statuses(filestatus int)
    Insert into statuses Select 1--Created a view locally to access the objects from other server.--You need to qualify the object as server-db-schema-objectname as below--join these two tables in the view.
    create view test_view
    as
    Select B.filestatus,A.filestatusdesc From <Linkedserver>.<DBName>.<schema>.<objectname> A
    Inner join statuses B on A.filestatus =B.filestatus
    --Execute the below to get the records from different server
    Select * From test_view

  • Connect Non-SAP Oracle db (32bit) in sql 2005 (64 bit) using linked server

    Hi,
    I am connecting Oracle 10g database from SQL 2005 using linked server, in which i get the error
    "Cannot initialize the data source object of OLE DB provider "MSDAORA" for linked server "L2ORACLE".
    OLE DB provider "MSDAORA" for linked server "L2ORACLE" returned message "Oracle client and networking components
    were not found. " (Microsoft SQL Server, Error: 7303)
    SAP Server with sql 2005 db is in 64 bit server / Windows 2003
    Non-SAP Oracle 10g is in 32 bit windows 2003 server.
    i have installed Oracle 64 bit client in the SAP Server and also copied the 64 bit version of dboraslib.dll to the DIR_LIBRARY path. I am able to view the oracle tables in the oracle client.
    But, when i create the linked server, it gives the above error.
    If i install 32 bit version of Oracle client in the SAP Server, i am able to create the linked server in the db level, but, it says "Work Process restarted, session terminated" message in the Z program in SAP.
    The same works in the test environment where both are 32 bit servers. problem is when SAP server is in 64 bit and non sap is in 32 bit.
    Please suggest.
    Thanks and Regards,
    Nagu

    "Cannot initialize the data source object of OLE DB provider "MSDAORA" for linked server "L2ORACLE".
    OLE DB provider "MSDAORA" for linked server "L2ORACLE" returned message "Oracle client and networking components
    were not found. " (Microsoft SQL Server, Error: 7303)
    check the workprocess traces for errors (and/or SM21). It seems that the system is "not aware" that an Oracle client is installed.
    64bit programs can´t load 32bit libraries/DLLs that´s why the workprocess dumps when you use the 32bit client.
    Markus

  • Linked Server SQL 2008 64 bit Windows Server 2008 64 bit

    Hello there,
    I'm trying to access my customers Oracle database with a SQL Linked Server. The error I get is:
    Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server...
    I did the following steps:
    1. Installed Oracle client 10g with a custom installation and selected everything.
    2. Created a tnsnames.ora
    dev =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dijkora01)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = dev)
    3. Tested this with tnsping dev, which said that the connection is OK.
    4. Activated 'Allow inprocess' for my OraOLEDB.Oracle provider for the linked servers in my SQL Server Management Studio.
    5. Created a new linked server with:
    Linked Server: IAP
    Provider: Oracle Provider for OLE DB
    Product name: Oracle
    Data source: dev
    In the security tab I activated 'Be made using this security context'. When I now press 'OK' I get the above error message.
    Can someone help me with this?

    Windows 7 Enterprise 32-Bit
    Installed the version 12 for 32 bit ODAC and it worked. The key is to Install as Administrator once it is unzipped.
    Was able to set up Listener then
    Was able to set up ODBC using the ODAC. Connect MS Access 2010 to the Oracle views.
    Then, tried to install the 64 Bit onto Windows 2008 Server.
    It locked up during installation both times.
    Installed ODAC without an error.
    However, the ODBC setup will not provide a list of the servers in the ODBC  TNS Service Name listbox for Server 2008.
    In Windows 7, it populates the TNS Service Name.
    The list box in Windows 2008 is empty.
    Do you know what would cause that?
    The .ORA file scrips look the same on Windows 2008 as they do on Windows 7 except it does not have the (server = Dedicated) argument.
    Thanks.

  • SQL Server 2005 64BIT Linked Server Cannot fetch a row using a bookmark

    We get the following error SOMETIMES when trying to delete a row from an Oracle 10g database table via the SQL 2005 64BIT linked server.
    DELETE [edwdev]..SYSTEM.SAIC_ARTIFACT_LOG FROM tblArtifactLog src WHERE src.source_seq_no = SAIC_ARTIFACT_LOG.art_seq_no and src.source_name = 'edwdev' [SQLSTATE 01000] (Message 0) Cannot fetch a row using a bookmark from OLE DB provider "OraOLEDB.Oracle" for linked server "edwdev". [SQLSTATE 42000] (Error 7333). The step failed.
    They keyword here is SOMETIMES. The job would fail 100% of the time before applying ODAC 10.2.0.3.0, after the ODAC install the job fails about 40% of the time. We have this setup in a test enviornment and yes there are rows of data in the table everytime the job runs.
    As far as the OraOLEDB10.dll install we have a date of 2/20/07 but a version of 10.2.0.2. I am wondering if this shouldn't be a new version.

    LearnMoreAgile wrote:
    so does that mean no one at oracle can guide me in this issue before i goto microsoft ?How has the Linked Server been created in MSSQL? OraOLEDb.Oracle is the class name for the Oracle OLEDB provider which should appear in your list of OLEDB providers in your favourite windows dev tool or when creating the linked server. If it doesn't appear likely you didn't choose to install it. I don't know if it's a default install with the 64bit client, but the ODAC client contains the .net provider and not the OLEDB provider.
    Niall

  • Instant client 10.2.0.3 used with ms sql linked server doesn't work

    Hi,
    instant client version 10.2.0.3 doesn't work as microsoft sql linked server (both 2000, 2005) while 10.2.0.1 does. (tested by overwriting files in instant client directory - basic instalation, then restart mssql services) - the message is, that the oracle client is not installed when running sql (registration of linked server is ok).
    Is it a known issue or is there any workaround?
    (Windows XP, 2003, MS SQL 2005, MS SQL 2000, Oracle 9.2.0.6)
    Thanks,
    Pavel

    I installed oracle-instantclient-basic-10.2.0.3-1.i386.rpm on a redhat box to
    connect oracle database server 9.2.0.8.0 install on win box.Is there any other Oracle software installed on the RedHat machine?
    In which directory did you install Instant Client?
    Can you login with sqlplus?
    On the database server, I defined parameters like this :
    NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    NLS_NUMERIC_CHARACTERS='. 'This will have no effect on your problem - these are client environment variables.
    Before starting apache (lampp) I set Oracle environement like this :
    export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    export NLS_NUMERIC_CHARACTERS='. '
    My application worked very fine.
    BUT a few days ago (1 week), in my application, the date format display wrong,
    I have this format : DD/MON/YYYY even with
    export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    before starting apache.The ancient question: Do you remember what you changed before it stopped working?
    So I stop my apache and try set Oracle environment like this :
    export ORACLE_HOME=/usr/lib/oracle/10.2.0.3/clientAs has been said, do away with that.
    export PATH=$ORACLE_HOME/bin:$PATHYou don't need that either.
    Except is might be nice to have the directory that contains sqlplus in PATH.
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATHNow that surprises me.
    Normally, instant client shared libraries are not installed in a subdirectory.
    Does this "lib" directory exist?
    You should add the directory containing the *.so files to LD_LIBRARY_PATH.
    When I restart apache and test my application, an error php message occurs :
    Ocisessionbegin error while trying TO retrieve text FOR error ora-12705
    I check my oracle_home, I don't think I make a mistake?It seems that Oracle cannot find the instant client shared library libociei.so.
    This library must be found in LD_LIBRARY_PATH.
    In this context it would be interesting to know (as I asked above) if any other Oracle products are installed on this machine.
    Yours,
    Laurenz Albe

  • Link server issue

    Dear All,
    We have Install:-
    Windows server 2008, 64 bit.
    MS SQL Server 2008.
    Oracle 11g client, 64 bit.
    odac 11g 64 bit.
    We have oracle 10g on our live server that is alos on 2008, 64 bit.
    Our requirment is to access oracle view from oracle 10g database to MS SQL server database. For that we have install all the above things.
    But oracle is not visible while in the link server. To add link server we are following below steps,
    In SQL server database Right click on link server, add link server but it does not show any oracle link.
    We have install oracle client first and then ODAC.
    are we missing any steps to add link server in SQL Database.
    Thansks.

    I found couple of good link when I said "access oracle database from sql server 2008" to google like :
    1.http://stackoverflow.com/questions/307636/how-do-you-setup-a-linked-server-to-an-oracle-database-on-sql-2000-2005
    2.http://www.sqlmag.com/article/oracle/connecting-sql-server-and-oracle-using-linked-servers-102313
    3.http://www.dotnetfunda.com/forums/thread3238-connection-between-oracle-server-and-sql-server-2008.aspx
    Just try to follow and let us know, if they help you.
    Regards
    Girish Sharma

  • Copy linked server database and create database on same server

    Hi ALL
    I have one linked server i need to copy it whole database in SQL on same server where linked server is created .
    Kindly help me .
    Thanks
    with regards
    BI_Group

    Hi BI_group,
    You can try Microsoft SQL Server Migration Assistant for MySQL. For more detail information, please refer to the following link:
    Microsoft SQL Server Migration Assistant for MySQL
    http://www.microsoft.com/en-us/download/details.aspx?id=28764
    Migrating MySQL Databases to SQL Server / SQL Azure
    http://msdn.microsoft.com/en-us/library/hh313125.aspx
    Converting MySQL Databases (MySQL to SQL)
    http://msdn.microsoft.com/en-us/library/hh313137.aspx
    Allen Li
    TechNet Community Support

Maybe you are looking for

  • Rename an XML tag using javascript

    Dear adobe experts, I have a requirement to rename XML tags, in the interface for an adobe form, using javascript. the XML looks like this: <ELEMENT>      <DATA>           <ROW_IID>0</ROW_IID>           <PARENT>0</PARENT>           <CHILD>0</CHILD>  

  • Xerox Phaser 3400 PS & Mac OS.10.3.9

    I bought my Xerox Phaser 3400 PS late 2002 (Printer Firmware Version: 1.04 01-21-2002) and I've used it with sucsess running Mac OS 9.2.2 on my Power Mac G4 with 768mb RAM installed. As allways before, the units are connected via a 3C16793-ME OfficeC

  • Redirect Document Recovery using registry setting or Group Policy

    Hi all, I am deploying In Design CS5.5 (version 7.5) on several Windows 2008 R2 SP1 Citrix servers. The users login to the server and use the server desktop to run applications. For many apps we have used redirection for cache folders etc to try and

  • Java.lang.ClassNotFoundException error when running form

    Hello, On a Windows 2003 64 bits server I have installed Oracle Application Server 10gR2 10.1.2.0.2 (Infrastructure + Business Intelligence and Forms option). I also upgraded to Portal 10.1.4. All components are up and running. I wanted to test if Fo

  • Party Shuffle with Shared Music

    I saw this question posted a few times (all of which are archived and do not allow posting of replies). Does anyone have any good info as to why Party Shuffle can't pull from a shared music library? The only real "workaround" is to play the library a