Solved

odp.net 9.2 OS Authentication in VB.NET gets password null error

Posted on 2003-10-21
7
773 Views
Last Modified: 2013-12-11
I currently have odp.net 9.2 and am using OS Authentication. When I try to use it with VB.NET after referencing system.data.oracleclient, and the connection string:
"user id=/;data source=my.database.com" I get an ora-01005 null password error.

When I log into Toad, as user / and blank password, it works fine.

I tried "user id=/;password=;data source=my.database.com" to no avail.

Any suggestions?

tf
0
Comment
Question by:tf842
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 5

Expert Comment

by:Pontis
ID: 9600431

 Do you have Oracle Client and ODP.NET installed in the same ORACLE_HOME or in separate? Make sure that you have the following line in your %ORACLE_HOME%\network\admin\SQLNET.ORA :

 sqlnet.authentication_services=(NTS)

What version is Oracle client?
0
 

Author Comment

by:tf842
ID: 9600486
These are good questions. I have odp.net installed. How do I tell the oracle client is installed, and if it is, the version.
0
 
LVL 5

Expert Comment

by:Pontis
ID: 9600567
Also, do you use connection pooling? I came across a bug on Metalink saying that when connection pooling is used with ODP theer might be a problem with proxy authentication. Try to disable it ( pooling=false  in your connect string).

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 5

Accepted Solution

by:
Pontis earned 250 total points
ID: 9600569
Check  HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE and see how many HOMEx keys you have there. If you have more than one, make sure that you have same the parameter I specified above in each of them (you can see the path to each home in ...HOMEx\ORACLE_HOME value).
0
 

Author Comment

by:tf842
ID: 9600842
Pontis,
I realized the mistake. I was referencing System.data.oracleclient instead of Oracle.dataacess.client in my vb.net code. I changed the refrences and associated propertis. Now it works.

I do not want to use connection pooling because it is kinda buggy.

Your suggestions were not the answer, but by following them, I stumbled onto it. I will ask the moderator about partial points, say 250.

How would you feel about this?

Sami
0
 
LVL 5

Expert Comment

by:Pontis
ID: 9600864
All right, I see :)

 As for the points - I would appreciate partial... Thanks.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and theā€¦
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to recover a database from a user managed backup
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question