Archive Execution Process
To execute the archival process, follow the steps:
- Before executing the archive jobs, run the SQL query:
io_msg_stats_monthly_v2.sqlpassing parameter asPREARCHIVE
- Count the messages for the month you will be archiving by running the following script in both CISADM schema and ARCADM schema:
select sysdate from dual;
set time on;
select name from v$database;
SET SERVEROUTPUT ON;
SET DEFINE OFF;
set timing on;
SET SQLBLANKLINES ON
select bo_status_cd, count(*) cnt from cisadm.C1_INBOUND_MESSAGE WHERE trunc(CRE_DTTM) between to_date('2021-07-01','yyyy-mm-dd') and to_date('2021-07-31','yyyy-mm-dd') group by bo_status_cd;
- Take screenshots of the output.
- Execute the following tracker jobs to identify messages for archive:
ILM_RUN_INB_MSG_TRACKER_JOBILM_RUN_OUT_MSG_TRACKER_JOB
- Run the SQL query:
io_msg_stats_monthly_v2.sqlpassing parameter asIDENTIFY
- Execute the following migrate jobs to migrate the identified jobs:
ILM_RUN_INB_MSG_MIGRATE_JOBILM_RUN_OUT_MSG_MIGRATE_JOB
- Run the SQL query:
io_msg_stats_monthly_v2.sqlpassing parameter asMIGRATE
- Execute the following delete jobs to delete the identified jobs:
ILM_RUN_INB_MSG_DELETE_JOBILM_RUN_OUT_MSG_DELETE_JOB
- Run the SQL query:
io_msg_stats_monthly_v2.sqlpassing parameter asDELETE
- After executing the archive jobs, count the messages for the month you will be archiving by running the following script in both CISADM schema and ARCADM schema:
select sysdate from dual;
set time on;
select name from v$database;
SET SERVEROUTPUT ON;
SET DEFINE OFF;
set timing on;
SET SQLBLANKLINES ON
select bo_status_cd, count(*) cnt from cisadm.C1_INBOUND_MESSAGE WHERE trunc(CRE_DTTM) between to_date('2021-07-01','yyyy-mm-dd') and to_date('2021-07-31','yyyy-mm-dd') group by bo_status_cd
- Take screenshots of the output.
- Compare with the previous screenshot. The counts listed in the screenshot should match with the output of
io_msg_stats_monthly_v2.sql.