SlideShare a Scribd company logo
1 of 35
6 September 2019 S M Irteza / Dr Rafi Ullah 1
Lesson 02
Database System
Architecture
6 September 2019 S M Irteza / Dr Rafi Ullah 2
3 Levels of Architecture
 Levels of abstraction of a
database
 physical level (internal – how)
 logical level (conceptual – what)
 view level (external – what part)
lower abstraction
higher abstraction
6 September 2019 S M Irteza / Dr Rafi Ullah 3
3 Levels of Architecture
The ANSISPARC architecture is divided into 3
levels
 The Internal Level
 The External Level
 The Conceptual Level
6 September 2019 S M Irteza / Dr Rafi Ullah 4
3 Levels of Architecture
External
Schema 1
External
Schema 1
External
Schema 1
Conceptual
Schema
Internal
Schema
6 September 2019 S M Irteza / Dr Rafi Ullah 5
External Level
 This is on the individual user level
 Application programmer
 End user
 The External Schema is written using the external
DDL portion of the user’s data sub-language.
6 September 2019 S M Irteza / Dr Rafi Ullah 6
External Level cont.
Sales
Management
H.R
6 September 2019 S M Irteza / Dr Rafi Ullah 7
Conceptual Schema
 A representation of the entire information content of
the database.
 e.g. DBA has this view
 All Structural details are known at this level.
 Tables, table contents.
 Table’s connections.
 Views and users.
 Constraints etc
6 September 2019 S M Irteza / Dr Rafi Ullah 8
Conceptual Schema cont.
 The conceptual schema is written using conceptual
DDL.
 Conceptual view is the total view of the database.
6 September 2019 S M Irteza / Dr Rafi Ullah 9
Internal Schema
 Also called storage view
 A description of how information is stored on physical
devices, for example:
 Hard drives
 Tape devices
 Compact disks, DVD etc. etc.
 The DBA has to know where all the information is stored
physically,i.e. addresses, IP addresses, etc.
6 September 2019 S M Irteza / Dr Rafi Ullah 10
Mapping
 Mapping defines the correspondence between the
 External mapping and conceptual mapping
 Conceptual mapping and the internal mapping
6 September 2019 S M Irteza / Dr Rafi Ullah 11
Mapping cont.
User A1 User A2 User B1 User B2 User B3
External
view B
External
view A
Conceptual view
Stored Database( Internal View)
External
Schema A
External
Schema B
Conceptualinternal
Mapping
ExternalConceptual
Mapping A
ExternalConceptual
Mapping B
Conceptual
Schema
DBMS
Schemas
and
mappings
built and
maintained
by the
Database
Admin.
(DBA)
6 September 2019 S M Irteza / Dr Rafi Ullah 12
Mapping cont.
 Conceptual/Internal Mapping
 Defines correspondence between conceptual and internal
schemas.
 Specifies how conceptual records are represented on the
internal level.
 If structure of the DB is changed
 Conceptual/internal mapping is changed accordingly
 DBA makes these changes
 Effects of such changes are isolated between the two
schemas.
6 September 2019 S M Irteza / Dr Rafi Ullah 13
Mapping cont.
 External/Conceptual Mapping
 Defines correspondence b/w external and conceptual
schemas.
 Many conceptual fields can form one external view
etc.
6 September 2019 S M Irteza / Dr Rafi Ullah 14
Instances and Schemas
 Each level is defined by a schema, which defines the
data at the corresponding level
 A logical schema defines the logical structure of the
database (set of customers and accounts and the
relationship between them)
 A physical schema defines the file formats and
locations
 A database instance refers to the actual content of
the database at a particular point in time. A
database instance must conform to the
corresponding schema
6 September 2019 S M Irteza / Dr Rafi Ullah 15
DBA
 Data Administrator DA, is the person who makes the
strategic and policy decisions regarding the DATA for
the enterprise.
 This is known as LOGICAL , or sometimes called
conceptual database design.
 DBA is the person who is responsible for the overall
control, implementation on the technical level.
6 September 2019 S M Irteza / Dr Rafi Ullah 16
DBA’s Responsibilities
 Defining the Conceptual Schema.
 Decides exactly what info is to be kept in the DB.
 Defines conceptual schema by using DDL
 Defining internal schema
 Defines physical database design.
 Creates the internal schema using internal DDL.
 Define mapping b/w the other schemas.
6 September 2019 S M Irteza / Dr Rafi Ullah 17
DBA’s Responsibilities cont.
 Liaising with Users
 Ensure users get the data they require.
 Help the users to write external schemas using
external DDL.
 Mapping for external and conceptual schemas.
 Provide consultation for certain application designs.
 Providing technical support and education.
6 September 2019 S M Irteza / Dr Rafi Ullah 18
DBA’s Responsibilities cont.
 Defining Integrity and Security Constraints
 Defining Dump And Reload Policies
 Unloading or dumping a backup of database or
database portion on backup devices.
 In case of error or damage to the database ,
reloading the database when necessary from most
recent dumps.
 Monitoring Performances and responding to change
requirements.
6 September 2019 S M Irteza / Dr Rafi Ullah 19
DBMS
 It is a software that handles all access to the
database.following things happen :
 A user issues an access request, using some
language (SQL)
 The DBMS intercepts that request and analyze it.
 The DBMS inspects external schema for that user, the
conceptual schema and the mappings etc. and the
internal schema .
 DBMS executes the necessary operations on the
stored database.
6 September 2019 S M Irteza / Dr Rafi Ullah 20
Core DBMS Functions
 Data Definition
 Must be able to accept data definitions
 Must include DDL processor or DDL compiler.
 Understand the DDL definitions.
 So it can handle the data manipulation requests etc.
6 September 2019 S M Irteza / Dr Rafi Ullah 21
Core DBMS Functions cont.
 Data Manipulation
 DBMS must have DML compile or DML processor so it
can handle requests for data
 Retrieval
 Updates
 Delete
 Add new data etc.
 DML REQUESTS have 2 categories in general
 Planned requests.
 Unplanned requests.
6 September 2019 S M Irteza / Dr Rafi Ullah 22
Core DBMS Functions cont.
 Planned Requests
 Their need is already predicted.
 DBA will probably have tuned the Physical DB design to
guarantee good performance.
 Characteristic of “applications”, i.e., issued by pre-written
applications usually
 Unplanned Requests
 An Ad Hoc query
 Its need was not predictable.
 The physical DB might not be tuned for optimum performance.
 Characteristic of “decision support”, I.e. issued by query
language processor.
6 September 2019 S M Irteza / Dr Rafi Ullah 23
Core DBMS Functions cont.
 Optimization and Execution
 DML requests both planned and unplanned are
processed by optimizer component.
 Its purpose is to find an efficient way of
implementing the request.
 Optimized requests are then executed under the
control of run time manager.
 Run-time manager might invoke some file managers
to access the physically stored data.
6 September 2019 S M Irteza / Dr Rafi Ullah 24
Core DBMS Functions cont.
 Data Security and Integrity
 Allows to define constraints.
 Monitors user requests.
 Rejects any attempt that violates the security and
integrity constraints.
 Defined by the DBA.
 They can be run on compile time or run time or some
where in the middle.
6 September 2019 S M Irteza / Dr Rafi Ullah 25
Core DBMS Functions cont.
 Data Recovery And Concurrency
 The Transaction manager, or Transaction
processing monitor(TP monitor) deals with these.
 Must enforce some recovery and concurrency control.
 Beyond the scope of this chapter.
 Discussed later.
6 September 2019 S M Irteza / Dr Rafi Ullah 26
Core DBMS Functions cont.
 Data Dictionary
 DBMS provides a data dictionary function.
 It is a database in its own right.
 Contains data about data.
 Sometimes called “metadata” or descriptors.
 For example, definitions of other objects in the
database, like schemas, mappings, raw data, various
integrity constraints, security constraints. It might
also know what program uses what part of the
database, etc.
6 September 2019 S M Irteza / Dr Rafi Ullah 27
Core DBMS Functions cont.
 Performance
 DBMS should perform all of the above mentioned
tasks with the highest efficiency.
6 September 2019 S M Irteza / Dr Rafi Ullah 28
Data Communication Manager
 Requests from remote user’s workstations might
come to the DBMS in form of communication
messages.
 Similarly, responses from the DBMS to the user
through an online application etc.
 All these are handled by the data communication
manager, which is not actually a part of DBMS itself.
6 September 2019 S M Irteza / Dr Rafi Ullah 29
Client/Server Architecture
 Database systems are considered to have two parts
 Server side (back end)
 Client side (front end)
 Server
 Server is the DBMS itself.
 Provides all the basic DBMS functions
 DDL, DML, security, integrity, etc.
6 September 2019 S M Irteza / Dr Rafi Ullah 30
Client/Server Architecture cont.
 Client
 Applications that run on top of the DBMS.
Applications
DBMS
Clients
Server
End users
Database
6 September 2019 S M Irteza / Dr Rafi Ullah 31
Distributed Processing
 Distributed Processing
 Meaning that Distinct machines can be connected
together into a communication network, e.g internet,
in such a way that single processing task can span
over several machines in the N/W.
 If machines are physically close together than such
an activity is called “Parallel Processing”.
 Communication is handled by some n/w management
software, probably some enhanced DC manager.
6 September 2019 S M Irteza / Dr Rafi Ullah 32
Distributed Processing cont.
 Example
 Client and
server running
on different
machines
Applications
DBMS
Clients machine
Server machine
End users
Database
Remote access
6 September 2019 S M Irteza / Dr Rafi Ullah 33
Distributed Processing cont
Server Machine
DB
One Server machine, Many Client
machines
Network
6 September 2019 S M Irteza / Dr Rafi Ullah 34
Distributed Processing cont
Clients
Server
Clients
Server
Clients
Server
Clients
Server Clients
Server
Network
Each machine runs both client and server.
6 September 2019 S M Irteza / Dr Rafi Ullah 35
End
END OF LESSON 02

More Related Content

What's hot

Chap 4 hardware & software
Chap 4 hardware & softwareChap 4 hardware & software
Chap 4 hardware & softwareUMaine
 
Chapter 5 data processing
Chapter 5 data processingChapter 5 data processing
Chapter 5 data processingUMaine
 
Database Administration
Database AdministrationDatabase Administration
Database AdministrationBilal Arshad
 
Database Management System users
Database Management System usersDatabase Management System users
Database Management System usersRaj vardhan
 
Characteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management SystemCharacteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management SystemCharthaGaglani
 
Lecture 10 distributed database management system
Lecture 10   distributed database management systemLecture 10   distributed database management system
Lecture 10 distributed database management systememailharmeet
 
Database administrator
Database administratorDatabase administrator
Database administratorTech_MX
 
The Databases applications in government sections
The Databases applications in government sectionsThe Databases applications in government sections
The Databases applications in government sectionsMonzer Osama Alchikh WARAK
 
Distributed database management system
Distributed database management systemDistributed database management system
Distributed database management systemVinay D. Patel
 
Dbms and it infrastructure
Dbms and  it infrastructureDbms and  it infrastructure
Dbms and it infrastructureprojectandppt
 
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1Raj vardhan
 
Single User v/s Multi User Databases
Single User v/s Multi User DatabasesSingle User v/s Multi User Databases
Single User v/s Multi User DatabasesRaminder Pal Singh
 
Lecture 09 dblc centralized vs decentralized design
Lecture 09   dblc centralized vs decentralized designLecture 09   dblc centralized vs decentralized design
Lecture 09 dblc centralized vs decentralized designemailharmeet
 
Database Administrator - Job Scope
Database Administrator - Job ScopeDatabase Administrator - Job Scope
Database Administrator - Job ScopeCacheWorks©
 

What's hot (20)

Chap 4 hardware & software
Chap 4 hardware & softwareChap 4 hardware & software
Chap 4 hardware & software
 
Chapter 5 data processing
Chapter 5 data processingChapter 5 data processing
Chapter 5 data processing
 
Database Administration
Database AdministrationDatabase Administration
Database Administration
 
Database Management System users
Database Management System usersDatabase Management System users
Database Management System users
 
Characteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management SystemCharacteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management System
 
Lecture 10 distributed database management system
Lecture 10   distributed database management systemLecture 10   distributed database management system
Lecture 10 distributed database management system
 
Database administrator
Database administratorDatabase administrator
Database administrator
 
Dba
DbaDba
Dba
 
Database Life Cycle
Database Life CycleDatabase Life Cycle
Database Life Cycle
 
The Databases applications in government sections
The Databases applications in government sectionsThe Databases applications in government sections
The Databases applications in government sections
 
Distributed database management system
Distributed database management systemDistributed database management system
Distributed database management system
 
Harsh
HarshHarsh
Harsh
 
Data administration
Data administrationData administration
Data administration
 
DBA
DBADBA
DBA
 
Dbms and it infrastructure
Dbms and  it infrastructureDbms and  it infrastructure
Dbms and it infrastructure
 
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
 
Single User v/s Multi User Databases
Single User v/s Multi User DatabasesSingle User v/s Multi User Databases
Single User v/s Multi User Databases
 
Lecture 09 dblc centralized vs decentralized design
Lecture 09   dblc centralized vs decentralized designLecture 09   dblc centralized vs decentralized design
Lecture 09 dblc centralized vs decentralized design
 
Ch1
Ch1Ch1
Ch1
 
Database Administrator - Job Scope
Database Administrator - Job ScopeDatabase Administrator - Job Scope
Database Administrator - Job Scope
 

Similar to Lesson02 database system architecture

File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbmsRituBhargava7
 
Presentation data base(1) (18).pptx
Presentation data base(1) (18).pptxPresentation data base(1) (18).pptx
Presentation data base(1) (18).pptxMohammad Adnan
 
INTRODUCTION TO DATABASE
INTRODUCTION TO DATABASEINTRODUCTION TO DATABASE
INTRODUCTION TO DATABASECS_GDRCST
 
Database Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkkDatabase Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkksandhyakiran10
 
Chapter2databaseenvironment 120307033742-phpapp01
Chapter2databaseenvironment 120307033742-phpapp01Chapter2databaseenvironment 120307033742-phpapp01
Chapter2databaseenvironment 120307033742-phpapp01Ankit Dubey
 
Database Management System ( Dbms )
Database Management System ( Dbms )Database Management System ( Dbms )
Database Management System ( Dbms )Kimberly Brooks
 
Fundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and ArchitectureFundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and ArchitectureMustafa Kamel Mohammadi
 
Database User and Administrator
Database User and AdministratorDatabase User and Administrator
Database User and AdministratorA. S. M. Shafi
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptLisaMalar
 

Similar to Lesson02 database system architecture (20)

File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbms
 
Lec01
Lec01Lec01
Lec01
 
Database System Concepts
Database System ConceptsDatabase System Concepts
Database System Concepts
 
DBMS Part1.pptx
DBMS Part1.pptxDBMS Part1.pptx
DBMS Part1.pptx
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
RDBMS-b2_geetanjali.pptx
RDBMS-b2_geetanjali.pptxRDBMS-b2_geetanjali.pptx
RDBMS-b2_geetanjali.pptx
 
Presentation data base(1) (18).pptx
Presentation data base(1) (18).pptxPresentation data base(1) (18).pptx
Presentation data base(1) (18).pptx
 
INTRODUCTION TO DATABASE
INTRODUCTION TO DATABASEINTRODUCTION TO DATABASE
INTRODUCTION TO DATABASE
 
Database Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkkDatabase Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkk
 
Dbms
DbmsDbms
Dbms
 
Dbms
DbmsDbms
Dbms
 
Chapter2databaseenvironment 120307033742-phpapp01
Chapter2databaseenvironment 120307033742-phpapp01Chapter2databaseenvironment 120307033742-phpapp01
Chapter2databaseenvironment 120307033742-phpapp01
 
Database Management System ( Dbms )
Database Management System ( Dbms )Database Management System ( Dbms )
Database Management System ( Dbms )
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
1.introduction qb
1.introduction qb1.introduction qb
1.introduction qb
 
Dbms models
Dbms modelsDbms models
Dbms models
 
Fundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and ArchitectureFundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and Architecture
 
Project report
Project reportProject report
Project report
 
Database User and Administrator
Database User and AdministratorDatabase User and Administrator
Database User and Administrator
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.ppt
 

More from Muhammad Sikandar Mustafa (18)

What is organizational behavior
What is organizational behaviorWhat is organizational behavior
What is organizational behavior
 
11. estimation-1
11. estimation-111. estimation-1
11. estimation-1
 
9. risk-management
9. risk-management9. risk-management
9. risk-management
 
8. project-management
8. project-management8. project-management
8. project-management
 
7. requirement-engineering
7. requirement-engineering7. requirement-engineering
7. requirement-engineering
 
6. software requirements
6. software requirements6. software requirements
6. software requirements
 
software process
software process software process
software process
 
software myths
software mythssoftware myths
software myths
 
software characteristics
software characteristicssoftware characteristics
software characteristics
 
overview introduction to Software Engineering
overview introduction to Software Engineeringoverview introduction to Software Engineering
overview introduction to Software Engineering
 
5. software process model
5. software process model5. software process model
5. software process model
 
Lesson05 relational languages sql
Lesson05 relational languages sqlLesson05 relational languages sql
Lesson05 relational languages sql
 
Lesson03 the relational model
Lesson03 the relational modelLesson03 the relational model
Lesson03 the relational model
 
Lesson10 Database security
Lesson10 Database security Lesson10 Database security
Lesson10 Database security
 
Lesson08 tm recovery
Lesson08 tm recoveryLesson08 tm recovery
Lesson08 tm recovery
 
Lesson07 e r modelling
Lesson07 e r modellingLesson07 e r modelling
Lesson07 e r modelling
 
Lesson06 database design
Lesson06 database designLesson06 database design
Lesson06 database design
 
Advanced procedures in assembly language Full chapter ppt
Advanced procedures in assembly language Full chapter pptAdvanced procedures in assembly language Full chapter ppt
Advanced procedures in assembly language Full chapter ppt
 

Recently uploaded

Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 

Recently uploaded (20)

Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 

Lesson02 database system architecture

  • 1. 6 September 2019 S M Irteza / Dr Rafi Ullah 1 Lesson 02 Database System Architecture
  • 2. 6 September 2019 S M Irteza / Dr Rafi Ullah 2 3 Levels of Architecture  Levels of abstraction of a database  physical level (internal – how)  logical level (conceptual – what)  view level (external – what part) lower abstraction higher abstraction
  • 3. 6 September 2019 S M Irteza / Dr Rafi Ullah 3 3 Levels of Architecture The ANSISPARC architecture is divided into 3 levels  The Internal Level  The External Level  The Conceptual Level
  • 4. 6 September 2019 S M Irteza / Dr Rafi Ullah 4 3 Levels of Architecture External Schema 1 External Schema 1 External Schema 1 Conceptual Schema Internal Schema
  • 5. 6 September 2019 S M Irteza / Dr Rafi Ullah 5 External Level  This is on the individual user level  Application programmer  End user  The External Schema is written using the external DDL portion of the user’s data sub-language.
  • 6. 6 September 2019 S M Irteza / Dr Rafi Ullah 6 External Level cont. Sales Management H.R
  • 7. 6 September 2019 S M Irteza / Dr Rafi Ullah 7 Conceptual Schema  A representation of the entire information content of the database.  e.g. DBA has this view  All Structural details are known at this level.  Tables, table contents.  Table’s connections.  Views and users.  Constraints etc
  • 8. 6 September 2019 S M Irteza / Dr Rafi Ullah 8 Conceptual Schema cont.  The conceptual schema is written using conceptual DDL.  Conceptual view is the total view of the database.
  • 9. 6 September 2019 S M Irteza / Dr Rafi Ullah 9 Internal Schema  Also called storage view  A description of how information is stored on physical devices, for example:  Hard drives  Tape devices  Compact disks, DVD etc. etc.  The DBA has to know where all the information is stored physically,i.e. addresses, IP addresses, etc.
  • 10. 6 September 2019 S M Irteza / Dr Rafi Ullah 10 Mapping  Mapping defines the correspondence between the  External mapping and conceptual mapping  Conceptual mapping and the internal mapping
  • 11. 6 September 2019 S M Irteza / Dr Rafi Ullah 11 Mapping cont. User A1 User A2 User B1 User B2 User B3 External view B External view A Conceptual view Stored Database( Internal View) External Schema A External Schema B Conceptualinternal Mapping ExternalConceptual Mapping A ExternalConceptual Mapping B Conceptual Schema DBMS Schemas and mappings built and maintained by the Database Admin. (DBA)
  • 12. 6 September 2019 S M Irteza / Dr Rafi Ullah 12 Mapping cont.  Conceptual/Internal Mapping  Defines correspondence between conceptual and internal schemas.  Specifies how conceptual records are represented on the internal level.  If structure of the DB is changed  Conceptual/internal mapping is changed accordingly  DBA makes these changes  Effects of such changes are isolated between the two schemas.
  • 13. 6 September 2019 S M Irteza / Dr Rafi Ullah 13 Mapping cont.  External/Conceptual Mapping  Defines correspondence b/w external and conceptual schemas.  Many conceptual fields can form one external view etc.
  • 14. 6 September 2019 S M Irteza / Dr Rafi Ullah 14 Instances and Schemas  Each level is defined by a schema, which defines the data at the corresponding level  A logical schema defines the logical structure of the database (set of customers and accounts and the relationship between them)  A physical schema defines the file formats and locations  A database instance refers to the actual content of the database at a particular point in time. A database instance must conform to the corresponding schema
  • 15. 6 September 2019 S M Irteza / Dr Rafi Ullah 15 DBA  Data Administrator DA, is the person who makes the strategic and policy decisions regarding the DATA for the enterprise.  This is known as LOGICAL , or sometimes called conceptual database design.  DBA is the person who is responsible for the overall control, implementation on the technical level.
  • 16. 6 September 2019 S M Irteza / Dr Rafi Ullah 16 DBA’s Responsibilities  Defining the Conceptual Schema.  Decides exactly what info is to be kept in the DB.  Defines conceptual schema by using DDL  Defining internal schema  Defines physical database design.  Creates the internal schema using internal DDL.  Define mapping b/w the other schemas.
  • 17. 6 September 2019 S M Irteza / Dr Rafi Ullah 17 DBA’s Responsibilities cont.  Liaising with Users  Ensure users get the data they require.  Help the users to write external schemas using external DDL.  Mapping for external and conceptual schemas.  Provide consultation for certain application designs.  Providing technical support and education.
  • 18. 6 September 2019 S M Irteza / Dr Rafi Ullah 18 DBA’s Responsibilities cont.  Defining Integrity and Security Constraints  Defining Dump And Reload Policies  Unloading or dumping a backup of database or database portion on backup devices.  In case of error or damage to the database , reloading the database when necessary from most recent dumps.  Monitoring Performances and responding to change requirements.
  • 19. 6 September 2019 S M Irteza / Dr Rafi Ullah 19 DBMS  It is a software that handles all access to the database.following things happen :  A user issues an access request, using some language (SQL)  The DBMS intercepts that request and analyze it.  The DBMS inspects external schema for that user, the conceptual schema and the mappings etc. and the internal schema .  DBMS executes the necessary operations on the stored database.
  • 20. 6 September 2019 S M Irteza / Dr Rafi Ullah 20 Core DBMS Functions  Data Definition  Must be able to accept data definitions  Must include DDL processor or DDL compiler.  Understand the DDL definitions.  So it can handle the data manipulation requests etc.
  • 21. 6 September 2019 S M Irteza / Dr Rafi Ullah 21 Core DBMS Functions cont.  Data Manipulation  DBMS must have DML compile or DML processor so it can handle requests for data  Retrieval  Updates  Delete  Add new data etc.  DML REQUESTS have 2 categories in general  Planned requests.  Unplanned requests.
  • 22. 6 September 2019 S M Irteza / Dr Rafi Ullah 22 Core DBMS Functions cont.  Planned Requests  Their need is already predicted.  DBA will probably have tuned the Physical DB design to guarantee good performance.  Characteristic of “applications”, i.e., issued by pre-written applications usually  Unplanned Requests  An Ad Hoc query  Its need was not predictable.  The physical DB might not be tuned for optimum performance.  Characteristic of “decision support”, I.e. issued by query language processor.
  • 23. 6 September 2019 S M Irteza / Dr Rafi Ullah 23 Core DBMS Functions cont.  Optimization and Execution  DML requests both planned and unplanned are processed by optimizer component.  Its purpose is to find an efficient way of implementing the request.  Optimized requests are then executed under the control of run time manager.  Run-time manager might invoke some file managers to access the physically stored data.
  • 24. 6 September 2019 S M Irteza / Dr Rafi Ullah 24 Core DBMS Functions cont.  Data Security and Integrity  Allows to define constraints.  Monitors user requests.  Rejects any attempt that violates the security and integrity constraints.  Defined by the DBA.  They can be run on compile time or run time or some where in the middle.
  • 25. 6 September 2019 S M Irteza / Dr Rafi Ullah 25 Core DBMS Functions cont.  Data Recovery And Concurrency  The Transaction manager, or Transaction processing monitor(TP monitor) deals with these.  Must enforce some recovery and concurrency control.  Beyond the scope of this chapter.  Discussed later.
  • 26. 6 September 2019 S M Irteza / Dr Rafi Ullah 26 Core DBMS Functions cont.  Data Dictionary  DBMS provides a data dictionary function.  It is a database in its own right.  Contains data about data.  Sometimes called “metadata” or descriptors.  For example, definitions of other objects in the database, like schemas, mappings, raw data, various integrity constraints, security constraints. It might also know what program uses what part of the database, etc.
  • 27. 6 September 2019 S M Irteza / Dr Rafi Ullah 27 Core DBMS Functions cont.  Performance  DBMS should perform all of the above mentioned tasks with the highest efficiency.
  • 28. 6 September 2019 S M Irteza / Dr Rafi Ullah 28 Data Communication Manager  Requests from remote user’s workstations might come to the DBMS in form of communication messages.  Similarly, responses from the DBMS to the user through an online application etc.  All these are handled by the data communication manager, which is not actually a part of DBMS itself.
  • 29. 6 September 2019 S M Irteza / Dr Rafi Ullah 29 Client/Server Architecture  Database systems are considered to have two parts  Server side (back end)  Client side (front end)  Server  Server is the DBMS itself.  Provides all the basic DBMS functions  DDL, DML, security, integrity, etc.
  • 30. 6 September 2019 S M Irteza / Dr Rafi Ullah 30 Client/Server Architecture cont.  Client  Applications that run on top of the DBMS. Applications DBMS Clients Server End users Database
  • 31. 6 September 2019 S M Irteza / Dr Rafi Ullah 31 Distributed Processing  Distributed Processing  Meaning that Distinct machines can be connected together into a communication network, e.g internet, in such a way that single processing task can span over several machines in the N/W.  If machines are physically close together than such an activity is called “Parallel Processing”.  Communication is handled by some n/w management software, probably some enhanced DC manager.
  • 32. 6 September 2019 S M Irteza / Dr Rafi Ullah 32 Distributed Processing cont.  Example  Client and server running on different machines Applications DBMS Clients machine Server machine End users Database Remote access
  • 33. 6 September 2019 S M Irteza / Dr Rafi Ullah 33 Distributed Processing cont Server Machine DB One Server machine, Many Client machines Network
  • 34. 6 September 2019 S M Irteza / Dr Rafi Ullah 34 Distributed Processing cont Clients Server Clients Server Clients Server Clients Server Clients Server Network Each machine runs both client and server.
  • 35. 6 September 2019 S M Irteza / Dr Rafi Ullah 35 End END OF LESSON 02

Editor's Notes

  1. Syed M Irteza