Oracle internal queries taking more CPU time
早上,省社保项目组反应,数据库上有一个系统类的sql,占用资源很大,严重影响数据库性能。具体的sql为:
SELECT COUNT(*) FROM MGMT_METRIC_DEPENDENCY_DETAILS DEP, MGMT_SEVERITY SEV WHERE DEP.TARGET_GUID = :B5 AND DEP.METRIC_GUID = :B4 AND DEP.KEY_VALUE = :B3 AND DEP.EDEP_TARGET_GUID = SEV.TARGET_GUID AND DEP.EDEP_METRIC_GUID = SEV.METRIC_GUID AND DEP.DEP_KEY_VALUE = SEV.KEY_VALUE AND SEV.COLLECTION_TIMESTAMP BETWEEN :B2 AND :B1
经查,该问题应该为Oracle OEMbug,metalink参考文章ID:330383.1
解决办法为:
1. As part of your weekly maintenance jobs for the Oracle Management Repository, run the following
procedure to analyze all of the objects in the SYSMAN schema:
exec dbms_stats.gather_schema_stats('SYSMAN');
相关推荐
iilegend 2020-10-19
Hody 2020-08-16
ihuaqiang 2020-08-16
Carlos 2020-07-29
wpfeitian 2020-07-26
Justdoit00 2020-06-26
dataminer 2020-06-25
昊 2020-06-16
lklong 2020-11-22
oraclemch 2020-11-06
shilukun 2020-10-10
周嘉笙 2020-11-09
EricRay 2020-10-16
zhuzhufxz 2020-09-16
dataminer 2020-08-17
bfcady 2020-08-16
FightFourEggs 2020-08-16
数据库设计 2020-08-16