Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: svrmgrl in UNIX
In reply to original post and reply on problem with svrmgrl reading instream
file under UNIX using <<EOF redirection.
>>
svrmgrl <<EOF
connect internal alter system switch logfile; shutdown immediate; exit
I have also ran into this problem when I imbedded the sqrmgrl code in an if. I
was able to put the data in a file and read it as
svrmgrl <filename
and then I was able to get it to work by removing all white space from the left
edge of the line and the command so it looked like
svrmgrl <<EOF
command
command
exit
EOF
fi
That worked. Maybe it will work for you since I hated having to have a separate file to hold the command.
I hope this is useful to someone out there.
Mark Powell -- Oracle 7 Certified DBA
- The only advice that counts is the advice that you follow so follow your own
advice -
Received on Wed Apr 08 1998 - 17:04:35 CDT