25 Nisan 2014 Cuma

How to reset an expired database user without changing the password?

The simple method to reset a user is changing the password. If you dont have chance to change the password and if you can not remember the old one, you can use the following method:

select dbms_metadata.get_ddl('USER', username), '''[^'']+''') pswd, username from dba_users;



You can find the hashed passwords for all users in the database with this query. 

After that you can set the old password and reset the account.


alter user HR identified by values 'S:ASSDSKDEIRUIERUTEUYTEIEORIEORIEPORI;ERIUERIUTY';

Hiç yorum yok:

Yorum Gönder