Database (Learning to organize)----2--authorization and access to Oracle user rights

Source: Internet
Author: User

Knowledge Points:
1, the user level used in Oracle database is peer! Only the permissions of each user are different!

2, after a user login, you can access other user's data buffer, table, and table operation in their own login state! (As long as the user with permissions!) )

3, we can create user rights in a user login, create (give permission, etc.) operation, after the creation of the user and the current user is peer! Different permissions!
(1), using SYSDBA login to create a Jason user, password: abc123

SQL statements:
Create user Jason identified by abc123;

Post-execution effects:
User Jason has already been created, but cannot log in to Oracle because it has not been given login privileges (create session Permissions!). )

(2), give user Jason to give login rights:

SQL statements:
Grant connect to Jason;

The effect after execution:
User Jason can log in to Oracle!
However, you cannot access the data buffers in the database!

(3), give the user Jason access to the data buffer:

SQL statements:
Grant resource to Jason;

The effect after execution:
However, it is still not possible to manipulate the tables in the database (Add and remove the check)!

(4), to the user Jason gave the table: Insert/delete/update/select operation Rights!

SQL statements:
(1): Grant all on SYSTEM.TESTTB1 to jason;//four permissions (additions and deletions)

(2): Grant Select on System.testtb1 to jason;//give Jason the ability to query the System User testTB1 table

And so on ...

(5) Reclaim Jason's privileges:

SQL statements:
(1): Recall and delete the permission to change the check.
Revoke all on system.testtb1 from Jason;
Or

Revoke insert,select,delete,update on SYSTEM.TESTTB1 from Jason;

(2): Revoke the specified permission:

Revoke [insert/select/delete/update] on system.testtb1 from Jason;

Revoke insert on SYSTEM.TESTTB1 from jason//reclaim new permissions
(6) Delete Jason User:

SQL statements:
Drop User Jason (cascade: Forced Discard);

The effect after execution:
(1) User Jason has been removed from the database and is no longer logged into Oracle! And the information under Jason's user will be deleted!

Database (Learning Grooming)----2--authorization and access to Oracle user rights

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.