Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: unix question

Re: unix question

From: Chuck Hamilton <chuck_hamilton_at_yahoo.com>
Date: Tue, 27 Jun 2000 08:18:13 -0700 (PDT)
Message-Id: <10541.110543@fatcity.com>


--0-1804289383-962119093=:24992
Content-Type: text/plain; charset=us-ascii

 Add a "wait" command after the third background process.

  Gregory Faktor <gfaktor_at_ecal.com> wrote: 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 <>/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 <>/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).


---------------------------------
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
--0-1804289383-962119093=:24992
Content-Type: text/html; charset=us-ascii

<P> Add a "wait" command after the third background process.<BR>
<P>&nbsp; <B><I>Gregory Faktor &lt;gfaktor_at_ecal.com&gt;</I></B> wrote: <BR>
<BLOCKQUOTE style="BORDER-LEFT: #1010ff 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">Hi All!<BR>To speed up my restore script I run 3 processes in parallel. How I can find<BR>out when this three processes (.exe) will be done to start Oracle?<BR>In this script Oracle start and do not wait until .exe is complete.<BR>Thanks a lot.<BR>Greg.<BR><BR>.. /export/home/oracle/.profile<BR><BR>echo "Shutting down Oracle at: `date`"&gt;&gt; /tmp/coldrestore.log<BR>${ORACLE_HOME}/bin/svrmgrl &lt;<EOF>&gt;/tmp/coldrestore.log 2&gt;&amp;1<BR>connect internal<BR>shutdown immediate;<BR>exit<BR>EOF<BR>/u05/backup/coldrest1.exe &amp;<BR>/u05/backup/coldrest2.exe &amp;<BR>/u05/backup/coldrest3.exe &amp;<BR><BR>echo RESTORE are now COMPLETE !<BR><BR>${ORACLE_HOME}/bin/svrmgrl &lt;<EOF>&gt;/tmp/coldrestore.log 2&gt;&amp;1<BR>connect internal<BR>startup;<BR>exit<BR>EOF<BR>echo "Cold Restore completed at: `date`" &gt;&gt; /tmp/coldrestore.log<BR><BR><BR><BR>-- <BR>Author: Gregory Faktor<BR>INET: gf!
aktor_at_ecal.com<BR><BR>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051<BR>San Diego, California -- Public Internet access / Mailing Lists<BR>--------------------------------------------------------------------<BR>To REMOVE yourself from this mailing list, send an E-Mail message<BR>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in<BR>the message BODY, include a line containing: UNSUB ORACLE-L<BR>(or the name of mailing list you want to be removed from). You may<BR>also send the HELP command for other information (like subscribing).</BLOCKQUOTE><p><br><hr size=1><b>Do You Yahoo!?</b><br>
Get Yahoo! Mail - Free email you can access from anywhere!
Received on Tue Jun 27 2000 - 10:18:13 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US