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";