Hi.
I was performing backup and recovery using RMAN and noticed that the results varied depending on the archive log creation timing. However, I am unsure why this happens, so I am asking for clarification.
Backup Command
# fullbackup
run {
allocate channel c1 type disk;
backup database format '/home/oracle/rman/level0_%T_%U';
}
# incremental 1
run {
allocate channel c1 type disk;
backup INCREMENTAL Level 1 database
format '/home/oracle/rman/level1cum_%T_%U';
}
# incremental 2
run {
allocate channel c1 type disk;
backup INCREMENTAL Level 1 database
format '/home/oracle/rman/level2_%T_%U';
}
I generated archive logs using ALTER SYSTEM SWITCH LOGFILE
and conducted the test in the following sequence:
- Full backup
- Data insertion
- First incremental backup
- Data insertion
- Second incremental backup
- Multiple archive log generations
- Deletion of data and archive logs
- Restore and recover when first incremental backup
When following this sequence, I encountered the following error

In the second test, I changed the sequence as follows:
- Full backup
- Data insertion
- Multiple archive log generations
- First incremental backup
- Data insertion
- Second incremental backup
- Deletion of data and archive logs
- Restore and recover when first incremental backup
With this approach, the test was successful, and I was able to recover to the desired first incremental backup point.
I am curious about why the results differ based on the timing of archive log generation. Could you please explain this behavior? Thank you.