Article Title: Explanation of the Statspack report data results. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I. Ten items that must be viewed in statspack output results
1. Load profile)
2. Instance efficiency CTR (Instance efficiency hit ratios)
3. Top 5 wait events)
4. Wait for the event (Wait events)
5. latch wait
6. Top SQL)
7. Instance activity)
8. File I/O (File I/O)
9. Memory allocation (Memory allocation)
10. Buffer wait (Buffer waits)
Ii. output result explanation
1. Report header information
Database instance information, including database name, ID, version number, host, and other information
Quote:
STATSPACK report
DB Name DB Id Instance Inst Num Release Cluster Host
-------------------------------------------------------------------------
PORMALS 3874352951 pormals 1 9.2.0.4.0 NO NJLT-SERVER1
Snap Id Snap Time Sessions Curs/Sess Comment
-------------------------------------------------------------
Begin Snap: 36 18-7 month-04 20:41:02 29 19.2
End Snap: 37 08:18:27 24 15.7
Elapsed: 697.42 (mins)
Cache Sizes (end)
~~~~~~~~~~~~~~~~~
Buffer Cache: 240 M Std Block Size: 8 K
Shared Pool Size: 96 M Log Buffer: 512 K
2. Load gap
This part provides statistics for every second and every thing. It is an important part of monitoring system throughput and load changes.
Quote:
Load Profile
~~~~~~~~~~~~ Per Second (SEC) Per Transaction
------------------------------
Redo size: 148.46 3,702.15
Logical read: 1,267.94 31,619.12
Block changes: 1.01 25.31
Physical read: 4.04 100.66
Physical writes: 4.04 100.71
User cballs: 13.95 347.77
Parses: 4.98 124.15
Hard parses: 0.02 0.54
Sorts: 1.33 33.25
Logons: 0.00 0.02
Executes: 2.46 61.37
Transactions: 0.04
% Blocks changed per Read: 0.08 Recursive Call %: 30.38
Rollback per transaction %: 0.42 Rows per Sort: 698.23
Note:
Redo size: the size of logs generated per second (in bytes). It indicates whether the database task is heavy or not.
Logical reads: The Logical reads generated per second. Unit: block.
Block changes: the number of block changes per second, and the number of blocks that database transactions change
Physical reads: Average number of blocks read from the disk by the database per second
Physical writes: Average number of blocks written to the disk by the database per second
User CILS: number of User calls per second
Parses: number of resolutions per second, reflecting the number of statements executed per second.
Soft resolution more than 300 times per second means that your "application" is effective
Low rate, no soft parse is used, and session_cursor_cache is adjusted
Hard parses: Number of Hard resolutions generated per second
Sorts: the number of sorting times generated per second
Executes: number of executions per second
Transactions: the number of Transactions generated per second, reflecting whether database tasks are heavy or not
3. instance hit rate
This part can identify potential performance problems in ORACLE in advance, which is very important
Quote:
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
Buffer Nowait %: 100.00 Redo NoWait %: 100.00
Buffer Hit %: 99.96 In-memory Sort %: 99.14
Library Hit %: 99.53 Soft Parse %: 99.57
Execute to Parse %:-102.31 Latch Hit %: 100.00
Parse CPU to Parse Elapsd %: 81.47% Non-Parse CPU: 96.46
Note:
Buffer Nowait %: Percentage of Buffer not waiting to be obtained in the Buffer zone
Redo NoWait %: Percentage of Buffer not waiting in the Redo Buffer
Buffer Hit %: the Hit rate of data blocks in the data Buffer, usually above 90%. Otherwise, it needs to be adjusted.
In-memory Sort %: Sorting rate In memory
Library Hit %: It mainly indicates the SQL Hit rate in the shared area, usually above 95%. No, you need to consider adding
Large Shared Pool, variable binding, cursor_sharing modification, and other parameters.
Soft Parse %: similar to the SQL hit rate in the shared area, less than <95%, you need to consider binding, if less than 80%,
The SQL statement may not be reused.
Execute to Parse %: Number of times the SQL statement is repeatedly executed after parsing. If it is too low, consider setting
Session_cached_cursors Parameter
Parse CPU to Parse Elapsd %: Parse the actual running event/(Parse the actual running time + wait for resource time in parsing)
Higher, better
% Non-Parse CPU: queries the actual running time/(queries the actual running time + SQL parsing time). If the CPU usage is too low, the parsing consumes too much time.
Quote:
Shared Pool Statistics Begin End
------------
Memory Usage %: 33.79 57.02
% SQL with executions> 1: 62.62 73.24
% Memory for SQL w/exec> 1: 64.55 78.72
Shared Pool statistics
Memory Usage %: Memory Usage of the shared pool, which should be stable between 75% and 90%. Memory is too small to waste, and Memory is insufficient if it is too large.
% SQL with executions> 1: Percentage of SQL statements with execution times greater than 1. If it is too small, bind variables may not be used.
% Memory for SQL w/exec> 1: that is, memory for SQL with execution> 1: SQL statements with execution times greater than 1
Memory consumption/memory consumed by all SQL statements
4. Primary wait events
Quote:
Top 5 Timed Events
~~~~~~~~~~~~~~~~~~ % Total
Event Waits Time (s) Ela Time
---------------------------------------------------------------------------
CPU time 581 63.58
SQL *. Net more data to client 223,918 257 28.14
Control file parallel write 13,595 24 2.66
Direct path read 4,411 17 1.86
Db file sequential read 2,851 12 1.28
Common wait events:
Oracle wait events are important bases and instructions for measuring the running status of oracle, including idle wait events and non-idle wait events.
The idle wait event is that oracle is waiting for some kind of work. When diagnosing and optimizing the database, you don't need to pay too much attention to this part of the event,
Non-idle wait events are specific to oracle activities. They are the waiting events that occur when database tasks or applications are running. We should pay attention to these waiting events when adjusting the database.
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