Oracle users are locked and oracle users are locked

Source: Internet
Author: User

Oracle users are locked and oracle users are locked

Sqlplus sys/password @ localhost: 1521/cmsx as sysdba

 

SQL * Plus: Release 11.2.0.1.0 Production on Monday July 21 13:33:13 2014

Copyright (c) 1982,201 0, Oracle. All rights reserved.


Connect:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> alert user cmsuser account unlock;
SP2-0734: Unknown command starting with "alert user..."-ignore the remaining lines.
SQL> alter user cmsuser account unlock;

The user has changed.

SQL>


Oracle user locking

1. You can use alter user ID account unlock to unlock this user first

2. this mechanism is set in the user's profile. profile is mainly used to manage system resources and user authorization orders. You can open it and check that there is a FAILED_LOGIN_ATTEMPTS parameter in it, you can also use it with other parameters to manage resources and dispatch orders. The system has a default profile named default.

Example:
1. Resource
Create profile luck_prof limit
Sessions_per_user 8
CPU _ per_session 16800
Logical_reads_per_session 23688
Connect_time 268
Idle_time 38;
2. For example, modify default
Alter profile default limit
Password_life_time 60
Password_grace_time 10
Password_reuse_time 1800
Failed_login_attempts 3
Pasword_lock_time 1/1440;

Specify a profile when creating or modifying a user, for example:

Create user wuser
Identified by wuser
.......
Profile luck_prof;

We hope that the above information can help you solve the problem.

Oracle prompts the user to be locked and cannot be resolved

Use sysdba to log on and unlock
For example, to unlock a scott user, you can:
Sqlplus/as sysdba
Alter user scott identify by password account unlock;
Password is the new password.

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.