53
All About Adabas jonathan.j.martin@eds. com

Adabas Training

Embed Size (px)

DESCRIPTION

Adabas Training

Citation preview

Page 1: Adabas Training

All About Adabas

[email protected]

Page 2: Adabas Training

2

Course Scope

Strengths of Adabas Inside Adabas Using Adabas Conclusion

Page 3: Adabas Training

3

ADABAS - Strengths

Compression of DATA Performance Fault Tolerance High Availability

Page 4: Adabas Training

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

Page 5: Adabas Training

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.

Page 6: Adabas Training

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.

Page 7: Adabas Training

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

Page 8: Adabas Training

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)

Page 9: Adabas Training

9

ADABAS - Strengths

Compression of DATA– Example for Default Compression

Page 10: Adabas Training

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.

Page 11: Adabas Training

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.

Page 12: Adabas Training

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.

Page 13: Adabas Training

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.

Page 14: Adabas Training

14

Course Scope

Strengths of Adabas Inside Adabas Using Adabas Conclusion

Page 15: Adabas Training

15

Inside ADABAS

ADABAS System

Page 16: Adabas Training

16

Inside ADABAS

Overview of Adabas and Front-ends

Page 17: Adabas Training

17

Inside ADABAS

Data Storage

Page 18: Adabas Training

18

Inside ADABAS

Associators – Inverted List & Address converters

Page 19: Adabas Training

19

Inside ADABAS

Adabas access technique

Page 20: Adabas Training

20

Inside ADABAS

Example

Page 21: Adabas Training

21

Inside ADABAS

Example

Page 22: Adabas Training

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

Page 23: Adabas Training

23

Inside ADABAS

FDT – Field Definition Table

Page 24: Adabas Training

24

Inside ADABAS

FDT Field options

Page 25: Adabas Training

25

Inside ADABAS

ADABAS field types –> 4 field types

Page 26: Adabas Training

26

Inside ADABAS

How ADABAS finds the data…

Page 27: Adabas Training

27

Course Scope

Strengths of Adabas Inside AdabasUsing Adabas Conclusion

Page 28: Adabas Training

28

Using ADABAS

READ Command FIND Command GET Command HISTOGRAM Command STORE UPDATE DELETE

Page 29: Adabas Training

29

Using ADABAS

READ Command - 3 TYPES1. READ LOGICAL (READ BY)

2. READ BY ISN

3. READ PHYSICAL

Page 30: Adabas Training

30

Using ADABAS

READ LOGICAL (READ BY) Following are the steps to process logical READ

Page 31: Adabas Training

31

Using ADABAS

READ LOGICAL – Diagrammatic view

Page 32: Adabas Training

32

Using ADABAS

READ BY ISN

Page 33: Adabas Training

33

Using ADABAS

READ BY ISN - Diagrammatic View

Page 34: Adabas Training

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

Page 35: Adabas Training

35

Using ADABAS

READ PHYSICAL – Diagrammatic View

Page 36: Adabas Training

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.

Page 37: Adabas Training

37

Using ADABAS

FIND command – Diagrammatic view

Page 38: Adabas Training

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.

Page 39: Adabas Training

39

Using ADABAS

GET command – Diagrammatic View

Page 40: Adabas Training

40

Using ADABAS

HISTOGRAM Command

Page 41: Adabas Training

41

Using ADABAS

HISTOGRAM Command

Page 42: Adabas Training

42

Using ADABAS

HISTOGRAM – Diagrammatic View

Page 43: Adabas Training

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)

Page 44: Adabas Training

44

Using ADABAS

STORE command

Page 45: Adabas Training

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.

Page 46: Adabas Training

46

Using ADABAS

UPDATE Command

Page 47: Adabas Training

47

Using ADABAS

DELETE Command

Page 48: Adabas Training

48

Using ADABAS

DELETE Command - Example

Page 49: Adabas Training

49

ADABAS to NATURAL Cross-reference

Page 50: Adabas Training

50

ADABAS to NATURAL Cross-reference

Page 51: Adabas Training

51

Course Scope

Strengths of Adabas Inside Adabas Using AdabasConclusion

Page 52: Adabas Training

52

ADABAS - Q & A

Got any Questions?

Page 53: Adabas Training

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 !!!