Oracle capture problem SQL solves CPU overhead

Source: Internet
Author: User
Tags high cpu usage
This article attempts to provide a diagnosis method for common CPU consumption problems through a case adjusted in the actual business system.

This article attempts to provide a diagnosis method for common CPU consumption problems through a case adjusted in the actual business system.

The ORACLE tutorial is: Oracle capture problem SQL to solve the excessive CPU consumption. This article attempts to provide a diagnosis method for common CPU consumption problems through a case adjusted in the actual business system. in most cases, system performance problems are caused by poor SQL code. As a DBA, how to discover and solve these SQL problems is particularly important.

In this case, the platform is UNIX, so it is inevitable to apply some commonly used Unix tools, such as vmstat and top.

This article is applicable to medium and high level readers.

System Environment:

OS: Solaris8

Oracle: 8.1.7.4

Problem description:

The developer reports that the system is running slowly, which has affected the normal use of the business system. request assistance in diagnosis.

1. log on to the Database Host

Run the vmstat check and find that the CPU resources are exhausted. A large number of tasks are in the running queue:


2. Use the Top Command

Observe the CPU usage of the process and find that there are no processes with high CPU usage.


3. Check the number of processes


It is found that a large number of Oracle processes exist in the system, which is about 300. A large number of processes consume almost all CPU resources. Normally, the number of Oracle connections is about 100.

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.