SlideShare une entreprise Scribd logo
1  sur  26
A Presentation By:
Pramod Shah
KIC
Data Models:
 Object -Based logical models
 Record -Based logical models
 Physical Models
The way in which information is subdivided and
managed within a database is referred to as the data
model used by the DBMS. Each DBMS is based on a
particular data model.
Data models can be classified into three major groups.
They are:
Data Models:
A. Object-based logical models
These models are used to describe data at the
logical and view levels. The following are the
well known models in this group.
Entity-relationship model
Object-oriented model
Semantic model
Functional model
Contd…
B. Record-based logical models
Relational model (e.g., SQL/DS, DB2)
Network model
Hierarchical model (e.g., IMS)
Data Models: (Old Classification)
High Level or conceptual data models
Low-level or physical data model
Representational Data Model
Entity: An Entity is an object or a thing such as person, place about
which an organization keeps information. Any two objects or things are
distinguishable.
E.g.: Each student is an entity.
Attribute: The describing properties of an entity are called Attributes.
e.g.: For a student entity, name, sex, date of birth are attributes.
Relationship: An association among entities is called a relationship.
The data model that consists of a set of entities and a set of
relationships among those entities is called ER Model.
The set of all entities of the same type is called an entity set and the set
of all relationship of the same type are called a relationship set.
Entity-Relationship Model
Example of entity-relationship model
customer account
depositor
social-security customer-street
customer-name
account-number
balance
customer-city
The Object-Oriented Model:
The object oriented model is a data model based on a collection of
objects.
Each object has a unique identity. The group of objects containing the
same type of values and the same methods are called classes.
The Semantic data model:
These models were based on semantic networks.
Inter dependencies among the entities can be
expressed in this data model.
Functional Data Model:
In this model objects, properties of
objects, their relationships are viewed
uniformly and are defined as functions.
B)Record Based Logical models:
This model is used to describe data at the logical and view
levels. The database is structured in fixed format records of
different types. Each record type has a fixed number of fields.
And each field is of fixed length.
The following are the three important record based logical
models.
Relational Model
Network Model
Hierarchical Model.
Relational Model:
A data model in which both data and their relationships are
represented by means of tables is called Relational Model.
The relation is the only data structure used in this model to
represent both entities and their interrelationships. A relation
is a two dimensional table with a unique name.
Each row of a table is called a tuple and each column of a
table is called an attribute. The set of all possible values in an
attribute is called the domain of the attribute.
Relational Model
Example of tabular data in the relational model:
name ssn street city account-number
Johnson 192-83-7465 Alma Palo Alto A-101
Smith 019-28-3746 North Rye A-215
Johnson 192-83-7465 Alma Palo Alto A-201
Jones 321-12-3123 Main Harrison A-217
Smith 019-28-3746 North Rye A-201
account-number balance
A-101 500
A-201 900
A-215 700
A-217 750
Network Model:
The network model uses two different
structures. The data are represented by a
collection of records and the relationships
among data are represented by links.
Hierarchical Model:
In Hierarchical Model, data are represented by
records and relationships among data are
represented by links. But unlike in Network
model, data are organized in an ordered tree
structure, which is called Hierarchical
structure.
C. Physical Data Models:
These models are used to represent data at the
lowest level. Two important physical Data
Models are:
Unifying Model
Frame Memory Model.
DBMS Architecture
Architecture is the frame work of the
Database Management System.
Standard database consisting of Conceptual,
external and internal levels.
Conceptual Level-Logical schema of database
External Level-User views of database
Internal Level : Physical views of database
SDLC-A process for
system development
DDLC
View of Data
An architecture for a database system
View 1
Physical
level
Logical
level
View 2 View n
…
View level
Levels of Abstraction
• Physical level: describes how a record (e.g.
customer) is stored.
• Logical level: describes data stored in database,
and the relationships among the data.
type customer = record
name: string;
street: string;
city: integer;
end;
• View level: application programs hide details of
data types. Views can also hide information (e.g.
salary) for security purposes.
DBMS Architecture
Process Manager
Admission Control
Connection Mgr
Query Processor
Parser
Query Rewrite
Optimizer
Executor
Storage Manager
Access Methods
Lock Manager
Buffer Manager
Log Manager
Shared Utilities
Memory Mgr
Disk Space Mgr
Replication Services
Admin Utilities
21
Instances and Schemas
• Similar to types and variables in programming
languages
• Schema – the logical structure of the database
(e.g., set of customers and accounts and the
relationship between them)
• Instance – the actual content of the database
at a particular point in time
Data Independence
• Ability to modify a schema definition in one
level without affecting a schema definition in
the other levels.
• The interfaces between the various levels and
components should be well defined so that
changes in some parts do not seriously
influence others.
• Two levels of data independence
– Physical data independence
– Logical data independence
Overall System Structure
indices Statistical data
Data files Data dictionary
disk storage
Backup, restore or delete a single data set separately by
copying or removing the files for its environment.
Balance the load between machines by moving the files for a
single data set from one machine to another.
Improve I/O performance by placing each data set on a
separate physical disk.
Delete individual data sets very efficiently by removing the
environment's log files. This is much more efficient than deleting
individual database records and is also move efficient than
removing databases, and so can be a real benefit if you are
managing large temporary data sets that must be frequently
deleted.
Database environment

Contenu connexe

Similaire à DBMS.ppt

Database Management System NOTES for 2nd year
Database Management System NOTES for 2nd yearDatabase Management System NOTES for 2nd year
Database Management System NOTES for 2nd year
dhasamalika
 
Dbms Lec Uog 02
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02
smelltulip
 

Similaire à DBMS.ppt (20)

Database Management System NOTES for 2nd year
Database Management System NOTES for 2nd yearDatabase Management System NOTES for 2nd year
Database Management System NOTES for 2nd year
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
 
Database.ppt
Database.pptDatabase.ppt
Database.ppt
 
Dbms module i
Dbms module iDbms module i
Dbms module i
 
Data abs ind & mod
Data abs  ind  & modData abs  ind  & mod
Data abs ind & mod
 
Data models
Data modelsData models
Data models
 
Data models
Data modelsData models
Data models
 
Data models
Data modelsData models
Data models
 
Week 1
Week 1Week 1
Week 1
 
Dbms Lec Uog 02
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02
 
DBMS
DBMSDBMS
DBMS
 
Architecture of dbms
Architecture of dbmsArchitecture of dbms
Architecture of dbms
 
dbms-1.pptx
dbms-1.pptxdbms-1.pptx
dbms-1.pptx
 
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
 
Database Management Systems.ppt
Database Management Systems.pptDatabase Management Systems.ppt
Database Management Systems.ppt
 
Unit 1.2.pptx
Unit 1.2.pptxUnit 1.2.pptx
Unit 1.2.pptx
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 
Dbms notes
Dbms notesDbms notes
Dbms notes
 
Data Abstraction
Data AbstractionData Abstraction
Data Abstraction
 

Dernier

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Dernier (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

DBMS.ppt

  • 2. Data Models:  Object -Based logical models  Record -Based logical models  Physical Models The way in which information is subdivided and managed within a database is referred to as the data model used by the DBMS. Each DBMS is based on a particular data model. Data models can be classified into three major groups. They are:
  • 3. Data Models: A. Object-based logical models These models are used to describe data at the logical and view levels. The following are the well known models in this group. Entity-relationship model Object-oriented model Semantic model Functional model Contd…
  • 4. B. Record-based logical models Relational model (e.g., SQL/DS, DB2) Network model Hierarchical model (e.g., IMS)
  • 5. Data Models: (Old Classification) High Level or conceptual data models Low-level or physical data model Representational Data Model
  • 6. Entity: An Entity is an object or a thing such as person, place about which an organization keeps information. Any two objects or things are distinguishable. E.g.: Each student is an entity. Attribute: The describing properties of an entity are called Attributes. e.g.: For a student entity, name, sex, date of birth are attributes. Relationship: An association among entities is called a relationship. The data model that consists of a set of entities and a set of relationships among those entities is called ER Model. The set of all entities of the same type is called an entity set and the set of all relationship of the same type are called a relationship set.
  • 7. Entity-Relationship Model Example of entity-relationship model customer account depositor social-security customer-street customer-name account-number balance customer-city
  • 8. The Object-Oriented Model: The object oriented model is a data model based on a collection of objects. Each object has a unique identity. The group of objects containing the same type of values and the same methods are called classes.
  • 9. The Semantic data model: These models were based on semantic networks. Inter dependencies among the entities can be expressed in this data model.
  • 10. Functional Data Model: In this model objects, properties of objects, their relationships are viewed uniformly and are defined as functions.
  • 11. B)Record Based Logical models: This model is used to describe data at the logical and view levels. The database is structured in fixed format records of different types. Each record type has a fixed number of fields. And each field is of fixed length. The following are the three important record based logical models. Relational Model Network Model Hierarchical Model.
  • 12. Relational Model: A data model in which both data and their relationships are represented by means of tables is called Relational Model. The relation is the only data structure used in this model to represent both entities and their interrelationships. A relation is a two dimensional table with a unique name. Each row of a table is called a tuple and each column of a table is called an attribute. The set of all possible values in an attribute is called the domain of the attribute.
  • 13. Relational Model Example of tabular data in the relational model: name ssn street city account-number Johnson 192-83-7465 Alma Palo Alto A-101 Smith 019-28-3746 North Rye A-215 Johnson 192-83-7465 Alma Palo Alto A-201 Jones 321-12-3123 Main Harrison A-217 Smith 019-28-3746 North Rye A-201 account-number balance A-101 500 A-201 900 A-215 700 A-217 750
  • 14. Network Model: The network model uses two different structures. The data are represented by a collection of records and the relationships among data are represented by links.
  • 15. Hierarchical Model: In Hierarchical Model, data are represented by records and relationships among data are represented by links. But unlike in Network model, data are organized in an ordered tree structure, which is called Hierarchical structure.
  • 16. C. Physical Data Models: These models are used to represent data at the lowest level. Two important physical Data Models are: Unifying Model Frame Memory Model.
  • 17. DBMS Architecture Architecture is the frame work of the Database Management System. Standard database consisting of Conceptual, external and internal levels. Conceptual Level-Logical schema of database External Level-User views of database Internal Level : Physical views of database SDLC-A process for system development DDLC
  • 18. View of Data An architecture for a database system View 1 Physical level Logical level View 2 View n … View level
  • 19. Levels of Abstraction • Physical level: describes how a record (e.g. customer) is stored. • Logical level: describes data stored in database, and the relationships among the data. type customer = record name: string; street: string; city: integer; end; • View level: application programs hide details of data types. Views can also hide information (e.g. salary) for security purposes.
  • 20.
  • 21. DBMS Architecture Process Manager Admission Control Connection Mgr Query Processor Parser Query Rewrite Optimizer Executor Storage Manager Access Methods Lock Manager Buffer Manager Log Manager Shared Utilities Memory Mgr Disk Space Mgr Replication Services Admin Utilities 21
  • 22.
  • 23. Instances and Schemas • Similar to types and variables in programming languages • Schema – the logical structure of the database (e.g., set of customers and accounts and the relationship between them) • Instance – the actual content of the database at a particular point in time
  • 24. Data Independence • Ability to modify a schema definition in one level without affecting a schema definition in the other levels. • The interfaces between the various levels and components should be well defined so that changes in some parts do not seriously influence others. • Two levels of data independence – Physical data independence – Logical data independence
  • 25. Overall System Structure indices Statistical data Data files Data dictionary disk storage
  • 26. Backup, restore or delete a single data set separately by copying or removing the files for its environment. Balance the load between machines by moving the files for a single data set from one machine to another. Improve I/O performance by placing each data set on a separate physical disk. Delete individual data sets very efficiently by removing the environment's log files. This is much more efficient than deleting individual database records and is also move efficient than removing databases, and so can be a real benefit if you are managing large temporary data sets that must be frequently deleted. Database environment