SQL Server 2005 and Oracle Instant Client 10.2.0.3



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

.



Relevant Pages

  • Re: SQLPLUS driver
    ... Sql*plus is NOT using odbc. ... To connect to a database using sqlplus you need a full client (all ... Eventually sqlplus uses OCI (Oracle Call Interface), ...
    (comp.databases.oracle.server)
  • Re: DBD Oracle 1.20 ORA-24334 Error
    ... On the premise instant client and also tried to run perl Makefile.PL -V ... the status after having connected to Oracle ... Failed 2/33 tests, 93.94% okay ...
    (perl.dbi.users)
  • Re: DBD-Oracle 1.19 with Oracle Instant Client 10.2.0.3 on Debian Etch wont install
    ... Currently all my Oracle inst client files are user oracle group oinstall yet lib bin and other dirs have 755 permission so root should be able to access and execute these softlibs. ... As I have written, I have installed DBD::Oracle-1.19 many times with a full client without problem, yet with the limited instant client it does not find the mk file, and the one mk file that the instant client installs does not work. ... It also gives me a makefile for DBD::Oracle but install and test fail ...
    (perl.dbi.users)
  • Re: sql from within c program
    ... > Is there a way to embed sqlplus statements within a c program. ... I'm assuming we're talking about Oracle given the sqlplus reference. ... ODBC is the vendor neutral API. ... Oracle provides these client side ...
    (comp.unix.programmer)
  • Re: ORATCL help needed!
    ... set cursor ... Wow, An Oratcl 3.3. ... It is coded with the the OCI layer released with Oracle ... Oracle instant client is available for many many platforms, ...
    (comp.lang.tcl)