Searching for user passwords in Oracle

Printer-friendly version

For obvious security reasons we can not see clear the password of the users of the database, but as an administrator user SYSTEM does have privileges to view the encrypted password:


SQL> select password from dba_users where username='SCOTT';
PASSWORD
-----------------------------
F894844C34402B67

The usefulness of this is that as we return the SELECT can be used in a sentence of password change; 


SQL> alter user scott identified by values 'F894844C34402B67';

That we have not done anything since we have assigned to Scott who had the same password (TIGER), but if we change the password:


SQL> alter user scott identified by newpassword;
SQL> connect scott/newpassword
Connected.

And now we get back to the initial password:


SQL> connect system/dbapwd
Connected.
SQL> alter user scott identified by values 'F894844C34402B67';
User altered.

SQL> connect scott/tiger
Connected.

This example is illustrative only, but this may be really useful to create a user, or replicate it in another environment with the same password that I had. If you do not remember what your password is not stored there, and we have no desire to ask anybody, we can recover the encrypted password, the user create a password with anyone, and then modify it with the encrypted we saved:


SQL> create user test identified by password;
User created.

SQL> select password from dba_users where username='TEST';
PASSWORD
------------------------------
808E242669FC5270

SQL> drop user test;
Deleted user.

SQL> create user test identified by whateveryouwant;
User created.

SQL> alter user test identified by values '808E242669FC5270';
Modified user.

We have thus recreated the user test with the same password I had, and without knowledge.

 

Just what I need!

Thank you!!!
Just what I need to migrate a database from 9i to 10g without disrupting my users.

In this publication Lluís Pastor, director of Management of Contents of the Universitat Oberta of Catalonia explains the methodology used for the management of contents of...
This is the second part of video tutorial eclipse / JBoss Tools / Struts. Greetings Mariano
When we talk about databases, we usually imagine a great server, com large amounts of information inside. But there are also tiny database for environments where space, both...
The million dollar question .. White or Black? Chicken and egg? The people of LinuxJournal has released an article for subscribers (or to wait until next month), on which...
In MySQL there is a parameter that enables logging of queries that take more than x seconds to execute calls Slow Queries. Basically what it does is put them in a log file and...
EasyAsk, of Progress Software, is a tool of BI with the peculiaridad that for the application of reports, analysis or even pictures of control provides to the user an interface...