Input Parameters Using the Requests Archival Utility

Using the Archival Utilities 23-15 ■ Make sure that the latest backup of the UPA table is available. Creating a backup of the UPA table is a compulsory prerequiste before applying this solution. It is recommended to try out this solution in the development or staging environment before implementing it on the production database. ■ Decide how many previous years of audit data you require to keep online before implementing this solution. This helps in creating partitions beforehand. ■ Each partition should be placed on its own tablespace. Do not share the tablespace between partitions of different year or with some other data. ■ During partitioning, the audit data for each calendar year is copied into a table before it is moved into a final destination. You must have provision for disk space to hold the copied data.

23.4.3 Preparing the UPA Table for Archival and Purge

To prepare the UPA table for the audit and purge solution: 1. Make sure that Oracle Identity Manager is not running and is not available for off-line utilities. 2. Make sure that Oracle Identity Manager database has no transaction against it until the UPA table is partitioned. 3. Query the UPA table to get the minimum and maximum calendar year for the audit data. Following queries can help you get the minimum and maximum year. The maximum year should be the current calendar year. SELECT EXTRACT YEAR FROM MIN eff_to_date min_year, EXTRACT YEAR FROM MAX eff_to_date running_year FROM upa; This helps in deciding the partitions for each calendar year starting from minimum year. 4. Create a new partition table. Assuming 2005 as minimum year and 2011 as running or current calendar year, the following decisions are to be made before creating a newly partition table: ■ How many years of old audit data you want to keep? If it is important to keep only three years of audit data, then you have to create newly partitioned table starting from year 2008. The data older than 2008 will get cleaned up when the original UPA table gets dropped. ■ After deciding the years of old data to keep, the next question is how and where the old data should be kept? Do you want to keep all the old data partitions in the active UPA table, or create backup of the old partitions and then drop the old partitions? Oracle recommends moving the old partitions into tapes and then purging them from the UPA table. As stated earlier, you must keep the latest and running calendar year partition untouched. The following sample assumes that you want to keep three years of audit data in UPA table and current calendar year is 2011: SQL SELECT Create Table UPA_PART UPA_KEY NUMBER 19 Not Null, USR_KEY NUMBER 19 Not Null, EFF_FROM_DATE TIMESTAMP 6 Not Null, EFF_TO_DATE TIMESTAMP 6, SRC VARCHAR2 4000, SNAPSHOT CLOB,