473,388 Members | 932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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_addlinkedserver 'TURLIVE', 'Oracle', 'MSDAORA', 'TURLIVE'
sp_addlinkedsrvlogin '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_MACHINE\SOFTWARE\Microsoft\MSDTC\MTxOCI \

OracleXaLib = "oracleclient8.dll"
OracleSqlLib = "orasql8.dll"
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 24243
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_addlinkedsrvlogin '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_addlinkedserver 'TURLIVE', 'Oracle', 'MSDAORA', 'TURLIVE'
sp_addlinkedsrvlogin '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_MACHINE\SOFTWARE\Microsoft\MSDTC\MTxOCI \

OracleXaLib = "oracleclient8.dll"
OracleSqlLib = "orasql8.dll"
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
autentication)
try to use
sp_addlinkedsrvlogin '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_addlinkedserver 'TURLIVE', 'Oracle', 'MSDAORA', 'TURLIVE'
sp_addlinkedsrvlogin '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_MACHINE\SOFTWARE\Microsoft\MSDTC\MTxOCI \

OracleXaLib = "oracleclient8.dll"
OracleSqlLib = "orasql8.dll"
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
"Anthentication 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
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...
3
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,...
11
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...
2
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...
4
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...
7
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...
3
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...
0
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...
0
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.