2011-12-12 4 views

답변

1
select table_name from TABLE_PRIVILEGES where grantee='USER' and select_priv='Y' 
union 
select table_name from user_tables 
+0

정확히 내가 무슨 필요! 감사. 나는 TABLE_PRIVILEGES이 존재한다는 것을 몰랐다. – ivan

2
select owner||'.'||table_name from user_tab_privs where privilege='SELECT' 
union 
select rtp.owner||'.'||rtp.table_name from user_role_privs urp, role_tab_privs rtp 
    where urp.granted_role = rtp.role and rtp.privilege='SELECT' 
union 
select user||'.'||table_name from user_tables;