Professional Documents
Culture Documents
T24 Archiving
T24 Archiving
No part of this document may be reproduced or transmitted in any form or by any means, for any purpose, without the express written permission
of TEMENOS HEADQUARTERS SA.
Table of Contents
Introduction 3
Purpose of this Guide 3
Intended Audience 3
Overview 4
Setup 5
Configuring ARCHIVE Application 5
Setting Up ARC.GENERIC.REQUEST 8
Timing Of The Archiving Process 9
Backups 9
Post Archiving Actions 9
Segmentation 10
Reports 12
Accessing The Archived Information 12
2
T24 Archiving
Introduction
Purpose of this Guide
This document provides the details about Archiving historic data and moving them
to an Archive file, that can reside on a separate disk or machine.
Intended Audience
This User Guide is intended for the use of Internal Temenos users and Clients.
3 Introduction
T24 Archiving
Overview
T24 Archiving reclaims valuable disk space by moving or removing historic data
that is no longer required from the live database. Archiving examines files for
records to be archived, writes the selected records (and related records, if spe-
cified) to a $ARC Archive file (ideally residing on a different disk, or a separate
machine accessible through a network) and then deletes these records from the
Live database. The user can also simply delete the data without Archiving it.
Overview 4
T24 Archiving
Setup
Configuring ARCHIVE Application
The files to be Archived must have an entry in ARCHIVE application. Create a record
in ARCHIVE, for each set of files which must be Archived.
There are four distinct sections in this record.
1. The first set of fields are PURGE.DATE, RETENTION.PERIOD, ARCHIVE.DATA
and $ARC.PATHNAME
5 Setup
T24 Archiving
The ARC.FILENAME field indicates the names of all the $ARC files which are created
based on Type and Modulo specified. If Type and Modulo specification are not
present, then $ARC files inherits the same Type and Modulus; as the corresponding
LIVE files.
The third set (COMPANY.RUN.IN to TIME.ENDED) are related multi-value fields,
which are auto populated by the system after the Contracts are archived. They
maintain a history.
Setup 6
T24 Archiving
The MAIN.FILE field accepts the file name that has to be Archived. For example,
FUNDS.TRANSFER$HIS.
The FIELD.TO.CHECK field indicates the date field in the Contract, which must be
compared with the Purge date for Archiving. If this field is left blank, then the stand-
ard DATE.TIME field is used for comparison. For example, to Archive the history
records of FUNDS.TRANSFER record, use the PROCESSING.DATE value of the Con-
tract.
The FILTER.RTN field is a hook routine to select or ignore a Contract for Archiving.
This field is used as an alternative to FIELD.TO.CHECK field.
The parameters of this routine are:
FILTER.RTN ( ID.CONTRACT, R.CONTRACT, CONTRACTARCHIVE.DATE, SKIP.FLAG, ', ')
l ID.CONTRACT (IN Parameter 1) - Record key of the contract
l R. CONTRACT (IN Parameter 2) – Entire contract record
l CONTRACTARCHIVE.DATE (OUT Parameter 1) – Date against which the purge
date set in the ARCHIVE record should be compared with.
For example, in FUNDS.TRANSFER the user can compare debit value date and
credit value date of the Contract and return a final date as the OUT para-
meter, that is compared with purge date finally for Archival.
l SKIP.FLAG (OUT Parameter 2) – Returns Value ‘1’ as the OUT parameter, to
skip the current Contract from Archiving. Value ‘1’ confirms that the current
Contract need not be Archived. (Logic to ignore the Contract must be avail-
able in the filter routine. So, the current Contract is skipped from being
Archived).
l Two Spare parameters for future expansion.
The RELATED.FILES.RTN field is a hook routine that returns the names of related
files that have to be Archived along with the main Archival record in a dynamic
array.
7 Setup
T24 Archiving
GENERIC.METHOD
a. Specify 'Y' to execute generic Archival process. This allows Archival service
(ARC.GENERIC service) to take care of all selection and purging of records.
For example, FUNDS.TRANSFER, TELLER, STMT.ENTRY.DETAIL and so on; are
Archived using the generic Archival process based on the inputs provided in
MAIN.FILE, FIELD.TO.CHECK or FILTER.ROUTINE field.
b. To indicate 'No/None' when application specific Archival routine specified in
the ROUTINE field must be invoked.
ROUTINE
This field indicates a valid multi-threaded routine that is responsible for Archiving
the set of files specified in the ARCHIVE record. These are application specific
routines and should not be changed unless a site specific program is written. For
example, for FOREX, the routine is ARC.FOREX. This record routine is responsible to
decide on the Archival logic and to do Archiving. Separate ARC.FOREX.LOAD,
ARC.FOREX.SELECT routines must be available for opening and selecting all neces-
sary files for Archiving. However, it is not necessary to create a separate
ARC.FOREX service. It is the responsibility of ARC.GENERIC service to simply invoke
ARC.FOREX.LOAD, ARC.FOREX.SELECT, ARC.FOREX routines internally for Archiving
in the presence of ROUTINE field.
Setting Up ARC.GENERIC.REQUEST
Create a ‘SYSTEM’ record in ARC.GENERIC.REQUEST and specify the ARCHIVE ID for
Archival. Upon verification of this record, ARC.GENERIC service is started in the
background and in turn it reads the ARCHIVE record. Based on the Generic.Method
set-up or the application specific ROUTINE, the records are selected for Archival.
Ensure that TSM is already running.
Setup 8
T24 Archiving
Backups
The system in which Archiving must be run is fully backed up to tape.
9 Setup
T24 Archiving
Segmentation
Overview
Earlier, statement archiving was multi-threaded at an account level, that is, each
agent archives data specific to an account and if an account has a huge number of
entries to archive, archiving takes a long time to process as the multi-threading is
not at the stmt entry level. It also results in an enormous transaction boundary at
the database level resulting in DB (Database) failures.
To overcome this issue, ‘segmentation’ is introduced in statement archiving, which
is already a proven performance solution for SWIFT statements in Temenos Core
Banking.
Segmentation is the process of multi-threading the job processing by splitting the
entries between available agents.
The statement archiving process consists of the following ARCHIVE records:
1) STATEMENT - To archive records from the following tables
l ACCT.SMT.PRINT
l ACCT.STMT2.PRINT
l STMT.PRINTED
l STMT2.PRINTED
l STMT.ENTRY
l RE.CONSOL.STMT.ENT.KEY
l AC.STMT.HANDOFF$HIS
2) STMT.ENTRY.DETAIL - To archive records from the following tables
l STMT.ENTRY.DETAIL.XREF
l STMT.ENTRY.DETAIL
This statement archiving can be executed in the following two ways:
1) Run STATEMENT.ENTRY.DETAIL & STATEMENT archiving sequentially as two sep-
arate processes.
2) Set ARCHIVE (STATEMENT) > ARC.FILENAME to 'STMT.ENTRY.DETAIL$ARC’ and
run STATEMENT archive process alone. This in turn archives records from all the
above-mentioned tables including STMT.ENTRY.DETAIL.XREF & STMT.ENTRY.DETAIL
without having to run STMT.ENTRY.DETAIL archive separately.
Running both archives together gives better control over data being archived and
helps maintain referential integrity of statement tables. However, the cost of doing
so is the extremely large transaction it spans to archive all statement data relevant
to a particular account
Setup 10
T24 Archiving
This is now broken down into smaller manageable transactions by the use of ‘seg-
mentation’ processing without affecting the data referential integrity the solution
already provides.
Setup
Segmentation solution is initiated only if the following conditions are met:
l ARCHIVE (STATEMENT) > ARC.FILENAME is set to ‘STMT.ENTRY.DETAIL$ARC’
– So all statement related tables are archived just by running the STATEMENT
archive alone instead of running it along with STMT.ENTRY.DETAIL
l Segmentation value is set for STATEMENT archive in the field named
SEGMENT.VALUE in the format named SEG*<NNNNNNN> where NNNNNNN is
the number of entries to be grouped per agent.
Processing
Once the ARCHIVE record is setup as explained above, trigger the archiving process
by verifying the ARC.GENERIC.REQUEST according to the standard war.
If the SEGMENT.VALUE is set as SEG*5000, then each agent archives entries in
groups of 5000 entries each so the same account’s data gets archived in parallel
thereby resulting in a better performance.
11 Setup
T24 Archiving
Reports
Information about the total number of records selected for processing and the total
number of records archived/deleted is stored in the respective ARCHIVE record for
reference.
Note: 497 Contracts were selected for Archival. 279 were deleted from
FUNDS.TRANSFER$HIS and archived in FUNDS.TRANSFER$ARCfile.
Reports 12
T24 Archiving
13 Reports