Scripts For Generating Multiple AWR Report
Scripts For Generating Multiple AWR Report
Scripts For Generating Multiple AWR Report
/usr/bin/sh
## This script is meant to generate multiple AWR reports between 2 snap IDs in
either html or text format based on user's choice.
## User will be prompted for begin snap, end snap id and the interval between
snaps, report format and the directory path to generate reports.
read beginid
read endid
echo "Enter the value for interval between snaps.To generate reports between
consecutive snaps, enter 1. Else enter desired values"
read snapint
read repfmt
echo "Enter the unix directory path to create the reports.Press Enter to create in
current directory:"
read repdir
if [ "$repdir" = "" ]
then
repdir=$PWD
fi
do
set pages 0
set serveroutput on
repfooter off;
ttitle off;
btitle off;
set timing off veri off space 1 flush on pause off termout on numwidth 10;
set echo off feedback off pagesize 0 linesize 1500 newpage 1 recsep off;
define beginid=$beginid;
define tempid=$tempid;
spool off
exit
EOF
done