Professional Documents
Culture Documents
Database System
Database System
Introduction
Basic Definitions
Database: A collection of related data.
Other features:
Protection or Security measures to prevent
unauthorized access
Presentation and Visualization of data
Example of a Database
Mini-world for the example: Part of a
UNIVERSITY environment.
Some mini-world entities:
STUDENTs
COURSEs
SECTIONs (of COURSEs)
(academic) DEPARTMENTs
INSTRUCTORs
Stand-alone end-user :
Maintain personal databases
parametric)
Develop specifications for canned transactions
Categories:
1. DBMS system designers and implementers
2. Tool developers
3. Operators and Maintenance personnel
1. DBMS system designers and implementers:
existing ones
Atomicity of updates
Failures may leave database in an
inconsistent state with partial updates
carried out
E.g. transfer of funds from one account to
inconsistencies
E.g. two people reading a balance and
updating it at the same time
Security problems
Database systems offer solutions to all the
above problems
DBMS ( Database Management System)
A database management system is, well, a
system used to manage databases.
RDBMS (Relational Database Management
System)
A relational database management system is a
database management system used to manage
relational databases.
A relational database is one where tables of
data can have relationships based on primary
and foreign keys.
Advantages of Using the Database Approach
1. Controlling Redundancy:
- Solve the problems of
- Multiple entry of same data
- Wastage of memory
- inconsistent data
2. Restricting unauthorized Access:
- Users or user groups are given a/c nos.
protected by passwords.
- DBMS should provide a security & authorization
subsystem for DBA to create A/Cs and specify A/C
restriction.
3. Providing persistent storage for program
objects:
Reason for Object-oriented database system.
- Programming languages have complex data
database.
Also called database instance (or occurrence
or snapshot).
The term instance is also applied to
individual database components, e.g. record
instance, table instance, entity instance
Example of a database state
Distinction between database schema &
database state
The database schema changes very infrequently.
The database state changes every time the
database is updated.
• The DBMS is partly responsible for ensuring that
every state of the database is a valid state—that
is, a state that satisfies the structure and
constraints specified in the schema.