Oracle password has expired the password has expired

The solution can be through the following SQL statement

First you need to log in with dba. 

To run the cmd command line tool, enter: 

sqlplus / as sysdba    

sqlplus sys/password@database case name as sysdba   

Enter the username and password of the dba


SELECT * FROM dba_profiles WHERE profile=’DEFAULT’ AND resource_name=’PASSWORD_LIFE_TIME’ 

Query the validity period of the password. The LIMIT field is the number of days the password is valid. 

Or: select username,account_status from dba_users; You can see that some users have expired status.

When the password is about to expire or has expired, you can use the following statement to modify the password. After the password is modified, the user can connect to the database normally. 

ALTER USER username IDENTIFIED BY password ;

Note: If the password consists of numbers + passwords, double quotes must be added to succeed
SQL> create user ju identified by "123aaa";

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324645277&siteId=291194637