26/01/20
1
Prof P Sreenivasa Kumar
Department of CS&E, IITM
1
Database Systems
Introduction
Dr P Sreenivasa Kumar
Professor
CS&E Department
I I T Madras
Prof P Sreenivasa Kumar
Department of CS&E, IITM
2
Introduction
What is a Database?
A collection of related pieces of data:
§ Representing/capturing the information about a real-world
enterprise or part of an enterprise.
§ Collected and maintained to serve specific data management
needs of the enterprise.
§ Activities of the enterprise are supported by the database and
continually update the database.
Prof P Sreenivasa Kumar
Department of CS&E, IITM
3
University Database:
Data about students, faculty, courses, research-
laboratories, course registration/enrollment etc.
Reflects the state of affairs of the academic aspects of the
university.
Purpose: To keep an accurate track of the academic
activities of the university.
An Example
26/01/20
2
Prof P Sreenivasa Kumar
Department of CS&E, IITM
4
Database Management System (DBMS)
A general purpose software system enabling:
§ Creation of large disk-resident databases.
§ Posing of data retrieval queries in a standard manner.
§ Retrieval of query results efficiently.
§ Concurrent use of the system by a large number of users
in a consistent manner.
§ Guaranteed availability of data irrespective of system failures.
Prof P Sreenivasa Kumar
Department of CS&E, IITM
5
OS File System Storage Based Approach
• Files of records – used for data storage
• data redundancy – wastage of space
• maintaining consistency becomes difficult
• Record structures – hard coded into the programs
• structure modifications – hard to perform
• Each different data access request (a query)
• performed by a separate program
• difficult to anticipate all such requests
• Creating the system
• requires a lot of effort
• Managing concurrent access and failure recovery are difficult
Prof P Sreenivasa Kumar
Department of CS&E, IITM
6
DBMS Approach
DBMS
• separation of data and metadata
• flexibility of changing metadata
• program-data independence
Data access language
• standardized – SQL
• ad-hoc query formulation – easy
System development
• less effort required
• concentration on logical level design is enough
• components to organize data storage
process queries, manage concurrent access,
recovery from failures, manage access control
are all available
26/01/20
3
Prof P Sreenivasa Kumar
Department of CS&E, IITM
7
Collection of conceptual tools to describe the database at a
certain level of abstraction.
§ Conceptual Data Model
§ a high level description
§ useful for requirements understanding.
§ Representational Data Model
§ describing the logical representation of data
without giving details of physical representation.
§ Physical Data Model
§ description giving details about record formats,
file structures etc.
Data Model
Prof P Sreenivasa Kumar
Department of CS&E, IITM
8
§ A conceptual level data model.
§ Provides the concepts of entities, relationships and attributes.
The University Database Context
Entities: student, faculty member, course, departments etc.
Relationships: enrollment relationship between student & course,
employment relationship between faculty
member, department etc.
Attributes: name, rollNumber, address etc., of student entity,
name, empNumber, phoneNumber etc., of faculty
entity etc.
More details will be given in the E/R Model Module.
E/R (Entity/Relationship) Model
Prof P Sreenivasa Kumar
Department of CS&E, IITM
9
Representational Level Data Model
Relational Model : Provides the concept of a relation.
In the context of university database:
Relation scheme: Attribute names of the relation.
Relation data/instance: set of data tuples.
More details will be given in Relational Data Model Module.
SName RollNumber JoiningYear BirthDate Program Dept
Sriram CS04B123 2004 15Aug1982 BTech CS
….
….
….
….
….
….
Data
tuple
student
Relation name
Attributes
26/01/20
4
Prof P Sreenivasa Kumar
Department of CS&E, IITM
10
Data versus Schema or Meta-Data
§ DBMS is generic in nature
§ not tied to a single database
§ capable of managing several databases at a time
§ Data and schema are stored separately.
§ In RDBMS context:
Schema – table names, attribute names with their data
types for each table and constraints etc.
§ Database definition – setting up the skeleton structure
§ Database Loading/populating – storing data
Prof P Sreenivasa Kumar
Department of CS&E, IITM
11
Abstraction Levels in a DBMS: Three-Schema Architecture
V1 V3 Vm
R1 R2 Rn
F1 F2 Fp
V2
VL ⇔ LL mapping
LL ⇔ PL mapping
View Level(VL)
scheme
Set of views
Set of relations
…
…
…
Logical Level(LL)
scheme
Physical Level(PL)
Scheme
Data: set
of files/index files
PDI
LDI
Prof P Sreenivasa Kumar
Department of CS&E, IITM
12
View Level Schema
Each view describes an aspect of the database relevant to a
particular group of users.
For instance, in the context of a library database:
§ Books Purchase Section
§ Issue/Returns Management Section
§ Users Management Section
Each section views/uses a portion of the entire data.
Views can be set up for each section of users.
Three-schema Architecture(1/2)
26/01/20
5
Prof P Sreenivasa Kumar
Department of CS&E, IITM
13
Logical Level Schema
§ Describes the logical structure of the entire database.
§ No physical level details are given.
Physical Level Schema
§ Describes the physical structure of data in terms of
record formats, file structures, indexes etc.
Remarks
• Views are optional
- Can be set up if the DB system is very large and if
easily identifiable user-groups exist
• The logical scheme is essential
• Modern RDBMS’s hide details of the physical layer
Three-schema Architecture(2/2)
Prof P Sreenivasa Kumar
Department of CS&E, IITM
14
The ability to modify physical level schema without
affecting the logical or view level schema.
Performance tuning – modification at physical level
creating a new index etc.
Physical Data Independence – modification is localized
§ achieved by suitably modifying PL-LL mapping.
§ a very important feature of modern DBMS.
Physical Data Independence
Three Schema Arch
Three Schema Arch
Prof P Sreenivasa Kumar
Department of CS&E, IITM
15
Logical Data Independence
The ability to change the logical level scheme without affecting the
view level schemes or application programs
Adding a new attribute to some relation
• no need to change the programs or views that don’t
require to use the new attribute
Deleting an attribute
• no need to change the programs or views that use
the remaining data
• view definitions in VL-LL mapping only need to be
changed for views that use the deleted attribute
Three-schema Architecture
26/01/20
6
Prof P Sreenivasa Kumar
Department of CS&E, IITM
16
Development Process of a Database System (1/2)
Step 1. Requirements collection
§ Data model requirements
§ various pieces of data to be stored and the
interrelationships.
§ presented using a conceptual data model such as E/R
model.
§ Functional requirements
§ various operations that need to be performed as part of
running the enterprise.
§ acquiring a new book, enrolling a new user,
issuing a book to the user, recording the return of a book etc.
Prof P Sreenivasa Kumar
Department of CS&E, IITM
17
Step 2. Convert the data model into a representational level model
§ typically relational data model.
§ choose an RDBMS system and create the database.
Step 3. Convert the functional requirements into
application programs
§ programs in a high-level language that use embedded
SQL to interact with the database and carry out the
required tasks.
Development process of a database system (2/2)
Prof P Sreenivasa Kumar
Department of CS&E, IITM
18
Architecture of an RDBMS system
Compiled
Appln pgms
Appln
Pgm
compiler
Query
compiler
DDL and
other
command
processor
Query
optimizer
RDBMS
Run
Time
System
Trans
Manager
Buffer
Manager
Recovery
Manager
Meta-
data
Data
Log
Disk
Storage
DDL
Commands
Control
Commands
(DBA)
Ad-hoc
queries
(Analyst)
GUI/parameter
values
Application
programs
26/01/20
7
Prof P Sreenivasa Kumar
Department of CS&E, IITM
19
Architecture Details (1/3)
Disk Storage:
Meta-data / schema
– table definitions, view definitions, mappings
Data – relation instances, index structures
statistics about data
Log – record of database update operations
essential for failure recovery
DDL and other SQL command processor:
(DDL – Data definition language part of SQL)
Commands for relation scheme creation,
constraints setting etc
Commands for handling authorization and data access control
Prof P Sreenivasa Kumar
Department of CS&E, IITM
20
Architecture Details (2/3)
Query compiler
SQL adhoc queries
Compiles
update / delete commands
Query optimizers
Selects a near optimal plan for executing a query
- relation properties and index structures are utilized
Application Program Compiler
Preprocess to separate embedded SQL commands
Use host language compiler to compile rest of the program
Integrate the compiled program with the libraries for
SQL commands supplied by RDBMS
Prof P Sreenivasa Kumar
Department of CS&E, IITM
21
Architecture Details (3/3)
RDBMS Run Time System:
Executes Compiled queries, Compiled application programs
Interacts with Transaction Manager, Buffer Manager
Transaction Manager:
Keeps track of start, end of each transaction
Enforces concurrency control protocols
Buffer Manager:
Manages disk space
Implements paging mechanism
Recovery Manager:
Takes control as restart after a failure
Brings the system to a consistent state before it can be resumed
26/01/20
8
Prof P Sreenivasa Kumar
Department of CS&E, IITM
22
Roles for people in an Info System Management (1/2)
Naive users / Data entry operators
• Use the GUI provided by an application program
• Feed-in the data and invoke an operation
- e.g., person at the train reservation counter,
person at library issue / return counter
• No deep knowledge of the IS required
Application Programmers
• Embed SQL in a high-level language and develop programs
to handle functional requirements of an IS
• Should thoroughly understand the logical schema or relevant
views
• Meticulous testing of programs - necessary
Prof P Sreenivasa Kumar
Department of CS&E, IITM
23
Roles for people in an Info System management (2/2)
Sophisticated user / data analyst:
Uses SQL to generate answers for complex queries
DBA (Database Administrator)
Designing the logical scheme
Creating the structure of the entire database
Monitor usage and create necessary index structures to speed
up query execution
Grant / Revoke data access permissions to other users etc.
Prof P Sreenivasa Kumar
Department of CS&E, IITM
24
Text Books
§ Ramez Elmasri and Shamkant B Navathe,
Fundamentals of Database Systems, 6th Edition,
Addison Wesley, 2011.
§ Raghu Ramakrishnan and Johannes Gehrke, Database
Management Systems, 3rd Edition, McGraw Hill, 2003.
§ A Silberschatz, H F Korth and S Sudarshan, Database
System Concepts, 6th Edition, 2013.
§ H Garcia-Molina, J D Ullman, and Jennifer Widom,
Database Systems - The Complete Book, Pearson
Education, 2002.

More Related Content

PDF
Unit 1: Introduction to DBMS Unit 1 Complete
PDF
1 introduction
PPTX
Introduction to Database Management Systems (DBMS)
PDF
database introductoin optimization1-app6891.pdf
PPTX
Introduction to Database
PPT
data base
PPT
Database system concepts
PPTX
Database Management Systems require to store
Unit 1: Introduction to DBMS Unit 1 Complete
1 introduction
Introduction to Database Management Systems (DBMS)
database introductoin optimization1-app6891.pdf
Introduction to Database
data base
Database system concepts
Database Management Systems require to store

Similar to Week-1-HandOut-M1-Intro.pdfgrerergreggrgege (20)

PPTX
introduction to database system concepts
PDF
Database Management system, database architecture unikkkkkkkkkkkkkkk
PDF
M.sc. engg (ict) admission guide database management system 4
PPTX
PPT
DBMS - Introduction
PPT
Ch1- Introduction to dbms
PPTX
Module 1 - Chapter 2.pptx
PPTX
Chp-1.pptx
PPTX
dbms unit-1
PPTX
Database Management System, Lecture-1
PDF
Data Base Management System series part-1.pdf
PPTX
DIGITAL CONTENT for the help of students.pptx
PPTX
01.-Introduction-to-databases and relational db
PPTX
DATABASE MANAGEMENT SYSTEMS CS 3492.pptx
PPT
chapter 3Introduction to Database System.ppt
PPTX
DATABASE MANAGEMENT SYSTEMS PPT .pptx
PPTX
DBMS-Unit-1.pptx
PPTX
data base management sysytem a new apprach .pptx
PPT
Chap gshsiiajsbbJAIOAJB68292uhsbiw8622.ppt
PPT
This discussion about the dbms introduction
introduction to database system concepts
Database Management system, database architecture unikkkkkkkkkkkkkkk
M.sc. engg (ict) admission guide database management system 4
DBMS - Introduction
Ch1- Introduction to dbms
Module 1 - Chapter 2.pptx
Chp-1.pptx
dbms unit-1
Database Management System, Lecture-1
Data Base Management System series part-1.pdf
DIGITAL CONTENT for the help of students.pptx
01.-Introduction-to-databases and relational db
DATABASE MANAGEMENT SYSTEMS CS 3492.pptx
chapter 3Introduction to Database System.ppt
DATABASE MANAGEMENT SYSTEMS PPT .pptx
DBMS-Unit-1.pptx
data base management sysytem a new apprach .pptx
Chap gshsiiajsbbJAIOAJB68292uhsbiw8622.ppt
This discussion about the dbms introduction
Ad

More from NetajiGandi1 (13)

PPTX
MAPREDUCE (1).pptx dfsdsdfgf gdfgdffgdfgdfgdfgdfggdfgdfgdfgdfgdfgdfgg
PPTX
SRP project bjdfsdfbkdfdfdjbfb fjjfhdkfhfkh hfdfkh
PPTX
presentationfdsffdsfsdfsfdfsfsdddsfdsd.pptx
PPTX
DOMAINS_ggdsgdsdsgdgdsggdssddsdsgdsgdsg.pptx
PPTX
javascript-events_zdgdsggdgdgdsggdgdgd.pptx
PPTX
basic_cluster_analysisasdvhdvasdhvsvasdvhadva.pptx
PPTX
learning_analytics_tools_NPTEL_toooo.pptx
PPT
XML stands for EXtensible Markup Language
PDF
9_Maths_SEM-1_Textbook ___________________________________
PPTX
html -Hyper Text Markup Languagejjjjjjjjjjjjjjjjjjjjjjjjj
PPT
Web Technology Basics of JavaScript jntuk
PPTX
BDA R20 21NM - Summary Big Data Analytics
PDF
brocher_vignan_hjvv nbvnbv ghfhgfhgfhgfhgf
MAPREDUCE (1).pptx dfsdsdfgf gdfgdffgdfgdfgdfgdfggdfgdfgdfgdfgdfgdfgg
SRP project bjdfsdfbkdfdfdjbfb fjjfhdkfhfkh hfdfkh
presentationfdsffdsfsdfsfdfsfsdddsfdsd.pptx
DOMAINS_ggdsgdsdsgdgdsggdssddsdsgdsgdsg.pptx
javascript-events_zdgdsggdgdgdsggdgdgd.pptx
basic_cluster_analysisasdvhdvasdhvsvasdvhadva.pptx
learning_analytics_tools_NPTEL_toooo.pptx
XML stands for EXtensible Markup Language
9_Maths_SEM-1_Textbook ___________________________________
html -Hyper Text Markup Languagejjjjjjjjjjjjjjjjjjjjjjjjj
Web Technology Basics of JavaScript jntuk
BDA R20 21NM - Summary Big Data Analytics
brocher_vignan_hjvv nbvnbv ghfhgfhgfhgfhgf
Ad

Recently uploaded (20)

PDF
Soil Improvement Techniques Note - Rabbi
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
PDF
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
737-MAX_SRG.pdf student reference guides
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PPTX
CyberSecurity Mobile and Wireless Devices
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PDF
Design Guidelines and solutions for Plastics parts
PPTX
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
August -2025_Top10 Read_Articles_ijait.pdf
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PPTX
communication and presentation skills 01
Soil Improvement Techniques Note - Rabbi
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Categorization of Factors Affecting Classification Algorithms Selection
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
"Array and Linked List in Data Structures with Types, Operations, Implementat...
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
737-MAX_SRG.pdf student reference guides
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
CyberSecurity Mobile and Wireless Devices
III.4.1.2_The_Space_Environment.p pdffdf
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Design Guidelines and solutions for Plastics parts
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
Exploratory_Data_Analysis_Fundamentals.pdf
August -2025_Top10 Read_Articles_ijait.pdf
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
communication and presentation skills 01

Week-1-HandOut-M1-Intro.pdfgrerergreggrgege

  • 1. 26/01/20 1 Prof P Sreenivasa Kumar Department of CS&E, IITM 1 Database Systems Introduction Dr P Sreenivasa Kumar Professor CS&E Department I I T Madras Prof P Sreenivasa Kumar Department of CS&E, IITM 2 Introduction What is a Database? A collection of related pieces of data: § Representing/capturing the information about a real-world enterprise or part of an enterprise. § Collected and maintained to serve specific data management needs of the enterprise. § Activities of the enterprise are supported by the database and continually update the database. Prof P Sreenivasa Kumar Department of CS&E, IITM 3 University Database: Data about students, faculty, courses, research- laboratories, course registration/enrollment etc. Reflects the state of affairs of the academic aspects of the university. Purpose: To keep an accurate track of the academic activities of the university. An Example
  • 2. 26/01/20 2 Prof P Sreenivasa Kumar Department of CS&E, IITM 4 Database Management System (DBMS) A general purpose software system enabling: § Creation of large disk-resident databases. § Posing of data retrieval queries in a standard manner. § Retrieval of query results efficiently. § Concurrent use of the system by a large number of users in a consistent manner. § Guaranteed availability of data irrespective of system failures. Prof P Sreenivasa Kumar Department of CS&E, IITM 5 OS File System Storage Based Approach • Files of records – used for data storage • data redundancy – wastage of space • maintaining consistency becomes difficult • Record structures – hard coded into the programs • structure modifications – hard to perform • Each different data access request (a query) • performed by a separate program • difficult to anticipate all such requests • Creating the system • requires a lot of effort • Managing concurrent access and failure recovery are difficult Prof P Sreenivasa Kumar Department of CS&E, IITM 6 DBMS Approach DBMS • separation of data and metadata • flexibility of changing metadata • program-data independence Data access language • standardized – SQL • ad-hoc query formulation – easy System development • less effort required • concentration on logical level design is enough • components to organize data storage process queries, manage concurrent access, recovery from failures, manage access control are all available
  • 3. 26/01/20 3 Prof P Sreenivasa Kumar Department of CS&E, IITM 7 Collection of conceptual tools to describe the database at a certain level of abstraction. § Conceptual Data Model § a high level description § useful for requirements understanding. § Representational Data Model § describing the logical representation of data without giving details of physical representation. § Physical Data Model § description giving details about record formats, file structures etc. Data Model Prof P Sreenivasa Kumar Department of CS&E, IITM 8 § A conceptual level data model. § Provides the concepts of entities, relationships and attributes. The University Database Context Entities: student, faculty member, course, departments etc. Relationships: enrollment relationship between student & course, employment relationship between faculty member, department etc. Attributes: name, rollNumber, address etc., of student entity, name, empNumber, phoneNumber etc., of faculty entity etc. More details will be given in the E/R Model Module. E/R (Entity/Relationship) Model Prof P Sreenivasa Kumar Department of CS&E, IITM 9 Representational Level Data Model Relational Model : Provides the concept of a relation. In the context of university database: Relation scheme: Attribute names of the relation. Relation data/instance: set of data tuples. More details will be given in Relational Data Model Module. SName RollNumber JoiningYear BirthDate Program Dept Sriram CS04B123 2004 15Aug1982 BTech CS …. …. …. …. …. …. Data tuple student Relation name Attributes
  • 4. 26/01/20 4 Prof P Sreenivasa Kumar Department of CS&E, IITM 10 Data versus Schema or Meta-Data § DBMS is generic in nature § not tied to a single database § capable of managing several databases at a time § Data and schema are stored separately. § In RDBMS context: Schema – table names, attribute names with their data types for each table and constraints etc. § Database definition – setting up the skeleton structure § Database Loading/populating – storing data Prof P Sreenivasa Kumar Department of CS&E, IITM 11 Abstraction Levels in a DBMS: Three-Schema Architecture V1 V3 Vm R1 R2 Rn F1 F2 Fp V2 VL ⇔ LL mapping LL ⇔ PL mapping View Level(VL) scheme Set of views Set of relations … … … Logical Level(LL) scheme Physical Level(PL) Scheme Data: set of files/index files PDI LDI Prof P Sreenivasa Kumar Department of CS&E, IITM 12 View Level Schema Each view describes an aspect of the database relevant to a particular group of users. For instance, in the context of a library database: § Books Purchase Section § Issue/Returns Management Section § Users Management Section Each section views/uses a portion of the entire data. Views can be set up for each section of users. Three-schema Architecture(1/2)
  • 5. 26/01/20 5 Prof P Sreenivasa Kumar Department of CS&E, IITM 13 Logical Level Schema § Describes the logical structure of the entire database. § No physical level details are given. Physical Level Schema § Describes the physical structure of data in terms of record formats, file structures, indexes etc. Remarks • Views are optional - Can be set up if the DB system is very large and if easily identifiable user-groups exist • The logical scheme is essential • Modern RDBMS’s hide details of the physical layer Three-schema Architecture(2/2) Prof P Sreenivasa Kumar Department of CS&E, IITM 14 The ability to modify physical level schema without affecting the logical or view level schema. Performance tuning – modification at physical level creating a new index etc. Physical Data Independence – modification is localized § achieved by suitably modifying PL-LL mapping. § a very important feature of modern DBMS. Physical Data Independence Three Schema Arch Three Schema Arch Prof P Sreenivasa Kumar Department of CS&E, IITM 15 Logical Data Independence The ability to change the logical level scheme without affecting the view level schemes or application programs Adding a new attribute to some relation • no need to change the programs or views that don’t require to use the new attribute Deleting an attribute • no need to change the programs or views that use the remaining data • view definitions in VL-LL mapping only need to be changed for views that use the deleted attribute Three-schema Architecture
  • 6. 26/01/20 6 Prof P Sreenivasa Kumar Department of CS&E, IITM 16 Development Process of a Database System (1/2) Step 1. Requirements collection § Data model requirements § various pieces of data to be stored and the interrelationships. § presented using a conceptual data model such as E/R model. § Functional requirements § various operations that need to be performed as part of running the enterprise. § acquiring a new book, enrolling a new user, issuing a book to the user, recording the return of a book etc. Prof P Sreenivasa Kumar Department of CS&E, IITM 17 Step 2. Convert the data model into a representational level model § typically relational data model. § choose an RDBMS system and create the database. Step 3. Convert the functional requirements into application programs § programs in a high-level language that use embedded SQL to interact with the database and carry out the required tasks. Development process of a database system (2/2) Prof P Sreenivasa Kumar Department of CS&E, IITM 18 Architecture of an RDBMS system Compiled Appln pgms Appln Pgm compiler Query compiler DDL and other command processor Query optimizer RDBMS Run Time System Trans Manager Buffer Manager Recovery Manager Meta- data Data Log Disk Storage DDL Commands Control Commands (DBA) Ad-hoc queries (Analyst) GUI/parameter values Application programs
  • 7. 26/01/20 7 Prof P Sreenivasa Kumar Department of CS&E, IITM 19 Architecture Details (1/3) Disk Storage: Meta-data / schema – table definitions, view definitions, mappings Data – relation instances, index structures statistics about data Log – record of database update operations essential for failure recovery DDL and other SQL command processor: (DDL – Data definition language part of SQL) Commands for relation scheme creation, constraints setting etc Commands for handling authorization and data access control Prof P Sreenivasa Kumar Department of CS&E, IITM 20 Architecture Details (2/3) Query compiler SQL adhoc queries Compiles update / delete commands Query optimizers Selects a near optimal plan for executing a query - relation properties and index structures are utilized Application Program Compiler Preprocess to separate embedded SQL commands Use host language compiler to compile rest of the program Integrate the compiled program with the libraries for SQL commands supplied by RDBMS Prof P Sreenivasa Kumar Department of CS&E, IITM 21 Architecture Details (3/3) RDBMS Run Time System: Executes Compiled queries, Compiled application programs Interacts with Transaction Manager, Buffer Manager Transaction Manager: Keeps track of start, end of each transaction Enforces concurrency control protocols Buffer Manager: Manages disk space Implements paging mechanism Recovery Manager: Takes control as restart after a failure Brings the system to a consistent state before it can be resumed
  • 8. 26/01/20 8 Prof P Sreenivasa Kumar Department of CS&E, IITM 22 Roles for people in an Info System Management (1/2) Naive users / Data entry operators • Use the GUI provided by an application program • Feed-in the data and invoke an operation - e.g., person at the train reservation counter, person at library issue / return counter • No deep knowledge of the IS required Application Programmers • Embed SQL in a high-level language and develop programs to handle functional requirements of an IS • Should thoroughly understand the logical schema or relevant views • Meticulous testing of programs - necessary Prof P Sreenivasa Kumar Department of CS&E, IITM 23 Roles for people in an Info System management (2/2) Sophisticated user / data analyst: Uses SQL to generate answers for complex queries DBA (Database Administrator) Designing the logical scheme Creating the structure of the entire database Monitor usage and create necessary index structures to speed up query execution Grant / Revoke data access permissions to other users etc. Prof P Sreenivasa Kumar Department of CS&E, IITM 24 Text Books § Ramez Elmasri and Shamkant B Navathe, Fundamentals of Database Systems, 6th Edition, Addison Wesley, 2011. § Raghu Ramakrishnan and Johannes Gehrke, Database Management Systems, 3rd Edition, McGraw Hill, 2003. § A Silberschatz, H F Korth and S Sudarshan, Database System Concepts, 6th Edition, 2013. § H Garcia-Molina, J D Ullman, and Jennifer Widom, Database Systems - The Complete Book, Pearson Education, 2002.