Oracle Account lockout workaround

Source: Internet
Author: User

Today into the use of orcle, found in the system, systems account login prompted account is locked, and later looked up data, problem resolution, the method is as follows:

Microsoft Windows [version 5.2.3790]

(C) Copyright 1985-2003 Microsoft Corp.

C:documents and Settingsadministrator>sqlplus/nolog

Sql*plus:release 10.2.0.1.0-production on Wednesday June 24 10:43:39 2009

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Sql> Conn/as SYSDBA

is connected.

sql> alter user SYSTEM account unlock;

The user has changed.

Sql> exit

From Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-production

With the partitioning, OLAP and Data Mining options Disconnect

C:documents and Settingsadministrator>sqlplus

Sql*plus:release 10.2.0.1.0-production on Wednesday June 24 10:45:26 2009

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Please enter user name: System

Enter Password:

Connect to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-production

With the partitioning, OLAP and Data Mining options

Sql>

The account was unlocked successfully:)

When the database was created, a password was already set for 4 accounts such as SYS, where SYS and system had administrator privileges to log into the Oracle database using the SYSTEM account in the Sql*plus tool.

1, through the data dictionary dba_users, check the lock status of the Oracle account, as follows: (v wherein, open indicates that the account is unlocked, expired indicates that the account is out of date (need to set a password to dismiss this state); locked indicates that the account is locked. )

Second, use the ALTER USER statement below to unlock the Scott account:

Sql> ALTER USER Scott account UNLOCK;

Then use the ALTER USER statement to set the password for the Scott account as follows:

Sql> ALTER USER Scott identified by Tiger;

View the current status of the Scott account via the data dictionary dba_users as follows: The results of the query show that the Scott account has been successfully unlocked. When using data dictionary dba_users, be aware that the values of their fields are case-sensitive.

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.