Solved

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

Posted on 2003-10-21
7
757 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
  • 4
  • 2
7 Comments
 
LVL 5

Expert Comment

by:Pontis
Comment Utility

 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
Comment Utility
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
Comment Utility
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 5

Accepted Solution

by:
Pontis earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
All right, I see :)

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now