In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "AWR report parameters DB TIME and DB CPU analysis". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Preface: AWR report is an important report to understand the operation of ORACLE, and the use of CPU is an important indicator of AWR report. This document interprets AWR report from the perspective of a single CPU.
2. Introduction of important parameters:
DB Time:Amount of elapsed time (in microseconds) spent performing Database user-level calls. This does not include the elapsed time spent on instance background processes such as PMON.
Description: the total time spent by all DB TIME= foreground session on database calls
Note that it is the foreground process foreground sessions
Including CPU time, IO Time, and a series of other non-idle wait times, don't forget cpu on queue time
Formula: DB TIME= DB CPU + Non-Idle Wait + Wait on CPU queue
(consider that the definition of DB TIME is the foreground session)
DB CPU:Amount of CPU time (in microseconds) spent on database user-level calls. This does not include the CPU time spent on instance background processes such as PMON.
Description: simply understood as the CPU consumed by the database at run time
Db cpu, which contains only the cpu time consumed by the user process, but not the cpu time consumed by the background process. We generally care about cpu time, not db cpu.
Check the load of the database
Example 1:
The database has been running for 60 minutes, and the operating system has 16 CPU, with a total of DB TIME:60 × 160960 minutes.
CPU spent 233.57 minutes dealing with Oralce non-idle waits and operations, which means that CPU has 233.57pc100% = 24.3%
Example 2:
The database has been running for 60 minutes, and the operating system has 4 CPU for a total of DB TIME:60 × 880 minutes.
CPU spent 0.62 minutes on processing Oralce non-idle waits and operations, which means that CPU has 0.62 + 480%.
Summary: it is obvious that the database load can be seen initially from DB Time, Elapsed and CPUs.
4. Check the CPU load of the database
Example 1:
DB CPU (S) indicates the consumption of the database on DB CPU each time it is run, and the above DB CPU/DB Time=97.5% (because of the decimal point, this value will have an error)
For a detailed CPU, you need to check the% Busy CPU of Instance CPU, which is currently 99.2%.
Example 2:
According to the above calculation, we can know that the CPU load of this system is also very easy.
This is the end of the content of "AWR report parameters DB TIME and DB CPU Analysis". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.