2010-06-03

Скрипт для проверки привелегий

При изменении инсталляции и инсталляции из дампа привелегии можно проверить скриптом:
SELECT grantee "Кому", granted_role "Что", NULL "На что"
FROM Dba_Role_Privs
WHERE grantee LIKE 'SP%' OR grantee LIKE 'PN%'
OR granted_role LIKE 'SP%' OR granted_role LIKE 'PN%'
UNION ALL
SELECT grantee, PRIVILEGE, table_name
FROM Dba_Tab_Privs
WHERE grantee LIKE 'SP%' OR grantee LIKE 'PN%'
UNION ALL
SELECT grantee, PRIVILEGE, NULL
FROM dba_sys_Privs
WHERE grantee LIKE 'SP%' OR grantee LIKE 'PN%'
ORDER BY 1,2,3

Комментариев нет: