In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Today, I will talk to you about how to set the password not to expire in Oracle. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
1. Check which user's proifle is, usually default:
Sql > SELECT username,PROFILE FROM dba_users
2. Check the password validity settings for the specified profile (such as default):
Sql > SELECT * FROM dba_profiles 's WHERE s.profileholders 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
After the modification, there is no need to restart the database, it will take effect immediately.
4. After modification, accounts that have not been prompted for ORA-28002 warning will not encounter the same prompt again.
Accounts that have been prompted must change their passwords again, for example:
$sqlplus / as sysdba
Sql > alter user smsc identified by-there is no need to change a new password
The password validity period is valid regardless of whether the oracle11g startup parameter resource_limit is set to false or true, so it must be modified in the above way. Please change the above account name according to the account name actually used.
In the second case, you can do this: 1. Check which user's proifle is, usually default:
Sql > SELECT username,PROFILE FROM dba_users
2. Check the password validity settings for the specified profile (such as default):
Sql > SELECT * FROM dba_profiles 's WHERE s.profileholders default AND resource_name='FAILED_LOGIN_ATTEMPTS'
3. Change the number of failed login attempts from the default 10 to "unlimited":
Sql > ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED
4. After modification, users who have not been prompted with ORA-28000 warning will not encounter the same prompt again.
Accounts that have been locked must be unlocked, for example:
$sqlplus / as sysdba
Sql > alter user smsc identified by oracle account unlock
5. The modified default profile should be as follows:
Sql > select * from dba_profiles WHERE dba_profiles.profile='DEFAULT'
PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT
DEFAULT FAILED_LOGIN_ATTEMPTS PASSWORD UNLIMITED
DEFAULT PASSWORD_LIFE_TIME PASSWORD UNLIMITED
After the modification, there is no need to restart the database, it will take effect immediately.
If ORA-28000 the account is locked. Error
Alter user user name account unlock
After reading the above, do you have any further understanding of how to set the password not to expire in Oracle? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.