Error ORA-28002: the password will expire within 7 days solution: when using sqlplus today, www.2cto.com ================== ======================================= ERROR: ORA-28002: the password will expire within 7 days ================================ ================== prompt that the password is about to expire, because the test database needs to be connected, it is decided to set the password to never expire. 1. view the user's profile Settings: SELECT username, profile FROM dba_users; generally, the user's profile settings are DEFAULT. 2. View PASSWORD_LIFE_TIME settings in system profiles. SELECT * FROM dba_profiles s WHERE s. profile = 'default' AND resource_name = 'password _ LIFE_TIME '; PROFILE RESOURCE_NAME resource limit ---------------------------- too many DEFAULT PASSWORD_LIFE_TIME PASSWORD 180dys ==================== =======================================3. modify PASSWORD_LIFE_TIM settings in DBA_PROFILES to ULIMITED. Alter profile default limit PASSWORD_LIFE_TIME UNLIMITED; after modification, the setting takes effect immediately. You do not need to restart the database, and the password will never expire. 4. the account that has been reported that the password is about to expire must change the password again (the DBA permission is required). Take the system user as an example: sqlplus/as sysdbaalter user system identified by root; the password will no longer expire when you connect to the data again. If it is another user, use another user name. Alter user scott identified by tiger;