Chapter 1 Part One: Introduction to Database |1-1 1
Database Systems:
Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4thEdition, Addison WesleyChapter 1 Part One: Introduction to Database | 2
Learning Outcomes
•
Introduction
•
Traditional File-based Systems
•
Database Approach
•
Roles in the Database Environment
•
Advantages & Disadvantages of DBMS
Chapter 1 Part One: Introduction to Database | 3 DBMS
Introduction
Database
Database System
Database Apps.
Chapter 1 Part One: Introduction to Database | 4
Examples of Database Application
•
Purchases from the supermarket
•
Purchases using credit card
•
Booking a holiday at the travel
•
Using the local library
•
Taking out insurance
•
Using the Internet
Chapter 1 Part One: Introduction to Database | 5
File-based Approach
•
Traditional file-based system
–An early file-based system (tradditionl way) use the manual filing system
– A “mistake” database system –We can learn from that mistake
•Prefevent from reapeating the problem that coused by this mistake
•Understanding how the file system works
•
Collection of application program that perform services for the
end users (e.g reports)
• Program defines and manages it’s own data
Chapter 1 Part One: Introduction to Database | 6
File-based Processing
Chapter 1 Part One: Introduction to Database | 7
File-based Processing
Chapter 1 Part One: Introduction to Database | 8
Limitations of File-based
•
Separation and isolation
–When data is isolated in separate files, it is more difficult to access data that should be available.
•
Duplication
–Uncontrolled duplication of data accour
•
Program and data dependence
Chapter 1 Part One: Introduction to Database | 9
Limitations of File-based
•
Incompatible file format
–Because the structure of files is embedded in the application programs, the structures are dependent on the application programming language.
•
Fixed queries and proliferation of application programs
–The requirement for new or modified queries grewChapter 1 Part One: Introduction to Database | 10
Database
•
Limitation of file-based factors:
–(1) the definition of the data is embedded in the application programs, rather than being stored separately and independently;
–(2) there is no control over the access and manipulation of data beyond that imposed by the application programs.
Chapter 1 Part One: Introduction to Database | 11
Database
•
Definition
–A shared collection of logically related data, and a description of this data, designed to meet the information needs of an organization.
•
Logical Related
–When we analyze the information needs of an organization, we attempt to identify
entities, attributes, and relationships.
•Entities: is a distinct object (a person, place, thing, concept, or event) in the organization that is to be represented in the database
•Attributes: is a property that describes some aspect of the object that we wish to record.
•Relationship: is an association between entities.
Chapter 1 Part One: Introduction to Database | 12
Database
•
Database characteristics
–A large repository of data that can be used simultaneously by many departments and users.
–All data items are integrated with a minimum amount of duplication.
–Shared resource.
–Holds not only the organization’s operational data but also a description of this data (a self-describing and integrated data files)
•
System catalog
–Metadata–Data dictionary
Chapter 1 Part One: Introduction to Database | 13
Database
•
Program-data independencies
–The nature of database•
Data abstraction
–One advantage of this approach, is that we can change the internal definition of an object without affecting the users of the object, provided the external definition remains the same.
Chapter 1 Part One: Introduction to Database | 14
Database Management System (DBMS)
Chapter 1 Part One: Introduction to Database | 15
Database Management System (DBMS)
•
A software system that enables users to define, create, maintain,
and control access to the database.
•
Facilities:
–Data definition language (DDL) - allows users to specify the data types and
structures and the constraints on the data to be stored in the database.
–Data manipulation language (DML)/query language - allows users to insert,
update, delete, and retrieve data from the database.
–Structured query language (SQL)–standard language for DBMS.
–Security system - which prevents unauthorized users accessing the database.
–Integrity system - which maintains the consistency of stored data.
–Concurrency control system - which allows shared access of the database.
Chapter 1 Part One: Introduction to Database | 16
Database Approach as DBMS
–Recovery control system - which restores the database to a previous consistent
state following a hardware or software failure.
Chapter 1 Part One: Introduction to Database | 17
DBMS Environment
• Hardware
–Client-server architecture
• Software
–dbms, os, network, application
• Data
–Schema, subschema, table, attribute
• People
–Data administrator & database administrator
–Database designer: logical & physical
–Application programmer
–End-user: naive & sophisticated
Chapter 1 Part One: Introduction to Database | 18
DBMS Environment
• Procedure
–Start, stop, log on, log off, back up, recovery
Chapter 1 Part One: Introduction to Database | 19
Roles in the Database Environment
• Data Administrator (DA) –Management of data resources
–Ensure database development support corporate objectives • Database Administrator (DBA)
–Physical realization of database –More technically oriented • Database Designers
–Logical •Identifying data –Physical
•Realization of logical database • Application Programmers
–Implement application program for user • End Users (Naïve and Sophisticated)
Chapter 1 Part One: Introduction to Database | 20
Advantages of DBMS
• Control redundancy
• Consistency
• Integrity
• Security
• Concurrency control
• Backup & recovery
• Data standard
• More information
• Data sharing & conflict control
• Productivity & accessibility
• Economy of scale
Chapter 1 Part One: Introduction to Database | 21
Limitations of DBMS
• Complexity • Size • Cost
–Software
–Hardware
–Conversion
• Performance • Vulnerability