ORACLE11G account password expires and cannot be entered in SYSDBA identity sqlplus

Source: Internet
Author: User
Tags sqlplus

" Phenomenon "

When the system is running suddenly unable to enter the system, through the FF browser debugging, found that the cause of the error is "Ora-28001:the password has expired" is the Oracle account password expires.

"Cause /Trigger factor"

through the Baidu query is due to the new features of oracle11g, oracle11g when creating a user default password expiration limit is 180 days (that is, 6 months), if more than 180 days the user password has not been modified, the user cannot log on. Oracle Corporation has introduced this default feature in 11G for database security by default, but this default feature is easily overlooked by DBAs or developers, which can occur if the password has not been modified for 180 days.

"Solutions"

1>cmd Enter the DOS system and enter "Sqlplus/nolog".

2> has sysdba identity connection, enter "Conn/as sysdba".

3> See which user's proifle is, typically the default input "select Username,profile from Dba_users;" NOTE: The SQL statement needs to be added ";".

4> view The password expiration settings for the specified profile, such as default. Enter "select * from Dba_profiles s WHERE s.profile= ' DEFAULT ' and resource_name= 'password_life_time';".

        5> The password is valid from the default 180 days modified to "unlimited" input "alter profile DEFAULT limit  password_ Life_time  unlimited ; ". You should be able to enter the system after the modification.
                6> Repeat step 4 to see that the password expiration date has been modified to UNLIMITED.

" resolution process "

The "ERROR:ORA-12560:TNS: Protocol Adapter error occurred" during the 2nd step of the "solution" execution. "

This issue resolves the process:

1> First make sure that the listener and the instance are up and running.

2> setting environment variable: oracle_sid= "instance name", Oracle_name=oracle installation Address (example: E:\app\ZHANGZHEN\product\11.2.0\dbhome_1), need to restart the instance and listen. or execute "Set oracle_sid= instance name" in DOS

3> follow the 3rd step of the solution.

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.