473,700 Members | 2,669 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 9947
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
13640
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 in connect descriptor
5
102539
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
5648
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
7967
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 can leave my PC on 24x7, but that's not really a solution. I need to know if I can log in to the...
1
4749
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 yesterday it worked fine. However I log in today and attempt to run sp_tables_exec against my linked...
4
19851
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. Any assistance is appreciated.
1
3805
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 to the Oracle DB. It works. When I go into linked table manager, I can link to them just fine
16
9184
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
3058
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 http://support.microsoft.com/kb/824264/.
0
9058
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8952
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8911
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7794
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6555
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4395
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4649
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2375
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2018
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.