advertisements
_____________________________________________________________________________________________________________________
An incremental backup captures only the changes made since the last backup, reducing the backup size and optimizing restore time. It helps in efficiently backing up large databases while providing the ability to restore to a specific point in time.
RUN {
ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
BACKUP INCREMENTAL LEVEL 1 DATABASE PLUS ARCHIVELOG;
RELEASE CHANNEL ch1;
}
advertisements
This script performs an incremental level 1 backup of the database, including data files and archived logs. It uses a single channel (ch1) for the backup operation.
Sample Output:
Starting backup at 26-JUN-2023 15:00:00
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental level 1 datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file_number=1 name=/path/to/datafile01.dbf
input datafile file_number=2 name=/path/to/datafile02.dbf
input datafile file_number=3 name=/path/to/datafile03.dbf
...
channel ORA_DISK_1: starting piece 1 at 26-JUN-2023 15:00:05
channel ORA_DISK_1: finished piece 1 at 26-JUN-2023 15:00:10
...
channel ORA_DISK_1: backup set complete, elapsed time: 00:05:00
Finished backup at 26-JUN-2023 15:05:00
Executing this script initiates an incremental level 1 backup using RMAN. The output displays the progress of the backup, including the data files being backed up and the completion time.
_____________________________________________________________________________________________________________________
0 comments:
Post a Comment