#!/usb/bin/ksh
cd /home/oracle/admin/aiki/bdump
dd=`date +%Y%m%d`
riqi=`date |cut -c1-10`
year=`date | awk '{print $6}'`
hang=`grep -nE ^"$riqi".*"$year"$ alert_gxdb2.log|head -1|cut -d: -f 1`
sed -n ''"$hang",$''p alert_aiki.log|grep ORA- >/home/oracle/admin/aiki_"$dd".txt
sed -n ''"317707",$''p alert_aiki.log|grep "add datafile"