You are on page 1of 26

Lec 1: Database Systems

Dr. Nader Mahmoud

1/26
4. Object-Relational
Modules Contents DBMSs

Relational 6. Query processing


2. Database 7. Transaction
1. Introduction Model and
Environment Languages Management

Background Selected

5. Database System
Development Lifecycle 8. Concurrency 9. Database Security
3. Database Architectures Control
and the Web
Database
Design

2/26
How to Succeed?

• Lecture overheads are designed to convey information, not to be mechanically


memorized.

• LISTEN to what is said.


• THINK about what is said.
• ASK questions when you have doubts.
• WRITE down only what is important.

3 /26 3
Tip #1

Don’t wait until the last minute to ask or get help.


4 /26 4
Tip #2

Hey, I’ll still


pass if I can
get more
time.

Bad things happen while learning a new skill. You will probably crash and
burn on some programs. Start early; give yourself time for mistakes.
5 /26
Tip #3

Don’t be too ambitious with your course load. You CANNOT slack off
in this class, even for a few days.
6 /26 6
Tip #4

Learn Practice Enjoy

7 /26 7
Chapter 1: Introduction to Database
Some common uses of database systems.

Characteristics of file-based systems.

Problems with file-based approach.

Meaning of the term Database an Database Management System (DBMS).

Major components of the DBMS environment.

Personnel involved in the DBMS environment.

Advantages and disadvantages of DBMSs.

8 /26
1) Some common uses of database systems:

• Purchases from the supermarket

• Booking a holiday at the travel agents

• Using the local library

• Taking out insurance

• Using the Internet

• Studying at university

4 /26
2) File-Based Systems

• Collection of application programs that perform services for the end users (e.g. reports).

• Each program defines and manages its own data (Data De-centralization).

5/26
2) File-Based Systems

11/26
3) Limitations of File-Based Approach

1. Separation and isolation of data

• Each program maintains its own set of data.

• Users of one program may be unaware of potentially useful data held by other programs.

2. Duplication of data

• Wasted space and time.

• Leads to loss of integrity

12/26
3) Limitations of File-Based Approach

3. Data dependence

• File structure is defined in the program code.

4. Incompatible file formats

• Programs are written in different languages, and so cannot easily access each other’s
files.

5. Fixed Queries/Proliferation of application programs

• Programs are written to satisfy particular functions.

• Any new requirement needs a new program.


13/26
3) Database Approach

• Limitations of the file-based approach can be attributed to two factors because:

1. Definition of data was embedded in application programs, rather than being stored
separately and independently.

2. No control over access and manipulation of data beyond that imposed by application
programs.

• Result: The database and Database Management System (DBMS).

14/26
4) Database

• Shared collection of logically related data (and a description of this data), designed to meet
the information needs of an organization.

• Logically related data comprises entities, attributes, and relationships of an organization’s


information.

• System catalog (metadata) provides description of data to enable program–data


independence.

15/26
4) Database Management System (DBMS)

• A software system that enables users to define, create, maintain, and control access to the
database.

• Application program: a computer program that interacts with database by issuing an


appropriate request (SQL statement) to the DBMS.

16/26
4) Database Management System (DBMS)

17/26
4) Database Management System (DBMS)

• Data definition language (DDL).

• Permits specification of data types, structures and any data constraints.

• All specifications are stored in the database.

• Data manipulation language (DML).

• General enquiry facility (query language) of the data.

18/26
4) Database Management System (DBMS)

• a security system

• an integrity system

• It provide controlled access to database : • a concurrency control system

• a recovery control system

• a user-accessible catalog

19/26
4) Database Management System (DBMS)

Views

• Allows each user to have his or


her own view of the database.

• A view is essentially some


subset of the database.

20/26
4) Database Management System (DBMS)

Views Benefits

• Reduce complexity

• Provide a level of security

• Provide a mechanism to
customize the appearance of the
database

• Present a consistent, unchanging


picture of the structure of the
database, even if the underlying
database is changed
21/26
5) Components of DBMS Environment

Hardware Software Data Procedures

Can range from a DBMS, operating Used by the Instructions and


PC to a network of system, network organization rules that govern
computers. software (if necessary) (operational data the design and use
and also the application and metadata) of the database and
programs. DBMS.

22/26
5) Components of DBMS Environment

People

Database Designer End Users (naïve


Data Administrator
(Logical & and sophisticated)
(DA)
Physical)
Database Application
Administrator Programmers
(DBA)

23/26
6) Advantages of DBMSs

• Control of data redundancy • Economy of scale

• Data consistency & Improved data integrity • Increased productivity

• More information from the same amount of data • Improved data accessibility (cross-referenced)

• Sharing of data • Increased concurrency

• Improved security • Backup and recovery services

24/26
6) Disadvantages of DBMSs

• Complexity

• Size

• Cost of DBMS

• Additional hardware costs

• Cost of conversion

• Performance

• Higher impact of a failure

25/26
End of Chapter 1

26/26

You might also like