Database Administration (MOSC)

MOSC Banner

cmd script to restart server

edited Oct 29, 2013 5:29AM in Database Administration (MOSC) 4 commentsAnswered ✓
I have the following script scheduled to run in Window's task scheduler.  Same script works in the Windows2003 server but not in the Windows2008 server that I have now.

SET ORACLE_SID=ICMSPROD
SQLPLUS /NOLOG @D:\Backup\RESTART.SQL 
C:\WINDOWS\system32\shutdown.exe /r /f /t 05
EXIT

It appears that it ran up to the line with RESTART.SQL which shutdown the Oracle database and worked.  However, it didn't contine to run the C:\WINDOWS\system32\shutdown.exe /r /f /t 05 to restart the host.  Don't know what needs to be changed.

Thank you.

Martin

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center