473,545 Members | 2,010 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 19 '05 #1
3 24266
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 19 '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 19 '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 19 '05 #4

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

Similar topics

2
3860
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...
3
2530
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
11
13245
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...
2
4981
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
2449
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...
7
11819
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...
3
4159
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
1260
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...
0
1543
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...
0
7473
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7406
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7660
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. ...
0
7813
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...
0
5976
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...
1
5337
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...
0
4949
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...
0
3444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1888
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.