Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Help needed in Unix Shell Scripts
Hi, try this:
# start of ksh-script
(
echo export ORACLE_SID=$1 echo svrmgrl echo connect internal echo shutdown immediate echo exit echo exit
This is a very simple thing. You can call as "root" it with the SID of your instance as a parameter. Or you could hard code the SID in place of "$1".
HTH, Rolf
Kenny Leow schrieb:
>
> Hi,
>
> I need to write a shell script to login into my oracle from root, and do a
> shutdown. Can someone help me please?
>
> login for oracle=ora734
> password=oracle734
>
> Thanks a lot.
>
> Kenny
Received on Thu Dec 10 1998 - 00:50:11 CST