#!/bin/ksh
# First, we must set the environment . . . .
ORACLE_SID=$1
export ORACLE_SID
ORACLE_HOME=`cat /var/opt/oracle/oratab|grep ^$ORACLE_SID:|cut -f2 -d':'`
ORACLE_HOME=/oracle/PAR/920_64
export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH
export PATH
#echo $PATH
$ORACLE_HOME/bin/sqlplus perfstat/perfstat<<!
--execute statspack.snap;
execute statspack.snap(i_snap_level=>10);
exit
!
echo "SNAP $1 `date`"
