========================================================================= IBM Security Access Manager for Enterprise Single Sign-On (ISAMESSO) Synchronization Data Purging Housekeeping Maintenance Script ========================================================================= Release date : 04-May-2012 Script version : 1.0.0 Target IMS version : 8.1.x / 8.2.x Target Database : DB2 9.5 / 9.7 The sync data housekeeping maintenance script removes sync data that are marked as deleted, such as user, machine, and system scope policies with a specified number of days. AccessAgent refers to information marked as "deleted" to delete cached Wallet data. It is a suggested practice to purge deleted sync data that are at least 14 days old. 1. Creating the stored procedure Create this stored procedure in the ISAMESSO schema. Make sure the database login account that you use in the following tasks has: * Current schema set to ISAMESSO schema. * Privileges to - create,drop,execute on stored procedure - select,insert,delete,update on ISAMESSO database tables. Choose one of the following methods to create the stored procedure: 1.1 Using DB2 Command Shell 1.2. Using DB2 Command Editor UI 1.1 Using DB2 Command Shell ---------------------------- Enter the following commands in the DB2 command shell. 1.1.1 connect to the target database. Replace , and in the following script and execute it. db2 connect to user using 1.1.2 set current schema to ISAMESSO schema. Replace and execute the following command. db2 set current schema = '' 1.1.3 Replace the