jBASE
jBASE
Warning: This document, is protected by copyright law and international treaties. No part of this
document may be reproduced or transmitted in any form or by any means, electronic or mechanical,
for any purpose, without the express written permission of TEMENOS Holdings NV Unauthorized
reproduction or distribution of this presentation or any portion of it, may result in severe civil and
criminal penalties, and will be prosecuted to the maximum extent possible under applicable law.”
Information in this document is subject to change without notice.
• What is jBASE
• The T24 architecture – An overview
• Logging on to jBASE
• jBASE directory structure
• jBASE daemons
• jBASE environmental varaibles
• jBASE.profile file
• Creation and maintenance of files in jBASE
User
T24 (Application)
jBASE (Database)
Unix
(Operating
System)
• Log on to Unix
/jbase<release number>
• Background processess
• Control the working of jBASE
• To start jBASE – start daemons
• To shutdown jBASE – Stop daemons
– jPML
– jRLA
– jBTP
Reads
jPML –ib /<jbasedir>/config/Config_jPML
Server 101
Client 1
RAM
101 102
Client 2
102
102 Client 3
103
104
105
Copyright © 2005 TEMENOS HOLDINGS NV
jRLA
User1 – Closes
Open 100069
the in User2 – Open 100069 in Record
Locked
FBNK.CUSTOMER
record FBNK.CUSTOMER
Shared
SharedMemory
Memory
jRLA
FBNK.CUSTOMER – Record
No
100069 – USER 1 Found
lock
• Start Daemons
jRLA –ib
jPML –ib
jBTP –ib
• Stop daemons
jBTP –k
jPML –k
jRLA –k
• Need to be root/root equivalent to start/stop daemons
• JBCRELEASEDIR
– Holds the directory where jBASE has been installed.
JBCRELEASEDIR = /usr/jbc
ln –s /jbase4044 /usr/jbc
• JBCGLOBALDIR
– Contains the path to the config directory of jBASE
JBCGLOBALDIR = /usr/jbc
• PATH
– Unix variables
– Holds the path of the executable files of Unix and jBASE
PATH = $PATH:/usr/jbc/bin
• LIBPATH
– Holds the path of the jBASE library files
– Operating system specific
• JBCSPOOLERDIR
– Holds the path to the spooler directory of jBASE
JBCSPOOLERDIR = /usr/jspooler
(or)
JBCSPOOLERDIR = /usr/jbc/jspooler
• JBCBASETMP
– Holds the path of the ‘tmp’ directory of jBASE
JBCBASETMP = /usr/tmp
(or)
JBCBASETMP = /usr/jbc/tmp
• JEDIFILENAME_MD
– Holds the path of the VOC file
JEDIFILENAME_MD = $HOME/VOC
($HOME – Home directory of the T24 user)
• VOC – Vocabulary
– Know as Master Dictionary
– Contains various types of entries
• jsh…>LIST VOC
• jsh…>LIST VOC WITH TYPE = ‘F’
• PA – Paragraph
– A paragraph is a series of sentences stored
together under 1 name
• F – File Pointers
• JBCLISTFILE
– Contains the path of the &SAVEDLISTS& directory that is
used to store select lists
JBCLISTFILE = $HOME/&SAVEDLISTS&
jsh..>SELECT FBNK.CUSTOMER
100 records selected
>SAVE.LIST TRG.FILE1
jsh..>LIST FBNK.CUSTOMER
• Non-hashed file
• Hashed file
• Non-Hashed Files
– Sequential files
– Unix level directories
– Used to store programs
– Type = UD
• Hashed Files
– Store and retrieve data randomly
– Improve performance
– Used for data and dict files
– Type = J3 or J4
– Have modulo and separation and secondary buffer
• Modulo – Number of frames
• Separation – Size of a frame
• Secondary Buffer – Size of the secondary buffer size.
• Default size of secondary buffer : Size of 1 modulo * 2
Solution 1 (Cont.)
*2 *2 *2
jstat
jstat FBNK.ACCOUNT
Output
File ../mbdemo.data/ac/FBNK.ACCOUNT
Type=J4 , Hash method = 4
Groups = 9,Frame size = 4096 bytes ,Secondary Record Size = 8192
bytes
Record Count = 2001 , Record Bytes = 775029
Bytes/Record = 387 , Bytes/Group = 86114
Primary file space: Total Frames = 196 , Total Bytes = 775029
Secondary file space: Total Frames = 0 , Total Bytes = 0
jstat –r FBNK.ACCOUNT
Output
File ../mbdemo.data/ac/FBNK.ACCOUNT
Type=J4 , Hash method = 4
Groups = 9 , Frame size = 4096 bytes , Secondary Record Size = 8192 bytes
Frame Allocated Used
-------- -------- --------
0 86016 83526
*******************************************************************************************************
*******************************************************************************************************
**********
1 94208 90011
*******************************************************************************************************
*******************************************************************************************************
**************************
2 …………….
3 …………..
8 86016 82860
**********************************************************************
**********************************************************************
*********************************************************************
****