The document discusses database management systems and distributed databases. It covers the problems with flat file data storage, how databases address these issues, database design concepts like normalization, and the advantages and challenges of distributed database systems. Distributed databases can be centralized, partitioned, or replicated across multiple sites to improve performance, but maintaining data consistency is challenging and requires concurrency control methods.
4. Flat-File Environment Program 1 Program 2 Program 3 A,B,C X,B,Y L,B,M User 2 Transactions User 1 Transactions User 3 Transactions Data
5.
6. Program 1 Program 2 Program 3 User 2 Transactions User 1 Transactions User 3 Transactions Database D B M S A, B, C, X, Y, L, M Database Approach
7.
8.
9. Elements of the Database Approach System Development Process Database Administrator U S E R S DBMS Host Operating System Physical Database User Programs User Programs User Programs Applications Data Definition Language Data Manipulation Language Query Language User Queries Transactions Transactions Transactions System Requests
18. PROJECT - filtering out columns, such as the green Z3 JOIN RESTRICT - filtering out rows, such as the yellow X1 X1 X2 X2 X3 X3 Y1 Y1 Y1 Y1 Y1 Y2 Y2 Y2 Y3 Z1 Z1 Z2 Z2 Z1
25. Steps in Normalization Table with repeating groups First normal form 1NF Second normal form 2NF Third normal form 3NF Higher normal forms Remove repeating groups Remove partial dependencies Remove transitive dependencies Remove remaining anomalies
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38. The Deadlock Phenomenon A,B E, F C,D Locked A, waiting for C Locked C, waiting for E Locked E, waiting for A
39.
40.
Notas do Editor
1
31
3 Users access data via computer programs that process the data and present information to the users. Users own their data files . Data redundancy results as multiple applications maintain the same data elements. Files and data elements used in more than one application must be duplicated, which results in data redundancy . As a result of redundancy, the characteristics of data elements and their values are likely to be inconsistent . Outputs usually consist of preprogrammed reports instead of ad-hoc queries provided upon request. This results in inaccessibility of data. Changes to current file-oriented applications cannot be made easily, nor can new developments be quickly realized, which results in inflexibility .
4
6 Solves the following problems of the flat file approach no data redundancy - except for primary keys, data is only stored once single update current values task-data independence - users have access to the full domain of data available to the firm A database is a set of computer files that minimizes data redundancy and is accessed by one or more application programs for data processing. The database approach to data storage applies whenever a database is established to serve two or more applications, organizational units, or types of users. A database management system (DBMS) is a computer program that enables users to create, modify, and utilize database information efficiently.
8
10
7
11
12
13
31
35
32
23
33
79
38
38
86
40
23
Decentralization does not attempt to integrate the parts into a logical whole unit.