Vultar T24 Data Access Components
Vultar T24 Data Access Components
Vultar T24 Data Access Components
29.06.2018
Contents
Overview ........................................................................................................................................................................... 3
Installation ........................................................................................................................................................................ 5
Vultar T24 Data Access Server ...................................................................................................................................... 6
Vultar Data Module (for TAFC / TAFJ Connector) ......................................................................................................... 7
Database DIRECT Connector ......................................................................................................................................... 8
Oracle DIRECT Connector ......................................................................................................................................... 8
MSSQL DIRECT Connector ........................................................................................................................................ 9
DB2 DIRECT Connector ........................................................................................................................................... 10
Vultar JDBC Driver....................................................................................................................................................... 11
Vultar ODBC Driver ..................................................................................................................................................... 13
Usage .............................................................................................................................................................................. 15
Queries........................................................................................................................................................................ 15
Simple queries ........................................................................................................................................................ 15
Where clause .......................................................................................................................................................... 16
Order by clause ....................................................................................................................................................... 17
Multivalue support ..................................................................................................................................................... 18
No expansion .......................................................................................................................................................... 18
Expanded values ..................................................................................................................................................... 19
Expand subvalues ................................................................................................................................................... 20
Values & Subvalues number ................................................................................................................................... 21
Type conversion .......................................................................................................................................................... 22
Integer conversion .................................................................................................................................................. 22
Float conversion...................................................................................................................................................... 23
Date conversion ...................................................................................................................................................... 24
Character conversion/expansion ............................................................................................................................ 25
Multivalued fields conversion................................................................................................................................. 26
Field joins .................................................................................................................................................................... 27
User Defined Functions .............................................................................................................................................. 27
Stored Procedures ...................................................................................................................................................... 30
Local fields .................................................................................................................................................................. 31
1|Page
Query local fields .................................................................................................................................................... 33
Local fields expansion ............................................................................................................................................. 34
Performance tips ............................................................................................................................................................ 35
Use multiple SPU ........................................................................................................................................................ 35
Multiple CPU/Cores server ......................................................................................................................................... 35
Fast Hard Disks............................................................................................................................................................ 35
RAM Disk Usage .......................................................................................................................................................... 35
Speed test tool ............................................................................................................................................................ 35
Free version vs Commercial version ............................................................................................................................... 35
2|Page
Overview
This manual describes Vultar T24 Data Access Components for Temenos’ T24 systems developed by VULTAR
SYSTEMS. The components allow any application using ODBC/JDBC connectivity to access T24 data.
• T24 Data Access Server – a high performance server which allows other components to access T24 data
• Vultar Data Module – a set of jBASE routines for accessing data on T24 systems with jBASE backend DB
• ODBC driver – driver for ODBC compliant applications
• JDBC driver – type 3 JDBC driver for JDBC compliant applications
The JDBC component is a type 3 driver, also known as the Net-protocol/pure-Java Driver. Written completely in Java,
type 3 drivers are thus platform independent.
Vultar T24 Data Access Components is based upon 3-tier client-server architecture:
• Tier 3: Optional Vultar Data Module for T24 (when using TAFC/TAFJ connector)
3|Page
The driver supports two types of connectors between Vultar Data Access Server and T24:
4|Page
Installation
Vultar T24 Data Access Server and Vultar ODBC/JDBC Client-Side adapter may run in various configurations. The
following diagram shows an example of such configuration:
In above example, T24 server is running on a Windows machine. Vultar T24 Data Access Server has been installed
and working on the same machine. Vultar ODBC/JDBC Client-Side adapter is cross-platform; hence, T24 data may be
served to some ETL software running on UNIX or Linux machine. At the same time, users working on Windows
desktops may query T24 data as well using Vultar JDBC Client-Side adapter. In case T24 environment is running on
Linux/Unix server, Vultar T24 Data Access Server should be installed on a dedicated Windows machine:
5|Page
Vultar T24 Data Access Server
Vultar T24 Data Access Server is installed by running the corresponding installation kit t24das.exe.
Server will be installed as Windows Service. Besides that, a console version of server will be installed as well.
Vultar T24 Data Access Server installation package contains the following files:
- OS: Windows XP
- RAM: 1GB
-
1. After installation update the parameters in config.ini file as follows:
6|Page
2. Restart the service or run vtconsole.exe console application from Start menu:
After doing changes in config.ini or aliases.json files there is no need to restart the server. The changes will be
applied immediately.
TAFC Connector
1. Check java version. Connector supports only Java version 7 and above. From command line type:
java -version
2. Copy t24client.jar & t24client.properties files to T24 environment bnk.run folder (using SCP, FTP or Samba)
Default listening port is 8125. In case the one would like to use another port, update it in
t24client.properties file.
4. Define a new alias (or update the existing one) in aliases.json (from Server) and set the following values:
a. Name – any desired alias name (will be used in connection URL)
b. Type – “jbase”, used for this type of connectors
c. Host – IP address/hostname of the jBASE server
d. Port – port number specified in t24client.properties file (default 8125)
e. Company – default company mnemonic, used when selecting from F.* files
7|Page
Database DIRECT Connector
In case you have Oracle/MSSQL/DB2 as T24 backend database – then you can use direct connector to respective
database instead of TAFC/TAFJ Data Module. This will allow you to avoid socket connection to jBASE, will increase
speed and reduce server resources consumption.
1. Define a new alias (or update the existing one) in aliases.json (from Server) and set the following values:
a. Name – any desired alias name (will be used in connection URL)
b. Type – “Ora”, used for this type of connectors
c. Host – IP address/hostname of the Oracle server/DB name (ex. “MyOracle/T24DB”)
d. Schema – DB schema (case sensitive!)
e. User – user name
f. Password – user password
Note: If Vultar T24 Data Access Server is installed on Windows XP operating system, version 10 of OCI shall be used
instead. Download it from http://vultar.md/files/Oci10.zip. Unpack and set the path to it in OracleLibPath parameter
in config.ini file.
8|Page
MSSQL DIRECT Connector
MSSQL Direct Connector uses Microsoft’s SQL Native client library to extract data directly from MSSQL DB without
involving TAFC/TAFJ.
Before using MSSQL Direct Connector you have to download & install SQL Native Client from Microsoft SQL Server
2012 Feature Pack. In installation instructions you will find links to sqlncli.msi files for both x32 and x64 Windows.
If you are using Windows x64 –install the x64 package. It will install both x64 and x32 clients.
1. Define a new alias (or update the existing one) in aliases.json (from Server) and set the following values:
a. Name – any desired alias name (will be used in connection URL)
b. Type – “MSSQL”, used for this type of connectors
c. Host – IP address/hostname of the MSSQL server/DB name (ex. “MyMSSQL/T24DB”)
d. Schema – DB schema (case sensitive!)
e. User – user name (set empty value “”, in case of using Windows Authentication)
f. Password – user password (set empty value “”, in case of using Windows Authentication)
9|Page
DB2 DIRECT Connector
To be implemented in next version.
10 | P a g e
TAFJ Connector
To use Vultar T24 Data Access Components with TAFJ – just configure the corresponding direct connector.
1. Add the driver with Driver manager (Drivers -> Add -> Extra Class Path -> Select & open the t24_jdbc.jar file).
11 | P a g e
3. Create an alias with the following parameters:
12 | P a g e
Vultar ODBC Driver
1. Run driver installation t24odbc.exe which will install both 32 and 64 bit versions.
4. Select the default company which will be used when no mnemonic is specified in table names. For example
in displayed case when a SELECT * FROM F_ACCOUNT is executed, the data will be selected from
FBNK_ACCOUNT table.
5. Click OK.
6. You can select data from T24 using the free WinSQL lite SQL tool.
13 | P a g e
14 | P a g e
Usage
Queries
Simple queries
SELECT * FROM FBNK_ACCOUNT
15 | P a g e
Where clause
SELECT _ID, CUSTOMER, CATEGORY, CURRENCY FROM FBNK_ACCOUNT WHERE CURRENCY = 'EUR'
16 | P a g e
Order by clause
SELECT _ID, CUSTOMER, CATEGORY, CURRENCY FROM FBNK_ACCOUNT WHERE CURRENCY = 'EUR' ORDER BY _ID
17 | P a g e
Multivalue support
No expansion
Multivalue fields are treated as string fields with char delimited values.
18 | P a g e
Expanded values
Expanding values using [EX] operand. Non multivalue fields are replicated. Subvalues are treated as string fields with
char delimited subvalues.
19 | P a g e
Expand subvalues
Expanded subvalues using [EX2] operand. Non subvalued fields are replicated.
20 | P a g e
Values & Subvalues number
Selecting values and subvalues numbers using [VN] and [SN] operands;
21 | P a g e
Type conversion
Driver supports some standard T24 field types like IN2CUS, IN2YM, IN2ACC, IN2CAT, IN2D, IN2AMT, IN2DEC, IN2R.
All other T24 field types are treated as VARCHAR type. In case a type conversion is needed for other field types –
extra operands can be used.
Integer conversion
Integer conversion with [I] operand.
22 | P a g e
Float conversion
Float conversion with [F] operand.
23 | P a g e
Date conversion
Date conversion with [D] operand.
24 | P a g e
Character conversion/expansion
Sometimes field’s values can have more data than the length specified in STANDARD.SELECTION table. In this case
you can increase field’s size with [C.<nnn>] operand.
25 | P a g e
Multivalued fields conversion
In case a multivalue field needs expansion and conversion – a combination of expansion and conversion operands
can be used.
26 | P a g e
Field joins
Field Joins functionality allows users to retrieve data from more than one file. This can be achieved by joining a field
from the selected file with a field from another file.
source_field - field name of the source file, containing record ID of the target file
dest_file - target file name
dest_field - field name of the destination file
For example, the following query will return accounts from FBNK_ACCOUNT table and customer’s short name from
FBNK_CUSTOMER table
27 | P a g e
Example:
Will return account number, working balance and open balance for a specific date.
You will find the source code of UDF.AC.OPEN.BAL subroutine in installation folder on your T24 environment
(bnk.run/T24DAC.BP).
Each UDF function shall have 4 parameters: PARAMS, RESULT, ID.REC, R.REC.
1. Create, compile & catalog the a new jBC subroutine which will have 4 required parameters (PARAMS,
RESULT, ID.REC, R.REC) and will do all the needed logic
2. Restart t24client.java module, so that the newly compiled routines will be accessible by t24client.java
module
3. Use newly created UDF in queries
4. t24client.java module shall be restarted after every UDF change
29 | P a g e
Stored Procedures
Stored procedures can be used to generate data which is not present in a table, so it can be considered as “virtual”
tables, from which data can be selected.
Example:
This query will return list of fields for a specific T24 application (ACCOUNT in this case)
You will find the source code of @SP.TABLE.FIELDS stored procedure in installation folder on your T24 environment
(bnk.run/T24DAC.BP).
1. Create, compile & catalog the a new jBC subroutine which will have 3 required parameters (PARAMS,
RESULT, ID.REC) and will do all the needed logic
2. Restart t24client.java module, so that the newly compiled routines will be accessible by t24client.java
module
3. Use newly created SP in queries
Local fields
Driver supports local fields selection.
In the following example FBNK_MM_MONEY_MARKET table has 3 local fields defined in LOCAL.TABLE application.
31 | P a g e
32 | P a g e
Query local fields
Local fields are selected as normal table fields.
33 | P a g e
Local fields expansion
Local fields are expanded as normal table fields
34 | P a g e
Performance tips
Before running it, you must update several parameters in configuration file:
After running the speed test tool, you will get the running statistics with recommended number of SPU.
35 | P a g e
3. Parallel execution limitation. It is not possible to run jobs in parallel. If a job is started while another is
running – an exception will be raised.
36 | P a g e