Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Linked Server in Win 2008 and SQL Server 2005(64 bit) Expand / Collapse
Author
Message
Posted Tuesday, March 20, 2012 1:26 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, May 9, 2012 4:31 AM
Points: 89, Visits: 231

Hi friends,I am trying to create a Linked server to Oracle in a Win 2008 (64bit) server using SQL Server 2005(64 bit).This server is configured to Replication and Clustering too.I installed 64 bit Oracle Client,64 bit ODAC and 32 bit Oracle client.But none of this helped.I dont see the oraoledb.oracle driver in the Linked servers providers list.I am able to connect the Oracle client with the Oracle DB.
Please advice what could be the reason.

I even tried using the Microsoft driver for ODBC.But I get the following error
TITLE: Microsoft SQL Server Management Studio
------------------------------
"The linked server has been created but failed a connection test. Do you want to keep the linked server?"
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "SERVER".
OLE DB provider "MSDASQL" for linked server "SERVER" returned message "[Microsoft][ODBC Driver Manager] Invalid connection string attribute".
OLE DB provider "MSDASQL" for linked server "SERVER" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". (Microsoft SQL Server, Error: 7303)
Post #1269375
Posted Tuesday, March 20, 2012 1:43 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: 2 days ago @ 2:39 AM
Points: 1,904, Visits: 2,846
But none of this helped.I dont see the oraoledb.oracle driver in the Linked servers providers list.I am able to connect the Oracle client with the Oracle DB.
Please advice what could be the reason.


run the c:\windows\SysWOW64\odbcad32.exe version, and confirm the oracle driver is present.


----------------------------------------------
Msg 8134, Level 16, State 1, Line 1
Divide by zero error encountered.
Post #1269379
Posted Tuesday, March 20, 2012 1:52 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, May 9, 2012 4:31 AM
Points: 89, Visits: 231
Yes the 32bit shows the drivers.But I am not able to establish the Linked server to Oraacle.
Post #1269382
Posted Tuesday, March 20, 2012 2:01 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: 2 days ago @ 2:39 AM
Points: 1,904, Visits: 2,846
Not sure if you configured the TNSnames yet?

a few guides below:

http://www.ideaexcursion.com/2009/01/05/connecting-to-oracle-from-sql-server/
http://support.microsoft.com/kb/280106
http://www.sqlmag.com/article/sql-server/setting-up-an-oracle-linked-server49687


----------------------------------------------
Msg 8134, Level 16, State 1, Line 1
Divide by zero error encountered.
Post #1269387
Posted Tuesday, March 20, 2012 2:09 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, May 9, 2012 4:31 AM
Points: 89, Visits: 231

Yes Tnsnames is configured that is why I mentioned that I am able to connect using Oracle SQL Plus.Also these references I already saw.I am not getting oraoledb.oracle as one of the Providers.If that happens I think the connection will work.
Post #1269389
Posted Wednesday, March 21, 2012 1:39 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, May 9, 2012 4:31 AM
Points: 89, Visits: 231
Friends,the issue was resolved.I had to installed the ODAC(Oracle Data Access client) in the Cluster server also.and then the OraOLEDB.Oracle showed up in the Linked servers Provider.
Post #1270031
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse