SYS.USER$ Password | Save an Oracle user password

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

 

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *