Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: svrmgrl command line?
chengchisang_at_hotmail.com wrote:
>
> Hello,
>
> I need to shutdown the database through running a script. I realize that
> svrmgrl is an interactive tool. Is there a way I can shut it down from a
> script (sh or perl)? The Server Manager Reference is not included in my
> installation. Thanks for your help!
>
> Regards,
> Griffin.
>
> -------------------==== Posted via Deja News ====-----------------------
> http://www.dejanews.com/ Search, Read, Post to Usenet
Assuming your are on UNIX, try this
svrgmrl <<EOF
connect internal
shutdown immediate
EOF
You can also find an example of this in $ORACLE_HOME/bin/dbshut.
-- Bob Swisshelm Eli Lilly and Company swisshelm_at_lilly.comReceived on Fri Aug 15 1997 - 00:00:00 CDT