Resolving Oracle User Expiration issues

Source: Internet
Author: User

Recently the Department of testing staff found a problem, said the Oracle user password prompt to expire, ask me what happened?

The discovery found that the Oracle user password is only valid for 180 days, communicating with the responsible person and deciding that the change user password never expires.


Workaround:

The first method: Log in with a user with DBA authority

1, check the profile of the user, by default all users of the profile are using the default
Select T.username,t.profile from Dba_users t;

2, check the user's default profile validity period
Select T.limit from Dba_profiles t where t.profile= ' DEFAULT ' and t.resource_name= ' password_life_time ';

3. Change the validity period of all users

Alter profile default limit Password_life_time unlimited;

The rear unlimited can be a number unit for days.

4. Verification
Select Username,expiry_date from Dba_users
The value of expiry_date in the result of the query should be null: Indicates that the user password never expires.

Second method: Create profile and apply to a user
1. Create profile
Create profile profile_name limite password_life_time unlimited;

2. Apply to Users
Alter user user_name profile Profile_name;
Create user user_name identified by password profile profile_name;

This article is from the "Simon Qing his Little Uncle" blog, please be sure to keep this source http://718693.blog.51cto.com/708693/1566905

Resolving Oracle User Expiration issues

Related Article

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.