ocp1z0-047: Permissions--Assigning system permissions

Source: Internet
Author: User
Tags dba

This question is the examination authority knowledge Point, the authority divides into two kinds, the system permission and the object permission, this question mainly speaks the system authority, we first comes to understand what is the system right, what is the object permission bar.

1, System permissions: Allow users to perform specific operations in the database

A, Sysdba/sysoper These two privileges are more special

Gyj@ocm> SELECT * from Dba_sys_privs where Granteein (' SYSDBA ', ' sysoper ');  
       
No rows selected

B, DBA system permissions can be traced

Gyj@ocm> SELECT * from Dba_sys_privs where grantee= ' DBA ';  
       
Grantee                       Privilege                               ADM  
-------------------------------------------------------------------------  
DBA                            DROP any CUBE build PROCESS              Yes  
dba                           CREATE Cube                             YES  
dba                           ALTER any cube DIMENSION                Yes  
DBA                           ALTER any MINING MODEL                   Yes  
 (intermediate result omitted)  
..... .....  
............ Selected rows.

C, the normal user's system permissions

Gyj@ocm> SELECT * from  dba_sys_privs where grantee= ' Gyj ';  
       
Grantee                       Privilege                               ADM  
-------------------------------------------------------------------------  
GYJ                           Unlimited tablespace                    NO

D, System permissions on the current session

Gyj@ocm> select * from Session_privs;  
       
Privilege  
----------------------------------------  
ALTER system  
AUDIT system  
CREATE session  
ALTER  
Session Restricted session  
(intermediate result omitted) ..... ............  
.......  
Selected rows.

2, Object permissions: Allow users to access and manipulate specific objects

A, check the object permissions

Gyj@ocm> SELECT *  fromdba_tab_privs where grantee= ' Gyj ';  
       
No rows selected

B, check the rights of the object listed above

Gyj@ocm>select * from  dba_col_privs wheregrantee= ' Gyj ';  
      
O Rows Selected

Why not show the permissions of the object and the permissions listed on the object, the user Gyj obviously have the object of AH:

gyj@ocm> Show user;  
The USER is ' GYJ '  
gyj@ocm> select table_name from tabs;  
       
table_name  
------------------------------  
T10

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.