Oracle - Validate user and password without opening another connection?

Go To


Is there some function/procedure/package that validates a username and password in Oracle (from a user that exists in the db)?

Background: We want to create a web application that will use a pool of connections. All users already exists in the database, because of a legacy 6i application. So we think that the best approach is to validate the user and password of the database, but we don't want to hardcode the url and open a new connection just to validate this.

I know that another way is to store a password in a user's table, but if the Oracle provide this option will be much easier.

2012-04-04 20:33
by Sérgio Michels
Interesting. + - cagcowboy 2012-04-04 20:51


I found out a unofficial script that verify the Oracle's user$ table.

2012-04-10 00:37
by Sérgio Michels


Perhaps you should look into Proxy Users. They are specifically designed to have end-users authenticate against the database in a 3-tier architecture.

2012-04-04 21:12
by Adam Hawkes
Thanks for the answer, but if I understood correctly, the password provided to the database will be the same of the data source configured and not the password of the end user that I'm trying to validate - Sérgio Michels 2012-04-04 22:31
That's not my understanding, but I could be wrong - Adam Hawkes 2012-04-05 16:08


We use LDAP for app level authentication.

2012-04-05 14:50
by Roger Cornejo
Yes, LDAP is another good solution. But i'm still wondering if the functionality exists in Oracle. Thanks for the answer - Sérgio Michels 2012-04-05 17:54


I don't think this will work.

  1. You alread stated that Proxy Users don't work for your purpose

  2. Tom Kyte says it doesn't work. And normally Tom Kyte is right about anything Oracle although that thread is pretty old ...

2012-04-05 15:14
by Jens Schauder