Chapter 1 - Fundametals of Data Base
Chapter 1 - Fundametals of Data Base
Database System
Chapter One
Introduction
to
Database
• To organize information
• To be able to get reports from data
• To protect data :- to apply security features
• To be able to share data
•DBMS:
• It is a piece of software that allows a user to
define, create and manage access to a database.
• DBMS decouples application programs from data
• Every Database Software has DBMS at its core.
20
Fundamentals of Database Systems 20
Database Languages
• The facilities of DBMS includes database languages.
• These includes the languages to create the database (DDL) and
to access the database (DML)
• Data Definition Language(DDL):-
• Is a language for defining database schema.
• used to specify the data types and structures and the
constraints on the data to be stored in the database.
• Data Manipulation Language(DML):-
• Specify how to access the database
• allows users to insert, update, delete and retrieve data
from the database; with the help of query languages.
21
Objectives of DBMS
1 Data Availability
Data availability refers to the fact that the data are made
available to wide variety of users
• so that the users can easily access the data.
• 2 Data Integrity
• refers to the correctness of the data in the database.
• the data in the database should be a reliable data.
• 3 Data Security
• only authorized users can access the data.
• Data security can be enforced by passwords.
• If two separate users are accessing a particular data at the same time, the
DBMS must not allow them to make conflicting changes.
• 4 Data Independence
• DBMS provides an “abstract view” of how the data is stored in the
database.
• The system hides certain details of how the data are stored and
maintained
•Presentation layer
•Application layer
•Data layer
Presentation 2….
Application server
(business rules in programs/code
On Server e.g. Java, CGI, ASP, VB)
On Server DATA
Fundamentals of Database Systems 26
Three-Tier Application Architecture
• Presentation layer
• The user’s view of the database.
• Part of the database relevant to a particular user.
• There can be different views of the data – different
presentations to different types of user.
• Different views may have different representations of the
same data. E.g. dd-mm-yyyy or yyy-mm-dd
• Provides familiar view for the user.
Fundamentals of Database Systems 27
Three-Tier Application Architecture
• Application Layer
• These layer describes how to access the data in the
database
• Applications developed using different programming
languages to retrieve different information from the
database.
• The application code written reflects the ‘business
rules’ –
• e.g. code to calculate the interest to apply to an account.
Fundamentals of Database Systems 28
Three-Tier Application Architecture
• Data layer
• This is where the actual database is – could be an Access
db or a SQL Server db or an Oracle db – any DBMS.
• This layer describes how the data is stored in the
database.
• The DBA may work directly with the database through
the DBMS itself, but programmers generally work at the
application layer.