Oracle Change default Password Expiration days

Source: Internet
Author: User

When the application fails, it runs up and finds that the application interface has always reported a wrong logon database user and password. After checking that the Oracle database is restarted, the user name and password policies exceed the validity period.
 
Solution:

1. view which profile policy is used by the user
 
SQL> select username, profile from dba_users;
 
USERNAME PROFILE
 
-----------------------------------
 
MGMT_VIEW DEFAULT
 
SYS DEFAULT
 
SYSTEM DEFAULT
 
EKPUSER DEFAULT
 
2. view the valid days of the policy

SQL> Select * FROM dba_profiles s Where s. profile = 'default' AND resource_name = 'password _ LIFE_TIME ';
 
 
PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT
 
-------------------------------------------------------------------------
 
DEFAULT PASSWORD_LIFE_TIME PASSWORD 180
 
 
3. Change the policy to unrestricted
 
SQL> Alter PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
 
Profile altered
 
4. check and confirm
 
SQL> Select * FROM dba_profiles s Where s. profile = 'default' AND resource_name = 'password _ LIFE_TIME ';
 
PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT
 
-------------------------------------------------------------------------
 
DEFAULT PASSWORD_LIFE_TIME PASSWORD UNLIMITED
 
Modify to take effect immediately without restarting the database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.