Home  >  Article  >  Database  >  How to set password not to expire in oracle

How to set password not to expire in oracle

hzc
hzcOriginal
2020-06-08 14:59:364175browse

How to set password not to expire in oracleOracle's way to set a password that does not expire is:

1. Check which proifle the user has, usually default:

sql>SELECT username,PROFILE FROM dba_users;

2. Check Specify the password validity period setting for the profile (such as default):

sql>SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

3. Change the password validity period from the default 180 days to "unlimited":

sql>ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

There is no need to restart the database after the modification , will take effect immediately.

4. After modification, accounts that have not been prompted with ORA-28002 warning will not encounter the same prompt again;

Accounts that have been prompted must change their passwords again. For example: China Examination Network

$sqlplus / as sysdba
sql> alter user smsc identified by <原来的密码> ----不用换新密码

recommended tutorial: "Oracle Tutorial"

The above is the detailed content of How to set password not to expire in oracle. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn