Log Files Generated by the Utility

Using the Archival Utilities 23-17 non-partitioned UPA_NON_PART table in the same tablesapce associated to the partition to be exchanged. 9. Rename the original non-partitioned UPA table to UPA_OLD, as shown: SQL ALTER TABLE upa rename TO upa_old; 10. Rename the newly partitioned UPA_PART table to UPA: SQL RENAME UPA_PART to UPA; 11. Manage the constraints for the new UPA table. To do so: a. Rename the constraint from old UPA table to some other name, as shown: ALTER TABLE UPA_old RENAME CONSTRAINT PK_UPA TO PK_UPA_old; ALTER INDEX IDX_UPA_EFF_FROM_DT RENAME TO IDX_UPA_EFF_FROM_DT_old; ALTER INDEX IDX_UPA_EFF_TO_DT RENAME TO IDX_UPA_EFF_TO_DT_old; ALTER INDEX IDX_UPA_USR_KEY RENAME TO IDX_UPA_USR_KEY_old; ALTER INDEX PK_UPA RENAME TO PK_UPA_OLD; b. Create the necessary indexes and primary key constraint on the newly partitioned UPA table. Make sure to add storage characteristics, such as tablespace and size. To do so, run the following SQL query: SQLcreate index IDX_UPA_EFF_FROM_DT on UPA EFF_FROM_DATE Local; SQLcreate index IDX_UPA_EFF_TO_DT on UPA EFF_TO_DATE Local; SQLcreate index IDX_UPA_USR_KEY on UPA USR_KEY Local; SQLALTER TABLE UPA add constraint PK_UPA primary key UPA_KEY using index; 12. Run the statistics collection for the UPA table, as shown: SQLExec dbms_stats.gather_table_statsownname = SCHEMA_NAME,tabname = UPA,cascade = TRUE,granularity = GLOBAL and PARTITION; 13. Start Oracle Identity Manager. The database is ready to be opened for transactions. Test and make sure that applications are running as expected. 14. Bring current year data in UPA_2011_PART1 to have all data and maintain consistency for current year. To do so, run the following SQL queries in sequence: SQL CREATE TABLE upa_non_part Tablespace TBS_NAME AS SELECT FROM upa WHERE 1=2; Note: The global non-partitioned index is created to support the primary key. Global index becomes unusable every time a partition is touched. You must rebuild the index when required. Note: Global statistics must be gathered by default. Oracle 11g includes improvements to statistics collection for partitioned objects so untouched partitions are not rescanned. This significantly increases the speed of statistics collection on large tables where some of the partitions contain static data. When a new partition is added to the table, you need to collect statistics only for the new partition. The global statistics is automatically updated by aggregating the new partition synopsis with the existing partitions synopsis.