Empty password for connection

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Posts: 7
Joined: Mon 10 Sep 2007 15:15

Empty password for connection

Post by vmo » Thu 27 Sep 2007 14:54


I'm still testing ORADirect .net (Mobile).
Is it possible to have an empty password for the Oracle Database connection ?
I filled IP address, sid, user and left password blank on my oracleConnection object.

When I try to connect (oracleConnection1.Open()), I have a error because my password is empty.

Thanks for support.

PS: using Oracle 10g, c#, VS2005

Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Thu 27 Sep 2007 16:16

If you want to use OS authentication mode, you should not set username or password in your connection string. It ought to look like this:

Code: Select all

oracleConnection1.ConnectionString = "Data Source=oracle;";

Post Reply