Unit-1 DBMS
Unit-1 DBMS
Unit-1 DBMS
Unit-1
Purpose,
Advantages
and
Disadvantages of DBMS
Schemas and Instances
DBMS
Architecture
and
Data
Independence
Data Models
Types of DBMS Hierarchical, Network,
Relational, Object-Oriented and Object
Relational
Data
Record
s
Files
Database
Electronically
Computer
Mobile Phones
Office Automation
Packages
MS Office,
(MS Excel, MS Word etc.)`
DBMS
(Oracle, MS SQL)
7
CODDS 12 RULES
Rule
Rule
Rule
Rule
Rule
Rule
Rule
Rule
Rule
Rule
Rule
Rule
1: Information Rule
2: Guaranteed Access Rule
3: Systematic Treatment of NULL Values
4: Active Online Catalog
5: Comprehensive Data Sub-Language Rule
6: View Updating Rule
7: High-Level Insert, Update, and Delete Rule
8: Physical Data Independence
9: Logical Data Independence
10: Integrity Independence
11: Distribution Independence
12: Non-Subversion Rule
RDBMS
Ex.Foxpro,Ms Access
Naming Conventions
11
Database Applications
Banking: all transactions
Airlines: reservations, schedules
Universities: registration, grades
Sales: customers, products, purchases
Manufacturing: production, inventory, orders,
supply chain
Human resources: employee records,
salaries, tax deductions
Databases touch all aspects of our lives
Characteristics of RDBMS
Real-world entity
Relation-based tables
Isolation of data and application
Less redundancy
Consistency
Query Language
Characteristics of RDBMS
ACID Properties
Multiuser and
Concurrent Access
Multiple views
Security
Database
DBMS approach
Integrity
problems
Data isolation
Data
redundancy
and
inconsistency
Difficulty in
accessing
data
Security
problems very
Concurrent
access by
multiple users
Atomicity of
updates
ADVANTAGE OF DBMS
Controlling redundancy
Providing consistence
Providing multiple user interface
Enforcing integrity constraints
Restricting unauthorized access
Providing multiple interface
DBMS support data independence
DBMS providing data security
Better control:- centralized approach
Reduced maintenance
Enforcement of standards
Better service to the users.
DBMS Users
DBMS users
Function of DBA
Defining the schema .
Liaising with users.
Defining security & integrity checks
Defining backup /recovery procedures.
Monitoring performance .
Granting of authorization for data
access
23
DATA MODELS
Importance of Data
Models
Data models
Representations, usually graphical, of
complex real-world data structures
Facilitate interaction among the
designer, the applications programmer
and the end user
Relationsh
ip
Constraint
A restriction placed on
the data
Characteristic of an entity
Attribute
Entity
DATA MODELS
1) Entity-Relationship Model
ER Model is based on:
a)Entities and their attributes
b)Relationships among entities.
Mapping cardinalities
One to one
One to many
Many to many
1-Database Management
System
One to
One
Associati
on
One to
Many
Associati
on
Many to
Many
Associat
ion
DATABASE MANAGEMENT
SYSTEM
1-ONE TO ONE ASSOCIATION
STUDENT
ROLL NO
DATABASE MANAGEMENT
SYSTEM
2-ONE TO MANY ASSOCIATION
Student
Departm
ent
Student
Student
DATABASE MANAGEMENT
SYSTEM
3-MANY TO MANY ASSOCIATION
BOOK
STORE
BOOKS
BOOK
STORE
BOOKS
BOOK
STORE
BOOKS
2) Relational Model
5-Object
Relational
4-Object
Oriented
Model
312-Network Hierarchic
Relational
Model
Model
al Model
Hierarchical Model
Advantages
Many features form the foundation for current
data models
Generated a large installed base of
programmers
Who developed solid business applications
Disadvantages
Complex to implement
Difficult to manage
Lacks structural independence
Implementation limitations
Lack of standards (Company vs Industry or
Owner
record type
Dept_emp
set type
Employee
Member
record
type
Network Model
In this model restriction of child
having 1 parent does not exist. every
child can have more than 1 parent
and every parent can have more
than 1 child.
This model is very flexible .it consists
of records and links
In this mapping is similar to
hierarchical model, but mapping
between parent to child is very
Network Model
Advantages
Represents complex data relationships better than Hierarchical
Model
Improved database performance
Impose a database industry standard
Conference on Data Systems Languages (CODASYL)
Database Task Group (DBTG)
Disadvantages
Too bulky
Lack of ad hoc query capability
Put heavy pressure on programmers
(3) class:
EER
Entity type
Object
Entity instance
Association
Relationship
Inheritance of
attributes
Inheritance of behavior
Inheritance of attributes
No representation of
behavior
DATA SCHEMAS
schema construct
Known data:
name of record types, data items
2-4a
59
2-4
60
62
DATABASE SCHEMA
Database Schema vs
Instance
name
Jones
Smith
Smith
login
age gpa
jones@cs 18 3.4
smith@ee 18 3.2
smith@math19 3.8
External
Schema 1
External
Schema
2
External
Schema 3
Conceptual Schema
Physical Schema
DATA INDEPENDENCE
Elements of a DBMS
Elements of DBMS
STORAGE SYSTEM
H
i
g
h
C
a
p
a
c
it
y
H
i
g
h
S
p
e
e
d
RAID
RAID stands for Redundant Array
of Independent Disks, which is a
technology to connect multiple
secondary storage devices and use
them as a single storage media.
RAID-0
RAID levels define the use of disk
arrays.
RAID-1
RAID-2
RAID-3
RAID-4
RAID-5
RAID-6