預存程序dbms_sql.flush_trace用於清理information_schema.sql_sharing系統資料表中的所有SQL Trace統計資訊和追蹤記錄。
文法
dbms_sql.flush_trace()樣本
清理information_schema.sql_sharing系統資料表中的所有SQL Trace統計資訊和追蹤記錄。樣本如下:
call dbms_sql.flush_trace();查詢information_schema.sql_sharing系統資料表中的統計資訊和追蹤記錄。
select * from information_schema.sql_sharing\G執行結果如下:
Empty set (0.00 sec)