473,549 Members | 2,874 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 SQLSetConnectAt tr
failed".
OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAt tr
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 9929
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******@hotma il.com> wrote in message
news:11******** *************@g 49g2000cwa.goog legroups.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 SQLSetConnectAt tr
failed".
OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAt tr
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******@hotma il.com> wrote in message
news:11******** *************@g 49g2000cwa.goog legroups.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 SQLSetConnectAt tr
failed".
OLE DB provider "MSDASQL" for linked server "ODBCBEAST" returned
message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAt tr
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
13629
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 the error message I am getting: Invalid attribute in connection string: Description.ORA-12514: TNS:listener could not resolve SERVICE_NAME given...
5
102514
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! - DataDirect 5.0 Oracle Wire protocol (3rd party ODBC driver): connection works when I hit the driver's "test connection"
4
5640
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
7950
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. There's no place to enter this information in. Later, if I run subsequent queries on the table in question, I don't need to enter un/pw again. I...
1
4739
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 OLE DB Provider for ODBC instead of the Oracle OLE DB providers because those don't handle Oracle's Numeric Data Type well. When I set this up...
4
19832
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 Access? Below is the code I used in the VB app to connect to the Oracle database, and I just can't seem to get it translated to ADO in Access/VBA. ...
1
3791
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 startup automatically. The Oracle db contains two tables I need. I've already created an ODBC data source that contains the userid and pass to link...
16
9161
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
3041
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 2.0;HDR=NO;IMEX=2;DATABASE=C:\Test It's really easy to connect to those tables in A97. I'm having difficulties in A2003. I'm trying to follow the instructions in...
0
7551
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
7477
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
7750
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
7838
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6084
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...
0
5118
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...
1
1971
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
1
1084
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
790
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.