Managing Logs for an Oracle Backup Job
You can configure the following archive log options for a specific backup job.
- The archive log deletion criteria (for example delete logs older than a specified number of days). You must backup the archive logs before deleting them.
- The archive log file backup location.
The archive log options listed above override the corresponding archive log options on the subclient for this job. For more information on managing archive logs on the subclient, see Managing Oracle Log Files for a Subclient.
Note: When you choose any of the advanced backup options on the Delete Archive Logs tab on the Advanced Backup Options dialog box, the software will only delete the logs that have been backed up at least 1 time. To ensure this behavior, the software adds the following line to the RMAN script:
delete noprompt archivelog all backed up 1 times to sbt ;
Before You Begin
- From the CommCell Browser, expand Client Computers > client > Oracle > instance.
- Right-click the subclient configured for archive log backup and then click Backup.
- On the Backup Options dialog box, click Advanced.
The Advanced Backup Options dialog box is displayed.
- Select the Delete Archive Logs check box.
- On the Delete Archive Logs tab, select the archive log deletion criterion:
Choice Description All Deletes all logs Older than n Days Deletes logs older than the specified number of days Not Older than n Days Deletes logs not older than the specified number of days By Log Time Deletes logs in the specified time range.
Select the Start Time and End Time check boxes and enter the start and end times of the logs.
If you only specify the start log time, all logs are backed up from the start time to the current time.
By Log Seq Num Deletes logs in a specified sequence range.
The Log Sequence Number uniquely identifies an archive log. For example, if you create a database with two online log files, then the first file is assigned log sequence number1. When the first file fills Oracle switches to the second file and assigns a log sequence number of 2.
Select the Start Sequence Number and End Sequence Number check boxes and enter the beginning and ending sequence numbers
By Sys change Num Deletes logs in the specified System Change Number range.
The SCN is a stamp that defines a committed version of a database at a point in time. Oracle assigns every committed transaction a unique SCN. For example, SCNs of two successive committed transactions could be 576601 and 576799.
Select the Start Sys chg Num and End Sys chg Num check boxes and enter the beginning and ending SCNs:
The end serial number must be greater than or equal to the start serial number. •
The start and the end SCN cannot be 0.
If you provide only the start SCN, is the only one provided, only the logs starting that start from that sequence number are backed up.
Like Deletes logs with a file name that starts with a specified string.
Enter the string to match.
Not Backed up Deletes logs that have failed to back up the specified number of times.
Enter the number of times the logs have failed to back up.
- On the Backup Archive Logs tab, select whether archive logs are deleted from after the backup completes:
- Select the Delete Archive Log Destinations for Delete check box.
- Click Yes to close the warning message.
- In the Confirmation dialog box, type confirm and click OK.
- Click Add.
- On the Select an Archive Log Destination for Deletion dialog box enter the full path to the directory where backup logs are deleted from after the backup completes.
- Click OK to close the Select an Archive Log Destination for Deletion dialog box.
- Click OK to close the Advanced Backup Options dialog box.
- Click OK to close the Backup Options dialog box.