This task designed to be run semi-annually to prevent table W005_PROCESS_LOG from being overflowed and throwing of out of space error(OracleException (0x80004005): ORA-01652: unable to extend temp segment by 128 in tablespace TEMP)
The core of the process sits in the Stored Procedure CAMIS.SP_BACKUP_W005_PROCESS_LOG
The purpose of the procedure is to:
Rename (ALTER) the current W005_PROCESS_LOG table into the archived versions using patterns such as
Cascade changes such triggers replacements, indexes, synonyms accordingly
Send email upon completion using parameters from the table DA004_SETTING
Field TO: is taken from “wa005_process_log table half-yearly backup” => DLOTTAFCCCDBASUPPORT@tc.gc.ca;
Field FROM: “ERROR_MAIL_FROM“ => DLOTTAFCCCDBASUPPORT@tc.gc.ca;
Body of the email constructed accordingly:
Success message with timestamp
Error message with the body of the error and timestamp
The Stored procedure is using another store procedure - CAMIS_DUI.sp_email_notify(…) to send emails
Add Comment