develog

[Oracle] 부여된 권한 조회 본문

DB/Oracle

[Oracle] 부여된 권한 조회

냐옴 2015. 1. 21. 14:55

 

SELECT
    OWNER
    , (
        SELECT DISTINCT REPLACE(OBJECT_TYPE, ' BODY', '')
        FROM USER_OBJECTS
        WHERE OBJECT_NAME = A.TABLE_NAME
    ) OBJECT_TYPE
    , TABLE_NAME OBJECT_NAME
    , GRANTOR, GRANTEE, PRIVILEGE, GRANTABLE, HIERARCHY
FROM USER_TAB_PRIVS A
WHERE OWNER = 'SCOTT'
ORDER BY OWNER, OBJECT_TYPE, TABLE_NAME, GRANTOR, GRANTEE, PRIVILEGE
;

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

[Oracle] REF CURSOR  (0) 2015.06.18
[Oracle] DDL, DML, DCL, TCL  (0) 2015.05.13
[Oracle] GRANT 조회  (0) 2015.01.13
[Oracle] 테이블 생성시간 확인  (0) 2015.01.06
[Oracle] USERENV  (0) 2014.12.17
Comments