ottertune/client/driver/oracleScripts/restartOracle.sh

12 lines
112 B
Bash

#!/bin/sh
LOGFILE="$1"
sqlplus / as sysdba <<EOF
shutdown immediate
spool $LOGFILE
startup
spool off
quit
EOF