Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ Oracle 11g user rights management study notes     - Profile Linux users login shell and login to read (Linux)

- Linux Open coredump (Linux)

- linux smartd [FAILED] appears at startup (Linux)

- Three strategies to teach you to release the device memory (Linux)

- CentOS 5.5 kernel upgrade installation iftop (Linux)

- Linux Change ssh port and disable remote root login at (Linux)

- Oracle 11g new features and associated SQL TUNING (Database)

- PostgreSQL Select source code analysis (Database)

- Flask deploy applications using Nginx on Ubuntu (Server)

- Android Touch message passing mechanism analysis (Programming)

- Kubernetes resolve application deployment model (Server)

- Installation of Gitlab under Ubuntu (Linux)

- How to install and configure a VNC server on CentOS 7.0 (Server)

- Turning off the interface eth0: error: Disconnect the device 'eth0' (Linux)

- To help you easily protect the Linux System (Linux)

- To use iostat display I / O status under Linux (Linux)

- Windows and Ubuntu dual system, repair of two ways UEFI boot (Linux)

- Command filter MySQL slow query log (Database)

- Piostat - Monitoring and Statistics Linux process (Linux)

- Java implementation of stacks and queues (Programming)

 
         
  Oracle 11g user rights management study notes
     
  Add Date : 2018-11-21      
         
         
         
  Summing up the work often use some Oracle 11g user rights management study notes:

1 View all database users each have a role:
select * from (select distinct connect_by_root grantee username, granted_role
from dba_role_privs
connect by prior granted_role = grantee) a
where exists (select 1 from dba_users b where b.username = a.username)
order by 1,2
;

2, view the database system privileges for all users:
select d.username, d.privilege from
(Select a.username, b.privilege from
(Select distinct connect_by_root grantee username, granted_role
from dba_role_privs
connect by prior granted_role = grantee) a,
(Select grantee, privilege from dba_sys_privs) b
where a.granted_role = b.grantee
union
select grantee, privilege from dba_sys_privs) d
where exists ((select 1 from dba_users c where d.username = c.username))
order by 1,2;

3, view the database table permissions for all users
select d.username, d.privilege, d.owner, d.table_name from
(Select a.username, b.privilege, b.owner, b.table_name from
(Select distinct connect_by_root grantee username, granted_role
from dba_role_privs
connect by prior granted_role = grantee) a,
(Select grantee, owner, table_name, privilege from dba_tab_privs) b
where a.granted_role = b.grantee
union
select grantee, privilege, owner, table_name from dba_tab_privs) d
where exists ((select 1 from dba_users c where d.username = c.username))
order by 1,2;

4, how to view the user has the DBA role?
Conventional practice is generally directly query DBA_ROLE_PRIVS view. Query as follows:
select grantee, granted_role from dba_role_privs where granted_role = 'DBA';
This user will miss the test as follows:

Correct query statement queries shall be as follows:
select * from (select distinct connect_by_root grantee username, granted_role
from dba_role_privs
connect by prior granted_role = grantee) a
where a.granted_role = 'DBA';

5, view the user has the SELECT ANY TABLE privilege
For grant role, look at who has the authority to query all the tables
select distinct rp.grantee from dba_role_privs rp, dba_sys_privs sp
where rp.granted_role = sp.grantee
and sp.privilege like 'SELECT ANY TABLE%'
     
         
         
         
  More:      
 
- The strings in Python reside (Programming)
- Linux smart small switch rfkill (Linux)
- OpenStack Folsom create an instance of the failure of the Quota Fixed_IP articles (Server)
- Parse Server supports iOS and Android push messaging (Programming)
- AngularJS (Programming)
- Impact test noatime Linux file access time (Linux)
- Ubuntu 15.04 installation Powercommands 2.0 (Linux)
- Oracle can not change the tablespace to backup mode in non-archive mode (Database)
- PostgreSQL 9.3.2 Json type of use (Database)
- Bash Automated Customization Linux belongs to its own CentOS system (Linux)
- MySQL5.7.10 installation documentation (Database)
- iOS constants, variables, properties and characteristics (Programming)
- Git remote repository Explanation (Linux)
- Linux character device - automatically creates the device nodes and devices (Linux)
- Kali Linux virtualbox rc = Error 1908 workaround (Linux)
- iptables allow only specific ip address to access the specified port (Linux)
- How VMware extend disk without rebooting the system (Linux)
- CentOS install SystemTap-2.6 (Linux)
- Installation Elementary OS Freya to do some settings (Linux)
- Django url () function Detailed (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.