Link to home
Start Free TrialLog in
Avatar of arianym
arianym

asked on

Shutdown to database oracle with a script.bat

I am working with Database Oracle. I wish to do a shutdown to database oracle with a script.
On Unix the script run, but when I try to run it on DOS, the script not run.

svrmgrl << EOF     -->  << was unexpected at this time
connect internal;
shutdown immediate;
EOF

So, I want to know, how can I run this script (or something like that) on NT???

If I need change something, please tell me, I need any help



ASKER CERTIFIED SOLUTION
Avatar of mrdtn
mrdtn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mrdtn
mrdtn

You also need an "exit" at the end of your sql file -- but you probably already knew that.

--

mrdtn
you can simply stop the oracle-services in a dos-batch. then the oracle-db is shutting down

net stop youroracleservice