SlideShare a Scribd company logo
Database Management System
MIS 520 – Database Theory
Fall 2001 (Day)
Lecture 13
Database Management
System
Database: A collection of related data. It should support
– Definition
– Construction
– Manipulation
Database Management System: A collection of programs
that enable the users to create and maintain a database.
Features of DBMS
1. Data storage, retrieval, and update: The ability to store,
retrieve, and update the data that are in the database.
2. User-accessible catalog: where descriptions of database
components are stored and are accessible to the users
3. Shared update support: A mechanism to ensure accuracy when
several users are updating the database at the same time
4. Backup and Recovery Services: Mechanisms for recovering
the database in the event that a database is damaged somehow.
5. Security Services: Mechanisms to ensure that certain rules are
followed with regard to data in the database and any changes
that are made in the data
Features of DBMS
5. Integrity services: Mechanisms to ensure that certain rules are
followed with regard to data in the database and any changes
that are made in the data.
6. Data Independence: Facilities to support the independence of
programs from the structure of the database.
7. Replication support: A facility to manage copies of the same
data at multiple locations.
8. Utility Services: DBMS provided services that assist in the
general maintenance of the database.
Shared Updates
• Multiple users are making updates to the database at
the same time.
Problem:
– Multiple people updating the database simultaneously can override
each other
Example:
– Agents T1 & T2 simultaneously read the seats reserved on Flight 890
i.e. 80
– T1 cancels 5 seats updating the seats reserved on Flight 890 to 75
– T2 reserves 4 additional seats on the flight and updates the seats
reserved on Flight 890 to 84.
– If T1 updates the database before T2. T2 will override T1’s change
and make reservations to 84 rather than getting the correct value of
79.
– Similarly if T2 updates before T1 the seats reserved will be 75
Shared Updates: Solution
• Batch Processing
– Allow multiple users to retrieve data simultaneously
– Updates are added to a batch file which does the
appropriate processing
– Does not work for real time situations
• Locking
– Restrict access to the record being updated by a user till
the transaction is complete.
Two Phase Lock
• Required when multiple records are updated as a
result of a user action (e.g. filling form etc.)
• All the records accessed are locked progressively till
the required updates are completed
– Growing Phase: More and more locks are added without
releasing locks
– After all locks are placed the database is updated
– Shrinking Phase: All locks are removed and no new ones
are added
Deadlock
• When two transactions require a common set
of records.
• Both of them are in growing phase and each
locks some of the records
• None of the records are released and they wait
for each other to release the locked records
They will wait forever!!!
Breaking Deadlock
Facilities
• Programs can lock entire tables or an individual row
• Programs can release any or all of the locks they currently
hold
• Programs can inquire whether a given row or table is locked
Rules
• If more than one row is required then the entire table must be
locked
• Limit the amount of wait for a lock to be released beyond
which a transaction is aborted
• A well designed transaction should lock all the rows and tables
before starting the transaction
• Users should release locks as soon as possible to improve the
efficiency of the database
Security
• Protection against unauthorized access: either
intentional or accidental.
• Three main features for protection
– Passwords: Allows only authorized users to
access the database. Access privileges can be
provided based on access needs
– Encryption: Encodes data to non-decipherable.
Data decoded on demand to prevent hackers from
accessing data
– Views: Different snapshot of the data ensures that
users only get access to data they need
Integrity
• Integrity Constraints are the conditions that data
must satisfy during initial input & updates.
• There are four categories of constraints
– Data Type
– Legal Values
– Format
– Key Constraints
• Entity Integrity Constraints (Primary Key)
– Enforces the uniqueness of the primary key
• Referential Integrity Constraints (Foreign Key)
– Value of foreign key must match the value of primary key for
some row in another table
Integrity: Solutions
• Ignore constraint
– Undesirable as it can lead to inconsistent data
• Let user enforce the constraint
– Undesirable since user mistakes can be disastrous
• Let programmer build the logic of constraints in
the programs
– Makes programs complex: harder to write, harder to
maintain, and expensive
• Place burden on the DBMS.
– Preferred way: Cost of DBMS development
amortized over large user base, hence economical
Replication
• Duplication of data at multiple physical
locations
• Each replica of the data can be changed
independently
• Periodically the replicas update their data to
the master database – this process is called
synchronization
Disaster Planning: Backup & Recovery
• Database can be damaged in a number of ways
– Power outage, disk crashes, floods, user errors
• Periodic backups limit the loss due to sudden
failures
• Data can be recovered from the latest backup
and the changes since the backup need to be
done in either of two ways
– Manually
– From a catalog (if exists) recording all updates to
the database since the last backup.
Catalog/Data Dictionary
• Contains information describing the database
– Schema for the database
– Characteristic for each field
– Possible values for each field
– Description of the data
– Relationships
– Description of the programs
• Data Dictionary is same as catalog but may
contain wider set of information than catalog

More Related Content

Similar to dbms.ppt

Intro.pptx
Intro.pptxIntro.pptx
Intro.pptx
NithyasriA2
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
UTSAHSINGH2
 
Data and database administration(database)
Data and database administration(database)Data and database administration(database)
Data and database administration(database)welcometofacebook
 
1_DBMS_Introduction.pdf
1_DBMS_Introduction.pdf1_DBMS_Introduction.pdf
1_DBMS_Introduction.pdf
JubairAhmedNabin
 
Unit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteUnit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 Complete
Raj vardhan
 
Unit1 dbms
Unit1 dbmsUnit1 dbms
Unit1 dbms
gowrivageesan87
 
Unit 2 - Chapter 7 (Database Security).pptx
Unit 2 - Chapter 7 (Database Security).pptxUnit 2 - Chapter 7 (Database Security).pptx
Unit 2 - Chapter 7 (Database Security).pptx
SakshiGawde6
 
2019 03 05_biological_databases_part3_v_upload
2019 03 05_biological_databases_part3_v_upload2019 03 05_biological_databases_part3_v_upload
2019 03 05_biological_databases_part3_v_upload
Prof. Wim Van Criekinge
 
System Analysis And Design
System Analysis And DesignSystem Analysis And Design
System Analysis And Design
Lijo Stalin
 
Intoduction- Database Management System
Intoduction- Database Management SystemIntoduction- Database Management System
Intoduction- Database Management System
Dr. Jasmine Beulah Gnanadurai
 
Chapter02-rev.pptx
Chapter02-rev.pptxChapter02-rev.pptx
Chapter02-rev.pptx
AbhishekThummar4
 
Introduction to Database Management System.pdf
Introduction to Database Management System.pdfIntroduction to Database Management System.pdf
Introduction to Database Management System.pdf
biswajit62002
 
Data Analytics: HDFS with Big Data : Issues and Application
Data Analytics:  HDFS  with  Big Data :  Issues and ApplicationData Analytics:  HDFS  with  Big Data :  Issues and Application
Data Analytics: HDFS with Big Data : Issues and Application
Dr. Chitra Dhawale
 
Data base chapter 2 | detail about the topic
Data base chapter 2 | detail about the topicData base chapter 2 | detail about the topic
Data base chapter 2 | detail about the topic
hoseg78377
 
Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management Systems
Kunal Anand
 
Dbms unit 1
Dbms unit 1Dbms unit 1
Dbms unit 1
SaiGupta18
 
access-control-week-3
access-control-week-3access-control-week-3
access-control-week-3jemtallon
 
Adbms 3 main characteristics of the database approach
Adbms 3 main characteristics of the database approachAdbms 3 main characteristics of the database approach
Adbms 3 main characteristics of the database approach
Vaibhav Khanna
 
Introduction to databasecasmfnbskdfjnfkjsdnsjkdfn
Introduction to databasecasmfnbskdfjnfkjsdnsjkdfnIntroduction to databasecasmfnbskdfjnfkjsdnsjkdfn
Introduction to databasecasmfnbskdfjnfkjsdnsjkdfn
aj01bhisma
 

Similar to dbms.ppt (20)

Intro.pptx
Intro.pptxIntro.pptx
Intro.pptx
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
 
Data and database administration(database)
Data and database administration(database)Data and database administration(database)
Data and database administration(database)
 
1_DBMS_Introduction.pdf
1_DBMS_Introduction.pdf1_DBMS_Introduction.pdf
1_DBMS_Introduction.pdf
 
Unit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteUnit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 Complete
 
Unit1 dbms
Unit1 dbmsUnit1 dbms
Unit1 dbms
 
Unit 2 - Chapter 7 (Database Security).pptx
Unit 2 - Chapter 7 (Database Security).pptxUnit 2 - Chapter 7 (Database Security).pptx
Unit 2 - Chapter 7 (Database Security).pptx
 
2019 03 05_biological_databases_part3_v_upload
2019 03 05_biological_databases_part3_v_upload2019 03 05_biological_databases_part3_v_upload
2019 03 05_biological_databases_part3_v_upload
 
System Analysis And Design
System Analysis And DesignSystem Analysis And Design
System Analysis And Design
 
Intoduction- Database Management System
Intoduction- Database Management SystemIntoduction- Database Management System
Intoduction- Database Management System
 
Chapter02-rev.pptx
Chapter02-rev.pptxChapter02-rev.pptx
Chapter02-rev.pptx
 
Introduction to Database Management System.pdf
Introduction to Database Management System.pdfIntroduction to Database Management System.pdf
Introduction to Database Management System.pdf
 
Data Analytics: HDFS with Big Data : Issues and Application
Data Analytics:  HDFS  with  Big Data :  Issues and ApplicationData Analytics:  HDFS  with  Big Data :  Issues and Application
Data Analytics: HDFS with Big Data : Issues and Application
 
Data base chapter 2 | detail about the topic
Data base chapter 2 | detail about the topicData base chapter 2 | detail about the topic
Data base chapter 2 | detail about the topic
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 
Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management Systems
 
Dbms unit 1
Dbms unit 1Dbms unit 1
Dbms unit 1
 
access-control-week-3
access-control-week-3access-control-week-3
access-control-week-3
 
Adbms 3 main characteristics of the database approach
Adbms 3 main characteristics of the database approachAdbms 3 main characteristics of the database approach
Adbms 3 main characteristics of the database approach
 
Introduction to databasecasmfnbskdfjnfkjsdnsjkdfn
Introduction to databasecasmfnbskdfjnfkjsdnsjkdfnIntroduction to databasecasmfnbskdfjnfkjsdnsjkdfn
Introduction to databasecasmfnbskdfjnfkjsdnsjkdfn
 

More from KRISHNARAJ207

INTERNSHIP PRESENTATION.pptx
INTERNSHIP PRESENTATION.pptxINTERNSHIP PRESENTATION.pptx
INTERNSHIP PRESENTATION.pptx
KRISHNARAJ207
 
22BAB09-OPERATION MANAGEMENT.pptx
22BAB09-OPERATION MANAGEMENT.pptx22BAB09-OPERATION MANAGEMENT.pptx
22BAB09-OPERATION MANAGEMENT.pptx
KRISHNARAJ207
 
22BA005.pptx
22BA005.pptx22BA005.pptx
22BA005.pptx
KRISHNARAJ207
 
BATCH-4 PROJECT PPT.pdf
BATCH-4 PROJECT PPT.pdfBATCH-4 PROJECT PPT.pdf
BATCH-4 PROJECT PPT.pdf
KRISHNARAJ207
 
BATCH-4 PROJECT .pdf
BATCH-4 PROJECT .pdfBATCH-4 PROJECT .pdf
BATCH-4 PROJECT .pdf
KRISHNARAJ207
 
ankurjobrotation-140217103220-phpapp02.pptx
ankurjobrotation-140217103220-phpapp02.pptxankurjobrotation-140217103220-phpapp02.pptx
ankurjobrotation-140217103220-phpapp02.pptx
KRISHNARAJ207
 
UNIT-1.ppt
UNIT-1.pptUNIT-1.ppt
UNIT-1.ppt
KRISHNARAJ207
 
methodsofperformanceappraisal-170222015553.pptx
methodsofperformanceappraisal-170222015553.pptxmethodsofperformanceappraisal-170222015553.pptx
methodsofperformanceappraisal-170222015553.pptx
KRISHNARAJ207
 
Unit 5 ED.pptx
Unit 5 ED.pptxUnit 5 ED.pptx
Unit 5 ED.pptx
KRISHNARAJ207
 
work culture ppt.pptx
work culture ppt.pptxwork culture ppt.pptx
work culture ppt.pptx
KRISHNARAJ207
 
Control.ppt
Control.pptControl.ppt
Control.ppt
KRISHNARAJ207
 
22BA001 IE S 2.pptx
22BA001 IE S 2.pptx22BA001 IE S 2.pptx
22BA001 IE S 2.pptx
KRISHNARAJ207
 
22BA001 IE 1.pptx
22BA001 IE 1.pptx22BA001 IE 1.pptx
22BA001 IE 1.pptx
KRISHNARAJ207
 
22BA003 IE 1.pptx
22BA003 IE 1.pptx22BA003 IE 1.pptx
22BA003 IE 1.pptx
KRISHNARAJ207
 
Elements of Systems Design.ppt
Elements of Systems Design.pptElements of Systems Design.ppt
Elements of Systems Design.ppt
KRISHNARAJ207
 
Financial IS.pptx
Financial IS.pptxFinancial IS.pptx
Financial IS.pptx
KRISHNARAJ207
 
dbms.ppt
dbms.pptdbms.ppt
dbms.ppt
KRISHNARAJ207
 
DFD1.ppt
DFD1.pptDFD1.ppt
DFD1.ppt
KRISHNARAJ207
 
group behaviour.ppt
group behaviour.pptgroup behaviour.ppt
group behaviour.ppt
KRISHNARAJ207
 
ultrasonic-welding-828-SNggldd.pptx
ultrasonic-welding-828-SNggldd.pptxultrasonic-welding-828-SNggldd.pptx
ultrasonic-welding-828-SNggldd.pptx
KRISHNARAJ207
 

More from KRISHNARAJ207 (20)

INTERNSHIP PRESENTATION.pptx
INTERNSHIP PRESENTATION.pptxINTERNSHIP PRESENTATION.pptx
INTERNSHIP PRESENTATION.pptx
 
22BAB09-OPERATION MANAGEMENT.pptx
22BAB09-OPERATION MANAGEMENT.pptx22BAB09-OPERATION MANAGEMENT.pptx
22BAB09-OPERATION MANAGEMENT.pptx
 
22BA005.pptx
22BA005.pptx22BA005.pptx
22BA005.pptx
 
BATCH-4 PROJECT PPT.pdf
BATCH-4 PROJECT PPT.pdfBATCH-4 PROJECT PPT.pdf
BATCH-4 PROJECT PPT.pdf
 
BATCH-4 PROJECT .pdf
BATCH-4 PROJECT .pdfBATCH-4 PROJECT .pdf
BATCH-4 PROJECT .pdf
 
ankurjobrotation-140217103220-phpapp02.pptx
ankurjobrotation-140217103220-phpapp02.pptxankurjobrotation-140217103220-phpapp02.pptx
ankurjobrotation-140217103220-phpapp02.pptx
 
UNIT-1.ppt
UNIT-1.pptUNIT-1.ppt
UNIT-1.ppt
 
methodsofperformanceappraisal-170222015553.pptx
methodsofperformanceappraisal-170222015553.pptxmethodsofperformanceappraisal-170222015553.pptx
methodsofperformanceappraisal-170222015553.pptx
 
Unit 5 ED.pptx
Unit 5 ED.pptxUnit 5 ED.pptx
Unit 5 ED.pptx
 
work culture ppt.pptx
work culture ppt.pptxwork culture ppt.pptx
work culture ppt.pptx
 
Control.ppt
Control.pptControl.ppt
Control.ppt
 
22BA001 IE S 2.pptx
22BA001 IE S 2.pptx22BA001 IE S 2.pptx
22BA001 IE S 2.pptx
 
22BA001 IE 1.pptx
22BA001 IE 1.pptx22BA001 IE 1.pptx
22BA001 IE 1.pptx
 
22BA003 IE 1.pptx
22BA003 IE 1.pptx22BA003 IE 1.pptx
22BA003 IE 1.pptx
 
Elements of Systems Design.ppt
Elements of Systems Design.pptElements of Systems Design.ppt
Elements of Systems Design.ppt
 
Financial IS.pptx
Financial IS.pptxFinancial IS.pptx
Financial IS.pptx
 
dbms.ppt
dbms.pptdbms.ppt
dbms.ppt
 
DFD1.ppt
DFD1.pptDFD1.ppt
DFD1.ppt
 
group behaviour.ppt
group behaviour.pptgroup behaviour.ppt
group behaviour.ppt
 
ultrasonic-welding-828-SNggldd.pptx
ultrasonic-welding-828-SNggldd.pptxultrasonic-welding-828-SNggldd.pptx
ultrasonic-welding-828-SNggldd.pptx
 

Recently uploaded

Kseniya Leshchenko: Shared development support service model as the way to ma...
Kseniya Leshchenko: Shared development support service model as the way to ma...Kseniya Leshchenko: Shared development support service model as the way to ma...
Kseniya Leshchenko: Shared development support service model as the way to ma...
Lviv Startup Club
 
amptalk_RecruitingDeck_english_2024.06.05
amptalk_RecruitingDeck_english_2024.06.05amptalk_RecruitingDeck_english_2024.06.05
amptalk_RecruitingDeck_english_2024.06.05
marketing317746
 
Enterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdfEnterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdf
KaiNexus
 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
marketingjdass
 
BeMetals Presentation_May_22_2024 .pdf
BeMetals Presentation_May_22_2024   .pdfBeMetals Presentation_May_22_2024   .pdf
BeMetals Presentation_May_22_2024 .pdf
DerekIwanaka1
 
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n PrintAffordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Navpack & Print
 
Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111
zoyaansari11365
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
Cynthia Clay
 
Digital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and TemplatesDigital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and Templates
Aurelien Domont, MBA
 
anas about venice for grade 6f about venice
anas about venice for grade 6f about veniceanas about venice for grade 6f about venice
anas about venice for grade 6f about venice
anasabutalha2013
 
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-indiafalcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
Falcon Invoice Discounting
 
Exploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social DreamingExploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social Dreaming
Nicola Wreford-Howard
 
5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer
ofm712785
 
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
BBPMedia1
 
What is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdfWhat is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdf
seoforlegalpillers
 
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Lviv Startup Club
 
What are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdfWhat are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdf
HumanResourceDimensi1
 
The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...
awaisafdar
 
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
agatadrynko
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
fisherameliaisabella
 

Recently uploaded (20)

Kseniya Leshchenko: Shared development support service model as the way to ma...
Kseniya Leshchenko: Shared development support service model as the way to ma...Kseniya Leshchenko: Shared development support service model as the way to ma...
Kseniya Leshchenko: Shared development support service model as the way to ma...
 
amptalk_RecruitingDeck_english_2024.06.05
amptalk_RecruitingDeck_english_2024.06.05amptalk_RecruitingDeck_english_2024.06.05
amptalk_RecruitingDeck_english_2024.06.05
 
Enterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdfEnterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdf
 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
 
BeMetals Presentation_May_22_2024 .pdf
BeMetals Presentation_May_22_2024   .pdfBeMetals Presentation_May_22_2024   .pdf
BeMetals Presentation_May_22_2024 .pdf
 
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n PrintAffordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n Print
 
Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
 
Digital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and TemplatesDigital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and Templates
 
anas about venice for grade 6f about venice
anas about venice for grade 6f about veniceanas about venice for grade 6f about venice
anas about venice for grade 6f about venice
 
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-indiafalcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
 
Exploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social DreamingExploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social Dreaming
 
5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer
 
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
 
What is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdfWhat is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdf
 
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)
 
What are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdfWhat are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdf
 
The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...
 
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
 

dbms.ppt

  • 1. Database Management System MIS 520 – Database Theory Fall 2001 (Day) Lecture 13
  • 2. Database Management System Database: A collection of related data. It should support – Definition – Construction – Manipulation Database Management System: A collection of programs that enable the users to create and maintain a database.
  • 3. Features of DBMS 1. Data storage, retrieval, and update: The ability to store, retrieve, and update the data that are in the database. 2. User-accessible catalog: where descriptions of database components are stored and are accessible to the users 3. Shared update support: A mechanism to ensure accuracy when several users are updating the database at the same time 4. Backup and Recovery Services: Mechanisms for recovering the database in the event that a database is damaged somehow. 5. Security Services: Mechanisms to ensure that certain rules are followed with regard to data in the database and any changes that are made in the data
  • 4. Features of DBMS 5. Integrity services: Mechanisms to ensure that certain rules are followed with regard to data in the database and any changes that are made in the data. 6. Data Independence: Facilities to support the independence of programs from the structure of the database. 7. Replication support: A facility to manage copies of the same data at multiple locations. 8. Utility Services: DBMS provided services that assist in the general maintenance of the database.
  • 5. Shared Updates • Multiple users are making updates to the database at the same time. Problem: – Multiple people updating the database simultaneously can override each other Example: – Agents T1 & T2 simultaneously read the seats reserved on Flight 890 i.e. 80 – T1 cancels 5 seats updating the seats reserved on Flight 890 to 75 – T2 reserves 4 additional seats on the flight and updates the seats reserved on Flight 890 to 84. – If T1 updates the database before T2. T2 will override T1’s change and make reservations to 84 rather than getting the correct value of 79. – Similarly if T2 updates before T1 the seats reserved will be 75
  • 6. Shared Updates: Solution • Batch Processing – Allow multiple users to retrieve data simultaneously – Updates are added to a batch file which does the appropriate processing – Does not work for real time situations • Locking – Restrict access to the record being updated by a user till the transaction is complete.
  • 7. Two Phase Lock • Required when multiple records are updated as a result of a user action (e.g. filling form etc.) • All the records accessed are locked progressively till the required updates are completed – Growing Phase: More and more locks are added without releasing locks – After all locks are placed the database is updated – Shrinking Phase: All locks are removed and no new ones are added
  • 8. Deadlock • When two transactions require a common set of records. • Both of them are in growing phase and each locks some of the records • None of the records are released and they wait for each other to release the locked records They will wait forever!!!
  • 9. Breaking Deadlock Facilities • Programs can lock entire tables or an individual row • Programs can release any or all of the locks they currently hold • Programs can inquire whether a given row or table is locked Rules • If more than one row is required then the entire table must be locked • Limit the amount of wait for a lock to be released beyond which a transaction is aborted • A well designed transaction should lock all the rows and tables before starting the transaction • Users should release locks as soon as possible to improve the efficiency of the database
  • 10. Security • Protection against unauthorized access: either intentional or accidental. • Three main features for protection – Passwords: Allows only authorized users to access the database. Access privileges can be provided based on access needs – Encryption: Encodes data to non-decipherable. Data decoded on demand to prevent hackers from accessing data – Views: Different snapshot of the data ensures that users only get access to data they need
  • 11. Integrity • Integrity Constraints are the conditions that data must satisfy during initial input & updates. • There are four categories of constraints – Data Type – Legal Values – Format – Key Constraints • Entity Integrity Constraints (Primary Key) – Enforces the uniqueness of the primary key • Referential Integrity Constraints (Foreign Key) – Value of foreign key must match the value of primary key for some row in another table
  • 12. Integrity: Solutions • Ignore constraint – Undesirable as it can lead to inconsistent data • Let user enforce the constraint – Undesirable since user mistakes can be disastrous • Let programmer build the logic of constraints in the programs – Makes programs complex: harder to write, harder to maintain, and expensive • Place burden on the DBMS. – Preferred way: Cost of DBMS development amortized over large user base, hence economical
  • 13. Replication • Duplication of data at multiple physical locations • Each replica of the data can be changed independently • Periodically the replicas update their data to the master database – this process is called synchronization
  • 14. Disaster Planning: Backup & Recovery • Database can be damaged in a number of ways – Power outage, disk crashes, floods, user errors • Periodic backups limit the loss due to sudden failures • Data can be recovered from the latest backup and the changes since the backup need to be done in either of two ways – Manually – From a catalog (if exists) recording all updates to the database since the last backup.
  • 15. Catalog/Data Dictionary • Contains information describing the database – Schema for the database – Characteristic for each field – Possible values for each field – Description of the data – Relationships – Description of the programs • Data Dictionary is same as catalog but may contain wider set of information than catalog