Data Aging - Oracle RAC iDataAgent

Table of Contents

Getting Started

Extended Retention Rules

Data Aging for Transaction, Archive, and Logical Log Backups

Data Aging of the Oracle Recovery Catalog Database

Timeout for Oracle Crosscheck Per Instance During Data Aging

Data Aging Rules for Oracle Archive Index

Disable Oracle RMAN Crosschecks During Data Aging

Data Aging Rules for Selective Online Full Backups

Data Aging Rules for Command Line Backups

Data Aging Rules for On Demand and Customized RMAN Script Backups

Oracle RMAN Retention Policy

Data Aging Rules for Jobs Completed with Errors

Getting Started

Data Aging is the process of removing old data from secondary storage to allow the associated media to be reused for future backups.

By default, all backup data is retained infinitely. However, you should change the retention of your data based on your needs. Note that if you continue to have infinite retention, you will also need infinite storage capacity.

1. From the CommCell Browser, navigate to Policies | Storage Policies.
2. Highlight the Storage Policy.
3. From the right pane, right-click the Storage Policy Copy and click the Properties.
4.
  • Click the Retention tab.
  • Click the Retain For in the Basic Retention Rules for All Backups area.
  • Enter number of days to retain the data.
  • Enter number of cycles to retain the data.
  • Click OK.
5.

From the CommCell Browser, click the Reports icon.

6. Expand Reports and select Data Retention Forecast and Compliance.
7. Click Run.
8. The report will display the data to be pruned when a data aging job is run.
To ensure only data intended for aging is actually aged, it is important to identify the data that will be aged based on the retention rules you have configured. Hence, ensure this report includes only the data you intend to age.

If necessary, fine-tune your rules so that only the intended data is aged.

Once you run a data aging job, the data will be lost.

9. From the CommCell Console, right click the CommServe icon and click All Tasks | Data Aging.
10. Select Immediate in the Job Initiation section and click OK.
11. You can track the progress of the job from the Job Controller window. When the job has completed, the Job Controller displays Completed.

Make sure that the job completes successfully. If the job did not complete successfully, re-run the job.

Extended Retention Rules

Extended retention rules allow you to keep specific full (or synthetic full) backups for longer periods of time.

Extended retention rules can be used in the following circumstances:

In all other cases, it is recommended that the Auxiliary Copy feature be used for extended storage as it actually creates another physical copy of the data, thereby reducing the risk of data loss due to media failure.

Understanding Extended Retention Rules

Extended retention allows you to retain a specific full (or synthetic full) backup for an additional period of time. For example, you may want to retain your monthly full backups for 90 days.

Extended retention rules allow you to define three additional "extended" retention periods for full (or synthetic full) backups. For example:

A backup job will be selected for extended retention based on its start time. For example: If a backup job starts at 11:55 pm on August 31st and ends at 1 am on September 1st, then it will be selected as the last full backup for the month of August and will be picked up for extended retention.

Setting Up Extended Retention Rules

Use the following steps for setting up the extended retention rules:
  1. Right-click the storage policy copy and click Properties.
  2. Click the Retention tab.
  3. Set the basic retention rules by clicking Retain for and entering the number of days and cycles appropriate for your organization.
  4. Set the extended retention rules as follows:

    Click the For button.

    Enter the number of Days Total to retain the backup.

    Click the Keep drop-down list, and select the desired backup criteria (e.g., Monthly Full).

    Click the Grace Days drop-down list and select the number of days (e.g., 2).
  5. Repeat Step 4 to configure additional extended retention.
  6. Click OK.

Data Aging for Transaction, Archive, and Logical Log Backups

Log Backups (transaction, archive, or logical logs) are not considered part of the backup cycle. Therefore, storage policy cycle retention parameters do not apply to them. However, log backups may be linked to data backup operations, which can affect their retention as follows:

Pruning All Log Backups By Days Retention Rule

Use the following steps to enable unlinked log backups to be aged according to the defined days retention rule for the data:

  1. From the CommCell Browser, select Tools | Control Panel.
  2. Double-click Media Management
  3. Click the Data Aging tab.
  4. Enable the Prune All Database Agent Logs Only By Days Retention Rule option.
  5. Click OK.

Data Aging of the Oracle Recovery Catalog Database

When a Data Aging job is run, the BackupPieceName UNAVAILABLE command is automatically issued to RMAN to disable specific backup pieces in the Oracle Recovery Catalog database that were pruned from the Media Manager CommServe tables. Any backup pieces that were aged from the system's database that have exceeded their retention criteria will be marked as unavailable in the Oracle Recovery Catalog database through this methodology. You can delete these specific backup pieces by creating and enabling the OracleDeleteAgedBackupPiece registry key.

Timeout for Oracle Crosscheck Per Instance During Data Aging

By default the timeout for Oracle CROSSCHECK per instance is 600 seconds during data aging operation. You can modify this value (or disable the option) by using the OraCrossCheckTimeOut registry key.

Effects of Downed Services

When data aging is running, if the Oracle services go down, the data aging operation will complete successfully. However, you need to manually execute Oracle CROSSCHECK to synchronize the Oracle Recovery Catalog database with that of the CommServe database.

Effects on Oracle Archive Logs

Oracle archive logs get deleted for those clients/instances where the Oracle CROSSCHECK has been completed successfully. However, if the timeout for the Oracle CROSSCHECK is small (between 1 - 300) and if there are many archive logs, then the crosscheck will fail with a timeout error (or any other error). In such cases, the archive logs will get deleted from the CommServe database during the next data aging operation.

Effects of Uninstalling the Software

When uninstalling the iDataAgent software, CROSSCHECK will no longer be performed by the system to synchronize entries in the CommServe Database with the RMAN catalog. If either of these iDataAgents is later re-installed, then the next data aging job will synchronize the RMAN catalog with the CommServe Database unless the data on tape has been deleted (such as the case where the tape/volume was used for other backups and has been pruned).

Data Aging Rules for Oracle Archive Index

Oracle archive index is deleted when the associated backup data is deleted. This applies to SnapProtect Backup and Table Level Backup.

Disable Oracle RMAN Crosschecks During Data Aging

By default, during a data aging operation, an Oracle CROSSCHECK is performed by the system to synchronize the entries in the CommServe database with the RMAN catalog. If required, you can disable this CROSSCHECK operation using the Disable RMAN Cross Check option in the Instance Properties (Details) for the specific Oracle RAC instance. For step-by-step instructions, see Disable RMAN Cross Check.

Data Aging Rules for Selective Online Full Backups

A selective online full operation that consists of archive logs and oracle data can also be linked to the logs of a separate job, which was initiated within the time frame of the selective online full operation. These logs and the selective online full are then considered as one entity within the software, regardless of whether or not separate jobs have the same job ID. Therefore, they are copied to synchronous and selective copies together during auxiliary copy operations and are aged together. If any part of the selective online full is missing from a copy, the full will not be considered as a valid full and will not be counted as a cycle during data aging. Consider the following:

Data Aging Rules for Command Line Backups

Data Aging Rules for Customized RMAN Script Backups

Data Aging for Customized RMAN Script backup jobs uses days/time, and ignores cycles, as the determining factor for pruning the data. Therefore, once the retention time criteria has been met, all data (for both data and logs) is pruned that was backed up using the storage policy specified in the RMAN script that was run through the Command Line Interface.

An effective storage policy strategy for Customized RMAN Script backups is as follows:

Oracle RMAN Retention Policy

An Oracle RMAN retention policy can be configured for each database. When RMAN retention rules are in effect, RMAN considers the backup jobs comprising data files and control files as obsolete, that is, no longer needed for recovery, according to criteria that you specify in the CONFIGURE RETENTION POLICY command. When you run DELETE OBSOLETE or CROSS CHECK operations, RMAN ages data by freeing disk and tape space used by backups that are no longer needed.

Do not configure RMAN retention policy if you want to retain data using the data aging feature provided in the CommCell console. To disable the RMAN retention policy, use the following command: CONFIGURE RETENTION POLICY TO NONE. This ensures that data will only be aged according to the retention rules specified in the associated storage policy copy.

Data Aging Rules for Jobs Completed with Errors

Jobs that are completed with errors are not treated as a valid full backup job and hence are pruned based on basic retention rules. However, in case if you require to apply extended retention rules to these jobs, you can exclude jobs that completed with errors during extended retention calculations. Note that this option is applicable only for Selective Online full backup jobs.

  1. From the CommCell Browser, select Tools | Control Panel.
  2. Double-click Media Management
  3. Click the Data Aging tab.
  4. Change the value for the Ignore Completed With Errors job option for Extended Retention calculations option from 1 to 0.
  5. Click OK.

Advanced Topics

Data Aging - Advanced

Provides comprehensive information on additional Data Aging capabilities.