Learn about the ORACLE resource role

Source: Internet
Author: User

What permissions does the ORACLE resource role have? The following describes how to view the permissions of the ORACLE resource role.

 
 
  1. SQL> select * from v$version where rownum<=1;  
  2.  
  3. BANNER  
  4. --------------------------------------------------------------------------------  
  5. Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi  

View the permissions of the ORACLE resource role from role_sys_privs

 
 
  1. SQL> select PRIVILEGE from role_sys_privs where role='RESOURCE';  
  2.  
  3. PRIVILEGE  
  4. --------------------------------------------------------------------------------  
  5. CREATE CLUSTER  
  6. CREATE SEQUENCE  
  7. CREATE TRIGGER  
  8. CREATE TABLE  
  9. CREATE PROCEDURE  
  10. CREATE TYPE  
  11. CREATE OPERATOR  
  12. CREATE INDEXTYPE  
  13.  
  14. 8 rows selected.  

When you grant the ORACLE resource role a user, it not only grants the permissions of the ORACLE resource role itself, but also has the unlimited tablespace permission.

 
 
  1. SQL> conn desk  
  2. Enter password:  
  3. Connected.  
  4. SQL> select PRIVILEGE from user_sys_privs;  
  5. no rows selected  
  6. SQL> conn / as sysdba  
  7. Connected.  
  8. SQL> grant resource to desk;  
  9. Grant succeeded.  
  10. SQL> conn desk  
  11. Enter password:  
  12. Connected.  
  13. SQL> select PRIVILEGE from user_sys_privs;  
  14. PRIVILEGE  
  15. ----------------------------------------  
  16. UNLIMITED TABLESPACE  
  17. SQL> 
  18.  

When a resource is granted a role, the unlimited tablespace permission is not granted.

 
 
  1. SQL> show user  
  2. USER is "SYS"  
  3. SQL> create role testrole identified using testrole;  
  4. Role created.  
  5. SQL> revoke resource from desk;  
  6. Revoke succeeded.  
  7. SQL> grant resource to testrole;  
  8. Grant succeeded.  
  9. SQL> grant testrole to desk;  
  10. Grant succeeded.  
  11. SQL> conn desk  
  12. Enter password:  
  13. Connected.  
  14. SQL> select privilege from user_sys_privs;  
  15. no rows selected  
  16. SQL> 

Oracle data export and import Permissions

Oracle read-only user role creation

View oracle user permissions

Introduction to oracle object permissions

How to store images in oracle
 

Oracle data export and import Permissions

Oracle read-only user role creation

View oracle user permissions

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.