ottertune/client/driver/oracleScripts/archiveLog.sh

12 lines
162 B
Bash
Raw Permalink Normal View History

#!/bin/sh
# Change log mode
sqlplus / as sysdba <<EOF
shutdown immediate
startup mount
ALTER DATABASE ARCHIVELOG;
ALTER DATABASE OPEN;
quit
EOF