Oracle Grant Summary

Source: Internet
Author: User

1.select * from Dba_users; --Querying all users in the database

2.GRANT SELECT on TableName to username;--authorization query (delegate the query rights of the table TableName to UserName)
Grant insert on TableName to username;--authorization insertion (delegate the right to insert the table TableName to UserName)
Grant update on TableName to username;--authorized updates (Grant UserName the update rights to the table TableName)

Grant UPDATE on Table1 to userName with GRANT option; --Authorization Update permission to transfer to the user, the user can continue to authorize;

Grant EXECUTE on Procedure1 to username;--authorization stored procedure

3.revoke Select on table1 from User1; --The right to retrieve the query table;

Revoke all in Table1 from user1;--to retract all permissions for table table1;

4.select Table_name,privilege from Dba_tab_privs where grantee= ' Xujin ';--querying permissions for objects owned by a user

SELECT * from Dba_sys_privs where grantee= ' Xujin ';--query for system permissions owned by a user

SELECT * from Session_privs;--a system permissions that are valid for the current session

Oracle Grant Summary

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.