RDBMS version: 19c
OS : Oracle Linux 7.8
Shell: bash
In one of my non-critical DBs, the RMAN backups will be stored in NFS drive mounted on the DB server.
Location:/rmanbkp/ORCL
So, I have executed the below command to persistently set the backup location in the disk.
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/rmanbkp/ORCL/%U';
Below is how my RMAN script (L0) looks like within the bash script. L1 script looks very similair.
Any potential issues with this script ? Any room for improvement ?
Apologies with the readability of code, it is not very monospacy like we used to have in the earlier layout of community discussions.
rman target / <<EOF
spool log to /path_to_logfileWithDateAndTimeAppended.log
run
{
backup as backupset incremental level 0 database tag 'full' plus archivelog delete input;
}
run
{
crosscheck backup;
crosscheck archivelog all;
crosscheck copy;
crosscheck backup of database;
crosscheck backup of controlfile;
delete expired backup;
delete noprompt expired archivelog all;
delete noprompt obsolete device type disk;
}
spool log off;
exit
EOF