473,804 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linked Server (Oracle 9i)


Hello all,

Having problems connecting to an Oracle 9i database from within
SQL/Server 2000 using the Security/Linked Servers feature.

Server1 (SQL/Server)
-----------
Windows Server 2003, Standard edition
MS SQL/Server 2000
Oracle 9i Client kit (OLEDB & ODBC) & Enterprise management tools
Microsoft ODBC for Oracle
Oracle OLEDB
MDAC 2.8 RTM

Server2 (Oracle)
-----------
Windows 2000 - Advanced Server
Oracle 9i database (v9.2.0.1.0)
Two nodes clustered using Microsoft cluster manager. (Nodes are
DATABASE01 & DATABASE02 - Cluster is WMCLUSTER)

When I try to connect to the linked server in Enterprise Manager I get
the following error messages.

Error 7399 OLE DB provider 'MSDAORA' reported an error. Authentication
failed.

OLE DB error trace [OLE/DB Provider 'MSDAORA'
IDBInitialize:: Initialize returned 0x80040e4d: Authentication
failed.].
From within Query analyzer I get a slightly different message
reporting that the username/password are incorrect.

dbcc traceon(7399)
select * from TURLIVE..SONICA .INV_LOC
Server: Msg 7399, Level 16, State 1, Line 3
OLE DB provider 'MSDAORA' reported an error. Authentication failed.
[OLE/DB provider returned message: ORA-01017: invalid
username/password; logon denied
]
OLE DB error trace [OLE/DB Provider 'MSDAORA'
IDBInitialize:: Initialize returned 0x80040e4d: Authentication
failed.].

I know the username/password combination is correct and I can use
these from with Oracle enterprise Manager with sucess.

TURLIVE is the name I've given the linked server, SONICA is the name
of the schema on the Oracle database and INV_LOC is a valid table.
TURLIVE is also the name of the database instance on Server2.
Steps taken so far

Install Oracle client tools (Enterprise Manager, Net manager etc) on
Server1.

Setup an entry in TNSNAMES.ORA to the cluster that has the Oracle
database. e.g.

TURLIVE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = WMCLUSTER)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = TURLIVE)
)
)

This works fine, I can connect via Oracle Enterprise manager and I can
TNSPING WMCLUSTER, DATABASE01 & DATABASE02.

Configured an ODBC source to TURLIVE.

On Server1 I've configured the linked server using the following SQL.

sp_addlinkedser ver 'TURLIVE', 'Oracle', 'MSDAORA', 'TURLIVE'
sp_addlinkedsrv login 'TURLIVE', false, 'sa', 'sonica','***** *'

(password blanked)

I then rebooted Server1

The properties of the new linked server are:

Product name = Oracle
Data Source = TURLIVE
Provider String = blank

I've modifed the registry on Server1 as instructed by a Microsoft KB
article.

HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\MSDTC\M TxOCI\

OracleXaLib = "oracleclient8. dll"
OracleSqlLib = "orasql8.dl l"
OracleOciLib = "oci.dll"
Still no luck. Can anyone please point out he bleeding obvious? :-)
Thanks in advance
As an aside, has anyone ever configured a linked server to an Oracle
Rdb (Previously DEC Rdb running on OpenVMS and DEC UNIX) database?
Are there any HOWTO guides for this type of connectivity?

Cheers
Dave.




Jul 20 '05 #1
3 2556
Are you sure you are connecting to sql server with sa username? (check in
enterprise manager registration properties if you are using sa or windows
autentication)
try to use
sp_addlinkedsrv login 'TURLIVE', false, null, 'sonica','***** *'

Excuse me for my bad english.
"David Gray" <po****@spamcop .net> ha scritto nel messaggio
news:0n******** *************** *********@4ax.c om...

Hello all,

Having problems connecting to an Oracle 9i database from within
SQL/Server 2000 using the Security/Linked Servers feature.

Server1 (SQL/Server)
-----------
Windows Server 2003, Standard edition
MS SQL/Server 2000
Oracle 9i Client kit (OLEDB & ODBC) & Enterprise management tools
Microsoft ODBC for Oracle
Oracle OLEDB
MDAC 2.8 RTM

Server2 (Oracle)
-----------
Windows 2000 - Advanced Server
Oracle 9i database (v9.2.0.1.0)
Two nodes clustered using Microsoft cluster manager. (Nodes are
DATABASE01 & DATABASE02 - Cluster is WMCLUSTER)

When I try to connect to the linked server in Enterprise Manager I get
the following error messages.

Error 7399 OLE DB provider 'MSDAORA' reported an error. Authentication
failed.

OLE DB error trace [OLE/DB Provider 'MSDAORA'
IDBInitialize:: Initialize returned 0x80040e4d: Authentication
failed.].
From within Query analyzer I get a slightly different message
reporting that the username/password are incorrect.

dbcc traceon(7399)
select * from TURLIVE..SONICA .INV_LOC
Server: Msg 7399, Level 16, State 1, Line 3
OLE DB provider 'MSDAORA' reported an error. Authentication failed.
[OLE/DB provider returned message: ORA-01017: invalid
username/password; logon denied
]
OLE DB error trace [OLE/DB Provider 'MSDAORA'
IDBInitialize:: Initialize returned 0x80040e4d: Authentication
failed.].

I know the username/password combination is correct and I can use
these from with Oracle enterprise Manager with sucess.

TURLIVE is the name I've given the linked server, SONICA is the name
of the schema on the Oracle database and INV_LOC is a valid table.
TURLIVE is also the name of the database instance on Server2.
Steps taken so far

Install Oracle client tools (Enterprise Manager, Net manager etc) on
Server1.

Setup an entry in TNSNAMES.ORA to the cluster that has the Oracle
database. e.g.

TURLIVE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = WMCLUSTER)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = TURLIVE)
)
)

This works fine, I can connect via Oracle Enterprise manager and I can
TNSPING WMCLUSTER, DATABASE01 & DATABASE02.

Configured an ODBC source to TURLIVE.

On Server1 I've configured the linked server using the following SQL.

sp_addlinkedser ver 'TURLIVE', 'Oracle', 'MSDAORA', 'TURLIVE'
sp_addlinkedsrv login 'TURLIVE', false, 'sa', 'sonica','***** *'

(password blanked)

I then rebooted Server1

The properties of the new linked server are:

Product name = Oracle
Data Source = TURLIVE
Provider String = blank

I've modifed the registry on Server1 as instructed by a Microsoft KB
article.

HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\MSDTC\M TxOCI\

OracleXaLib = "oracleclient8. dll"
OracleSqlLib = "orasql8.dl l"
OracleOciLib = "oci.dll"
Still no luck. Can anyone please point out he bleeding obvious? :-)
Thanks in advance
As an aside, has anyone ever configured a linked server to an Oracle
Rdb (Previously DEC Rdb running on OpenVMS and DEC UNIX) database?
Are there any HOWTO guides for this type of connectivity?

Cheers
Dave.





Jul 20 '05 #2

Thats the one, all works fine now. Thanks very much

Dave.
On Wed, 3 Nov 2004 00:45:23 +0100, "Cirrosi"
<Ci************ ****@fastwebnet .it> wrote:
Are you sure you are connecting to sql server with sa username? (check in
enterprise manager registration properties if you are using sa or windows
autenticatio n)
try to use
sp_addlinkedsr vlogin 'TURLIVE', false, null, 'sonica','***** *'

Excuse me for my bad english.
"David Gray" <po****@spamcop .net> ha scritto nel messaggio
news:0n******* *************** **********@4ax. com...

Hello all,

Having problems connecting to an Oracle 9i database from within
SQL/Server 2000 using the Security/Linked Servers feature.

Server1 (SQL/Server)
-----------
Windows Server 2003, Standard edition
MS SQL/Server 2000
Oracle 9i Client kit (OLEDB & ODBC) & Enterprise management tools
Microsoft ODBC for Oracle
Oracle OLEDB
MDAC 2.8 RTM

Server2 (Oracle)
-----------
Windows 2000 - Advanced Server
Oracle 9i database (v9.2.0.1.0)
Two nodes clustered using Microsoft cluster manager. (Nodes are
DATABASE01 & DATABASE02 - Cluster is WMCLUSTER)

When I try to connect to the linked server in Enterprise Manager I get
the following error messages.

Error 7399 OLE DB provider 'MSDAORA' reported an error. Authentication
failed.

OLE DB error trace [OLE/DB Provider 'MSDAORA'
IDBInitialize:: Initialize returned 0x80040e4d: Authentication
failed.].
From within Query analyzer I get a slightly different message
reporting that the username/password are incorrect.

dbcc traceon(7399)
select * from TURLIVE..SONICA .INV_LOC
Server: Msg 7399, Level 16, State 1, Line 3
OLE DB provider 'MSDAORA' reported an error. Authentication failed.
[OLE/DB provider returned message: ORA-01017: invalid
username/password; logon denied
]
OLE DB error trace [OLE/DB Provider 'MSDAORA'
IDBInitialize:: Initialize returned 0x80040e4d: Authentication
failed.].

I know the username/password combination is correct and I can use
these from with Oracle enterprise Manager with sucess.

TURLIVE is the name I've given the linked server, SONICA is the name
of the schema on the Oracle database and INV_LOC is a valid table.
TURLIVE is also the name of the database instance on Server2.
Steps taken so far

Install Oracle client tools (Enterprise Manager, Net manager etc) on
Server1.

Setup an entry in TNSNAMES.ORA to the cluster that has the Oracle
database. e.g.

TURLIVE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = WMCLUSTER)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = TURLIVE)
)
)

This works fine, I can connect via Oracle Enterprise manager and I can
TNSPING WMCLUSTER, DATABASE01 & DATABASE02.

Configured an ODBC source to TURLIVE.

On Server1 I've configured the linked server using the following SQL.

sp_addlinkedser ver 'TURLIVE', 'Oracle', 'MSDAORA', 'TURLIVE'
sp_addlinkedsrv login 'TURLIVE', false, 'sa', 'sonica','***** *'

(password blanked)

I then rebooted Server1

The properties of the new linked server are:

Product name = Oracle
Data Source = TURLIVE
Provider String = blank

I've modifed the registry on Server1 as instructed by a Microsoft KB
article.

HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\MSDTC\M TxOCI\

OracleXaLib = "oracleclient8. dll"
OracleSqlLib = "orasql8.dl l"
OracleOciLib = "oci.dll"
Still no luck. Can anyone please point out he bleeding obvious? :-)
Thanks in advance
As an aside, has anyone ever configured a linked server to an Oracle
Rdb (Previously DEC Rdb running on OpenVMS and DEC UNIX) database?
Are there any HOWTO guides for this type of connectivity?

Cheers
Dave.






Jul 20 '05 #3
Hi David,

Make sure you are using the login/password. Since error says it is a
"Anthentica tion error". And also make sure you are using the right
Provider.

-- Use MS driver to Oracle
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
4524
by: Sudhesh Nayak | last post by:
Hi, I have an Oracle (8.1) & a SQL Server 2000 database with Production data. There are situations when I need data from both the databases. My first choice was to link Oracle to SQL and run DTS overnight. But this would have a 1 day latency not to mention the time it would take. 1. Has any one tried real time access via Linked server to Oracle? How good is the performance?
3
24290
by: David Gray | last post by:
Hello all, Having problems connecting to an Oracle 9i database from within SQL/Server 2000 using the Security/Linked Servers feature. Server1 (SQL/Server) ----------- Windows Server 2003, Standard edition MS SQL/Server 2000 Oracle 9i Client kit (OLEDB & ODBC) & Enterprise management tools
2
3878
by: Pardhasaradhy | last post by:
Hello, I have a linked server to oracle 7.1 from SQL 2000. when I try to execute simple select statement which returns one row of data using openquery is not fetching the data. After 30 minutes SQL Query analyser is hanging. This is happening on the production server and it is working from last 6 months. I have tried by deleting and recreating the linked server, but no use. Please help Thanks,
11
13282
by: Ellen K | last post by:
Hi all, I set up our Oracle Financials as a linked server to one of my SQL Server boxes. On running a test query, I got the following error message: OLE DB provider 'MSDAORA' supplied inconsistent metadata for a column. Metadata information was changed at execution time. OLE DB error trace . The Oracle datatype of the column with the supposedly inconsistent
2
4994
by: tim.pascoe | last post by:
I'm currently trying to establish a linked server to an Oracle database. Setup: Connecting to 8x version of Oracle Using 9i client tools (Net Manager) SQL-Server 2000 Windows 2000 I installed the Oracle 9i client tools, and set up a Service for the
4
2459
by: arichie | last post by:
Can anyone point me where can I find a good architectural document on how the Linked server works in SQL Server. I am not asking about how to use Linked server, I am interested in know how it is defined and architected. Our project needs a data transfer from SQL server database to the Oracle database, I am trying to find out whether can we use DTS or create a linked server and execute a sql query to copy data. Thanks in Advance. Allen
7
11837
by: Joe | last post by:
I am using Access 2003 and are linking to an Oracle 9i ODBC datasource (using Oracle ODBC drivers). After linking the tables in Access, I inspect the data contained in the linked tables. For tables that involve a number field as the primary key, the data is returned successfully. For tables that involve a character field (e.g. CHAR(3) or VARCHAR(10)) as the primary key, I have the correct number of rows returned, but the data displayed...
3
4176
by: Chris | last post by:
I need to link some data from SQL Server 2005 with Oracle 10 data. One way is to link Oracle server to SQL Server and use ROWSOURCE for retrieving data. What other ways for joing data from both databases exist ? Can I do it from SQLCRL VB - Stored Procedure ? If yes, what objects shall I use for opening database and running an sql ?
0
1284
by: aberton | last post by:
Hi all, I am having major performance issues between my linked server and an Oracle10 db. I have created a number of views in my SQL Server database which map to corresponding Oracle tables via a linked server. In my Oracle environment via Sql*Plus I run a simple query (count) which does a join between a 400K table and a 2.5 mil table - this takes about 10 seconds. In my SQL Server environment using the views created via Linked Server, the...
0
1559
by: aberton | last post by:
Hi all, I am having major performance issues between my linked server (SQL Server) and an Oracle10 db. I have created a number of views in my SQL Server database which map to corresponding Oracle tables via a linked server. In my Oracle environment via Sql*Plus I run a simple query (count) which does a join between a 400K table and a 2.5 mil table - this takes about 10 seconds. In my SQL Server environment using the views created via...
0
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.