Groups | Blog | Home
all groups > sql server connect > june 2007 >

sql server connect : SQL Server 2005 and Oracle Instant Client 10.2.0.3


Joe Blow
6/29/2007 9:10:52 AM
Hello All:

I posted this in microsoft.public.sqlserver but didn't get a response.
I am hoping someone here can answer this...

Having some problems with the Oracle Instant Client 10.2.0.3 and SQL Server
2005.
WinXP Pro on a very fast PC, 3 Gig RAM, plenty of HD space.
I already got past the problem of turning on "OPENROWSET" in the "Surface
Area Configuration".

I wrote this sql statement to download a table from Oracle and insert into
my table.

USE DatabaseName;
TRUNCATE TABLE MyTableName

SELECT * INTO MyTableName from OPENROWSET ('MSDAORA', 'ORA_Instance';
'username';'password','SELECT FIELD1, FIELD2, FIELD3, etc FROM
Oracle_Table_Name')

I get the following error message:

OLE DB provider "MSDAORA" for linked server "(null)" returned message
"Oracle client and networking components were not found. These components
are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3
or later client software installation. Provider is unable to function until
these components are installed."
Msg 7303, Level 16, State 1, Line 3
Cannot initialize the data source object of OLE DB provider "MSDAORA" for
linked server "(null)".

I have the following envrionment variables set as well:

TNS_NAMES=C:\Oracle\InstantClient (where my tnsnames.ora and
sqlnet.ora files are stored...)
ORACLE_HOME=C:\Oracle\InstantClient
PATH=%PATH%;C:\Oracle\InstantClient

It almost looks like it's not seeing the client at all.
However, I can create DSN entries and use those with MS-Access.

Also, I can connect to the Oracle server with SQLPlus using the "SQLPLus
username/password@instance" without issues.

However, if I launch SQLPlus and do not use the username/password@instance
format,
it asks me to login with a username and password, then I get an error:
ORA-12560: TNS:protocol adapter error

Do I need to install the full 10g Oracle Client or can I use the Instant
Client?


Please help and TIA !!!


-Joe



--
Posted via a free Usenet account from http://www.teranews.com
mrdenny
6/29/2007 12:40:02 PM
I have always used the full Oracle client when connecting to an Oracle
server. Check the MSKB. There is a KB Article that covers how to manually
set the reg key to make this work. The Oracle installer doesn't always set
this reg key correctly, and often need to be manually set.
--
Denny
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration /
Microsoft Office SharePoint Server 2007: Configuration)
MCITP (dbadmin, dbdev)


[quoted text, click to view]
Joe Blow
6/29/2007 3:27:24 PM
I searched the MS KB, but could not locate any articles regarding this
issue.

Could you point me in the right direction?


Thanks Mr Denny.


-Joe



[quoted text, click to view]



--
Posted via a free Usenet account from http://www.teranews.com
AddThis Social Bookmark Button