Manage user passwords and unlock users using Profile

Source: Internet
Author: User


Profile management user password and unlock user use profile Management user Password account lock 1) Lock SQL> create profile lock_account limitfailed_login_attempts 3 password_lock_time 1; ---- create a profile named lock_account, three logon failures, the user is locked. The lock time is one day. SQL> alter user xiaoming profile lock_account; www.2cto.com ---- grant the profile file to a user. 2) unlock SQL> alter user xiaoming account unlock; 3) terminate password Delete profile SQL> drop profile password_history cascade; note: the main function of profile is to control user resources and passwords. Code is very important to system security. Unlock and kill the lock table process 1. view the lock www.2cto.com select t2.username, t2.sid, t2.serial #, t2.logon _ time from v $ locked_object t1, v $ session t2 where t1.session _ id = t2.sid; 2. Kill -- alter system kill session 'sid, serial #';
Alter system kill session '2017 78 ';
 

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.