SlideShare uma empresa Scribd logo
1 de 38
CS3270
DATABASE – I
Mr. Dilawar
Lecturer,
Computer Science Faculty,
Bakhtar University
Kabul, Afghanistan.
Previous Lecture Outline
• Introduction
• Traditional File-Based Systems
• Database Approach
• Roles in the Database Environment
• History of DBMS
• Advantages and Disadvantages of DBMSs
Database Environment
Chapter – 2
Chapter Outline
• The Three-Level ANSI-SPARC Architecture
• Database Languages
• Data Models and Conceptual Modeling
• Functions of DBMS
• Components of DBMS
• Multi-User DBMS Architecture
Lecture Outline
• The Three-Level ANSI-SPARC Architecture
• Database Languages
• Data Models and Conceptual Modeling
The Three-Level ANSI-SPARC Architecture
• Identifies three levels of abstraction.
• Three distinct levels at which data items can be
described.
• The three-level architecture comprising an
external, a conceptual, and an internal level as
shown in the figure.
• The way users observes the data is called external
level.
• The way DBMS and OS observes data is called the
internal level.
• Where the data is actually stored using the data
structures and file organizations.
• Conceptual level provides both the mapping and the
desired independence between external and internal
levels.
The Three-Level ANSI-SPARC Architecture
• The objective of three-level architecture is to separate each user’s view of the
database from the way the database is physically represented.
• There are several reasons why this is desirable.
• All users should be able to access same data but have a different customized view.
• A user’s view is safe to changes made in other views.
• Users should not need to know physical database storage details.
• DBA should be able to change database storage structures without affecting the users’ views.
• Internal structure of database should be unaffected by changes to physical aspects of storage
such as changeover to a new storage device.
• DBA should be able to change conceptual structure of database without affecting all users.
The Three-Level ANSI-SPARC Architecture
• External Level
• The users’ view of the database. It Describes that part of database that is
relevant to a each user.
• The external level consists of a number of different external views of the
database.
• Each user has a view of the ‘real world’ represented in a form that is familiar for that
user.
• Different views may have different representation of same data (e.g. different
date formats, age derived from DOB etc.).
The Three-Level ANSI-SPARC Architecture
• Conceptual Level
• Community view of the database. It describes what data is stored in database
and the relationships among the data.
• It is a complete view of the data requirements of the organization that is
independent of any storage considerations.
• It represents
• All entities, their attributes, and their relationships.
• The constraints on the data.
• Semantic information about the data.
• Security and integrity information.
The Three-Level ANSI-SPARC Architecture
• Internal Level
• Physical representation of the database on the computer. This level describes
how the data is stored in the database.
• It covers the physical implementation of the database to achieve optimal
runtime performance and storage space utilization.
• It covers data structures and file organizations used to store data on storage
devices.
• Interfaces with the operating system access methods to place the data on the
storage devices, build the indexes, retrieve the data, and so on.
The Three-Level ANSI-SPARC Architecture
The Three-Level ANSI-SPARC Architecture
Schemas
• The overall description of the database is called the database schema.
• There are three schemas as per three-level architecture.
• External Schema
• Conceptual Schema
• Internal Schema
The Three-Level ANSI-SPARC Architecture
• External Schemas
• Also called subschemas.
• Corresponds to different views of data.
• Multiple schemas per database.
• Conceptual Schema
• Describes all the entities, attributes, and relationships together with integrity
constraints
• Only one schema per database.
The Three-Level ANSI-SPARC Architecture
• Internal Schema
• A complete description of the internal model, containing the definitions of
stored records, the methods of representation, the data fields, and the
indexes and storage structures used.
• Only one schema per database.
The Three-Level ANSI-SPARC Architecture
Mapping
• The DBMS is responsible for mapping between these three types of
schema:
• The DBMS must check that each external schema is derivable from the
conceptual schema, and it must use the information in the conceptual
schema to map between each external schema and the internal schema.
• Types of mappings
• Conceptual/Internal mapping
• External/Conceptual mapping
The Three-Level ANSI-SPARC Architecture
• Conceptual/Internal Mapping
• Enables the DBMS to find the actual record or combination of records in
physical storage that establishes a logical record in the conceptual schema,
together with any constraints to be enforced on the operations for that logical
record.
• It also allows any differences in entity names, attribute names, attribute
order, data types, and so on, to be resolved.
• External/Conceptual Mapping
• Enables the DBMS to map names in the user’s view on to the relevant part of
the conceptual schema.
The Three-Level ANSI-SPARC Architecture
The Three-Level ANSI-SPARC Architecture
• Database Schema
• Description of database (also called intension).
• Specified during design phase.
• Remain almost static.
• Database Instance
• Data in the database at any particular point in time.
• Dynamic (changes with the time).
• Also called an extension (or state) of database.
The Three-Level ANSI-SPARC Architecture
Data Independence
• A major objective for the three-level architecture is to provide data-
independence.
• Upper levels are unaffected by changes to lower levels.
• There are two kinds of data-independence:
• Logical Data Independence
• Physical Data Independence
The Three-Level ANSI-SPARC Architecture
• Logical Data Independence
• Refers to protection of external schemas to changes in conceptual schema.
• Conceptual schema changes (e.g. addition/removal of entities).
• Should not require changes to external schema or rewrites of application
programs.
The Three-Level ANSI-SPARC Architecture
• Physical Data Independence
• Refers to immunity of conceptual schema to changes in the internal schema.
• Internal schema changes (e.g. using different file organizations, storage
structures, storage devices etc.).
• Should not require change to conceptual or external schemas.
The Three-Level ANSI-SPARC Architecture
Database Languages
• Data sublanguage consist of two parts:
• DDL (Data Definition Language)
• DML (Data Manipulation Language)
• Data sublanguage
• Does not include constructs for all computing needs such as iterations or
conditional statements, which are provided by HLL.
• Many DBMSs provide embedding the sublanguage in a high level
programming language e.g. C, C++, Java etc.
• In this case , these high level languages are called host languages.
Database Languages
• Data Definition Language
• Allows the DBA or user to describe and name entities, attributes, and
relationships required for the application
• Plus any associated integrity and security constraints.
• The result is a set of tables stored in special files collectively called the System
catalog (data dictionary, data directory).
• Metadata (data about data, data description, data definitions).
Database Languages
• Data Manipulation Language
• Provides basic data manipulation operations on data held in the database.
• Procedural DML
• Non-Procedural DML
Database Languages
• Data Manipulation Language
• Procedural DML allows user to tell system exactly how to manipulate data.
• Operate on records individually.
• Typically, embedded in a high level language.
• More work is done by user (programmer).
• Network or hierarchical DMLs.
Database Languages
• Data Manipulation Language
• Non-Procedural DML Allows user to state what data is needed rather than
how it is to be retrieved
• Operate on set of records.
• Relational DBMS include e.g. SQL, QBE etc.
• Easy to understand and learn than procedural DML.
• More work is done by DBMS than user.
• Also called declarative languages.
Database Languages
• Fourth Generation Languages
• No clear agreement
• Forms generators
• Report generators
• Graphics generators
• Application generators
• Examples : SQL and QBE
Data Models
• A set of concepts to describe the structure of a database, the
operation for manipulating these structures, and certain constraints.
• Represents the organization itself.
• To represent data in an understandable way.
• Should provide the basic concepts and notations that will allow
database designers and end-users to accurately communicate their
understanding of the organizational data.
Data Models
• A data model comprises:
• A structural part
• Consisting of a set of rules according to which
databases can be constructed.
• A manipulative part
• Operations that are allowed on the data.
• Possibly a set of integrity rules
• Which ensures that the data is accurate.
Structure Constraints
Operations
Data Model describes
Data Models
• ANSI-SPARC architecture related models
• External data model (Universe of Discourse)
• Represent each user’s view of the organization.
• Conceptual data model (DBMS independent)
• Represent the community view that is DBMS independent.
• Internal data model
• Represent the conceptual schema in such a way that it can be understood by the DBMS.
Data Models
• Categories of data models include:
• Object-based
• Entity-Relationship
• Semantic
• Functional
• Object-Oriented
• Record-based
• Relational Data Model
• Network Data Model
• Hierarchical Data Model
• Physical
Relational Systems adopt a declarative
approach to database processing (that is,
they specify what data is to be retrieved).
Network and hierarchical systems adopt a
navigational approach (that is, they
specify how the data is to be retrieved).
Data Models
• Relational Model
Data Models
• Network Model
Data Models
• Hierarchical Model
Conceptual Modeling
• Conceptual modeling is process of developing a model of information
use in an enterprise that is independent of implementation details.
• Should be complete and accurate representation of an organization’s data
requirements.
• Conceptual schema is the core of a system supporting all user views.
• Conceptual vs. logical data model
Summery
• The Three-Level ANSI-SPARC Architecture
• Database Languages
• Data Models and Conceptual Modeling
Thank You
For your Patience

Mais conteúdo relacionado

Mais procurados

Basic IMS For Applications
Basic IMS For ApplicationsBasic IMS For Applications
Basic IMS For ApplicationsDan O'Dea
 
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...Lola Burgueño
 
Parallel programming model, language and compiler in ACA.
Parallel programming model, language and compiler in ACA.Parallel programming model, language and compiler in ACA.
Parallel programming model, language and compiler in ACA.MITS Gwalior
 
Advanced computer architecture unit 5
Advanced computer architecture  unit 5Advanced computer architecture  unit 5
Advanced computer architecture unit 5Kunal Bangar
 
Cd ch1 - introduction
Cd   ch1 - introductionCd   ch1 - introduction
Cd ch1 - introductionmengistu23
 
Lec 2 (parallel design and programming)
Lec 2 (parallel design and programming)Lec 2 (parallel design and programming)
Lec 2 (parallel design and programming)Sudarshan Mondal
 
Parallel architecture-programming
Parallel architecture-programmingParallel architecture-programming
Parallel architecture-programmingShaveta Banda
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Dios Kurniawan
 
Parallel Programing Model
Parallel Programing ModelParallel Programing Model
Parallel Programing ModelAdlin Jeena
 
Top schools in noida
Top schools in noidaTop schools in noida
Top schools in noidaEdhole.com
 
Database administration and security
Database administration and securityDatabase administration and security
Database administration and securityDhani Ahmad
 
Top schools in gudgao
Top schools in gudgaoTop schools in gudgao
Top schools in gudgaoEdhole.com
 
parallel language and compiler
parallel language and compilerparallel language and compiler
parallel language and compilerVignesh Tamil
 

Mais procurados (20)

Basic IMS For Applications
Basic IMS For ApplicationsBasic IMS For Applications
Basic IMS For Applications
 
Programming in c++
Programming in c++Programming in c++
Programming in c++
 
IMS concepts
IMS concepts IMS concepts
IMS concepts
 
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...
 
Parallel programming model, language and compiler in ACA.
Parallel programming model, language and compiler in ACA.Parallel programming model, language and compiler in ACA.
Parallel programming model, language and compiler in ACA.
 
Advanced computer architecture unit 5
Advanced computer architecture  unit 5Advanced computer architecture  unit 5
Advanced computer architecture unit 5
 
8. data types
8. data types8. data types
8. data types
 
Unit 04 dbms
Unit 04 dbmsUnit 04 dbms
Unit 04 dbms
 
Cd ch1 - introduction
Cd   ch1 - introductionCd   ch1 - introduction
Cd ch1 - introduction
 
Lec 2 (parallel design and programming)
Lec 2 (parallel design and programming)Lec 2 (parallel design and programming)
Lec 2 (parallel design and programming)
 
DB2 on Mainframe
DB2 on MainframeDB2 on Mainframe
DB2 on Mainframe
 
Parallel architecture-programming
Parallel architecture-programmingParallel architecture-programming
Parallel architecture-programming
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
 
Embedded
EmbeddedEmbedded
Embedded
 
Parallel Programing Model
Parallel Programing ModelParallel Programing Model
Parallel Programing Model
 
Top schools in noida
Top schools in noidaTop schools in noida
Top schools in noida
 
Database administration and security
Database administration and securityDatabase administration and security
Database administration and security
 
Aca2 10 11
Aca2 10 11Aca2 10 11
Aca2 10 11
 
Top schools in gudgao
Top schools in gudgaoTop schools in gudgao
Top schools in gudgao
 
parallel language and compiler
parallel language and compilerparallel language and compiler
parallel language and compiler
 

Destaque

Oracle 12.2 sharded database management
Oracle 12.2 sharded database managementOracle 12.2 sharded database management
Oracle 12.2 sharded database managementLeyi (Kamus) Zhang
 
Should I move my database to the cloud?
Should I move my database to the cloud?Should I move my database to the cloud?
Should I move my database to the cloud?James Serra
 
Distributed database system
Distributed database systemDistributed database system
Distributed database systemM. Ahmad Mahmood
 
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)Beat Signer
 
Architecture of exadata database machine – Part II
Architecture of exadata database machine – Part IIArchitecture of exadata database machine – Part II
Architecture of exadata database machine – Part IIParesh Nayak,OCP®,Prince2®
 
Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)Julien SIMON
 
Multi-model database
Multi-model databaseMulti-model database
Multi-model databaseJiaheng Lu
 
What's new with Azure Sql Database
What's new with Azure Sql DatabaseWhat's new with Azure Sql Database
What's new with Azure Sql DatabaseMarco Parenzan
 
PL/CUDA - GPU Accelerated In-Database Analytics
PL/CUDA - GPU Accelerated In-Database AnalyticsPL/CUDA - GPU Accelerated In-Database Analytics
PL/CUDA - GPU Accelerated In-Database AnalyticsKohei KaiGai
 
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2Markus Flechtner
 
How to generate customized java 8 code from your database
How to generate customized java 8 code from your databaseHow to generate customized java 8 code from your database
How to generate customized java 8 code from your databaseSpeedment, Inc.
 
Functional Database Strategies at Scala Bay
Functional Database Strategies at Scala BayFunctional Database Strategies at Scala Bay
Functional Database Strategies at Scala BayJason Swartz
 
CS7330 - Electronic Commerce - lecture (3)
CS7330 - Electronic Commerce - lecture (3)CS7330 - Electronic Commerce - lecture (3)
CS7330 - Electronic Commerce - lecture (3)Dilawar Khan
 
CS7330 - Electronic Commerce - lecture (1)
CS7330 - Electronic Commerce - lecture (1)CS7330 - Electronic Commerce - lecture (1)
CS7330 - Electronic Commerce - lecture (1)Dilawar Khan
 
Oracle Database 12c Release 2
Oracle Database 12c Release 2 Oracle Database 12c Release 2
Oracle Database 12c Release 2 oraclebudb
 
06 file processing
06 file processing06 file processing
06 file processingIssay Meii
 
File org leela mdhm 21 batch aiha lecture
File org   leela mdhm 21 batch aiha lectureFile org   leela mdhm 21 batch aiha lecture
File org leela mdhm 21 batch aiha lectureBobba Leeladhar
 
EE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course OutlineEE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course OutlineDilawar Khan
 
Computer virus-and-antivirus
Computer virus-and-antivirusComputer virus-and-antivirus
Computer virus-and-antivirusVishwarajYadav
 

Destaque (20)

Oracle 12.2 sharded database management
Oracle 12.2 sharded database managementOracle 12.2 sharded database management
Oracle 12.2 sharded database management
 
Should I move my database to the cloud?
Should I move my database to the cloud?Should I move my database to the cloud?
Should I move my database to the cloud?
 
Distributed database system
Distributed database systemDistributed database system
Distributed database system
 
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
 
Architecture of exadata database machine – Part II
Architecture of exadata database machine – Part IIArchitecture of exadata database machine – Part II
Architecture of exadata database machine – Part II
 
Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)
 
Multi-model database
Multi-model databaseMulti-model database
Multi-model database
 
What's new with Azure Sql Database
What's new with Azure Sql DatabaseWhat's new with Azure Sql Database
What's new with Azure Sql Database
 
PL/CUDA - GPU Accelerated In-Database Analytics
PL/CUDA - GPU Accelerated In-Database AnalyticsPL/CUDA - GPU Accelerated In-Database Analytics
PL/CUDA - GPU Accelerated In-Database Analytics
 
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
 
How to generate customized java 8 code from your database
How to generate customized java 8 code from your databaseHow to generate customized java 8 code from your database
How to generate customized java 8 code from your database
 
Functional Database Strategies at Scala Bay
Functional Database Strategies at Scala BayFunctional Database Strategies at Scala Bay
Functional Database Strategies at Scala Bay
 
CS7330 - Electronic Commerce - lecture (3)
CS7330 - Electronic Commerce - lecture (3)CS7330 - Electronic Commerce - lecture (3)
CS7330 - Electronic Commerce - lecture (3)
 
CS7330 - Electronic Commerce - lecture (1)
CS7330 - Electronic Commerce - lecture (1)CS7330 - Electronic Commerce - lecture (1)
CS7330 - Electronic Commerce - lecture (1)
 
Oracle Database 12c Release 2
Oracle Database 12c Release 2 Oracle Database 12c Release 2
Oracle Database 12c Release 2
 
06 file processing
06 file processing06 file processing
06 file processing
 
File org leela mdhm 21 batch aiha lecture
File org   leela mdhm 21 batch aiha lectureFile org   leela mdhm 21 batch aiha lecture
File org leela mdhm 21 batch aiha lecture
 
EE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course OutlineEE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course Outline
 
Chapter iv computer virus
Chapter iv  computer virusChapter iv  computer virus
Chapter iv computer virus
 
Computer virus-and-antivirus
Computer virus-and-antivirusComputer virus-and-antivirus
Computer virus-and-antivirus
 

Semelhante a CS3270 - DATABASE SYSTEM - Lecture (2)

Module 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxModule 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxSoniaDevi15
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management SystemsSURBHI SAROHA
 
Database system concepts
Database system conceptsDatabase system concepts
Database system conceptsKumar
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2Mukund Trivedi
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notesUTSAHSINGH2
 
CST204 DBMS Module-1
CST204 DBMS Module-1CST204 DBMS Module-1
CST204 DBMS Module-1Jyothis Menon
 
01-database-management.pptx
01-database-management.pptx01-database-management.pptx
01-database-management.pptxdhanajimirajkar1
 
Utsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra
 
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMDatabase Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMmoronfolabukunmi
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdfTOUSEEQHAIDER14
 

Semelhante a CS3270 - DATABASE SYSTEM - Lecture (2) (20)

Module 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxModule 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptx
 
Unit 1 dbms
Unit 1 dbmsUnit 1 dbms
Unit 1 dbms
 
INTRODUCTION TO DATABASE
INTRODUCTION TO DATABASEINTRODUCTION TO DATABASE
INTRODUCTION TO DATABASE
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management Systems
 
Database system concepts
Database system conceptsDatabase system concepts
Database system concepts
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2
 
8028.ppt
8028.ppt8028.ppt
8028.ppt
 
Rdbms
RdbmsRdbms
Rdbms
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
 
CST204 DBMS Module-1
CST204 DBMS Module-1CST204 DBMS Module-1
CST204 DBMS Module-1
 
01-database-management.pptx
01-database-management.pptx01-database-management.pptx
01-database-management.pptx
 
Utsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnet
 
2.pptx
2.pptx2.pptx
2.pptx
 
(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)
 
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMDatabase Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
 
Ch1_Intro-95(1).ppt
Ch1_Intro-95(1).pptCh1_Intro-95(1).ppt
Ch1_Intro-95(1).ppt
 
Presentation 5 (4).pdf
Presentation 5 (4).pdfPresentation 5 (4).pdf
Presentation 5 (4).pdf
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
 
Dbms unit 1
Dbms unit 1Dbms unit 1
Dbms unit 1
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 

Último

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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.pdfAdmir Softic
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 

Último (20)

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 

CS3270 - DATABASE SYSTEM - Lecture (2)

  • 1. CS3270 DATABASE – I Mr. Dilawar Lecturer, Computer Science Faculty, Bakhtar University Kabul, Afghanistan.
  • 2. Previous Lecture Outline • Introduction • Traditional File-Based Systems • Database Approach • Roles in the Database Environment • History of DBMS • Advantages and Disadvantages of DBMSs
  • 4. Chapter Outline • The Three-Level ANSI-SPARC Architecture • Database Languages • Data Models and Conceptual Modeling • Functions of DBMS • Components of DBMS • Multi-User DBMS Architecture
  • 5. Lecture Outline • The Three-Level ANSI-SPARC Architecture • Database Languages • Data Models and Conceptual Modeling
  • 6. The Three-Level ANSI-SPARC Architecture • Identifies three levels of abstraction. • Three distinct levels at which data items can be described. • The three-level architecture comprising an external, a conceptual, and an internal level as shown in the figure. • The way users observes the data is called external level. • The way DBMS and OS observes data is called the internal level. • Where the data is actually stored using the data structures and file organizations. • Conceptual level provides both the mapping and the desired independence between external and internal levels.
  • 7. The Three-Level ANSI-SPARC Architecture • The objective of three-level architecture is to separate each user’s view of the database from the way the database is physically represented. • There are several reasons why this is desirable. • All users should be able to access same data but have a different customized view. • A user’s view is safe to changes made in other views. • Users should not need to know physical database storage details. • DBA should be able to change database storage structures without affecting the users’ views. • Internal structure of database should be unaffected by changes to physical aspects of storage such as changeover to a new storage device. • DBA should be able to change conceptual structure of database without affecting all users.
  • 8. The Three-Level ANSI-SPARC Architecture • External Level • The users’ view of the database. It Describes that part of database that is relevant to a each user. • The external level consists of a number of different external views of the database. • Each user has a view of the ‘real world’ represented in a form that is familiar for that user. • Different views may have different representation of same data (e.g. different date formats, age derived from DOB etc.).
  • 9. The Three-Level ANSI-SPARC Architecture • Conceptual Level • Community view of the database. It describes what data is stored in database and the relationships among the data. • It is a complete view of the data requirements of the organization that is independent of any storage considerations. • It represents • All entities, their attributes, and their relationships. • The constraints on the data. • Semantic information about the data. • Security and integrity information.
  • 10. The Three-Level ANSI-SPARC Architecture • Internal Level • Physical representation of the database on the computer. This level describes how the data is stored in the database. • It covers the physical implementation of the database to achieve optimal runtime performance and storage space utilization. • It covers data structures and file organizations used to store data on storage devices. • Interfaces with the operating system access methods to place the data on the storage devices, build the indexes, retrieve the data, and so on.
  • 12. The Three-Level ANSI-SPARC Architecture Schemas • The overall description of the database is called the database schema. • There are three schemas as per three-level architecture. • External Schema • Conceptual Schema • Internal Schema
  • 13. The Three-Level ANSI-SPARC Architecture • External Schemas • Also called subschemas. • Corresponds to different views of data. • Multiple schemas per database. • Conceptual Schema • Describes all the entities, attributes, and relationships together with integrity constraints • Only one schema per database.
  • 14. The Three-Level ANSI-SPARC Architecture • Internal Schema • A complete description of the internal model, containing the definitions of stored records, the methods of representation, the data fields, and the indexes and storage structures used. • Only one schema per database.
  • 15. The Three-Level ANSI-SPARC Architecture Mapping • The DBMS is responsible for mapping between these three types of schema: • The DBMS must check that each external schema is derivable from the conceptual schema, and it must use the information in the conceptual schema to map between each external schema and the internal schema. • Types of mappings • Conceptual/Internal mapping • External/Conceptual mapping
  • 16. The Three-Level ANSI-SPARC Architecture • Conceptual/Internal Mapping • Enables the DBMS to find the actual record or combination of records in physical storage that establishes a logical record in the conceptual schema, together with any constraints to be enforced on the operations for that logical record. • It also allows any differences in entity names, attribute names, attribute order, data types, and so on, to be resolved. • External/Conceptual Mapping • Enables the DBMS to map names in the user’s view on to the relevant part of the conceptual schema.
  • 18. The Three-Level ANSI-SPARC Architecture • Database Schema • Description of database (also called intension). • Specified during design phase. • Remain almost static. • Database Instance • Data in the database at any particular point in time. • Dynamic (changes with the time). • Also called an extension (or state) of database.
  • 19. The Three-Level ANSI-SPARC Architecture Data Independence • A major objective for the three-level architecture is to provide data- independence. • Upper levels are unaffected by changes to lower levels. • There are two kinds of data-independence: • Logical Data Independence • Physical Data Independence
  • 20. The Three-Level ANSI-SPARC Architecture • Logical Data Independence • Refers to protection of external schemas to changes in conceptual schema. • Conceptual schema changes (e.g. addition/removal of entities). • Should not require changes to external schema or rewrites of application programs.
  • 21. The Three-Level ANSI-SPARC Architecture • Physical Data Independence • Refers to immunity of conceptual schema to changes in the internal schema. • Internal schema changes (e.g. using different file organizations, storage structures, storage devices etc.). • Should not require change to conceptual or external schemas.
  • 23. Database Languages • Data sublanguage consist of two parts: • DDL (Data Definition Language) • DML (Data Manipulation Language) • Data sublanguage • Does not include constructs for all computing needs such as iterations or conditional statements, which are provided by HLL. • Many DBMSs provide embedding the sublanguage in a high level programming language e.g. C, C++, Java etc. • In this case , these high level languages are called host languages.
  • 24. Database Languages • Data Definition Language • Allows the DBA or user to describe and name entities, attributes, and relationships required for the application • Plus any associated integrity and security constraints. • The result is a set of tables stored in special files collectively called the System catalog (data dictionary, data directory). • Metadata (data about data, data description, data definitions).
  • 25. Database Languages • Data Manipulation Language • Provides basic data manipulation operations on data held in the database. • Procedural DML • Non-Procedural DML
  • 26. Database Languages • Data Manipulation Language • Procedural DML allows user to tell system exactly how to manipulate data. • Operate on records individually. • Typically, embedded in a high level language. • More work is done by user (programmer). • Network or hierarchical DMLs.
  • 27. Database Languages • Data Manipulation Language • Non-Procedural DML Allows user to state what data is needed rather than how it is to be retrieved • Operate on set of records. • Relational DBMS include e.g. SQL, QBE etc. • Easy to understand and learn than procedural DML. • More work is done by DBMS than user. • Also called declarative languages.
  • 28. Database Languages • Fourth Generation Languages • No clear agreement • Forms generators • Report generators • Graphics generators • Application generators • Examples : SQL and QBE
  • 29. Data Models • A set of concepts to describe the structure of a database, the operation for manipulating these structures, and certain constraints. • Represents the organization itself. • To represent data in an understandable way. • Should provide the basic concepts and notations that will allow database designers and end-users to accurately communicate their understanding of the organizational data.
  • 30. Data Models • A data model comprises: • A structural part • Consisting of a set of rules according to which databases can be constructed. • A manipulative part • Operations that are allowed on the data. • Possibly a set of integrity rules • Which ensures that the data is accurate. Structure Constraints Operations Data Model describes
  • 31. Data Models • ANSI-SPARC architecture related models • External data model (Universe of Discourse) • Represent each user’s view of the organization. • Conceptual data model (DBMS independent) • Represent the community view that is DBMS independent. • Internal data model • Represent the conceptual schema in such a way that it can be understood by the DBMS.
  • 32. Data Models • Categories of data models include: • Object-based • Entity-Relationship • Semantic • Functional • Object-Oriented • Record-based • Relational Data Model • Network Data Model • Hierarchical Data Model • Physical Relational Systems adopt a declarative approach to database processing (that is, they specify what data is to be retrieved). Network and hierarchical systems adopt a navigational approach (that is, they specify how the data is to be retrieved).
  • 36. Conceptual Modeling • Conceptual modeling is process of developing a model of information use in an enterprise that is independent of implementation details. • Should be complete and accurate representation of an organization’s data requirements. • Conceptual schema is the core of a system supporting all user views. • Conceptual vs. logical data model
  • 37. Summery • The Three-Level ANSI-SPARC Architecture • Database Languages • Data Models and Conceptual Modeling
  • 38. Thank You For your Patience

Notas do Editor

  1. An early proposal for a standard terminology and general architecture for database systems was produced in 1971 by the DBTG (Data Base Task Group) appointed by the Conference on Data Systems and Languages (CODASYL, 1971). The DBTG recognized the need for a two-level approach with a system view called the schema and user views called subschemas.
  2. Entities, attributes and relationships that are desirable to the user.
  3. The conceptual level supports each external view, in that any data available to a user must be contained in, or derivable from, the conceptual level. However, this level must not contain any storage-dependent details. Description of an entity should contain only datatypes of attributes and their lengths but not any storage consideration such as the number of bytes occupied.
  4. Below the internal level there is a physical level that may be managed by the operating system under the direction of the DBMS. The physical level below the DBMS consists of items only the operating system knows, such as exactly how the sequencing is implemented and whether the fields of internal records are stored as contiguous bytes on the disk.
  5. Mapping – charting
  6. Clearly, the users for whom the changes have been made need to be aware of them, but what is important is that other users should not be.
  7. Unambiguous – unmistakable We mentioned earlier that a schema is written using a data definition language. In fact, it is written in the data definition language of a particular DBMS. Unfortunately, this type of language is too low level to describe the data requirements of an organization in a way that is readily understandable by a variety of users. What we require is a higher-level description of the schema: that is, a data model.
  8. The purpose of a data model is to represent data and to make the data understandable. If it does this, then it can be easily used to design a database.
  9. Provide concepts that are close to the way many users identify data. A logical data model describes the data in as much detail as possible that can be implemented in a specified DBMS. Provide concepts that describes details of how data is stored in the computer. Physical data model represents how the model will be built in the database.
  10. Object-based, record-based – conceptual and external levels. Physical model describes data at the internal level. Object-based data models use concepts such as entities, attributes, and relationships. The object-oriented data model extends the definition of an entity to include not only the attributes that describe the state of the object but also the actions that are associated with the object, that is, its behavior. The object is said to encapsulate both state and behavior. In a record-based model, the database consists of a number of fixed-format records possibly of differing types. Each record type defines a fixed number of fields, each typically of a fixed length. Physical data models describe how data is stored in the computer, representing information such as record structures, record orderings, and access paths. There are not as many physical data models as logical data models, the most common ones being the unifying model and the frame memory.
  11. The relational data model is based on the concept of mathematical relations. In the relational model, data and relationships are represented as tables, each of which has a number of columns with a unique name.
  12. In the network model, data is represented as collections of records, and relationships are represented by sets. Compared with the relational model, relationships are explicitly modeled by the sets, which become pointers in the implementation. The records are organized as generalized graph structures with records appearing as nodes (also called segments) and sets as edges in the graph. Figure 2.5 illustrates an instance of a network schema for the same data set presented in Figure 2.4. The most popular network DBMS is Computer Associates’ IDMS/ R. We discuss the network data model in more detail on the Web site for this book (see Preface for the URL).
  13. The hierarchical model is a restricted type of network model. Again, data is represented as collections of records and relationships are represented by sets. However, the hierarchical model allows a node to have only one parent. A hierarchical model can be represented as a tree graph, with records appearing as nodes(also called segments) and sets as edges.
  14. The conceptual model is independent of all implementation details, whereas the logical model assumes knowledge of the underlying data model of the target DBMS. Provide concepts that are close to the way many users identify data. A logical data model describes the data in as much detail as possible that can be implemented in a specified DBMS.