查看是否还在使用特定的索引或者sql

Posted by Vincent on September 1, 2009

监控索引是否还在使用

alter index IDX_AUCFEED_RATED monitoring usage;

select index_name,monitoring,used,start_monitoring,end_monitoring from v$object_usage;

alter index IDX_AUCFEED_RATED nomonitoring usage;

获取share pool中的sql
select sql_text from v$sql where lower(sql_text) like '%xx%' and last_active_time > sysdate - 1;


This work is licensed under a CC A-S 4.0 International License.