post-thaw-script.sql (Oracle)

export ORACLE_HOME=/oracle/oracle11g
$ORACLE_HOME/bin/sqlplus "<USERNAME>/<PASSWORD>@<ORACLE-SID> as sysdba" <<EOF 
spool $ORACLE_HOME/DBA_SCRIPTS/post-thaw.log; 
alter database end backup; 
spool off; 
EOF

Loading...