472,364 Members | 2,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

MS OLE DB for ODBC with Oracle ODBC source headaches

Hi all,

I am having trouble getting linked Oracle 9 server in MS SQL Server
2005 Express to work properly. My machine is running Windows XP.

The Microsoft and Oracle OLE DB Providers have problems dealing with
Oracle's Numeric Data Type, so I decided to use Microsoft's OLE DB for
ODBC Provider and an Oracle ODBC source. When using the Microsoft ODBC
for Oracle Driver in my ODBC source I have inconsistent behavior.
Sometimes my queries are processed properly, then other times I get the
following error

OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr
failed".
OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr
failed".
OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC driver for Oracle][Oracle]".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "MSDASQL"
for linked server "ODBCBEAST".

I have no idea why sometimes I can connect to the linked server with no
problems and
why other times it performs like this. I'm not changing anything about
the system I can think of. When I use an Oracle client (PL/SQL) I have
absolutely no problems connecting. TNSPING returns that the connection
is good.

This is unacceptable so I decided to try my luck with the Oracle 10g
ODBC driver. However when I use this and perform an openquery select
against the linked server I get back only 11 rows, when I know that the
database has over 100 rows (in fact when using the Microsoft ODBC
driver and it works that's what I get). I figured maybe the buffer
setting needed to be raised in the ODBC configuration so I took it from
64000 to 600000 (a magnitude of 10) but I still get back only 11 rows.
I'm at my wit's end.

Any suggestions on resolving one or the other problem would be much
appreciated.

Thanks much

Dec 22 '05 #1
2 9822
Hi

Did you check out
http://support.microsoft.com/default...b;en-us;822841
and
http://support.microsoft.com/default...b;en-us;197459

John

"Crazy Cat" <da******@hotmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
Hi all,

I am having trouble getting linked Oracle 9 server in MS SQL Server
2005 Express to work properly. My machine is running Windows XP.

The Microsoft and Oracle OLE DB Providers have problems dealing with
Oracle's Numeric Data Type, so I decided to use Microsoft's OLE DB for
ODBC Provider and an Oracle ODBC source. When using the Microsoft ODBC
for Oracle Driver in my ODBC source I have inconsistent behavior.
Sometimes my queries are processed properly, then other times I get the
following error

OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr
failed".
OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr
failed".
OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC driver for Oracle][Oracle]".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "MSDASQL"
for linked server "ODBCBEAST".

I have no idea why sometimes I can connect to the linked server with no
problems and
why other times it performs like this. I'm not changing anything about
the system I can think of. When I use an Oracle client (PL/SQL) I have
absolutely no problems connecting. TNSPING returns that the connection
is good.

This is unacceptable so I decided to try my luck with the Oracle 10g
ODBC driver. However when I use this and perform an openquery select
against the linked server I get back only 11 rows, when I know that the
database has over 100 rows (in fact when using the Microsoft ODBC
driver and it works that's what I get). I figured maybe the buffer
setting needed to be raised in the ODBC configuration so I took it from
64000 to 600000 (a magnitude of 10) but I still get back only 11 rows.
I'm at my wit's end.

Any suggestions on resolving one or the other problem would be much
appreciated.

Thanks much

Dec 25 '05 #2

John Bell wrote:
Hi

Did you check out
http://support.microsoft.com/default...b;en-us;822841
and
http://support.microsoft.com/default...b;en-us;197459

John
Hi John,

Neither of those appear to apply in my case, but I went back to using
the Oracle OLEDB provider (as opposed to the Microsoft OLE for ODBC
driver with an Oracle ODBC source) and lo and behold everything's right
again. Thanks for your help.


"Crazy Cat" <da******@hotmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
Hi all,

I am having trouble getting linked Oracle 9 server in MS SQL Server
2005 Express to work properly. My machine is running Windows XP.

The Microsoft and Oracle OLE DB Providers have problems dealing with
Oracle's Numeric Data Type, so I decided to use Microsoft's OLE DB for
ODBC Provider and an Oracle ODBC source. When using the Microsoft ODBC
for Oracle Driver in my ODBC source I have inconsistent behavior.
Sometimes my queries are processed properly, then other times I get the
following error

OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr
failed".
OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr
failed".
OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC driver for Oracle][Oracle]".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "MSDASQL"
for linked server "ODBCBEAST".

I have no idea why sometimes I can connect to the linked server with no
problems and
why other times it performs like this. I'm not changing anything about
the system I can think of. When I use an Oracle client (PL/SQL) I have
absolutely no problems connecting. TNSPING returns that the connection
is good.

This is unacceptable so I decided to try my luck with the Oracle 10g
ODBC driver. However when I use this and perform an openquery select
against the linked server I get back only 11 rows, when I know that the
database has over 100 rows (in fact when using the Microsoft ODBC
driver and it works that's what I get). I figured maybe the buffer
setting needed to be raised in the ODBC configuration so I took it from
64000 to 600000 (a magnitude of 10) but I still get back only 11 rows.
I'm at my wit's end.

Any suggestions on resolving one or the other problem would be much
appreciated.

Thanks much


Dec 28 '05 #3

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

Similar topics

2
by: GitarJake | last post by:
Hello all, I am trying to test an ODBC connection to an Oracle dbf using the ODBC Data Source Administrator. It's not working and I suspect I haven't configured Oracle correctly. Below is...
5
by: SerGioGio | last post by:
Hello, I am going nuts. I am trying to connect to my local ORACLE instance using ODBC. It used to work few weeks ago, but it fails now. Connection with: - SQL*plus: connection works! -...
4
by: Andreas Lauffer | last post by:
Can anyone tell me advantages / disadvantages of DataDirect Server Wire ODBC-driver? Any experiences? What about redistribution? Andreas Lauffer, easySoft. GmbH, Germany
2
by: jmev7 | last post by:
Any way to avoid having to manually enter my user name & password for the Oracle login box? I normally run a query on an attached Oracle table and have to enter the un/pw before the query will run....
1
by: Crazy Cat | last post by:
Hi, I created a linked server for MS SQL Server 2005 Express to an Oracle database using the OLE DB Provider for ODBC. My ODBC Source uses the Microsoft ODBC for Oracle driver. I'm using the...
4
by: RLN | last post by:
I have an Access2002 database that needs to connect to an Oracle Database. I connected to my Oracle DB in a simple VB6 app using no ODBC data source. How do I do the same thing using VBA in...
1
by: RLN | last post by:
RE: Access 2003 using WinXP SP2 Problem: When I start up my app I double click either one of my two Oracle tables in the table list, it asks for an id and pass. I need them to be linked at...
16
by: network-admin | last post by:
We have Problems with Access query on Oracle 10g Database with ODBC Connection. The Query_1 is such as select * from xtable where ycolumn <"S" Result = ODBC Faild...
7
by: Salad | last post by:
I am converting an application from A97 to A2003. I have 2 tables created by another application as a Foxpro.dbf. The table has no index. The connect string in A97 is FoxPro...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...

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.