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

Home -> Community -> Usenet -> c.d.o.server -> Re: Can SvrMgrl accept command-line parameters?

Re: Can SvrMgrl accept command-line parameters?

From: Helen Macduff <Helen.Ward_at_alcatel.com.au>
Date: Tue, 19 Oct 1999 16:03:04 +1000
Message-ID: <380C0998.348BFB7C@alcatel.com.au>


svrmgrl << xxx
connect internal
shutdown immediate
xxx

the above script will shutdown your database. If you have multiple instances then you will need to set your environment variables

one way to do this is

for i in `cat /etc/oratab` do
echo $i > /tmp/i
sed -e '/\:/d' < /tmp/i > /tmp/i1
read $ORACLE_SID < /tmp/i1
sed -e '/\:/d' < /tmp/i >/tmp/i2
read $ORACLE_HOME < /tmp/i2
./script (whatever you called script above done
John Haskins wrote:
>
> I'd like to create a shell script that, among other things, shuts down and
> then starts up database instances. No mention in the docs how to do this,
> and my experiments have proved fruitless. Is it possible, and if so, what's
> the syntax?
>
> Thanks.
Received on Tue Oct 19 1999 - 01:03:04 CDT

Original text of this message

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