Oracle-sql Program Optimization 3

Source: Internet
Author: User

ETL in the last one weeks whether in the early morning or at noon job execution process often stuck, resulting in the failure to complete the system engine running, the business impact.

By generating the AWR report, it was found that three SQL consumed a large amount of CPU, and that no execution was completed and terminated.

The second article is full of CPU resources, which is undoubtedly the cause of the jammed, view the execution plan, because the SAP_MAPL table scans the 20多万条 data but walk full table scan

After checking that the table does not have a Jianjian index for the MATNR character, create a normal index for the Matnr field of the table

CREATE INDEX Idx_matnr on SAP_MAPL (MATNR);

Re-observation of the execution plan

The contrast is obvious because the SQL has been consuming CPU resources continuously because no index was built.

Oracle-sql Program Optimization 3

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.