Create a new a full backup RMAN script.
[oracle@primary01 rman_scripts]$ vi full.rman
run {
backup
full
database;
backup
archivelog all not backed up;
}
Create the running shell script.
[oracle@primary01 rman_scripts]$ vi run_rman_daily_backup.sh
#!/bin/bash
. /home/oracle/.bash_profile
WORK_DIR=/home/oracle/rman_scripts
rman target / @$WORK_DIR/full.rman >> $WORK_DIR/backup_log_`date +%Y%m%d`.log
Don't forget to change mode of this shell script
[oracle@primary01 rman_scripts]$ chmod u+x run_rman_daily_backup.sh