develog

[Oracle] Privileges 본문

DB/Oracle

[Oracle] Privileges

냐옴 2014. 9. 2. 10:11

 

SELECT * FROM DBA_TAB_PRIVS;

SELECT OWNER, TABLE_NAME, GRANTOR, GRANTEE, PRIVILEGE, GRANTABLE, HIERARCHY
FROM USER_TAB_PRIVS
WHERE OWNER = 'SCOTT'
AND INSTR(TABLE_NAME, '$') = 0
ORDER BY OWNER, TABLE_NAME, GRANTOR, GRANTEE, PRIVILEGE
;

SELECT *
FROM ALL_OBJECTS
WHERE 1=1
AND INSTR(OBJECT_NAME, 'USER') > 0
AND INSTR(OBJECT_NAME, 'PRIVS') > 0
ORDER BY OBJECT_NAME
;

USER_AQ_AGENT_PRIVS
USER_COL_PRIVS
USER_COL_PRIVS_MADE
USER_COL_PRIVS_RECD
USER_ROLE_PRIVS
USER_RSRC_CONSUMER_GROUP_PRIVS
USER_RSRC_MANAGER_SYSTEM_PRIVS
USER_SYS_PRIVS
USER_TAB_PRIVS
USER_TAB_PRIVS_MADE
USER_TAB_PRIVS_RECD
USER_WM_PRIVS
USER_WORKSPACE_PRIVS

 

http://docs.oracle.com/cd/E11882_01/timesten.112/e21642/privileges.htm

 

Privileges

When multiple users can access database objects, authorization can be controlled to these objects with privileges. Every object has an owner. Privileges control if a user can modify an object owned by another user. Privileges are granted or revoked either

docs.oracle.com

 

'DB > Oracle' 카테고리의 다른 글

[Oracle] exists  (0) 2014.11.11
[Oracle] 컬럼 값이 숫자인지 확인, translate  (0) 2014.10.01
[Oracle] RAISE_APPLICATION_ERROR  (0) 2014.09.01
[Oracle] index 컬럼 찾기  (0) 2014.08.18
인덱스 재생성  (0) 2014.06.17
Comments