首頁 >資料庫 >mysql教程 >Oracle internal queries taking more CPU time

Oracle internal queries taking more CPU time

WBOY
WBOY原創
2016-06-07 17:03:01986瀏覽

经查,该问题应该为oracle OEMbug,metalink参考文章ID:330383.1

早上,省社保项目组反应,,数据库上有一个系统类的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');

linux

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn