Hi Greg
You could consider something like this:
...
/u05/backup/coldrest1.exe &
/u05/backup/coldrest2.exe &
/u05/backup/coldrest3.exe &
CHECK="/u05/backup/coldrest"
while [ `ps -ef | grep -v grep | grep -c ${CHECK}` -ne 0 ]; do
sleep 10
done
echo RESTORE are now COMPLETE !
....
With regards
Alex Afanassiev
Oracle DBA, TOC Operations Support/IDO
Tel: (03) 8 661 20 61
Fax: (03) 9 650 36 74
> -----Original Message-----
> From: gfaktor_at_ecal.com [SMTP:gfaktor_at_ecal.com]
> Sent: Tuesday, June 27, 2000 6:06 AM
> To: Multiple recipients of list ORACLE-L
> Subject: unix question
>
> Hi All!
> To speed up my restore script I run 3 processes in parallel. How I can
> find
> out when this three processes (.exe) will be done to start Oracle?
> In this script Oracle start and do not wait until .exe is complete.
> Thanks a lot.
> Greg.
>
> . /export/home/oracle/.profile
>
> echo "Shutting down Oracle at: `date`">> /tmp/coldrestore.log
> ${ORACLE_HOME}/bin/svrmgrl <<EOF >>/tmp/coldrestore.log 2>&1
> connect internal
> shutdown immediate;
> exit
> EOF
> /u05/backup/coldrest1.exe &
> /u05/backup/coldrest2.exe &
> /u05/backup/coldrest3.exe &
>
> echo RESTORE are now COMPLETE !
>
> ${ORACLE_HOME}/bin/svrmgrl <<EOF >>/tmp/coldrestore.log 2>&1
> connect internal
> startup;
> exit
> EOF
> echo "Cold Restore completed at: `date`" >> /tmp/coldrestore.log
>
>
>
> --
> Author: Gregory Faktor
> INET: gfaktor_at_ecal.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
Received on Mon Jun 26 2000 - 20:34:07 CDT