#!/usb/bin/ksh
cd /oracle/admin/sid/bdump
dd=`date +%Y%m%d`
riqi=`date | cut -c1-10`
year=`date | awk '{print $6}'`
hang=`grep -nE ^"$riqi".*"$year"$ alert_sid.log|head -1|cut -d: -f 1`
sed -n ''"$hang",$''p alert_gxtest.log|grep ORA- >/oracle/admin/gxtest/bdump/alertlog/alertlog_"$dd".txt
cd /oracle/admin/sid/bdump
dd=`date +%Y%m%d`
riqi=`date | cut -c1-10`
year=`date | awk '{print $6}'`
hang=`grep -nE ^"$riqi".*"$year"$ alert_sid.log|head -1|cut -d: -f 1`
sed -n ''"$hang",$''p alert_gxtest.log|grep ORA- >/oracle/admin/gxtest/bdump/alertlog/alertlog_"$dd".txt