Você está na página 1de 2

AWR Report: (Automatic Work repositary):(Statspack Utility):

============================================================
oracle database automatical collects and stroes database performance statitics r
elating to problem deletion and tuning.
it stores awrreport in sysaux tablespace. by default it genarate awr report for
every 1 hour. all performance related
information is stored in v$sysstat & V$sessstat are useful to gether the statist
ics.the retension of awr report in sysaux tablespace is 8 days.
MMON will perform the most management related tasks including alerts
1. dbobjects_usage statitics
2. time model statitics
3.wait statitics
4. ash reports
5.top 5 events
6. o/s statitics such as i/o and memory usage with in db.
two it will
1.temporary
performance
2.persitant

collects awr report info


in memory collection of statitics in sga accessable through dynamic
views(v$) And OEM interface.
dba_* views (or) OEM database

space usaged awr depend on following:


1.data retension period
2.snapshot tie interval, number of active sessions
Note: if we set snapshot interval 0 awr will not take.
create awr report:
==================
begin
dbms_workload_repositary.create_snapshot();
end;
Drop Awr report:
=================
begin dbms_workload_reposiary
drop_snapshot_range(low_snap_id==> 10 to high_snap_id==>30, dbid==>-");
end;
db control manage AWR sanpshot base lines:
==========================================
performs addm analysis between two periods
begin dbms_workload_repostirary.create_baseline(start_snst_id ==>10 end_snat_id=
=>30,
baseline_name==>'PEAK_TIME_BASELINE',dbid==>1234);
end;
begin dbms_workload_repostirary.drop_baseline(baseline_name==>'PEAK_TIME_BASELIN
E',cascade==>false dbid=1234;end;
begin dbms_worload_repositary.modify_snapshot_setting(retension==>43200 interval
==>30,dbid==> 1234); end;
note retension=0 interval=0 awr report will not genarate.
managing awr stateitics with dd Views:
1.DB_HIST_SNAPSHOT
2.DB_HIST_WR_CONTROL
3.DBA_HIST_BASELINE

STATPACK:
=========
@ORACLE_HOME/rdbms/admin/spreport.sql
HOW TO RUN AWR REPORT:
======================
1. Go to $ORALCE_HOME/RDBMS/ADMIN LOCATION
2. COnnect sql
SQL> @awrreport
3. it will asks for report type html or text default HTMl
4. select the days u want to go back
5. specify the begin & End snapshot id's
6. specify the report name
7.rerport wil be genarated in admin direectory
ADDM(Automatic Database Diagnostc Monitor):
===========================================

Você também pode gostar