I will explain SYS.USER$ password | Save an Oracle user password in this post.
SYS.USER$ Password in Oracle
Sometimes you may need saving of any Oracle user password especially Application users. If you will change password of critical application users and if you don’t know their password, then you can save their hash password as follows.
SQL> SELECT password FROM SYS.USER$ WHERE name = 'MEHMET';
PASSWORD
--------------------------------------------------------------------------------
9A479F1118EF7F0E
SQL>
Save an Oracle user password
For example; If you change this user’s password with new password as follows,
SQL> alter user mehmet identified by 'deveci'; User altered. SQL>
But if you want to use the old password, you can reset it the old password using the HASH Value as follows.
SQL> alter user mehmet identified by values '9A479F1118EF7F0E';
User altered.
SQL>
You can extract the HASH value of Oracle user password as follows.
SQL> select
2 extract(xmltype(dbms_metadata.get_xml('USER',username)),'//USER_T/PASSWORD/text()').getStringVal() the_old_password
3 from dba_users
4 where username = 'MEHMET';
THE_OLD_PASSWORD
--------------------------------------------------------------------------------
9A479F1118EF7F0E
SQL>
You can reset the password to OLD Password using the following command.
alter user username identified by values 'HASH_VALUE';
SQL> alter user mehmet identified by values '9A479F1118EF7F0E';
User altered.
SQL>
Dou want to learn Oracle SQL Tutorial for Beginners, then read the following articles.
Oracle SQL Tutorials For Beginners – Learn Oracle SQL from scratch with Oracle SQL Online Course