Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
External clients
EM SQL*Plus …
SGA
Efficient V$ DBA_*
in-memory AWR
statistics snapshots
collection MMON
Self-tuning … Self-tuning
ADDM
Internal clients component component
ADDM finds
MMON top problems.
SYSAUX
SGA
6:00 a.m.
Snapshot 1
In-memory 7:00 a.m.
Snapshot 2
statistics 8:00 a.m. Snapshot 3
9:00 a.m.
Snapshot 4
9:30 a.m.
Relevant period
in the past
DBMS_WORKLOAD_REPOSITORY.CREATE_BASELINE ( -
start_snap_id IN NUMBER ,
end_snap_id IN NUMBER ,
baseline_name IN VARCHAR2);
SYSAUX tablespace
sys schema
60 min
Snapshot
7 Snapshot
MMON
days Snapshot
Snapshot Every night
Snapshot
DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS ( -
retention IN NUMBER DEFAULT NULL,
interval IN NUMBER DEFAULT NULL,
topnsql IN NUMBER DEFAULT NULL);
DBA
DBA
Metrics ASH
AWR
60 minutes
MMON
In-memory
statistics
Snapshots
SGA
ADDM
AWR
ADDM results
Application server
Oracle database
User 2
User n
Root node
Symptoms
Root causes
Excessive logon/logoff
Memory undersizing
Hot blocks and objects w/SQL
Not detected
by Statspack RAC service issues
Locks and ITL contention
Checkpointing causes
PL/SQL, Java time
Streams, AQ, and RMAN
Top SQL
I/O issues ADDM
Parsing identifies
Configuration issues top issues.
Application usage
SELECT dbms_advisor.GET_TASK_REPORT(task_name)
FROM dba_advisor_tasks
WHERE task_id = (
SELECT max(t.task_id)
FROM dba_advisor_tasks t,
dba_advisor_log l
WHERE t.task_id = l.task_id AND
t.advisor_name = 'ADDM' AND
l.status = 'COMPLETED');
SQL> @?/rdbms/admin/addmrpt
…
Enter value for begin_snap: 8
Enter value for end_snap: 10
…
Enter value for report_name:
Generating the ADDM report for this analysis ...
Statistics
1sec
MMNL
Workload repository
When 66% full
WRH$_ACTIVE_SESSION_HISTORY (partitioned)
DBA_HIST_ACTIVE_SESSION_HISTORY
Session1 V$ACTIVE_SESSION_HISTORY
V$ACTIVE_SESSION_HISTORY
DBA_HIST_ACTIVE_SESSION_HISTORY