用戶擁有的系統(tǒng)權(quán)限
select privilege from dba_sys_privs where grantee='&USERNAME'
union
select privilege from dba_sys_privs where grantee in (select granted_role from dba_role_privs where grantee='&USERNAME');
創(chuàng)建用戶
CREATE USER songgx
IDENTIFIED BY songgx
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp
QUOTA 10M ON users
PROFILE default
PASSWORD EXPIRE
ACCOUNT UNLOCK;
查詢用戶擁有的系統(tǒng)權(quán)限
SELECT *
FROM DBA_SYS_PRIVS
WHERE GRANTEE = 'LIUCH'
UNION ALL
SELECT *
FROM DBA_SYS_PRIVS
WHERE GRANTEE IN
(SELECT GRANTED_ROLE FROM DBA_ROLE_PRIVS WHERE GRANTEE = 'LIUCH');
新聞標(biāo)題:oracle中用戶角色的查詢和授權(quán)
新聞來源:
http://weahome.cn/article/ihpcci.html