You can define the rules you want to use for running archive and purge jobs on your database. The product provides a set of out-of-box Archive and Purge rules. You can choose to modify and activate existing rules instead of creating new ones.
You can define the location where you want to store the archived data. This path can be the root directory of a remote server or a UNC path. Depending on your CA SDM configuration, the following servers must run on Windows to access the UNC path:
Follow these steps:
The Repositories page opens.
The repository details page opens.
Specifies the archive and purge action to be taken on the contents of the repository. Following values are the valid:
None: No archive and purge process is performed.
Archive and Purge: The historic records are written to the file specified in the archive field and purged from the database.
Purge Only: The historic records are purged from the database, but are not written to the archive file.
Specifies the directory path or the UNC path to which files in the repository are moved during the archive process.
Specifies the credentials to access the UNC path. Click UNC Credentials to open the Credentials Search page.
The Credentials Search page opens.
The archive and purge path is defined.
Before you can perform an archive or purge, you create a rule. The rule defines what you want to archive and when.
Example: You create an archive and purge rule to remove deleted forums from the database.
Follow these steps:
The Archive and Purge Rule List page opens.
The Create New Archive and Purge Rule page opens.
The new rule is displayed on the Archive and Purge Rule List page.
Example: You create an optional configuration rule inside the arcpur_cfg.xml and itil_arcpur_cfg.xml files to archive and purge the KPI_Ticket_Data node.
Follow these steps:
The following is a sample main_object definition for the ticket object, cr:
<!-- KPI Ticket Data -->
<main_obj>
<name>KPI Ticket Data</name>
<internal_name>KPI Ticket Data</internal_name>
<factory>ktd</factory>
<default_query>obj_name='cr'</default_query>
<date_field>end_time</date_field>
<ref_by value="obj_id">cr.id</ref_by>
</main_obj>
Note: The configuration rule can only select records for cr. The ref_by tag can match the value of obj_id in KPI Ticket Data to the value of id in cr. If a match is found, it means that a KPI Ticket Data record is referenced by a cr record, so the KPI Ticket Data record is not archived and purged.
These configuration rules become selectable configuration object names in the Archive and Purge Rule Detail form.
You can use the following fields to define or edit rule definitions.
Specifies a unique identifier for the rule.
Indicates whether this rule is active. The inactive rule runs only once, even if it is scheduled for a recurrent process.
Specifies a workshift during which the rule should be in effect.
Specifies how often this rule will run.
Specifies the name of the file where you want to store the historic records. Enter the file name that you have mentioned while defining the archive and purge path. For more information, see the Define the Archive and Purge Path topic.
Specifies one of the following types of operation that the rule must execute:
Archives the historic records to a file and purges the archived records from the database.
Purges historic records from the database, but they are not written to the archive file.
Writes historic records to the archive file without purging them from the database. Use this option to test a newly created or edited archive and purge rule.
Specifies the name of the database object this rule can archive and purge. The Object Name field is automatically populated according to your selection in the Config. Object Name field.
Specifies the number of days a record is inactive to be eligible for the archive and purge from the database.
Archives and purges specific inactive records among the existing inactive records. Use this field when you want to create different rules for archiving and purging the subsets of expired records for the same object. Use the same syntax as you use for stored queries.
The following query archives and purges only assigned inactive request records with a priority of 1:
priority = 1 AND (assignee IS NOT NULL OR group IS NOT NULL) and active = 0
The following query format archives and purges records based on time-span:
close_date < EndAtTime(\'LAST_YEAR\')
|
Copyright © 2013 CA.
All rights reserved.
|
|