oracle删除固化的执行计划及索引监控
第一步先查询select sql_id, address, hash_value, executions, loads, parse_calls, invalidations from v$sqlareawhere sql_text = 'select 2 from dual';SQL_IDADDRESSHASH_VALUE...
第一步先查询
select sql_id, address, hash_value, executions, loads, parse_calls, invalidations from v$sqlarea
where sql_text = 'select 2 from dual';
SQL_ID ADDRESS HASH_VALUE EXECUTIONS LOADS PARSE_CALLS INVALIDATIONS
------------- ---------------- ---------- ---------- ---------- ----------- -------------
9fusd37prv595 000000006C5D2988 3950875941 1 1 1 0
第二步:
exec sys.dbms_shared_pool.purge('000000006C5D2988,3950875941', 'c');
参考:
https://blog.csdn.net/weixin_34186950/article/details/89795951
索引监控
怎样监控无用的索引
开始监控:alter index index_name monitoring usage;
检查使用状态:select * from v$object_usage;
停止监控:alter index index_name nomonitoring usage;
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)