Today I'll share with a script can take a cold backup of your oracle database on Linux and Unix environments.
The script is downloadable from this link:
https://www.dropbox.com/s/sjibiupwic9oxt1/COLD_BACKUP.sh?dl=0
COLD_BACKUP.sh script is part of the database administration bundle, this bundle includes more than 30 scripts I'm using in daily database administration activities, you can download the DBA BUNDLE from here:
[http://dba-tips.blogspot.ae/2014/02/oracle-database-administration-scripts.html].
The cold backup script I'm sharing with you will check the current running databases on the server and will ask you to select the database you want to backup (in case that you have multiple running databases on the server).
It will shutdown the database, take a cold backup, startup the database.
This script is RAC aware, it will detect if your database is RAC or standalone one, if it's a RAC DB the script will ensure that there is no other instances are currently running for the same database before starting the cold backup process.
The most important feature in that script, it will create a restore script to make it easy for you to restore back the cold backup.
[Preparing a script to restore back the cold backup is a time consuming job, this script should safe your time.]
Note: This script is not designed for databases using ASM :-)
DISCLAIMER: THIS SCRIPT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY. IT IS PROVIDED "AS IS".
If you faced a problem with the download link, you can copy & paste the below code using [Ctrl+insert] to copy and [Shift+insert] to paste:
The script is downloadable from this link:
https://www.dropbox.com/s/sjibiupwic9oxt1/COLD_BACKUP.sh?dl=0
COLD_BACKUP.sh script is part of the database administration bundle, this bundle includes more than 30 scripts I'm using in daily database administration activities, you can download the DBA BUNDLE from here:
[http://dba-tips.blogspot.ae/2014/02/oracle-database-administration-scripts.html].
The cold backup script I'm sharing with you will check the current running databases on the server and will ask you to select the database you want to backup (in case that you have multiple running databases on the server).
It will shutdown the database, take a cold backup, startup the database.
This script is RAC aware, it will detect if your database is RAC or standalone one, if it's a RAC DB the script will ensure that there is no other instances are currently running for the same database before starting the cold backup process.
The most important feature in that script, it will create a restore script to make it easy for you to restore back the cold backup.
[Preparing a script to restore back the cold backup is a time consuming job, this script should safe your time.]
Note: This script is not designed for databases using ASM :-)
DISCLAIMER: THIS SCRIPT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY. IT IS PROVIDED "AS IS".
If you faced a problem with the download link, you can copy & paste the below code using [Ctrl+insert] to copy and [Shift+insert] to paste: