Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to find performance issues in AWR?

Beauty_and_dBestJul 30 2019 — edited Aug 17 2019

Oracle 11gR1

OL5

Hi ALL,

We are running loading (insert) programs  via batch background job.

The first run with 300,000 rows was completed successfully in 1+ hrs,

The 2nd run with 200,000 rows hung and was terminated after 7 hrs.

How do I find the cause of the problem for the 2nd batch job?

Below are comparative AWR statistics for the two batch jobs.

Please help how to find the issue.

Thanks a lot.

Below are the two similar loading programs which have different performance behavior.

The one with more rows succeeded/ completed in 1+ hrs , but the second run hung and was terminated after 7 hrs.

Could there be locking issue?

1) Data insert loading 1

DATE: 23-JUL-19 -- successful process with 300k+ records

Start Time: 03:18 AM

End Time : 04:45 AM

2.) Data insert loading 2

DATE: 24-JUL-19 --- issue encountered with 200k+ records

Start Time: 01:50 AM -- terminated after 7 hrs

AWR of #1

==========

WORKLOAD REPOSITORY report for

PROD157292119PROD124-Jun-19 05:0611.1.0.7.0NO

prod.oracle.comLinux x86 64-bit  8  8  2  38.38

Begin Snap:7311923-Jul-19 03:00:31298  25.3
End Snap:7312023-Jul-19 04:00:34298  25.5
Elapsed:  60.04 (mins)
DB Time:  40.97 (mins)

Report Summary

Cache Sizes

Buffer Cache:  11,904M  11,904MStd Block Size:  8K
Shared Pool Size:  3,072M  3,072MLog Buffer:  58,728K

Load Profile

DB Time(s):  0.7  0.1  0.01  0.02
DB CPU(s):  0.7  0.1  0.01  0.02
Redo size:  350,876.9  59,102.6
Logical reads:  88,980.8  14,988.2
Block changes:  2,598.9  437.8
Physical reads:  4.9  0.8
Physical writes:  55.6  9.4
User calls:  28.4  4.8
Parses:  6.6  1.1
Hard parses:  0.1  0.0
W/A MB processed:  609,524.5  102,669.8
Logons:  0.1  0.0
Executes:  82.7  13.9
Rollbacks:  1.5  0.3
Transactions:  5.9

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %:  100.00Redo NoWait %:  100.00
Buffer Hit %:  99.99In-memory Sort %:  100.00
Library Hit %:  97.65Soft Parse %:  98.69
Execute to Parse %:  91.99Latch Hit %:  100.00
Parse CPU to Parse Elapsd %:  0.01% Non-Parse CPU:  99.97

Shared Pool Statistics

Memory Usage %:  42.94  43.04
% SQL with executions>1:  93.85  96.38
% Memory for SQL w/exec>1:  91.99  96.47

Top 5 Timed Foreground Events

DB CPU2,42698.71
db file sequential read16,4201310.52User I/O
log file sync14,8481110.43Commit
SQL*Net more data from client52,628100.05Network
local write wait1,182110.05User I/O

Host CPU (CPUs: 8 Cores: 8 Sockets: 2)

  0.70  1.04  8.7  0.1  0.2  91.2

Instance CPU

  8.7  97.9  0.0

Memory Statistics

Host Mem (MB):  39,299.7  39,299.7
SGA use (MB):  15,360.0  15,360.0
PGA use (MB):  2,047.3  2,042.4
% Host Mem used for SGA+PGA:  44.29  44.29

Main Report

================================  AWR of #2========

WORKLOAD REPOSITORY report for

PROD157292119PROD124-Jun-19 05:0611.1.0.7.0NO
prod.oracle.comLinux x86 64-bit88238.38
Begin Snap:7314124-Jul-19 01:00:2030523.9
End Snap:7314224-Jul-19 02:00:2230324.5
Elapsed:60.04 (mins)
DB Time:9.88 (mins)

Report Summary

Cache Sizes

Buffer Cache:11,776M11,776MStd Block Size:8K
Shared Pool Size:3,200M3,200MLog Buffer:58,728K

Load Profile

DB Time(s):0.20.10.000.01
DB CPU(s):0.20.10.000.01
Redo size:14,286.55,654.5
Logical reads:18,178.07,194.7
Block changes:100.339.7
Physical reads:2.30.9
Physical writes:2.30.9
User calls:22.69.0
Parses:6.92.7
Hard parses:0.10.0
W/A MB processed:554,938.5219,641.2
Logons:0.10.0
Executes:42.216.7
Rollbacks:1.50.6
Transactions:2.5

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %:100.00Redo NoWait %:100.00
Buffer Hit %:99.99In-memory Sort %:100.00
Library Hit %:97.10Soft Parse %:99.11
Execute to Parse %:83.66Latch Hit %:99.99
Parse CPU to Parse Elapsd %:0.01% Non-Parse CPU:99.86

Shared Pool Statistics

Memory Usage %:43.4143.36
% SQL with executions>1:94.8796.81
% Memory for SQL w/exec>1:95.1897.49

Top 5 Timed Foreground Events

DB CPU58398.41
db file sequential read7,331611.08User I/O
log file sync2,853210.37Commit
local write wait594110.10User I/O
control file sequential read1,063000.07System I/O

Host CPU (CPUs: 8 Cores: 8 Sockets: 2)

0.331.192.30.10.197.6

Instance CPU

2.292.90.0

Memory Statistics

Host Mem (MB):39,299.739,299.7
SGA use (MB):15,360.015,360.0
PGA use (MB):1,906.21,906.6
% Host Mem used for SGA+PGA:43.9343.93

Main Report

Please help how to analyze between these two good and bad performance.

How do I find the cuase of the issue for job run#2

Kind regards,

 

  

This post has been answered by Dom Brooks on Jul 30 2019
Jump to Answer
Comments
Post Details
Added on Jul 30 2019
29 comments
5,531 views