RDBMS Conversion

This section provides details for the general conversion of Temenos Transact Hash files to an RDBMS implementation. The procedure allows the conversion of both Temenos Transact dictionary and data files and the generation of VOC TABLE entries in place of stub files.

NOTE: For a conversion to be carried out, a particular UTF8 codepage is to be specified for proper conversion of a local character set (non-Latin-1). Refer the Override Options section and Appendix F for details about the required settings.

STUBFILES

Although STUBFILE files have been deployed as the mechanism to access RDBMS database tables and other types of databases successfully, they cause a complication to the configuration, maintenance and various deployments of Temenos Transact and the associated RDBMS database.

The STUBFILE files must reside on a physical file partition, which is shared usually over the Multiple Application Servers executing the Temenos Transact processes. The information contained within the STUBFILE files must be preserved and maintained over and above the actual data in the database. The STUBFILE files must always be aligned correctly with the database so that they correctly reflect the tables and their types, which are created or deleted in the database.

It is possible to configure VOC as a RDBMS table and hold STUBFILE information directly in the VOC. The VOC as an RDBMS table means that the STUBFILE information is now preserved directly in the associated RDBMS database. In addition, the application lock mechanisms are enhanced to be independent of the physical STUBFILE files.

The above modifications indicate that the STUBFILE files are no longer necessary and can be removed. Similarly, the procedures required to ensure that the STUBFILE files are correctly aligned and maintained with the RDBMS database are no longer necessary.

The format of the previous STUBFILE information as represented in a VOC TABLE entry is described in Appendix A.

After the VOC entries have been converted from STUBFILE file references to TABLE entries, any subsequent tables created using Temenos Transact (EBS.CREATE.FILE) will automatically generate a VOC TABLE entry rather than a STUBFILE F pointer reference.

Company Schemas

The upgraded versions of the RDBMS XML Database Drivers provide additional command line qualifiers to enable the table to be created using a separate database schema definition. In addition to the specification of an alternative database schema it is also possible to specify the data and index table spaces for the related database schema.

This database schema and table space qualifiers can now be used to separate and organise the RDBMS database on a Company name basis. For example, the FBNK.ACCOUNT table can be created in an FBNK database schema using the following create file command line.

CREATE.FILE DATA FBNK.ACCOUNT TYPE=XMLORACLE TABLE=ACCOUNT SCHEMA=FBNK

This command will create an ACCOUNT table under the FBNK database schema name in the default table space of T24DATA and primary key index in T24INDEX table space.

The following additional qualifiers to the CREATE.FILE command are provided to override the default table space specification:

DATATABLESPACE=FBNKDATA
INDEXTABLESPACE=FBNKINDEX

The above qualifiers would direct the database to create the ACCOUNT table and index in the FBNKDATA and FBNKINDEX table spaces, respectively. The Company Schema conversion process is one of a suite of conversions that is provided by the RBDMS Conversion package, which must be installed and configured in the environment run directory.

Configuration for Conversion

The Temenos Transact RDBMS conversion package is supplied as a gzip tar archive. You need to restore the contents of the zip file to the bnk.run directory of Temenos Transact, which will create a rdbmsPrograms subdirectory.

$ gunzip –c rdbmsPrograms_VERSION.PLATFORM.tar.gz  | tar –xvf –
NOTE: During the creation of the F.USER$HIS table, a Temenos Transact patch is required for R07.Please contact the Temenos Help Desk for details. For Temenos Transact R08, this patch is not required.

You need to export the following in .profile on the Temenos Transact bnk.run directory, save the file, exit and re-login.

  • JBASE_I18N=1

  • JBASE_CODEPAGE=utf8

  • JBASE_LOCAL=en_US

You need to sign into Temenos Transact and log out with BK to return to the jsh prompt and execute Temenos Transact CONVERT.SYSTEM.UTF8.JBASE from the jsh prompt and select Y when prompted for conversion. For example, jsh àCONVERT.SYSTEM.UTF8.JBASE.

You need to logout and login again, to make sure you can still sign on to Temenos Transact

To enable conversion, edit the .profile to include the following variable, exit and re-login.

export PATH= $PATH;$HOME/rdbmsPrograms

If the multi-company option is enabled with or without separate company tablespaces, where each company has its own Oracle schema, the Oracle schemas and tablespaces for each company must have been created in the Oracle Database prior to running the conversion program.

The RDBMS_COMPANY_SCHEMA=1 environment variable should be set in the Temenos Transact .profile to direct the RDBMS conversion to use the Company Name as the Database Schema name.

If separate tablespaces for each company’s data are chosen, the RDBMS_USE_COMPANY_TABLESPACE=1 environment variable should be set in the Temenos Transact .profile, to direct the RDBMS conversion to create the tables for each company in their respective tablespaces.

These options must be set prior to executing the conversion program.

The conversion process should be run from a Temenos Transact Application Server only. You need to execute rdbmsConversion from the o/s prompt from the Temenos Transact bnk.run directory. The menu with options will appear on the screen as shown in the following illustration.

The number of agents can be between 2 and 8 required for the process and the database must be XMLORACLE. You must accept the default for converting file data in bnk.data. Set the other fields to Y as shown in the above image.

You can also compare the new database with original at a later date and choose not to convert the stub files.

The first phase of the conversion process will scan and analyse the Temenos Transact VOC file (Temenos Transact master file), creating a new copy of the VOC (./rdbmsVOC) in the run directory.

The conversion process will also create several work files in the ./rdbmsConversion conversion directory. These work files are used to do the following.

  • Control the conversion process

  • Report details related to the VOC analysis and conversion problems, if any.

The RDBMS conversion process effectively duplicates the Temenos Transact directories, creating new directories, leaving the original files and directories intact. These directories are renamed with rdbms. For example, bnk.rdbmsdata.

After all the required sections of conversion are complete, the main conversion process will either prompt the operator to continue if any errors have been detected, else continue the process to completion.

The final stage of the process is to run the rdbmsConversion/rdbmsMove.ksh script from the o/s prompt to reconfigure the environment after conversion is completed, which will preserve originals and replace the converted directories. Before attempting to use the converted VOC, you need to exit the process and login again.

NOTE: Generally, you will still be using the j4 environment and using this process enables the rdbms (Oracle) environment.

After the conversion process has completed successfully and you have tested the access to the Oracle database through Temenos Transact, you need to backup both the Temenos Transact environment and Oracle database.

The rdbms conversion process can be interrupted at any time by using the Q key. You can restart the process at a later time. In that case, you will be prompted to rescan the VOC. This option will reprocess the original VOC file. However the ./rdbmsVOC file will not be recreated. If the option is not selected the process will continue with the current VOC information.

In case you want to revert to the original environment that is, prior to the conversion process was started, the rdbmsConversion/rdbmsRevert.ksh script should be run from the o/s prompt.

Conversion Components

The RDBMS Conversion process is intended primarily to convert an existing Temenos Transact J4 hash file implementation into an RDBMS Conversion. Unlike The RDBMS conversion suite of programs provides additional menu options for conversion of dictionaries, movement and removal of stub files into VOC table entries. An additional override also enables the implementation of Company Schema during the conversion process.

The following menu options can be selected during RDBMS Conversion.

Convert ‘Data’ Files (bnk.data) to RDBMS
Convert ‘Dict’ Files (bnk.dict) to RDBMS                        (Optional)
Convert ‘Other’ Files (bnk.jnl/help/arc) to RDBMS (Optional)
Convert Stub Files to VOC Table Entries                       (Optional)

The RDBMS Conversion assumes the following Temenos Transact directory structure.

          bnk/bnk.data  - Contains Transact data files
          bnk/bnk.dict   - Contains Transact dict files
          bnk/bnk.jnl    - Contains Transact journal files
          bnk/bnk.arc   - Contains Transact archive files

Only files and/or tables in these directories are processed along with VOC. The VOC is used as the master for all files and/or tables. If a file and/or table exists without an associated VOC entry, it will not be processed.

The RDBMS conversion process effectively duplicates these directories, creating new stub files and directories leaving the original files and/or tables and directories intact. The conversion creates corresponding sub-directories for the directories converted renamed with rdbms.

Example

bnk/bnk.data  - bnk/bnk.rdbmsdata
          bnk/bnk.dict   - bnk/bnk.rdbmsdict
          

After conversion, the scripts are used to toggle and rename the directories to enable the newly generated directories and original directories are renamed with eld.

          bnk/bnk.data  - bnk/bnk.elddata
          bnk/bnk.dict   - bnk/bnk.elddict

Data Comparison

Data comparison with the original files can also be selected as an option for the conversion process. The original data will be processed as part of default verification prior to comparison.

Conversion Process

The aim of the full conversion process is to create a clean copy of the existing VOC as a RDBMS table in the database and convert the existing VOC F pointers usually used to refer the existing hash files or STUBFILE files, to VOC TABLE entries, which will contain the STUBFILE information directly.

The first phase of the conversion process will scan and analyse VOC, creating a new copy of the VOC (./rdbmsVOC) in the run directory. If the stub file conversion is selected, the rdbmsVOC will be created as a TABLE in the target RDBMS.

The conversion process will also create several work files in the ./rdbmsConversion conversion directory. These work files are used to control the conversion process and report details regarding the VOC analysis and conversion problems.

Each entry in VOC is processed as one of the following types.

Execute Conversion

Execute rdbmsConversion (not in jsh)

Points to Remember

The RDBMS Conversion package logs output details for the main conversion process as well as the background processes in the &COMO& directory. If the RDBMS conversion procedure is re-executed, the process may prompt to rescan the VOC. If this option is chosen, it will reprocess the original VOC file but the ./rdbmsVOC file will not be recreated.

The initial creation of./rdbmsVOC will be of the data type configured already for the F.PGM.TABLE table. The RDBMS conversion can be quit at any time by depressing the Q key. If the original VOC is rendered unusable, a copy of the original VOC is held in the rdbmsConversion directory as eldVOC.

The RDBMS conversion can be reset by executing the rdbmsReset.ksh or rdbmsReset.bat script. The rdbmsMove.ksh script will cause reversion of any toggles of VOC and removes all related files and directories related to the RDBMS conversion. However, any STUBFILE files already removed will not be reinstated.

After the conversion is determined to be complete and new VOC tested, the RDBMS conversion work areas can be removed using rdbmsRemove.ksh or rdbmsRemove.bat.

Most problems are usually related to the original errors in the VOC entries and all InvalidFiles and DuplicateFiles should be resolved prior to the final conversion. Also, you need to ensure that VOC entries are well formed and verify the distributed files (if any) to ensure VOC Part File entries reference unique files, and so on.

EBS.CREATE.FILE

The Temenos Transact EBS.CREATE.FILE module is modified to automatically check F.SPF and detect if conversion has taken place.

                   VOC Name for table names  - F_ACCOUNT
                   VOC Table Entries               - TABLE^XMLORACLEInit^dict^data
                   Check for XSD Schemas      - XSDSCHEMA=ACCOUNT
                   JOB.LIST files                    - NOXMLSCHEMA=WORK

In addition, additional company fields are added to determine whether to use company name for database schema on table creation.

                   Company Schema                        - YES
                             TABLE=ACCOUNT
                             SCHEMA=FBNK
                   Company Schema Table spaces      - YES
                             DATATABLESPACE=FBNKDATA
                             INDEXTABLESPACE=FBNKINDEX

The EBS.CREATE.FILE module and associated CD must be applied post RDBMS conversion and prior to the use of Temenos Transact. In addition, the following VOC table entry should be configured for the following.

  • To provide select access to the STUBFILES table

  • To enable EB.CREATE.FILE to determine whether the table name is unique prior to creation

For example, the following configuration is given for STUBVIEW.

        001 TABLE                                  - VOC TABLE Entry Identifier
002 XMLORACLEInit                      - Database Driver Initialisation Function
003
004 V_STUBVIEW                         - Data table arguments for database driver

You also need to create a view (V_STUBVIEW) on the STUBFILES table in the RDBMS using the following command.

create view V_STUBVIEW (RECID) AS SELECT ID FROM STUBFILES

Lock Considerations

The physical STUBFILE files were also used to take and propagate application level record locks. The unique Inode and device numbers from the physical STUBFILE files were used as unique identification of the associated table.

The removal of the STUBFILE files indicates that that the Inode and device number are now no longer available to be used with the relevant lock mechanism. The VOC TABLE definitions are used in place of the STUBFILE file to create pseudo Inode and device numbers for use by the lock mechanisms.

The pseudo Inode is generated using the Hash value of the table name specified in the VOC TABLE definition. The device number is derived from either the Hash value of the Driver Initialisation Function (XMLORACLEInit) or string value of the JBASE_DATABASE environment variable, if configured.

In case of deployment using the OS lock mechanism, the OS locks will be taken on abstracted files created specifically for record locks. The abstracted files will be created by default in a /tmp/jbase directory, which can be overridden by setting JBASE_UNIX_LOCKDIR. The entries in the directory take are in the jlock_IIIIIIII_DDDDDDDD format, in which IIIIIIII and DDDDDDDD are the hexadecimal representation of the Inode and device, respectively.

In case of a Multiple Application Server configuration using OS locks, the lock directory (/tmp/jbase) should be shared over a networked file system to propagate the OS locks correctly among servers.


Bookmark Name Actions
Feedback
x