18
CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS

CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

Embed Size (px)

DESCRIPTION

Databases are an essential component of modern society. A database is a collection of interrelated data. Properties of a Database: ▫ A database represents some aspect of the real world, sometimes called the miniworld or the universe of discourse (UoD). ▫ A database is a logically coherent collection of data with some inherent meaning. ▫ A database is designed, built, and populated with data for a specific purpose. **In other words, a database has some source from which data is derived, some degree of interaction with events in the real world, and an audience that is actively interested in its contents.

Citation preview

Page 1: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

CSC 351FUNDAMENTALS OF DATABASE SYSTEMS

Page 2: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

LECTURE 1:

INTRODUCTION TO DATABASES

Page 3: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

• Databases are an essential component of modern society. • A database is a collection of interrelated data.• Properties of a Database:▫ A database represents some aspect of the real world,

sometimes called the miniworld or the universe of discourse (UoD).

▫ A database is a logically coherent collection of data with some inherent meaning.

▫ A database is designed, built, and populated with data for a specific purpose.

**In other words, a database has some source from which data is derived, some degree of interaction with events in the real world, and an audience that is actively interested in its contents.

Page 4: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

•Database Management System (DBMS)is a set of programs to use and/or modify this data.

Page 5: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

Traditional File System•A file system is a method for storing and

organizing computer files and the data they contain to make it easy to find and access them.

Page 6: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

File System Data Management (cont’d)

•As number of files increased, file systems evolved▫Each file used its own application program

to store, retrieve, and modify data▫Each file was owned by individual or

department that commissioned its creation

Page 7: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

Problems with File System Data Management

•Even simple file system retrieval task required extensive programming in 3GL▫Ad hoc queries impossible▫Changing existing structure difficult

•Security features difficult to program therefore are often omitted in file system environments

Page 8: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

Problems with File System Data Management (cont’d)

• The file system exhibits data dependence when changes in file data characteristics require changes in all programs that access the file.▫ Data independence: data storage characteristics do

not affect data access• A file system exhibits structural dependence

when access to a file is dependent on its own structure▫ All file system programs must be modified to conform

to a new file structure▫ Structural independence: change file structure

without affecting data access

Page 9: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

Problems with File System Data Management (cont’d)

•Data redundancy exists when the same data are stored unnecessarily in different places.

•Uncontrolled data redundancy sets the stage for:▫Data inconsistency▫Data anomalies

Page 10: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

Data Redundancy (cont’d)• Data inconsistency exists when different and

conflicting versions of same data appear in different places.

• Data anomalies: abnormalities when all changes in redundant data are not made correctly▫ Update anomalies ▫ Insertion anomalies▫ Deletion anomalies

Page 11: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

Types of Database • Databases were developed as a result of the need to store

and retrieve data, timely and accurately.• Databases can be classified according to:▫ Number of users▫ Database location(s)▫ Expected type and extent of use

• Number of Users▫ Single-user database supports only one user at a time

Desktop database: single-user; runs on PC▫ Multiuser database supports multiple users at the same time

Workgroup and enterprise databases

Page 12: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

Types of Databases (cont’d)• Location▫ Centralized database supports data located at a

single site▫ Distributed database supports data distributed

across several different sites • Expected type and extent of use▫ Operational database: supports a company’s day-to-

day operations▫ Data warehouse: stores data used for tactical or

strategic decisions

Page 13: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

Role of the DBMS•The DBMS receives all application requests

and translates them into the complex operations required to fulfill those requests.

• It hides much of the database’s internal complexity from the application programs and users.

Page 14: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

Advantages of the DBMS• Improved data sharing•Better data integration•Minimized data inconsistency• Improved data access• Improved decision making• Increased end-user productivity

Page 15: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

Contrasting database and file systems

Page 16: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

The Database System Environment

• Database system: defines and regulates the collection, storage, management, use of data

• Five major parts of a database system:▫ Hardware▫ Software▫ People▫ Procedures▫ Data

• Hardware: all the system’s physical devices• Software: three types of software required:▫ Operating system software▫ DBMS software▫ Application programs and utility software

Page 17: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

The Database System Environment (cont'd)

• People: all users of the database system▫ System and database administrators▫ Database designers▫ Systems analysts and programmers▫ End users

• Procedures: instructions and rules that govern the design and use of the database system

• Data: the collection of facts stored in the database

Page 18: CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS. LECTURE 1: INTRODUCTION TO DATABASES

The database system environment