473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Connecting to Oracle 9i Lite from VB.NET ODBC


Hi,

I am trying to get a VB.NET application to connect to a local Oracle 9i Lite
database.

What is the correct form for a connect string?

cn = New
Microsoft.Data.Odbc.OdbcConnection("dsn=POLite;Tru sted_Connection=yes;User
Id=SYSTEM;Password=MANAGER")

raises the following exception:

could not open oracle connection: Microsoft.Data.Odbc.OdbcException: ERROR
[S1000][POL-2200] failed to create mapped file
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr
failed
ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support
the version of the ODBC behaviour that the application requested (see
SQLSetEnvAttr)
at Microsoft.Data.Odbc.OdbcConnection.Open

I have also tried the following:

cn = New Microsoft.Data.Odbc.OdbcConnection("Driver={Oracle Lite 40 ODBC
Driver};DataBase=mobile;User Id=SYSTEM;Password=MANAGER;Persist Security
Info=False;DSN=POLite")

which provides a more serious failure:

OracleLiteTest.exe has encountered a problem and needs to be shut down.

and

could not open oracle connection: Microsoft.Data.Odbc.OdbcException:
ERROR - no error information available
at Microsoft.Data.Odbc.OdbcConnection.Open

Server Explorer displays some Data Connections, am I incorrectly mixing OLE
and ODBC?

Regards,

Andy
Nov 20 '05 #1
3 10725
Hi Andrew,

For Oracle related questions I advice you the newsgroup

Adonet
<news://msnews.microsoft.com/microsoft.public.dotnet.framework.adonet>

Web interface:
<http://communities2.microsoft.com/co...s/?dg=microsof
t.public.dotnet.framework.adonet>
I hope this helps a little bit?

Cor
Nov 20 '05 #2

"Andrew McGregor" <an**@misk.co.uk> schrieb im Newsbeitrag
news:F9*******************@fe1.news.blueyonder.co. uk...

Hi,

I am trying to get a VB.NET application to connect to a local Oracle 9i Lite database.

What is the correct form for a connect string?

cn = New
Microsoft.Data.Odbc.OdbcConnection("dsn=POLite;Tru sted_Connection=yes;User
Id=SYSTEM;Password=MANAGER")

raises the following exception:

could not open oracle connection: Microsoft.Data.Odbc.OdbcException: ERROR [S1000][POL-2200] failed to create mapped file
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr
failed
ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support
the version of the ODBC behaviour that the application requested (see
SQLSetEnvAttr)
at Microsoft.Data.Odbc.OdbcConnection.Open

I have also tried the following:

cn = New Microsoft.Data.Odbc.OdbcConnection("Driver={Oracle Lite 40 ODBC
Driver};DataBase=mobile;User Id=SYSTEM;Password=MANAGER;Persist Security
Info=False;DSN=POLite")


Hi Andrew,

i hope this help's http://www.connectionstrings.com/

Greeting

Thomas
Nov 20 '05 #3
"thomas wenning" <no*******************@gmx.de> wrote in message news:<uR**************@TK2MSFTNGP09.phx.gbl>...
"Andrew McGregor" <an**@misk.co.uk> schrieb im Newsbeitrag
news:F9*******************@fe1.news.blueyonder.co. uk...

Hi,

I am trying to get a VB.NET application to connect to a local Oracle 9i

Lite
database.

What is the correct form for a connect string?

cn = New
Microsoft.Data.Odbc.OdbcConnection("dsn=POLite;Tru sted_Connection=yes;User
Id=SYSTEM;Password=MANAGER")

raises the following exception:

could not open oracle connection: Microsoft.Data.Odbc.OdbcException:

ERROR
[S1000][POL-2200] failed to create mapped file
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr
failed
ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support
the version of the ODBC behaviour that the application requested (see
SQLSetEnvAttr)
at Microsoft.Data.Odbc.OdbcConnection.Open

I have also tried the following:

cn = New Microsoft.Data.Odbc.OdbcConnection("Driver={Oracle Lite 40 ODBC
Driver};DataBase=mobile;User Id=SYSTEM;Password=MANAGER;Persist Security
Info=False;DSN=POLite")


Hi Andrew,

i hope this help's http://www.connectionstrings.com/


Yes it does, thank you. It proves that my first attempt was correct,
and I should of trusted the exception .NET captured, POL-2200.

I am concerned that I am even getting a POL-2200 exception at all on
any modern system, but that is for an Oracle or XP discussion.

Many thanks.

Andy
Nov 20 '05 #4

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

Similar topics

0
by: Kong Li | last post by:
Follow up to this thread, the latest Oracle 9i release 2 patchset (9.2.0.5) fixed the handle count leak problem. The problem is in Oracle client component. Thanks. Kong ----- From: Kong...
3
by: va | last post by:
I am trying to establish a connection to Oracle 9i from asp.net.(.net 2003) The code is Dim con As New ADODB.Connection con.ConnectionString = "PROVIDER=MSDASQL;DRIVER= {Microsoft ODBC for...
1
by: yahibble | last post by:
Now, I am no Python expert but I have dabbled and I have spent a couple of days with another engineer unsuccessfully installing oracle drivers for MS ODBC on the win XP machine. It looked to me...
2
by: msnesw.microsoft.com | last post by:
I developed a web application about a year ago that connects to the Oracle DB using MS ODBC for Oracle. But I had to move the whole application to a brand-new PC . When I try to run I get the...
2
by: Mahesh.V | last post by:
Hi All I get the following error while connecting to the oracle database using ODBC. in my VB.NET application. Can any one help me out solving this problem server message (if any):...
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...
4
by: shsandeep | last post by:
We are trying to connect from DataStage to a DB2 database on Z/OS. It connects fine from the DataStage server, but when connecting from DataStage client it gives the following error: ...
0
by: antonyliu2002 | last post by:
I am having a hard time connecting to an oracle database from within Visual Web Developer (VWD) 2005 Express Edition. Check out the screen snap shot here: ...
0
by: piyushdabomb | last post by:
Hi Oracle Gurus!! Before I proceed, as per the moderators request, I would like to mention that I have already taken a look at the other threads pertaining to a similar issue which I am having and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.