Oracle Password Expiration processing ____oracle

Source: Internet
Author: User
Tags sqlplus

/*

Source: Network

Collection and collation: Chenj

Date Created: 13:21 2010-3-3

Modified time:

*/

/*

Phenomenon:

ora-28001:the Password has expired

Reason:

Due to "password_life_time=180 Day" set in default profile in oracle11g

Effect:

Once the database password expires, the business process will prompt the connection failure once it restarts, affecting business use

Processing steps:

Following action

*/

---1. In the CMD command window, enter:

Sqlplus username/Password @ database Local service name as SYSDBA;

---2. View the user's proifle, which is generally default

Sql>select Username,profile

From Dba_users;

---3. View password expiration settings for the corresponding profile (such as default):

Sql>select * from Dba_profiles s

WHERE s.profile= ' DEFAULT ' and resource_name= ' password_life_time ';

---4. Change the password validity period for a profile (such as default) from the default of 180 days to unrestricted:

Sql>alter profile DEFAULT LIMIT Password_life_time Unlimited; The database does not need to be restarted after---modification, and takes effect immediately.

---5. The user account that has not been prompted to ORA-28002 warning will not be prompted by the change, and the user account that has been prompted must be changed again, for example as follows:

$sqlplus/as SYSDBA

Sql>alter user username identified by < original password > account unlock; ----don't have to change the new password.

---6. Note: The oracle11g startup parameter Resource_limit whether set to False or true, the password validity period is valid, so you must modify it in the above way

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.