AWR Report Analysis in Depth-Part 1 - Clouddba
AWR Report Analysis in Depth-Part 1 - Clouddba
commit;
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 1 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
end loop;
end;
exec manysessions;
Now I will create a simple procedure to load bulk data.I will make
commit out of loop to decrease frequent commit.
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 2 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
begin
for i in 1..10000000 loop
select round(dbms_random.value() * 44444444444) + 1 into v_m from dual
t;
insert /*+ new2 */ into t values (v_m, ‘DOES
THIS’||dbms_random.value(),sysdate);
–commit;
end loop;
commit;
end;
exec manysessions;
I will execute the test case on server with low CPU (A) as
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 3 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
./oratop -f -d -i 10 / as sysdba
Then you can put sql_id to see the execution plan as well.
For A.
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 4 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
For B
Section 1 - database
role : database_role
db name : db_unique_name
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 5 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
Section 2 - instance
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 6 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 7 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
o Cluster-wide, non-idle
Section 4 - process
o Non-Idle processes
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 8 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
SERVICE : db service_name
STA : ACTive|INActive|KILled|CAChed|SNIped
We had 4 CPU,so our 6 jobs (status :-S means Sleeping) had to wait for
CPU.And other 4 jobs are running (Status :-R means Running). Also note
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 9 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
For B:-
We had 20 CPU,so our all 10 jobs are running (Status :-R means
Running).Also note 44.4 % CPU is used because out of 20 CPU we are using
10 CPU.Hence there is 50% idle CPU.
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 10 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
4.VMSTAT report
For A:-
For B:-
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 11 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
BYTES/1024/1024/1024
——————-
7.375
For A:-
For B:-
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 12 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
B.Load Profile
For A:-
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 13 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
For B:-
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 14 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
activity.
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 16 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
for A:
For B:
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 17 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 18 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
For A:-
For B:-
Buffer Hit %:- Less than 95 percent may indicate a problem. This
value is the ratio of hits on a request for a specific buffer when the
buffer was in memory and no physical I/O was needed.A hit ratio
that is steadily at 95 percent and then drops to 45 percent should
be checked for bad SQL or a dropped index (check the top physical
reads SQL) causing a surge in physical reads that are not using an
index or an index that has been dropped
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 19 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
library hit ratio usually indicates that SQL is being pushed out of
the shared pool early (could be due to a shared pool that is too
small). A lower ratio could also indicate that bind variables are not
used or some other issue is causing SQL not to be reused (in which
case, a smaller shared pool may only be a bandage that potentially
fixes a resulting library latch problem)
Soft Parse %:- Less than 95 percent indicates problem. A soft parse
ratio that is less than 80 percent indicates that SQL is not being
reused and needs to be investigated.
For A:-
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 20 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
For B:-
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 21 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
For A:-
For B:-
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 22 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
The log file parallel write shows LGWR is waiting for blocks to be
written to all online redo log members in one group. LGWR will
wait until all blocks have been written to all members. So here we
had 80% of background total time spent on log file parallel write.
The parameter of interest here is Avg wait (ms). In our case it is
1ms which is a perfectly respectable figure. Obviously larger
average wait times point to slower I/O subsystem or poor I/O
configurations.As a rule of thumb, an average time for ‘log file
parallel write’ over 20 milliseconds suggests a problem with IO
subsystem.
Another thing is log file parallel write is background wait event of
log file sync.You need to check if large commit
is happening in “user commits” section of “Instance Activity Stats”
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 23 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
G.Host CPU
For A:-
For B:-
Host CPU
Here you can notice %user is 84%.This really gives you sign that
your CPU are highly used.Load average 2.77 (after execution
completed) means you are having average 3 sessions running at
one time and other 7 sessions are waiting for CPU.But most of the
time load average was around 10 (refer oratop and vmstat) as
there was 10 sessions running all the time during snapshot period.
Instance CPU
%Total cpu indicates that Database is using 82.6 % cpu of total CPU
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 24 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
of the database server. This indicates there are not many other
database’s process running currently.If you see less value here it
may indicates the database server total cpu may be used by other
application or database instances.
H.IO Profile
For A:-
For B:-
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 25 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
I.Memory Statistics
For A:-
For B:-
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 26 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
A low value for the % SQL with exec>1 statistic indicates databasee
is not re-using shared SQL statements, usually because the SQL is
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 27 of 28
AWR report analysis in depth-part 1 | clouddba 3/25/18, 6*22 PM
J.OS Statistics
For A:-
For B:-
https://www.clouddba.co/awr-report-analysis-depth-part-1/ Page 28 of 28