Explain the unlimited tablespace system permissions of Oracle

Source: Internet
Author: User

1.
The system permission unlimited tablespace is an implicit system permission in the DBA and resource roles. When a user obtains the role of DBA or resource,
The unlimited tablespace system permission is also implicitly authorized to the user.

2.
The system permission unlimited tablespace cannot be granted to role,
Can be granted to users.

3.
The system permission unlimited tablespace will not be granted to the user with the resource, and the DBA is granted the role.

1
Lab 1

SQL>
Create user U1 identified by U1;

User Created.

SQL>
Grant connect, resource to U1;

Grant succeeded.

SQL>
Select * From dba_role_privs A where a. grantee = 'u1 ';

Grantee
Granted_role
ADM def

----------------------------------------------

U1
Resource No Yes

U1
Connect No Yes

SQL>
Select * From dba_sys_privs A where a. grantee = 'u1 ';

Grantee
Privilege Adm

-------------------------------------------

U1
Unlimited tablespace No

SQL>
Revoke unlimited tablespace from U1;

Revoke succeeded.

SQL>
Select * From dba_sys_privs A where a. grantee = 'u1 ';

No rows selected

2
Lab 2

SQL>
Create role R1;

Role created.

SQL>
Grant unlimited tablespace to R1;

ORA-01931: cannot grant unlimited tablespace to a role

Role R1.

 

SQL>
Grant unlimited tablespace to U1;

Grant succeeded.

Can be authorized to user u1.

3
Lab 3

SQL>
Revoke resource from U1;

Revoke succeeded.

SQL> grant resource to R1;

Grant succeeded.

SQL>
Grant R1 to U1;

Grant succeeded.

SQL> select * From dba_role_privs A where a. grantee = 'u1 ';

Grantee
Granted_role
ADM def

----------------------------------------------

U1
R1
No
Yes

U1
Connect No Yes

SQL> select * From dba_sys_privs A where a. grantee = 'u1 ';

No rows selected

The system permission does not have the unlimit tablespace system permission.

 

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.