You are on page 1of 19

.

. ,
, , .
, , , , .
, , .. @, },] .
. ..
. .
. .
(logical record) . ,
: , , , ,
, , , , .
.
(file) . , , ( 5-1).
, , ,
. .
. ,
.


. (key)
. . , ,
. (primary
key), (secondary key) . ,
:

1
2
3
4
5
6
7

o
5
30
20
20
40
15
50
180

" " , . ""


.

(physical record block)


(sectors) .

-1

-2

.................

......

-1

-2

......

.
(access) ' ,
, , . ' (sequential)
(direct).
, ,
, .
, -
.
:

(Sequential)

.
(= = =)

. , , .
. ,
(transaction processing).
, ( ) ,
. .
. ,
.


(header)
(directory record). ,
. , ,
, , .
,
.
. ,
, :

(sequential) .

(index sequential) .

(direct) (random) .

.
, .
(key fields)
, . .
( 5-2).
(direct access)

- .

(Block) ' (hardware).

, blocks
.

: , .

(sequential) ,
, . , '
, .
85001 85501 86001 . ,
.
' . ,
( )
( ).
.
'
. , (Input) (Output) - , . '
,
.
.
, ' ,
. , ,
., .

10
20
30
45
50
120
200
201
300
350
400

120
30
100
45
100
30
40
30
120
130
120

300
120
1000
100
3000
120
400
400
500
200
500

.
:

, .

, .

,
.


(index sequential) . '
, , .
, ,
. :

(index) .

(overflow).

(index) , .
(pointer) ' .
, , .
.
(sorted) ,
, , .
.
. ' , = (
) / ( ). , n=1000
(blocking factor) b=10, n/b=1000/10=100 .
.
.
.
.
. ,
, , .
4

0
1
2
3
4



0200
0361
0840
0920

0202
0385
0842
0930

0215
0720
0000
0940

0240
0800
0905
0950

0250
0810
0910
0960

0250
0810
0910
0960

0
1
2
3

.
, 0842 2,
2 0842 . 0935
3 , ,
.
. ,
. --. ,
, . ,
.
, . ,
.
. .

1
85396
2
85785

55
56
57

86027
86421
86803

128

86999

1
2
3
4
5
6
7
8

86177
86124
86171
86223
86229
86318
86368
86421

1
2
3
4
5
6
7
8

86179
86186
86194
86200
86207
86214
86219
86223

- - .
, 85000 86999.
86192. 56.
56 4.
3. 3 .
,
. '
, ,
. .


.
, .
(overflow). ,
.
:

.
5

,
. ' ,
. ,
.
. , (reorganization)
.
, , '
. , .
,
.

(direct) ,
.
' , , (random) .
, , , , .
.
(relative)
(.. 10, 5 ), . (relative)
. .
, , ,
, .
,
. , , (self indexed) , .
,
hashing .
().
.

,
, ,
. , ,
.


(Master Files) (Transaction
Files).


. ' .
.
. .

, , (transactions)
. .
' . .

.

(batch processing)
(transaction processing).

(, , )
.
. , , ,
. ,
, ., . , (master)
(transaction), , .. , .
. .
(new master) , , o
.

.
. , ,
.
(transaction processing). .
(real time) .

,

, , ,
, .
. :

, , ,
. ,
. ,
, (insertion) .
.

7

. '
, . ,
.
(deletion)
. .

, ,
.
, , ,
, ' .
(modification)
, .
.

' ,
. ,
, ,
, ' .
(retrieval) .
, .

.
(validation) , (sorting),
, (merging), (searching) (updating) .

.
' . .
( )
.
. ,
(batch total).
. , .
(hash total), .
, , ,
(check digit). H ,
.
T
(sorting) . ,
COBOL, .
, . '
, . ,
.

,
.
. ' .

(searching) ' . ,
. ,
,
. (sequential search)
(binary search).
, .
. ,
.

(sequential) .
, . ,
' ,
. , .
.

:
.
'
.

, , , .

.
.
.
, ,
, .
.


. ,
, .
, , .
.
, .
--, . '

, , .

.. ,
.
9

, ,
. ,
. , ,
.
, .
, (Databases)
. (integrated) (shared) ,
(redundant) ,
, , .

.

. . ,
. , .

.
.

10

:

.


.
:

(Hierarchical)

(Network)

(Relational)

.
. , ,
.
, :

. .


(relational) .
, , .
5-7 .
.
.. , , ..
(. , , ) .
. , .. ,
.
.
, , .
.
(.. ,
.).
.
. , ,
.
.
, .
.

11

16721
23461
33234

_
A

16721
23461
33234

14
15
18

10
20
18

18
10
20

10
18
18

16721
23461
33234

1
2 /
25

5-7 .


.
.
(Data Base Administrator).
, ,
.

. .
.


.


. , ,
.
.
.
.
,
.
.
. .

, .
. ,
( ) ( ) .
.

12

1-12345
2-24680

..
..

1-12345
1-12345
1-12345

15/3/98
25/3/98
3/4/98

120
15
35

()
()

2-24680

20/3/98

50

2-24680
.........

25/3/98
30
........
...
.

....


(, /, .).
. ,
, . 5-9.

-4678931
..................
-9456211
...................
-8321222

34

450 143 43

120 181 43

113 62

-4678931
-4678931
-4678931
.........
-9456211

12/2/98
14/3/98
25/4/98
.......
20/2/90

1-12345
1
1200
B2-23680
100
520
C2-11234
5
4300
....
....
....
C3-21131M
2
7000
.


" "
. .
. .
.

. ' ,
.
13

,
. '
.


( ),
, , (Data Base Management System)
. .

.
"" . '
.
() .
, .
.
.

. , .
(.. .).
(back up), (recovery) .
(data dictionary)
.
.

()

14

, .
.

, , , ,
. .

.

. ,
.

.
..

.
.
.

.
:

.

. .

. .

-.
.

.
.

.
.



.
15

.
. :
, , , .
, , , .
.
, , .. 12/01/98.
( ) ( ) .

.
, ..


A/A

10
2

50
3

4
4


A/A


1
2

4
30


A/A

- ( )
A/A


1
2

4
30

4
10

16

A/A
1
2
3
4
5
6
7
8
9
10

6
50
15

6
10

10
30
20
5
10

( )

A/A
1
2
3
4

= , =, =, =
ACCESS ACCESS :

. ACCESS.
(relationships) .
ACCESS .

17

ACCESS.


. () .
.
.

18

,

.

.
.
.
, .
. .
.
. .
. .

19

You might also like