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
you can use the following lines in a UNIX SCRIPT AND MAKE IT AN
EXECUTALE
ORACLE_SID=WHATEVER;export ORACLE_SID
svrmgrl<<EOF1
connect internal
shutdown immediate;
exit
EOF1
exit
I HOPE THIS HELPS sudershan virdi
--Received on Sat Aug 09 1997 - 00:00:00 CDT