-- 권한부여 스크립트 추출
SELECT TABLE_NAME
, COMMENTS
, 'GRANT UPDATE, SELECT, INSERT, INDEX, DELETE ON ' || OWNER || '.' || TABLE_NAME || ' TO USER1;' AS "GRANT"
, 'REVOKE ALL ON ' || OWNER || '.' || TABLE_NAME || ' FROM USER1;' AS "REVOKE"
FROM DBA_TAB_COMMENTS
WHERE TABLE_NAME LIKE 'TBL_%';
-- 권한확인
SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE IN ('USER1', 'USER2') ORDER BY GRANTEE;
SELECT * FROM DBA_ROLE_PRIVS WHERE GRANTEE IN ('USER1', 'USER2') ORDER BY GRANTEE;
SELECT * FROM DBA_TAB_PRIVS WHERE GRANTEE IN ('USER1', 'USER2') ORDER BY GRANTEE;
SELECT DISTINCT TABLE_NAME FROM DBA_TAB_PRIVS WHERE GRANTEE IN ('USER1', 'USER2') ORDER BY TABLE_NAME;
테이블에 사용자 권한 부여
|
2013.05.16 17:32:14
|
2013.05.16 17:32:14
|
361
|
Aiden
Total of Attached file
0.00 Bytes of 0 files
2014.06.21
2014.05.22
2014.05.13
2013.11.02
2013.09.17
2013.05.16
2013.04.20
2013.04.19
2013.03.24
2013.02.24
2013.02.23