select *
from v$sql_plan v
where v.operation = 'TABLE ACCESS'
and v.OPTIONS = 'FULL'
and v.OBJECT_OWNER='DBUSER';--指定用戶下
查詢得到SQL_ID,ADDRESS, HASH_VALUE,PLAN_HASH_VALUE,OBJECT_NAME后,就可以定位到具體的SQL語句了。
select s.SQL_TEXT
from v$sqlarea s
where s.SQL_ID = '?' and s.HASH_VALUE = '?' and s.PLAN_HASH_VALUE = '?'
找到該SQL語句。