Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Programming / SQL / June 2007

Tip: Looking for answers? Try searching our database.

Creating Linked Server to Oracle 9i - HELP!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bkgroups@yahoo.com - 25 May 2007 12:50 GMT
Greetings all,

I'm unsuccessfully trying to create a linked server from SQL Server
2005 to Oracle 9i using OraOLEDB.Oracle.  Here's the lovely error
message that I get:

OLE DB provider "OraOLEDB.Oracle" for linked server "test" returned
message "ORA-12504: TNS:listener was not given the SERVICE_NAME in
CONNECT_DATA".

I am able to connect via SQL*PLUS, no problem.

In the Linked Server dialog box I have these entries:

Provider:  Oracle Provider for OLE DB
Product Name:  Oracle
Data Source: MILAB.WINDSORLOCKS.AHLSTROM.COM
Provider String:  "  "

Here's the TNSNAMES entry:

MILAB.WINDSORLOCKS.AHLSTROM.COM =
 (DESCRIPTION =
   (ADDRESS_LIST =
     (ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(HOST =
10.1.0.237)(PORT = 1522))
   )
   (CONNECT_DATA =
     (SID = milab)
   )
 )

Here's the SQLNET entry:

NAMES.DEFAULT_DOMAIN = adagnet.net
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES)

HELP is greatly appreciated.

Thanks,

BK
Roy.N.Latham@gmail.com - 25 May 2007 15:18 GMT
On May 25, 7:50 am, bkgro...@yahoo.com wrote:
> Greetings all,
>
[quoted text clipped - 39 lines]
>
> BK

I linked MS SQL 2005 to Oracle 10g last night.
My first attempt was to use the Oracle OLE DB driver/provider like
you.
My second attempt was to use the Microsoft for Oracle OLE DB driver.
(I forget the exact wording.)
For me, the drivers were not in alphabetical sequence for SQL Server
2005 but they were for SQL Server 2000, and since the same driver had
just worked for 2000, I looked harder to find the Microsoft Oracle
driver.

Your mileage may vary.

Best of luck

Roy
Fari - 30 May 2007 13:54 GMT
Hi!
Have you enabled Allow inprocess (Linked Servers, Providers,
OraOleDB.Oracle) ?

/*
Fari
*/
bkgroups@yahoo.com - 01 Jun 2007 18:21 GMT
> Hi!
> Have you enabled Allow inprocess (Linked Servers, Providers,
[quoted text clipped - 3 lines]
>  Fari
> */

I found a solution!

I set the "Data Source" and "Provider String" on the linked server
like this:

"IP Address" + ":" + "Port/" + "alias".

EXAMPLE: 10.1.0.222:1522/alias

Now, it works like a charm.  Hopefully, others can benefit from this
posting.

Thanks,

BK
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2012 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.