export oracle_sid
oracle_home=`cat /var/opt/oracle/oratab|grep $oracle_sid:|cut -f2 -d':'`
export oracle_home
path=$oracle_home/bin:$path
export path
#----------------------------------------
# 作更进一步地控制,在系统没有操作的时间内停止监控
# 晚上8点到第二天凌晨8点之间停止监控
# 其它时间如果get_vmstat不在运行,就运行它
#----------------------------------------
hour=`date +"%h"`
check_stat=`ps -ef|grep get_vmstat|grep -v grep|wc -l`
vmstat_num=`expr $check_stat`