Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle grants

-- List privileges, including roles, for my_user
SELECT GRANTEE, PRIVILEGE AS PRIVILEGE_ROLE,
       NULL AS OWNER, NULL AS TABLE_NAME, NULL AS COLUMN_NAME,
       ADMIN_OPTION AS PRIVILEGE, 
       NULL AS GRANTABLE
FROM DBA_SYS_PRIVS WHERE GRANTEE = 'my_user'
UNION ALL
SELECT r.GRANTEE, r.GRANTED_ROLE AS PRIVILEGE_ROLE, p.OWNER, p.TABLE_NAME, 
	p.COLUMN_NAME, PRIVILEGE, p.GRANTABLE
FROM DBA_ROLE_PRIVS r LEFT JOIN ROLE_TAB_PRIVS p ON p.ROLE = r.GRANTED_ROLE
WHERE r.GRANTEE = 'my_user';
Comment

Grants ORACLE

SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE LIKE 'FABIANO'
Comment

PREVIOUS NEXT
Code Example
Sql :: select tables from mysql database 
Sql :: how to get table current identity value in sql server 
Sql :: HOW TO FIND MEDIAN IN SQL FOR BOTH IDD AND EVEN 
Sql :: oracle asynchronous update 
Sql :: oracle sql create view 
Sql :: oracle show execution plan 
Sql :: find difference in dates sql 
Sql :: data types sql 
Sql :: best sql course 
Sql :: oracle current date minus 1 day 
Sql :: show size database mysql 
Sql :: sql random number between 1000 and 9999 
Sql :: oracle last day of month 
Sql :: SQL SERVER SELECT BETWEEN DATETIME 
Sql :: mysql docker 
Sql :: id increment ms sql server 
Sql :: how to drop a database in sql server when it is in use 
Sql :: mysql limit offset 
Sql :: sql in sublime 
Sql :: sql limit decimal places 
Sql :: postgres group by 10 minute intervals 
Sql :: mysql backup query 
Sql :: find duplicate keys in mysql 
Sql :: sql where first letter 
Sql :: change column name in sql 
Sql :: drop table with constraints 
Sql :: pluck in query builder 
Sql :: mysql grant access to one database 
Sql :: how to find sql server agent jobs related to a database 
Sql :: change auto increment mysql 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =