Download - Adabas Training
All About Adabas
2
Course Scope
Strengths of Adabas Inside Adabas Using Adabas Conclusion
3
ADABAS - Strengths
Compression of DATA Performance Fault Tolerance High Availability
4
ADABAS - Strengths
Compression of DATA– Why Data is compressed?
Saves lot of SpaceMany ADABAS files require only 50% to 60% of the space used for the raw data.Even with the addition of approximately 25% for the access structures stored in the Associator, ADABAS storage requirements are still less than those required for other DBMS
5
ADABAS - Strengths
Compression of DATA– ADABAS records are internally stored in
compressed format.– ADABAS defines and executes compression at
field level.– During retrieval of data, ADABAS decompresses
the data.
6
ADABAS - Strengths
Compression of DATAThere are 3 TYPES of compression1. Default Compression( also called Normal
Compression)
2. Null Suppression
3. Fixed Format
We can choose the type of compression for a field by setting the compression option in the file definition.
7
ADABAS - Strengths
Compression of DATA
DB 252 File 3 - AUTOMOBILEST L DB Name F Leng S D Remarks- - ------------------------------ - ---- - - ----------- 1 AA COLOR A 3 N D 1 AB MAKE A 20 N D 1 AC MODEL A 20 N 1 AD LICENSE A 15 N 1 BA YEAR N 4.0 N 1 BB HORSEPOWER N 3.0 N 1 BC PRICE N 5.0 N 1 BD RECALLS N 5.0 N 1 S1 SP-MAKE-MODEL A 40 N S
8
ADABAS - Strengths
Compression of DATA1. Default Compression:
Compresses the trailing blanks and leading zeroes.
An empty field is replaced by one-byte Empty Field Counter (EFC)
At the beginning of each field there is an one-byte field called Inclusive Length Byte (ILB) which stores the length of each fields (including one byte for ILB)
9
ADABAS - Strengths
Compression of DATA– Example for Default Compression
10
ADABAS - Strengths
Compression of DATA 2. Null Suppression : similar to Default Suppression BUT doesn’t allow zeros or blanks for Descriptor
defined with Null Suppression3. Fixed Format: no compression at all Doesn’t need one byte length indicator (ILB) Mostly used for one-byte fields.
11
ADABAS - Strengths
Performance– Performance is the key factor of ADABAS, which
includes a number of features to enhance it.– For instance, a number of set-up parameters are
available for fine-tuning the database operating environment, and many of these can be modified while the database is active.
12
ADABAS - Strengths
Fault Tolerance– ADABAS recovers automatically after an
abnormal database or system termination.– If a transaction was interrupted, ADABAS
automatically resets all changes of the uncompleted transaction so that the database is consistent.
13
ADABAS - Strengths
High Availability– ADABAS is designed for operation 7 days a week
and 24 hours a day.– files can be loaded and unloaded, backed up and
restored, and system performance can be analyzed without interrupting the active database.
14
Course Scope
Strengths of Adabas Inside Adabas Using Adabas Conclusion
15
Inside ADABAS
ADABAS System
16
Inside ADABAS
Overview of Adabas and Front-ends
17
Inside ADABAS
Data Storage
18
Inside ADABAS
Associators – Inverted List & Address converters
19
Inside ADABAS
Adabas access technique
20
Inside ADABAS
Example
21
Inside ADABAS
Example
22
Inside ADABAS
LogsPLOG – Protection Log
– records before- and after-images of records and other elements when changes are made to the database.
CLOG – Command Log– records each ADABAS command that is issued.
RLOG – Recovery Log– records additional info that the ADABAS Recovery Aid can
use for recovery
23
Inside ADABAS
FDT – Field Definition Table
24
Inside ADABAS
FDT Field options
25
Inside ADABAS
ADABAS field types –> 4 field types
26
Inside ADABAS
How ADABAS finds the data…
27
Course Scope
Strengths of Adabas Inside AdabasUsing Adabas Conclusion
28
Using ADABAS
READ Command FIND Command GET Command HISTOGRAM Command STORE UPDATE DELETE
29
Using ADABAS
READ Command - 3 TYPES1. READ LOGICAL (READ BY)
2. READ BY ISN
3. READ PHYSICAL
30
Using ADABAS
READ LOGICAL (READ BY) Following are the steps to process logical READ
31
Using ADABAS
READ LOGICAL – Diagrammatic view
32
Using ADABAS
READ BY ISN
33
Using ADABAS
READ BY ISN - Diagrammatic View
34
Using ADABAS
READ PHYSICAL
1. In Processing a physical READ, ADABAS goes directly to Data Storage and reads the records as they sit in the storage.
2. It does not goes thru an Inverted List
3. It does not goes thru the address converter
35
Using ADABAS
READ PHYSICAL – Diagrammatic View
36
Using ADABAS
FIND command1. When FIND command is issued, it first
builds an inverted list from the existing inverted list.
2. It stores the inverted list in the Work Area.3. From the newly built Inverted list, it
accesses the data storage thru the address converter.
37
Using ADABAS
FIND command – Diagrammatic view
38
Using ADABAS
GET command– Used to retrieve single record using the ISN.– But the Problem is that we have to know the ISN.– So Mostly we use GET when we need to access
a record which has been accessed shortly before.– So, When we access it for the first time, we store
the ISN. – Then when we need it again, we can use the ISN
and issue the GET command.
39
Using ADABAS
GET command – Diagrammatic View
40
Using ADABAS
HISTOGRAM Command
41
Using ADABAS
HISTOGRAM Command
42
Using ADABAS
HISTOGRAM – Diagrammatic View
43
Using ADABAS
So far, we have seen ways to extract data from the ADABAS.
Now, we are going to see , how we are going to put data into the ADABAS.
For that, we use:1. STORE ( similar to INSERT in SQL)
2. UPDATE and
3. DELETE ( this one for removing data)
44
Using ADABAS
STORE command
45
Using ADABAS
UPDATE Command To update an Adabas record:
1. retrieve the Adabas record
2. ADABAS will “HOLD” the record, when it sees that we are retrieving for UPDATE
3. No other program can have access to the “HOLD” record, until it is released by the UPDATE.
46
Using ADABAS
UPDATE Command
47
Using ADABAS
DELETE Command
48
Using ADABAS
DELETE Command - Example
49
ADABAS to NATURAL Cross-reference
50
ADABAS to NATURAL Cross-reference
51
Course Scope
Strengths of Adabas Inside Adabas Using AdabasConclusion
52
ADABAS - Q & A
Got any Questions?
53
Helps Available
Following are the types of help available when are dealing with Natural-Adabas.
1. Issue HELP command on editor line
2. Issue ? on editor line
3. or mail me -> [email protected]
T H A N K Y O U !!!