Oracle internal queries taking more CPU time

Source: Internet
Author: User

In the morning, the Provincial Social Security Project Team responded that the database had a system-type SQL statement, which occupied a lot of resources and seriously affected the database performance. The specific SQL statement is:

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

After investigation, this problem should be Oracle OEMbug. metalink reference article ID: 330383.1

Solution:

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 ('sysmanc ');

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.