It does not solve the problem restart the oracle database password expired in the linux environment

(1) Log in as oracle database command: su - oracle

 Note: Add a "-" is a login shell landed, it will set the environment variable, if not, then use or to switch the current user's environment variables, it will go wrong.

 

(2) into the Sqlplus console command: sqlplus / nolog

(3) to the system administrator login commands: connect / as sysdba

(4) close the database, the command: shutdown immediate

(5) to start the database command: startup

(6) exit sqlplus console command: exit

(7) into the monitor console, the command: lsnrctl

(8) Start the listener, command: start

(9) to exit the listener console command: exit

End (10) to restart the database 

Password Expiration follow the following steps:
1. Check the user's proifle which generally default:
SQL> the Select username, the PROFILE the FROM DBA_USERS;
2, check the specified profile (e.g., default) password duration settings:
SQL> the Select * the FROM S = the Where s.profile DBA_PROFILES 'the dEFAULT' the AND resource_name = 'PASSWORD_LIFE_TIME';
. 3, modified by the default password is valid 180 days to "unlimited":
SQL> Alter the dEFAULT the PROFILE PASSWORD_LIFE_TIME the LIMIT uNLIMITED;
after modifying the database does not need restart It will take effect immediately.
4, after modification, have not been prompted ORA-28002 warning will not encounter the same account tips;
has prompted account must then change their passwords, for example as follows:
$ sqlplus / AS SYSDBA
SQL> ALTER User <username > identified by <old password> ---- do not get a new password, do not have to restart the oracle or service.

Guess you like

Origin www.cnblogs.com/damoblog/p/11908035.html