Friday, July 21, 2006

Script for Shutting Down Oracle10g

Below is the script to make you easier to shutting down your Oracle10g database on Linux. Create a file, for example : dbstop.sh and then fill the content of file like this :

#!/bin/sh
#(c) 2005 Asep Andria
#
lsnrctl stop
sleep 2
sqlplus "/ as sysdba" << EOF
shutdown immediate

exit
EOF

emctl stop dbconsole

#--- end of script ---#

No comments: