Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Executing a SQL from svrmgr from command line
Just put this in the script:
svrmgrl << !
connect internal
startup
exit
!
This example is for the startup but you can do other things.
Miguel Angelo
Portugal
Looking for a Job!
Praveen Mohanan wrote in message
<942861734.224930_at_sj-nntpcache-2.cisco.com>...
>TO DBA GURUS,
>
>
> I wanted to execute one few commands from the command line & exit at the
>end. For eg
>
>1. invoke srvmgr
>2. connect internal
>3. run a SQL script
>4. exit
>
>How can i write this in a shell script, so that if i call the shell, it
will
>run all these command & come back to the prompt.
>
>
>Regards
>
>
Received on Wed Nov 17 1999 - 12:38:35 CST