AIMK/MBA/Sem2/Mb205 /Mod-II/Lec 1&2
In the 21st century, the database is the
marketplace
Data Base Management System
DBMS is an application s/w
that interacts with the
user, other applications,
and the database itself to
capture and analyze data.
Ex: Oracle , Sybase ,DB2 ,
MySQL
Database
File Based System Database System
• No Centralized Control • Centralized Control
over data over data
• No data Sharing • Provide data Sharing
• No Data integrity • Provide Data integrity
• Less Flexible • Less Flexible
• Less Secure • More Secure
• No data • Provide data
Independence Independence(Logica
l & Physical)
Data Models
1. Hierarchical 3. Relational
2. Network 4. Object
An Example of a Table/Relation
Fields/
Attributes
Record Code No Name Phone College
s/
Tuples/ 1001 Ram 392- Pharmacy
3900
Entities
1002 Harris 392- Medicine
5555
1008 Ali 846- PHHP
5656
KEY
Key Hierarchy of DBMS
Key Hierarchy of DBMS
Key Hierarchy of DBMS
Data Integrity
• For a table to have Domain Integrity
– the value of each column of data is meaningful and
acceptable in the business environment, and
passes all the edits we impose on it.
• For a table to have Association Integrity
– the relationship between two or more columns in that
table satisfies a pre-defined business association.
• For a table to have Entity Integrity
– that primary keys can't be null or duplicate.
There must be a proper value in the primary key
field.
• For a table to have Referential Integrity
Referential Integrity
Primary Key
Parent Table
Child Table
FK
For Referential Integrity - The foreign key must match a value in
the
primary key of the parent table, at all times.
3-Tier Architecture of DBMS
(ANSI/SPARC Architecture)
Logical Data
Independence
Physical Data
Independence
DBMS USERS
• Native Users
• Application Programmers
• System Programmers
• Data Base Administrators (DBA)
Function/Role of DBA
⮚ Periodically Backup & Recovery
⮚ Performance Tuning
⮚ Design & Implements
⮚ Granting Access Rights
⮚ Installing, migration and upgrading the DBMS Servers
⮚ Documentation
Advantages of a DBMS
• Data independence
• Efficient data access
• Data integrity & security
• Data administration
• Concurrent access, crash recovery
• Reduced application development time
• So why not use them always?
– Expensive/complicated to set up & maintain
– This cost & complexity must be offset by need
– General-purpose, not suited for special-purpose tasks (e.g.
text search!)