Table access between Oracle users and account locking and unlocking

Source: Internet
Author: User

I. Table access between users:

  1. For example, if a bkjia user wants to access the users table in the system user, the command is as follows:
  2. :
  3. Grant select on users to bkjia;
  4. Bkjia users can only query the users table data in the system user .)
  5. You can run the following command to add, delete, modify, and query rows:
  6. Grant all on users to bkjia;
  7. Note: When you query a table in the system user in bkjia, you must add system. For example:
  8. Select * from system. users;
Ii. account locking and unlocking
  1. Account locking (profile)
  2. Overview: specify the maximum number of times and number of days that can be entered when logging on to this account
  3. For example, if you specify bkjia users to log on for a maximum of three times, the number of locked days is 2 days.
  4. A) create an SQL command:
  5. Create profile bkjia_lock limit failed_login_attempts 3 password_lock_time 2;
  6. B) Execute the SQL command:
  7. Alter user bkjia profile bkjia_lock;
  8. Account unlock
  9. SQL command: alter user bkjia account unlock;

For more information about Oracle, see Oracle topics page http://www.bkjia.com/topicnews.aspx? Tid = 12

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.