Created
February 8, 2020 12:27
-
-
Save asvignesh/787407b6a575abc9a9c6178dc27f2895 to your computer and use it in GitHub Desktop.
Oracle database pre and post script for Nimesa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ORACLE_HOME=/oracle/oracle11g | |
$ORACLE_HOME/bin/sqlplus / as sysdba <<EOF | |
spool $ORACLE_HOME/log/backup.log; | |
alter database end backup; | |
spool off; | |
EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ORACLE_HOME=/oracle/oracle11g | |
$ORACLE_HOME/bin/sqlplus / as sysdba <<EOF | |
spool $ORACLE_HOME/log/backup.log; | |
alter database begin backup; | |
spool off; | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment