I. Table access between users:
- For example, if a bkjia user wants to access the users table in the system user, the command is as follows:
- :
- Grant select on users to bkjia;
- Bkjia users can only query the users table data in the system user .)
- You can run the following command to add, delete, modify, and query rows:
- Grant all on users to bkjia;
- Note: When you query a table in the system user in bkjia, you must add system. For example:
- Select * from system. users;
Ii. account locking and unlocking
- Account locking (profile)
- Overview: specify the maximum number of times and number of days that can be entered when logging on to this account
- For example, if you specify bkjia users to log on for a maximum of three times, the number of locked days is 2 days.
- A) create an SQL command:
- Create profile bkjia_lock limit failed_login_attempts 3 password_lock_time 2;
- B) Execute the SQL command:
- Alter user bkjia profile bkjia_lock;
- Account unlock
- SQL command: alter user bkjia account unlock;
For more information about Oracle, see Oracle topics page http://www.bkjia.com/topicnews.aspx? Tid = 12