AWR - Automatic Workload Repository
AWR - Automatic Workload Repository
Pgina 1 de 2
http://www.databaseskill.com/988105/
26/09/2015
Pgina 2 de 2
Sometimes you might want to drop snapshots manually. The dbms_workload_repository.drop_snapshot_range procedure can be used to remove a range of snapshots
from the AWR. This procedure takes two parameters, low_snap_id and high_snap_id, as seen in this example:
EXEC dbms_workload_repository.drop_snapshot_range (low_snap_id => 1, high_snap_id => 4);
AWR automated snapshots
Oracle Database 10g uses a scheduled job, GATHER_STATS_JOB, to collect AWR statistics. This job is created, and enabled automatically when you create a new
Oracle database under Oracle Database 10g. To see this job, use the DBA_SCHEDULER_JOBS view as seen in this example:
SELECT a.job_name, a.enabled, c.window_name, c.schedule_name,
c.start_date, c.repeat_interval
In FROM dba_scheduler_jobs a,
dba_scheduler_wingroup_members b
the dba_scheduler_windows c
WHERE job_name = 'GATHER_STATS_JOB'
And a.schedule_name = b.window_group_name
And b.window_name = c.window_name;
You can disable this job using the dbms_scheduler.disable procedure as seen in this example:
Exec dbms_scheduler.disable ('GATHER_STATS_JOB');
And you can enable the job using the dbms_scheduler.enable procedure as seen in this example:
Exec dbms_scheduler.enable ('GATHER_STATS_JOB');
AWR Snapshot Reports
Oracle provides reports that you can run to analyze the data in the AWR. These reports are much like the statspack reports prior to Oracle Database 10g. There are
two reports: awrrpt.sql and awrrpti.sql, which are available in the directory $ ORACLE_HOME / rdbms / admin.
The output of these reports is essentially the same, except that awrrpti.sql script allows you to define a specific instance to report on.
The reports are much like the statspack reports of old, in that you define a beginning and ending snapshot ID, and the output filename of the report. Additionally, you
can opt to produce the report in either text format or HTML format.
AWR Baselines
It is frequently a good idea to create a baseline in the AWR. A baseline is defined by <Robert, should this be "by" or "as"> a range of snapshots that can be used to
compare to other pairs of snapshots. The Oracle database server will exempt the snapshots assigned to a specific baseline from the automated purge routine. Thus, the
main purpose of a baseline is to preserve typical runtime statistics in the AWR repository, allowing you to run the AWR snapshot reports on the preserved baseline
snapshots at any time and compare them to recent snapshots contained in the AWR. This allows you to compare current performance (and configuration) to
established baseline performance, which can assist in determining database performance problems.
In this section, you will learn how to create baselines, remove baselines, and how to use baselines.
Creating baselines
You can use the create_baseline procedure contained in the dbms_workload_repository stored PL / SQL package to create a baseline as seen in this example:
EXEC dbms_workload_repository.create_baseline (start_snap_id => 1109, end_snap_id => 1111, baseline_name => 'EOM Baseline');
Baselines can be seen using the DBA_HIST_BASELINE view as seen in the following example:
SELECT baseline_id, baseline_name, start_snap_id, end_snap_id FROM dba_hist_baseline;
BASELINE_ID BASELINE_NAME START_SNAP_ID END_SNAP_ID
----------- AAAAAA --------------- AAAAAAAAA ------------- AAAAAAAAA -------- --1AAAAAAAAAAAAAAAAAA BaselineAAAAAAAAAAAAAA 1 AAAAAAAAAAAAAAAAAAAAAAA 5
In this case, the column BASELINE_ID identifies each individual baseline that has been defined. The name assigned to the baseline is listed, as are the beginning and
ending snapshot IDs.
Removing baselines
You can remove a baseline using the dbms_workload_repository.drop_baseline procedure as seen in this example that drops the "EOM Baseline" that we just created.
EXEC dbms_workload_repository.drop_baseline (baseline_name => 'Baseline', Cascade => FALSE);
Note that the cascade parameter will cause all associated snapshots to be removed if it is set to TRUE; otherwise, the snapshots will be cleaned up automatically by
the AWR automated processes.
http://www.databaseskill.com/988105/
26/09/2015
Pgina 1 de 3
Preparado?
Baseline (Baseline):
Create a database comparison report, usually selected sample comparison of the two periods, and if we are able to create based on the normal operation of the
database snapshot, in the event of a performance problem, it can be abnormal and normal comparison Differences between information. With baseline, the contrast
between the AWR report will be more clear and effective.
01.
02.
03.
PL/SQL ?
04.
05.
06.
07.
END_SNAP_ID END_SNAP_TIME
08.
09.
1293815896
1 baseline01
90 25-11-11 02.17.22.241
95 25-11-11 07.00.39.847
10.
11.
12.
13.
PL/SQL ?
14.
15.
Specified in the delete cascade => true, snapshot information will be deleted cascade! That is the AWR report alerts generated again will 90 to 95 of the snapshot
information is not visible.
the awrddrpt.sql script compared to the same database two hours to generate detailed comparison reports provide a comparative analysis of!
script awrddrpi.sql can compare the two periods of the different databases, generate a detailed comparison report provides a comparative analysis of!
01.
--AWR?
02.
03.
11 26 01:02:30 2011
04.
05.
06.
07.
08.
09.
10.
With the Partitioning, OLAP, Data Mining and Real Application Testing options
11.
12.
13.
Current Instance
14.
~~~~~~~~~~~~~~~~
15.
16.
17.
18.
DB Id
DB Id
DB Name
1293815896 ORCL
1 orcl
19.
20.
21.
22.
~~~~~~~~~~~~~~~~~~~~~~~
23.
24.
25.
Defaults to 'html'
26.
report_type :
--html?
Type Specified:
html
27.
28.
29.
30.
31.
32.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33.
34.
DB Id
Instance
Host
35.
36.
* 1293815896
1 ORCL
orcl
linux
37.
38.
39.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40.
http://www.databaseskill.com/1718323/
26/09/2015
41.
Using
Pgina 2 de 3
42.
43.
44.
45.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46.
Entering the number of days (n) will result in the most recent
47.
48.
49.
50.
51.
num_days :
--2?
52.
53.
54.
55.
Snap
56.
Instance
DB Name
Snap Id
57.
58.
orcl
ORCL
Snap Started
Level
90 25 11 2011 02:17
59.
91 25 11 2011 03:00
60.
92 25 11 2011 04:00
61.
93 25 11 2011 05:00
62.
94 25 11 2011 06:00
63.
95 25 11 2011 07:00
64.
96 25 11 2011 08:00
66.
97 25 11 2011 23:59
67.
98 26 11 2011 01:00
65.
68.
69.
70.
71.
72.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73.
74.
begin_snap :
91
--?
75.
76.
77.
end_snap :
First End
92
Snapshot Id specified: 92
--?
78.
79.
80.
81.
82.
83.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
84.
85.
DB Id
Instance
Host
86.
87.
* 1293815896
1 ORCL
orcl
linux
88.
89.
90.
91.
92.
93.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
94.
95.
96.
Using
97.
98.
99.
100.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101.
Entering the number of days (n) will result in the most recent
102.
103.
104.
105.
num_days2 :
--2?
106.
107.
108.
109.
Snap
110.
Instance
DB Name
Snap Id
111.
112.
orcl
ORCL
Snap Started
Level
90 25 11 2011 02:17
113.
91 25 11 2011 03:00
114.
92 25 11 2011 04:00
115.
93 25 11 2011 05:00
116.
94 25 11 2011 06:00
117.
95 25 11 2011 07:00
118.
96 25 11 2011 08:00
120.
97 25 11 2011 23:59
121.
98 26 11 2011 01:00
119.
122.
123.
124.
125.
126.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
127.
begin_snap2 :
92
--?
http://www.databaseskill.com/1718323/
26/09/2015
128.
Pgina 3 de 3
129.
130.
131.
end_snap2 :
Second End
93
--?
Snapshot Id specified: 93
132.
133.
134.
135.
136.
~~~~~~~~~~~~~~~~~~~~~~~
137.
138.
139.
140.
report_name :
--?
141.
142.
143.
144.
... ...
145.
... ...
146.
... ...
147.
148.
P>
149.
<P>
150.
<P>
151.
<P>
152.
<P>
153.
</BODY></HTML>
154.
http://www.databaseskill.com/1718323/
26/09/2015
Pgina 1 de 2
1) the AWR sampling interval and information retention information can query through the following view:
01.
02.
03.
DBID SNAP_INTERVAL
RETENTION
TOPNSQL
04.
05.
+00007 00:00:00.0
DEFAULT
01.
02.
03.
NAME
04.
TYPE
05.
statistics_level
string
VALUE
TYPICAL
Basic: AWR's statistics collection, and all the characteristics of self-adjustment are turned off.
Typical: database to collect some statistics, the default value.
ALL: All statistics are collected.
3) the AWR information recorded in the wrh $ _active_session_history partition table, view dba_hist_active_sess_history and to see.
Briefly summarize:
v $ session on behalf of the beginning of the database activity, as originated;
The v $ session_wait view to wait for the real-time recording activity session, current information;
The v $ SESSION_WAIT_HISTORY enhanced is v $ session_wait the simple activation activity session last 10 wait;
The v $ active_session_history ASH core of history to wait for information to record the activity session, one sample per second, this part is recorded in the memory,
expectations record an hour;
wrh $ _active_session_history v $ active_session_history the AWR storage pool v $ ACTIVE_SESSION_HISTORY record information will be refreshed regularly
(once per hour) to load the library, and the default one week reserved for the analysis of;
The view dba_hist_active_sess_history joint show wrh $ _active_session_history view and several other view historical data access, usually through this view.
Other:
The SYSAUX tablespace new in Oracle 10g AWR information storage ground.
awrrpti.sql AWR report on the production database or instance. This script is useful for the RAC database, direct connection on an instance can be generated for all
instances of AWR performance reports.
the awrextr.sql script for export AWR information, awrload.sql script for AWR data loaded. The data can be loaded by awrrpti.sql to the production report.
For example, the production database sample data import test libraries, you can compare the performance difference between the change in two or more persons.
Note: The sampling information export / import this process there is a problem in 10.2.0.4 and 10.2.0.5, the import is very slow!
01.
02.
03.
11 4 10:46:22 2011
04.
05.
06.
07.
08.
09.
http://www.databaseskill.com/1718405/
26/09/2015
10.
Pgina 2 de 2
With the Partitioning, OLAP, Data Mining and Real Application Testing options
11.
12.
13.
Current Instance
14.
~~~~~~~~~~~~~~~~
15.
16.
17.
18.
DB Id
DB Name
1 orcl
19.
20.
21.
22.
~~~~~~~~~~~~~~~~~~~~~~~
23.
24.
25.
Defaults to 'html'
26.
report_type :
html
--htmlawr?
27.
28.
Type Specified:
html
29.
30.
31.
32.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33.
34.
DB Id
Instance
Host
35.
36.
* 1290103567
1 ORCL
orcl
linux
37.
38.
39.
Using
40.
41.
42.
43.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44.
Entering the number of days (n) will result in the most recent
45.
46.
47.
48.
49.
num_days :
--1?
50.
51.
52.
53.
Snap
54.
Instance
DB Name
Snap Id
55.
56.
orcl
ORCL
Snap Started
Level
13 07 10 2011 12:07
57.
14 07 10 2011 13:00
58.
15 07 10 2011 14:01
59.
16 07 10 2011 15:00
60.
17 07 10 2011 16:00
61.
18 07 10 2011 17:00
62.
63.
64.
65.
66.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
67.
68.
begin_snap :
17
--17?
69.
70.
71.
end_snap :
End
18
Snapshot Id specified: 18
--18?
72.
73.
74.
75.
76.
~~~~~~~~~~~~~~~~~~~~~~~
77.
78.
79.
80.
report_name :
/u01/app/oracle/awr.html
--awr?
81.
82.
using ...
83.
... ...
84.
... ...
85.
... ...
86.
http://www.databaseskill.com/1718405/
26/09/2015
The The AWR (Automatic Workload Repository) - (3)! - Database - Database Skill
Pgina 1 de 8
DB Id
Instance Inst num Release RAC Host
1290103567 orcl
1 10.2.0.4.0 NO linux
Begin Snap:
End Snap:
Elapsed:
DB Time:
Snap Id
Snap Time
Sessions Cursors / Session
17 07-10 -11 16:00:10
22
2.6
18 07-10 -11 17:00:14
22
2.6
60.06 (mins)
0.05 (mins)
Sessions: collection instance to connect the number of sessions, this number can let us know about the circumstances of the number of concurrent users of the
database, this value for us to determine the type of database.
Cursors / Session: Each session average number of open cursors.
DB Time: This value is more important, which means that it calls the user operation time, including CPU time and wait for an event. Pay attention to it refers to the
time of the operation, and does not include the time spent by the database background process. We can see from the above list, the 60-minute period were occupied
by the user's time of 0.05 seconds, the database is very busy (because it is only my test database). If this value is much greater than 60 minutes (because it is based on
the cumulative record), indicating that the database is busy, then it should TOP5 waiting for an event to view exactly what events take up so much time in the system.
Cache Sizes
Buffer Cache:
Shared Pool Size:
Begin End
48M 48M Std Block Size:
92M 92M Log Buffer:
8K
2,856 K
This list shows the the AWR in performance capture start and end time, the size of the data buffer pool (Buffer Cache) and shared pool (Shared Pool Size). Can
understand before and after the change of decency memory consumption.
Load Profile
Redo size:
Logical reads:
Block changes:
Physical reads:
Physical writes:
User calls:
Parses:
Hard parses:
Sorts:
Logons:
Executes:
Transactions:
% Blocks changed per Read:
Rollback per transaction%:
Per Second
638.10
6.96
2.20
0.02
0.26
0.05
0.76
0.00
0.51
0.02
1.61
0.09
Per Transaction
7,417.77
80.90
25.55
0.19
2.99
0.62
8.83
0.01
5.95
0.21
18.72
99.44
9.12
These two parts is a database resource load DETAIL list is divided into the second resource load and resource load for each transaction, the performance indicators
have the following meaning:
Redo size: per second (each transaction) the amount of redo generated. The unit is bytes, from above can know the database generated per second about 638/1024 =
0.6 kb redo, each transaction resulted in an average of about 7417/1024 = 7.2KB redo information.
Logical reads: generated logical reads per second (each transaction) (corresponding to the physical read)
Block changes: per second (each transaction) change the number of data blocks
Physical Reads: per second (each transaction) physical read
Physical Writes: per second (each transaction) physical write
User calls: per second (each transaction) the number of calls of the user
Parses: per second (each transaction) the number of analyzes
Hard parses: per second (each transaction) the number of hard analysis
Sorts: per second (each transaction) Sort frequency
The number of logons: per second (each transaction) to log on to the database
Executes: per second (each transaction) SQL execution times
http://www.databaseskill.com/1718257/
26/09/2015
The The AWR (Automatic Workload Repository) - (3)! - Database - Database Skill
Pgina 2 de 8
100.00
99.77
99.89
52.83
14.55
Redo NOWAIT%:
In-memory Sort%:
Soft Parse%:
Latch Hit%:
% Non-Parse CPU:
100.00
100.00
99.89
100.00
90.85
For OLTP system, its significance is relatively significant, these values ??should be as close to 100%; OLAP systems the value of the level of the system seems little
effect.
Buffer Nowait: Non wait to obtain the percentage of data blocks
Redo NOWAIT:-wait access to redo the percentage of data
Buffer Hit%: memory data block hit rate
In-memory Sort%: the data block in the percentage of memory sort
Library Hit%: shared pool sql resolve the hit rate
Soft Parse%: soft analysis in the percentage of the total number of analysis
Execute to Parse%: the number of executions on a percentage of the number of analyzes
Latch Hit%: latch hit percentage
Parse CPU to Parse Elapsd%: parsing the percentage of the total time consumed CPU time
% Non-Parse CPU: CPU analysis time in the percentage of CPU time
Top 5 Timed Events
Event
Waits
1,197
2
382
573
3,019
Wait
Class
System I /
279.9
O
64.0
System I /
61.7
O
System I /
50.2
O
System I /
27.4
O
This section is the most important part of the AWR report, a wait event in the share of the acquisition cycle of an hour too long, you need to focus on. If this part of
the top 5 wait events total did not long to wait, then I think this AWR report there is no need to imagine what will happen, the state of the system because it looks
very good - almost too long to wait for the operator, so I do not needs to be done to optimize performance. Note: This Waits said the number of waiting!
RAC Statistics
Begin
Number of Instances:
End
2
Per Second
8.31
4.12
27.19
36.65
0.39
111.88
Per Transaction
0.58
0.29
1.89
2.55
0.03
96.55
0.81
2.63
http://www.databaseskill.com/1718257/
0.0
0.4
0.5
0.0
0.0
0.1
0.0
0.0
0.0
0.0
26/09/2015
The The AWR (Automatic Workload Repository) - (3)! - Database - Database Skill
Pgina 3 de 8
0.0
0.2
0.0
0.0
0.0
29.88
23.50
46.62
This section only to appear in a RAC environment, global memory data transmission, the receiver performance indicators, there are some global lock information,
unless the database is running normal when setting a baseline as a reference, otherwise part of the performance index value is difficult to say whether there is a
performance problem.
Wait Class
s - second
cs - centisecond - 100th of a second
ms - millisecond - 1000th of a second
us - microsecond - 1000000th of a second
ordered by wait time desc, waits desc
Wait Class Waits % Time-outs Total Wait Time (s) Avg wait (ms) Waits / txn
System I / O 5,986
0.00
12
2
10.01
User I / O
349
0.00
4
10
0.58
Commit
260
0.00
2
6
0.43
Concurrency
5
0.00
0
37
0.01
Application
302
0.00
0
1
0.51
Other
49
0.00
0
1
0.08
Network
6,981
0.00
0
0
11.67
Configuration
1
100.00
0
6
0.00
This part is waiting for the type of event which is waiting for an event, you can clearly see what type of.
41
0.01
4.34
94
0.00
4.19
OEM.Loader
0.19
3.48
OEM.BoundedPool
http://www.databaseskill.com/1718257/
SQL Text
DECLARE job BINARY_INTEGER: = ...
begin MGMT_JOB_ENGINE.get_sche ...
The CALL
MGMT_ADMIN_DATA.EVALUATE_ ...
The INSERT INTO MGMT_METRICS_RAW (C.
..
begin setEMUserContext (: 1,: 2 ...
26/09/2015
The The AWR (Automatic Workload Repository) - (3)! - Database - Database Skill
0
0
0
0
119
18
0.00
0.02
3.32
2.70
OEM.SystemPool
60
0.00
2.67
OEM.SystemPool
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1,008
4
9
2,217
1
2,154
181
0.00
0.06
0.02
0.00
0.15
0.00
0.00
2.29
2.27
1.69
1.44
1.42
1.42
1.35
17
0.01
1.32
0
0
0
0
719
96
0.00
0.00
1.25
1.21
12
0.01
1.14
145
0.00
1.14
1,333
0.00
1.12
0.11
0.02
0.00
0.00
1.06
1.05
1.03
1.00
0
0
1
0
0
5
0
0
422
0
0
96
Sql execution time from long to short sort.
OEM.BoundedPool
OMS
OEM.SystemPool
OEM.Loader
Pgina 4 de 8
94
0.00
4.19
41
0.01
4.34
60
0.00
2.67
OEM.SystemPool
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1,008
1
2,154
2
4
719
2,217
0.00
0.15
0.00
0.07
0.04
0.00
0.00
2.29
1.42
1.42
3.48
2.27
1.25
1.44
OEM.SystemPool
OEM.BoundedPool
OEM.BoundedPool
12
0.01
1.14
1,333
0.00
1.12
0
0
0
0
0
0
0
0
0
0
18
181
422
9
96
0.01
0.00
0.00
0.01
0.00
2.70
1.35
1.03
1.69
1.21
17
0.00
1.32
0.00
0.01
0.00
0.02
1.14
1.05
1.00
1.06
0
0
145
0
0
5
0
0
96
0
0
1
sql cpu time consumed in descending sort.
http://www.databaseskill.com/1718257/
OEM.Loader
SQL Text
begin MGMT_JOB_ENGINE.get_sche ...
DECLARE job BINARY_INTEGER: = ...
The BEGIN EMD_NOTIFICATION.QUEUE_R ...
The INSERT INTO MGMT_METRICS_RAW (C.
..
The CALL
MGMT_ADMIN_DATA.EVALUATE_ ...
The BEGIN
EM_PING.RECORD_BATCH_HEA ...
update sys.col_usage $ set eq ...
insert into wrh $ _sga_target_ad ...
SELECT JOB_ID, EXECUTION_ID, ...
begin setEMUserContext (: 1,: 2 ...
INSERT INTO MGMT_SEVERITY (ACTI. ..
select job, nvl2 (last_date, ...
select / * + rule * / bucket_cnt, ...
26/09/2015
The The AWR (Automatic Workload Repository) - (3)! - Database - Database Skill
Pgina 5 de 8
Gets per
%
CPU time Elapsed Time SQL
SQL Module
SQL Text
Exec
Total
(s)
(s)
Id
262.42
16.42
1.18
1.59
DECLARE job BINARY_INTEGER: = ...
6.00
13.48
1.41
1.44
OEM.SystemPool begin MGMT_JOB_ENGINE.get_sche ...
74.85
7.34
0.34
0.45
OEM.Loader
The INSERT INTO MGMT_METRICS_RAW (C. ..
3.00
6.74
0.15
0.15
OEM.SystemPool SELECT JOB_ID, EXECUTION_ID, ...
2.64
6.10
0.13
0.15
select / * + rule * / bucket_cnt, ...
3.17
4.41
0.12
0.12
OEM.Loader
The UPDATE MGMT_CURRENT_METRICS SE ...
The CALL
3,738
41
91.17
3.90
0.31
0.46
MGMT_ADMIN_DATA.EVALUATE_ ...
3,332
119
28.00
3.47
0.36
0.36
OEM.SystemPool The BEGIN EMD_NOTIFICATION.QUEUE_R ...
3,304
60
55.07
3.45
0.24
0.29
OEM.SystemPool The BEGIN EM_PING.RECORD_BATCH_HEA ...
3,293
1,008
3.27
3.43
0.24
0.24
update sys.col_usage $ set eq ...
2,451
4
612.75
2.56
0.15
0.24
OEM.BoundedPool INSERT INTO MGMT_SEVERITY (ACTI. ..
2,152
213
10.10
2.24
0.05
0.05
select privilege #, level from ...
1,849
145
12.75
1.93
0.05
0.08
select owner #, name, namespace ...
1,542
181
8.52
1.61
0.06
0.14
select i.obj #, i.ts #, i.file #, ...
1,501
719
2.09
1.57
0.13
0.13
select job, nvl2 (last_date, ...
1,283
145
8.85
1.34
0.05
0.12
select order #, columns, types ...
1,242
422
2.94
1.30
0.06
0.11
select obj #, type #, ctime, mti ...
1,193
60
19.88
1.24
0.04
0.04
SELECT C.TARGET_GUID, C.METRI ...
1,119
2
559.50
1.17
0.15
0.37
OEM.BoundedPool begin setEMUserContext (: 1,: 2 ...
1,099
152
7.23
1.15
0.04
0.04
OEM.Loader
The INSERT INTO MGMT_SYSTEM_PERFOR ...
1,072
134
8.00
1.12
0.04
0.08
OEM.Loader
SELECT INSTANTIABLE, supertyp ...
981
9
109.00
1.02
0.06
0.18
OMS
SELECT OWNER FROM DBA_PROCEDUR to ...
SQL access to the memory number of data blocks, sorted in descending order.
Buffer Gets: the sql perform memory number of data blocks
Executions: SQL execution times
Gets per Exec: each time you run the memory number of data blocks
% Total: accounting for the percentage of the total number of
CPU Time (s): cpu time consumption
Elapsed Time (s): sql execution time
SQL Module
86
41
2.10
26.22
0.31
0.46
82
9.11
25.00
0.06
0.18
OMS
19
16
14
10
18
4
2
145
1.06
4.00
7.00
0.07
5.79
4.88
4.27
3.05
0.10
0.15
0.15
0.05
0.29
0.24
0.37
0.12
OEM.BoundedPool
OEM.BoundedPool
10
17
0.59
3.05
0.05
0.14
OEM.Loader
9
9
9
9
96
5
96
96
0.09
1.80
0.09
0.09
2.74
2.74
2.74
2.74
0.03
0.04
0.06
0.04
0.11
0.11
0.13
0.10
http://www.databaseskill.com/1718257/
OEM.BoundedPool
SQL Text
DECLARE job BINARY_INTEGER: = ...
The CALL
MGMT_ADMIN_DATA.EVALUATE_ ...
SELECT OWNER FROM DBA_PROCEDUR
to ...
select obj #, dataobj #, part # ...
INSERT INTO MGMT_SEVERITY (ACTI. ..
begin setEMUserContext (: 1,: 2 ...
select order #, columns, types ...
The BEGIN
EMD_LOADER.UPDATE_LOADER ...
select / * + index (idl_ub2 $ i_id ...
The BEGIN EMD_LOADER.obtain_lock_f ...
select / * + index (idl_ub1 $ i_id ...
select / * + index (idl_sb4 $ i_id ...
26/09/2015
The The AWR (Automatic Workload Repository) - (3)! - Database - Database Skill
7
6
96
422
0.07
0.01
2.13
1.83
0.04
0.06
0.09
0.11
94
0.05
1.52
0.34
0.45
OEM.Loader
0.83
1.52
0.02
0.06
OEM.Loader
145
0.03
1.52
0.05
0.08
12
0.33
1.22
0.05
0.10
4
4
181
2,217
0.02
0.00
1.22
1.22
0.06
0.13
0.14
0.15
Pgina 6 de 8
This section lists the SQL to perform a physical read, in descending order.
Physical Reads: sql physical number of Reading
Executions: SQL execution times
Reads per Exec: sql each time you perform physical read
% Total: accounting for the percentage of the entire physical read
CPU Time (s): sql execution consumed cpu time
Elapsed Time (s): SQL execution time
2,217
2,214
2,154
2,154
Rows
Processed
1,416
2,214
0
2,154
1,333
1,333
Executions
Rows per
CPU per Exec Elap per Exec SQL
SQL Module
Exec
(s)
(s)
Id
0.64
0.00
0.00
1.00
0.00
0.00
EM_PING
0.00
0.00
0.00
OEM.SystemPool
1.00
0.00
0.00
OEM.SystemPool
1.00
0.00
0.00
1,008
881
0.87
0.00
0.00
719
60
0.08
0.00
0.00
422
398
0.94
0.00
0.00
364
0
0.00
0.00
0.00
289
289
1.00
0.00
0.00
This section lists the SQL execution times, installed in descending order sorting.
OEM.Loader
SQL Text
select / * + rule * / bucket_cnt, ...
SELECT SYS_EXTRACT_UTC (SYSTIME. ..
SELECT JOB_ID, EXECUTION_ID, ...
begin MGMT_JOB_ENGINE.get_sche ...
The UPDATE MGMT_CURRENT_METRICS
SE ...
update sys.col_usage $ set eq ...
select job, nvl2 (last_date, ...
select obj #, type #, ctime, mti ...
the lock table sys.col_usage $ in e ...
select type #, blocks, extents, ...
http://www.databaseskill.com/1718257/
SQL Text
insert into sys.col_usage $ (ob. ..
update sys.col_usage $ set eq ...
the lock table sys.col_usage $ in e ...
select type #, blocks, extents, ...
select privilege #, level from ...
select timestamp, flags from ...
lock table sys.mon_mods $ in ex ...
update sys.mon_mods $ set inser ...
select order #, columns, types ...
select owner #, name, namespace ...
SELECT INSTANTIABLE, supertyp ...
The BEGIN EMD_NOTIFICATION.QUEUE_R ...
SELECT COUNT (*) FROM MGMT_PARA ...
select / * + index (idl_ub2 $ i_id ...
26/09/2015
The The AWR (Automatic Workload Repository) - (3)! - Database - Database Skill
Pgina 7 de 8
96
96
1.21
select / * + index (idl_char $ i_i ...
96
96
1.21
select / * + index (idl_ub1 $ i_id ...
96
96
1.21
select / * + index (idl_sb4 $ i_id ...
85
85
1.07
select privilege # from sysauth ...
This section lists the sql analysis, in accordance with the high in the end.
Parse Calls: the sql analysis of the number of times
Executions: sql number of executions
% Total Parses: accounting for the overall analysis of the percentage of times
Elapsed
Time (s)
CPU
SQL
Executions
time (s)
Id
1.61
28.98
5.55
4.23
85
1.18
3.86
30.45
28.35
180
1.15
65.96
1.74
0.71
890
0.70
75.76
0.93
0.30
890
0.69
1.72
40.04
2.79
0.63
46.16
1.37
0.38
966
0.34
64.22
0.53
0.18
774
0.23
18.63
1.23
0.20
1,880
0.23
74.21
0.30
0.09
890
0.20
3.08
6.43
0.15
1,880
0.19
43.74
0.43
0.10
935
0.16
2.68
6.12
0.22
4,398
0.12
18.49
0.64
0.57
47
0.11
9.62
1.11
0.06
966
0.10
0.08
0.08
0.08
0.08
0.08
3.19
13.09
7.62
1.88
17.65
2.11
3.21
0.64
1.06
4.17
0.44
3.68
2.55
0.09
0.18
0.13
0.10
0.22
1
1,882
19,140
4,176
1,703
18,079
0.06
17.83
0.35
0.27
25
0.06
0.02
0.01
0.01
16.78
1.36
2.14
5.44
0.34
1.27
0.66
0.21
0.03
0.00
0.02
0.05
1,889
2,270
4,542
819
http://www.databaseskill.com/1718257/
SQL Module
serv_proc @
zfyw_payoln (TNS V1V3)
JDBC Thin Client
serv_proc @
zfyw_payoln (TNS V1V3)
serv_proc @
zfyw_payoln (TNS V1V3)
PL / SQL Developer
serv_proc @
zfyw_payoln (TNS V1V3)
serv_proc @
zfyw_payoln (TNS V1V3)
JDBC Thin Client
serv_proc @
zfyw_payoln (TNS V1V3)
JDBC Thin Client
serv_proc @
zfyw_payoln (TNS V1V3)
JDBC Thin Client
serv_proc @
zfyw_payoln (TNS V1V3)
serv_proc @
zfyw_payoln (TNS V1V3)
plsqldev.exe
JDBC Thin Client
JDBC Thin Client
JDBC Thin Client
JDBC Thin Client
serv_proc @
zfyw_payoln (TNS V1V3)
JDBC Thin Client
JDBC Thin Client
JDBC Thin Client
SQL Text
SELECT * FROM (SELECT T1.MERNO ...
select ID, DESTNO, LIVETIME, C. ..
The INSERT INTO T_PAY_ORDER_INFO (I. ..
26/09/2015
The The AWR (Automatic Workload Repository) - (3)! - Database - Database Skill
0.01
2.04
0.48
0.01
4,542
JDBC Thin Client
0.01
1.38
0.61
0.03
5,646
JDBC Thin Client
0.01
25.54
0.03
0.00
18
JDBC Thin Client
0.01
0.66
0.84
0.06
3,764
JDBC Thin Client
0.01
11.51
0.05
0.04
4
plsqldev.exe
0.01
3.24
0.16
0.14
1
0.01
1.31
0.40
0.01
1,933
JDBC Thin Client
0.01
9.83
0.05
0.02
132
plsqldev.exe
This part only in a RAC environment only, lists the instance of sharing data between the wait.
Pgina 8 de 8
http://www.databaseskill.com/1718257/
26/09/2015
The The AWR (Automatic Workload Repository) - (4)! - Database - Database Skill
Pgina 1 de 4
Continued
access front
Tablespace IO Stats
ordered by IOs (Reads + Writes) desc
Tablespace Reads Av Reads / s AV Rd (ms) Av Blks / Rd Writes Av Writes / s Buffer Waits AV BUF Wt (ms)
SYSAUX
227
0
9.96
1.01
420
0
0
0.00
UNDOTBS1
5
0
4.00
1.00
217
0
1
10.00
SYSTEM
120
0
11.67
1.75
74
0
0
0.00
This section is the table space I / O performance statistics, this data is relative.
Reads: the number of physical reads
Av Reads / s: the number of times per second physical reads
Av Rd (ms): The average time the physical reading time (in milliseconds)
Av Blks / Rd: each time the number of data blocks
Writes: the number of write
Av Writes / s: write the number of times per second
Buffer Waits: Get the number of memory data block waiting
AV BUF Wt (ms): The average waiting time for memory data block
File IO Stats
ordered by Tablespace, File
Tablespace
Filename
Reads Av Reads / s AV Rd (ms) Av Blks / Rd Writes Av Writes / s Buffer Waits AV BUF Wt (ms)
SYSAUX
/ U01/app/oracle/oradata/orcl/sysaux01.dbf
227
0
9.96
1.01
420
0
0
0.00
SYSTEM
/ U01/app/oracle/oradata/orcl/system01.dbf
120
0
11.67
1.75
74
0
0
0.00
UNDOTBS1 / U01/app/oracle/oradata/orcl/undotbs01.dbf
5
0
4.00
1.00
217
0
1
10.00
Part of this is a file-level I / O statistics, and on the part of the table space information.
Starting from this part of the following, you will see the Oracle gives some suggestions on the size of the various memory components.
Parts does not help the group our the intuitive positioning system performance, but it gives us some recommendations on the size of the memory component of several
Oracle, so we should look at here, in order to know the current database set is reasonable in this regard.
http://www.databaseskill.com/1544008/
26/09/2015
The The AWR (Automatic Workload Repository) - (4)! - Database - Database Skill
Pgina 2 de 4
P Size for Est (M) Size Factor Buffers for Estimate Est Phys Read Factor Estimated Physical Reads
D
96
0.10
11,502
1.01
9,280,242,678
D
192
0.20
23,004
1.01
9,221,206,840
D
288
0.30
34,506
1.00
9,203,382,424
D
384
0.40
46,008
1.00
9,187,795,751
D
480
0.50
57,510
1.00
9,173,359,689
D
576
0.60
69,012
1.00
9,170,239,226
D
672
0.70
80,514
1.00
9,167,537,392
D
768
0.80
92,016
1.00
9,165,125,531
D
864
0.90
103,518
1.00
9,162,962,005
D
960
1.00
115,020
1.00
9,160,956,280
D
1,056
1.10
126,522
1.00
9,159,872,178
D
1,152
1.20
138,024
1.00
9,158,692,041
D
1,248
1.30
149,526
1.00
9,157,439,260
D
1,344
1.40
161,028
1.00
9,156,077,677
D
1,440
1.50
172,530
1.00
9,154,595,433
D
1,536
1.60
184,032
1.00
9,141,375,909
D
1,632
1.70
195,534
1.00
9,117,577,424
D
1,728
1.80
207,036
0.99
9,093,764,198
D
1,824
1.90
218,538
0.99
9,069,947,117
D
1,920
2.00
230,040
0.79
7,195,790,859
This part of the recommendations of the size of the buffer pool.
Size for Est (M): Oracle to estimate the size of the buffer pool
Size Factor: estimates and the actual value of a ratio, such as 0.9 estimates 90% of the size of the actual value of 1.0 indicates the actual size of the buffer pool
Buffers for Estimate: estimated buffer size (number)
Est Phys Read Factor: the impact factor of the estimated physical reads, is to estimate a ratio of physical reads and physical reads 1.0 represents the actual physical
read
Estimated Physical Reads: The estimated number of physical reads now we see the actual buffer pool size is 960MB (Size Factor = 1.0), the number of physical reads
issued 9,160,956,280 times, when Oracle attempts to increase the buffer pool to 1.1 times the size (Size Factor = 1.1), physical reads reduced to 9,159,872,178,
reduced physical read 9,160,956,280-9,159,872,178 = 1,084,102. If we continue to increase the size of the buffer pool to 2 times, reduce physical read 7,195,790,859
times, reducing the 9,160,956,280-7,195,790,859 = 1965165421. Although we will buffer the size of the pool doubled doubled the degree of decline in physical reads
is limited but the price we pay is very large. So we can not just by increasing the memory to reduce physical read, need to find one of the most economical, efficient
and high point, which is the purpose of the Oracle recommends. In fact, it can be seen from the above system is still very busy, the buffer pool is slightly larger and
smaller physical reads the impact will not be very large.
http://www.databaseskill.com/1544008/
26/09/2015
The The AWR (Automatic Workload Repository) - (4)! - Database - Database Skill
Pgina 3 de 4
Est LC Time
Saved Factr
1.00
1.00
1.00
1.00
1.00
1.00
1.00
1.00
1.00
1.00
1.00
1.00
Est LC Load
Time (s)
8,187
7,288
6,645
6,131
5,689
5,336
5,041
4,802
4,608
4,452
4,322
4,218
Est LC Load
Est LC Mem Obj
Time Factr
Hits (K)
1.34
343,271
1.19
343,453
1.08
343,577
1.00
343,676
0.93
343,756
0.87
343,822
0.82
343,875
0.78
343,919
0.75
343,955
0.73
343,984
0.70
344,008
0.69
344,027
Shared Pool Size (M): to estimate the size of the shared pool
SP Size factr of: shared pool size factor
EST LC Size (M): the size of the estimated library cache occupied (library cache)
Est LC Mem Obj: cache in the number of objects
Est LC Time Saved (s): requires additional objects read into the shared pool time
Est LC Time Saved Factr: Impact Factor
Est LC Load Time (s): analysis of the time spent
Est LC Load Time Factr: analysis of the spending impact factor of the event
EST LC Mem Obj Hits (K): the number of memory object is found when we look at this list, consider this column Est LC Time Saved factr it Shared pool size of an
analog re-object read into the shared pool impact. When this value change is small, or the constant increase in the Shared pool size would not make much sense!
Tablespace Name
CUCPAYPAYLAR
CUCPAYPAYLAR
CUCPAYPAYLAR
SYSTEM
CUCPAYPAYLAR
Object Name
Subobject Name
T_PAY_SMSEND
T_PAY_ORDER_INFO
T_PAY_ORD_AUTO_NOTIFY
I_OBJAUTH1
T_PAY_USERINFO
http://www.databaseskill.com/1544008/
26/09/2015
The The AWR (Automatic Workload Repository) - (4)! - Database - Database Skill
Pgina 4 de 4
http://www.databaseskill.com/1544008/
26/09/2015