查出系统中使用到全局临时表的SQL

查出系统中使用到全局临时表的SQL

select b.object_owner, b.object_name, a.temporary, sql_text 
from dba_tables a, v$sql_plan b, v$sql c 
where a.owner = b.object_owner 
and a.temporary = 'Y' 
and a.table_name = b.object_name 
and b.sql_id = c.sql_id;   

 

posted @ 2023-03-05 20:51  屠魔的少年  阅读(8)  评论(0)    收藏  举报