What are the steps for Oracle user password reset
The main content of this article is to explain "what are the steps of password reset for Oracle users". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what are the steps for Oracle user password reset"?
Customers report that the secret ma of Oracle database users will expire. In order to avoid application connection errors caused by expiration, you can find users who are about to expire by cha in advance and reset the secret ma. The steps are as follows:
1. Check whether any secret ma will expire in the next 20 days.
Set lines 200col username for a20select USERNAME,to_char (EXPIRY_DATE,'yyyy-mm-dd hh34:mi:ss') expire_time,profile,account_status from dba_users a where EXPIRY_DATEsysdate and account_status='OPEN'
2. View expired users
Set lines 200col profile for a20col username for a20select USERNAME,to_char (EXPIRY_DATE,'yyyy-mm-dd hh34:mi:ss'), profile,account_status from dba_users where account_status='EXPIRED' or account_status='EXPIRED (GRACE) 'order by EXPIRY_DATE
3. Check the expiration time of open status users.
Set lines 200col profile for a20col username for a20select USERNAME,to_char (EXPIRY_DATE,'yyyy-mm-dd hh34:mi:ss'), profile,account_status from dba_users where account_status='OPEN' order by EXPIRY_DATE
4. View the status of all users
Set lines 200col profile for a20col username for a20select USERNAME,to_char (EXPIRY_DATE,'yyyy-mm-dd hh34:mi:ss'), profile,account_status from dba_users order by EXPIRY_DATE
5. Perform a secret ma reset
Modify profile settin
Alter profile PROFILE_NAME limitpassword_reuse_time unlimitedpassword_reuse_max unlimited
Generate a reset command
Select 'alter user' | | du.username | | 'identified by values' | |''| | u.password | |'| |; 'from dba_users du,user$ u where du.username=u.name and u.type#=1 and du.profile in (' PROFILE_NAME') and du.username'XS$NULL' and du.expiry_date-sysdate