oracle dbms_xplan.display_cursor檢視執行計劃

thamsyangsw發表於2014-03-20

select sql_text,
       sql_fulltext,
       sql_id,
       child_number,
       last_load_time,
       s.executions,
       s.cpu_time,
       s.elapsed_time,
       s.plsql_exec_time,
       s.users_executing,
       s.px_servers_executions,
       s.*
  from gv$sql s
 where s.sql_fulltext like '%hx_zgxt.sb_zlbsmxqd%'
 order by s.last_load_time desc;

select *
  from table(dbms_xplan.display_cursor('28rzb164xuctv',
                                       0,
                                       'ADVANCED +PEEKED_BINDS'));

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26613085/viewspace-1125668/,如需轉載,請註明出處,否則將追究法律責任。

相關文章