WMSDB -Worldwide Mollusc Species Data Base - Family CANCELLARIIDAE
data base environment.lec 1
Transcript of data base environment.lec 1
Chapter 1
DEFINITIONS Data
Collection of raw facts and figures.
3
© Prenti ce Hall, 2002
Asad
5’ 10”
MaleShah
Ahsan6’ 2”
Chapter 1
DEFINITIONS Information
Processed form of data. Data can be processed in two ways
Structure and additional data
Summarize the data(diagrams and charts) 4
© Prenti ce Hall, 2002
Chapter 1
© Prenti ce Hall, 2002
5
Figure 1-1b Summarized dataUseful information that managers can use for decision making and interpretation
Chapter 1
DEFINITIONS Database
An organized collection of logically related data.
6
© Prenti ce Hall, 2002
Chapter 1
© Prenti ce Hall, 2002
7
Figure 1-1a Data in Context
Large volume of facts, difficult to interpret or make decisions based on
Chapter 1
DEFINITIONS Meta Data
They describe properties and characteristic of data.
8
© Prenti ce Hall, 2002
Chapter 1
DISADVANTAGES OF FILE PROCESSING Program-Data Dependence
All programs maintain metadata for each file they use
Duplication of dataDifferent systems/programs have separate copies of the same data
Limited Data SharingNo centralized control of data
Lengthy Development TimesProgrammers must design their own file formats
Excessive Program Maintenance80% of information systems budget
10
© Prenti ce Hall, 2002
Chapter 1
PROBLEMS WITH PROGRAM-DATA DEPENDENCY
It is the tight relationship between data stored in files and the specific programs required to update and maintain those files
Change in the file format affects both the program and the file
Lack of coordination and central control
Non-standard file formats
11
© Prenti ce Hall, 2002
Chapter 1
PROBLEMS WITH DATA DUPLICATION
Waste of space to have duplicate dataCauses more maintenance headachesThe biggest Problem:
When data changes in one file, could cause inconsistencies
Compromises data integrity
12
© Prenti ce Hall, 2002
Chapter 1
PROBLEMS WITH LIMITED DATA SHARING
Limited data for processingManagers face difficulty in generating reports
Incompatible files is separate systems
13
© Prenti ce Hall, 2002
Chapter 1
PROBLEMS WITH DEVELOPMENT TIMES
The new application must follow the file pattern of the old system
Therefore, programmers prefer developing the program from scratch
System becomes static
14
© Prenti ce Hall, 2002
Chapter 1
PROBLEMS WITH PROGRAM MAINTENANCE
Managing a non-centralized data is more difficult
All replicated data must be consistent
Therefore, more budget is required during maintenance
15
© Prenti ce Hall, 2002
Chapter 1
SOLUTION: THE DATABASE APPROACH
Central repository of shared dataData is managed by a controlling agentStored in a standardized, convenient formEasy to store, manipulate and retrieve
16
© Prenti ce Hall, 2002
Requires a Database Management System (DBMS)
Chapter 1
DATABASE MANAGEMENT SYSTEM
A DBMS is a software program that manages a Database
It controls the organization, storage, management and retrieval of data in a database.
17
© Prenti ce Hall, 2002
Chapter 1
DATABASE MANAGEMENT SYSTEM
18
© Prenti ce Hall, 2002
DBMS manages data resources like an operating system manages hardware resources
DBMS Databasecontainingcentralized shared data
Application#1
Application#2
Application#3
Chapter 1
ADVANTAGES OF DATABASE APPROACH Program-Data Independence
Metadata stored in DBMS, so applications don’t need to worry about data formats
Data queries/updates managed by DBMS so programs don’t need to process data access routines
Results in: increased application development and maintenance productivity
Minimal Data RedundancyLeads to increased data integrity/consistency
19
Chapter 1
ADVANTAGES OF DATABASE APPROACH Improved Data Sharing
Different users get different views of the data
Enforcement of StandardsAll data access is done in the same way
Improved Data Quality Constraints, data validation rules
Better Data Accessibility/ ResponsivenessUse of standard data query language (SQL)
Security, Backup/Recovery, ConcurrencyDisaster recovery is easier
20
© Prenti ce Hall, 2002
Chapter 1
COSTS AND RISKS OF THE DATABASE APPROACH
Up-front costs:Installation Management Cost and Complexity
Conversion CostsOngoing Costs
Requires New, Specialized Personnel
Need for Explicit Backup and Recovery
Organizational ConflictOld habits die hard
21
© Prenti ce Hall, 2002
Chapter 1
© Prenti ce Hall, 2002
23
Figure 3Figure 1-3 Segment from enterprise data model
One customer may place many orders, but each order is placed by a single customer One-to-many relationship
Chapter 1
© Prenti ce Hall, 2002
24
Figure 3Figure 1-3 Segment from enterprise data model
One order has many order lines; each order line is associated with a single order One-to-many relationship
Chapter 1
© Prenti ce Hall, 2002
25
Figure 3Figure 1-3 Segment from enterprise data model
One product can be in many order lines, each order line refers to a single product One-to-many relationship
Chapter 1
© Prenti ce Hall, 2002
26
Figure 3Figure 1-3 Segment from enterprise data model
Therefore, one order involves many products and one product is involved in many orders Many-to-many relationship
Chapter 127
© Prenti ce Hall, 2002Figure 1-4 Order, Order_Line, Customer, and Product tables
Relationships established in special columns that provide links between tables
Chapter 1
DATABASE APPLICATIONPerforms series of actions on behalf of the database user.
CreateAdding new data to the database
ReadRetrieve data from current database
UpdateUpdate an existing data on database
DeleteRemove data from the database
30
© Prenti ce Hall, 2002
Chapter 1
THE RANGE OF DATABASE APPLICATIONS
Personal Database – standalone desktop database Workgroup Database – local area network (<25 users)
Department Database – local area network (25-100 users)
Enterprise Database – wide-area network (hundreds or thousands of users)
31
© Prenti ce Hall, 2002
Chapter 1
COMPONENTS OF THE DATABASE ENVIRONMENT
CASE Tools – computer-aided software engineering Repository – centralized storehouse of metadata Database Management System (DBMS) – software for managing the database
Database – storehouse of the data Application Programs – software using the data User Interface – text and graphical displays to users Data Administrators – personnel responsible for maintaining the database
System Developers – personnel responsible for designing databases and software
End Users – people who use the applications and databases
35
© Prenti ce Hall, 2002