RMAN Backup Setup
Backup Type: Archive Log Interval: Every 2 Hours Schedule Time: 2, 4, 8, 10, 14, 16, 22 Retention: 1 Day Compression: Yes Backup Type: Incremental (Level 1) Interval: Every 6 Hours Schedule Time: 6, 12, 18 Retention: 1 Day Compression: Yes Backup Type: Cumulative (Level 1) Interval: Daily Schedule Time: 0 (Midnight) Retention: 1 Week Compression: Yes Backup Type: Full (Level 0 Baseline) Interval: Weekly Schedule Time: Sundays at 20 (8 PM) Retention: 1 Month Compression: Yes Backup Directory: /backup/rman_backup Script Directory: /home/oracle/scripts/rman_scripts Log Directory: /home/oracle/scripts/logfile Step#1: Create a backup script file # vi /home/oracle/scripts/rman_scripts/rman_backup.sh #!/bin/bash # Set up Oracle environment variables (Verify these match your env) export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1 export ORACLE_SID=orcl export PATH=$ORACLE_HOME/bin:$PATH BACKUP_TYPE=$1 LOG_FILE="/home/oracle/scripts/lo...