SlideShare a Scribd company logo
Storage Device Hierarchy

Cache

Main Memory

Flash Memory

Magnetic Disk
Optical Disk
DBMS, JVP

Magnetic Tapes

Cost
Access Speed
•
•
•
•
•

Fastest
Most Costly Media
Small & is managed by System H/W
Generally is inbuilt on-chip memory
For storage of important & critical
instructions
• If size of cache is increased –
cost increased
benefits of cache is lost
DBMS, JVP
• Machine instructions are stored in main
memory
• Its is quite small for storing Database
• Its Volatile i.e. data is lost on power failure or
system crash

DBMS, JVP
•
•
•
•
•

EEPROM
Read is Faster
Write is very slow & complicated
4-10 microsec to write, can’t be overwritten
To overwrite, has to erase entire data of
memory
• Used generally for hand-held & digital
electronics devices

DBMS, JVP
• Stores the Database, data moves between Main
Memory & Disk
• Size – Few GB upto 80GB
• Size of Magnetic Disk needs increases as we
have requirement for larger capacity disks
• Can survive power failure & system crash, is
non-volatile storage media
• Disk Failure results in loss of data stored on
disk.
DBMS, JVP
• CD – holds about 640MB
• DVD – holds 4.7 or 8.5GB per side to 17GB for
two-sided disk
• Data is stored optically on a disk, is read by laser
• WORM-write once read many CDs & DVDs
• CD-RW & DVD-RW : For multiple writes & read
• CDs are magnetic-optical storage devices that use
optical means to read magnetically encoded data.
• DBMS, JVP archival storages
Used for
•
•
•
•
•

Used for Backup Storage
Cheaper & Slower Access
Sequential-access Storage
Not direct access like CDs
Used for holding large backup data of large
organization

DBMS, JVP
Spindle
Track i
Platter

Disk Arm

Arm Assembly

Cylinder i

DBMS, JVP

R-W Head
• Access Time :
Read Req. Issued – Actual Data Transfer Begin
• Seek Time : Avg. Seek Time
Time For Repositioning the arm
• Rotational Latency Time : Avg. RLT
Time waiting for sector to appear under head
• A T = S T + RL T
• Data Transfer Rate : rate of data read/write to disk
• Mean Time To Failure (MTTF)
Amount of time on avg. we expect system to work w/o
DBMS, JVP
failure, measure of reliability of disk
• Reliability of Disk : 1,00,000/100 = 1000 hours
• Disk Failure leads to loss of data
• So keep redundancy i.e. Mirroring of Disk
• MTTF of mirrored disk depends on MTTR, time to
replace failed disk & restore data
• First write to one copy them to other so on power
failure, blocks have complete data.
DBMS, JVP
• Parallel access to disks
• Improve the transfer rate by ‘Striping’
• Bit-level striping : splitting bits of each byte
across multiple disks, array of 4,8,16… disks,
increase R/W at 8 times
• Block-level striping : divide data into blocks,
each block in a disk.
• ith block is in (i mod n + 1)th disk, n=total no. of
disks in array.
• Balances load across multiple disks so access
is fast & o/p is high
DBMS, JVP
C

DBMS, JVP

C

C

C
P

DBMS, JVP

P

P
P

P

DBMS, JVP

P

P

P

P
P

DBMS, JVP

P

P

P

P

P
•
•
•
•

Monetary Cost of extra disk
Performance – no. of I/O Operations
Performance when Disk fails
Performance to rebuild the Data

RAID 0, 1, 5 are currently in use

DBMS, JVP
• File is organized logically as a sequence of
records. The records are stored in disk blocks.
Fixed Length Records
Variable Length Records

DBMS, JVP
• Deposit = record
acc_no:char(10);
br_nm:char(22);
bal:real;
end

Acc_n Br_nm
o

Bal

R-1

A-104 Bombay

500

R-2

A-121 Delhi

781

R-3

A-393 Pune

900

R-4

A-129 Bombay

400

R-5

A-214 Chennai 164

Total = 40 bytes

DBMS, JVP
Header

A-104 Bombay

500

A-121 Delhi

781

A-393 Pune

900

A-129 Bombay

400

A-214 Chennai 164
DBMS, JVP
• Records has varying length
• Account_list : record
Br_nm:char(22);
accounts :- array(1---infinite)
acc_no:char(10);
bal:real;
end
end
DBMS, JVP
• Dis. Adv. –
- Not easy to occupy space left by deleted record
Leads to small fragments on disk
- No space for records to grow

Header has info :
- No. of records
- Free space pointer
- Size of each record block
DBMS, JVP
• Reserved Space
• List Representation
– Anchor Block
– Over Flow Block

DBMS, JVP
• Heap file organization
• Sequential file organization
– Search Key
– Insert & Deleted using Overflow Block

• Hashing file organization
• Clustering file organization
DBMS, JVP
• A database that maintains data about
relations, stores information about the
tables of the database.
• E.g. Name of relations
Names of Attributes
Domains & Length
Constraints
DBMS, JVP
DBMS, JVP
• Ordered Indices
• Hash Indices
Aspects :- Access Type : by value or range
- Access Time
- Insertion Time
- Deletion Time
- Space Overhead
DBMS, JVP
• Primary Index
– Dense Index
– Sparse Index

Multilevel Indices
Secondary Indices

DBMS, JVP
• Hash File Organization
- Hash Function
Uniform Distribution
Random Distribution
- Bucket
Bucket Overflow & Skew
Overflow Chining
• Hash Indices
• Comparison of Indexing & Hashing
DBMS, JVP
DBMS, JVP

More Related Content

What's hot

Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013
Dale McInnis
 
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
John Campbell
 
Swap Administration in linux platform
Swap Administration in linux platformSwap Administration in linux platform
Swap Administration in linux platform
ashutosh123gupta
 
Disk Scheduling
Disk SchedulingDisk Scheduling
Disk Scheduling
Aayush Patel
 
SHADOW PAGING and BUFFER MANAGEMENT
SHADOW PAGING and BUFFER MANAGEMENTSHADOW PAGING and BUFFER MANAGEMENT
SHADOW PAGING and BUFFER MANAGEMENT
ramya marichamy
 
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
Surekha Parekh
 
Computer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer ArchitectureComputer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer Architecture
Haris456
 
FlashCopy and DB2 for z/OS
FlashCopy and DB2 for z/OSFlashCopy and DB2 for z/OS
FlashCopy and DB2 for z/OS
Florence Dubois
 
505 kobal exadata
505 kobal exadata505 kobal exadata
505 kobal exadata
Kam Chan
 
Backup And Recovery
Backup And RecoveryBackup And Recovery
Backup And Recovery
raghu_designer
 
Dba tuning
Dba tuningDba tuning
HDFS NameNode High Availability
HDFS NameNode High AvailabilityHDFS NameNode High Availability
HDFS NameNode High Availability
DataWorks Summit
 
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address TranslationMemory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
Farwa Ansari
 
Using Release(deallocate) and Painful Lessons to be learned on DB2 locking
Using Release(deallocate) and Painful Lessons to be learned on DB2 lockingUsing Release(deallocate) and Painful Lessons to be learned on DB2 locking
Using Release(deallocate) and Painful Lessons to be learned on DB2 locking
John Campbell
 
Backing Up and Recovery
Backing Up and RecoveryBacking Up and Recovery
Backing Up and Recovery
Maham Huda
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43myrajendra
 
Ioppt
IopptIoppt
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
Hi-Techpoint
 
IMC Summit 2016 Breakout - Andy Pavlo - What Non-Volatile Memory Means for th...
IMC Summit 2016 Breakout - Andy Pavlo - What Non-Volatile Memory Means for th...IMC Summit 2016 Breakout - Andy Pavlo - What Non-Volatile Memory Means for th...
IMC Summit 2016 Breakout - Andy Pavlo - What Non-Volatile Memory Means for th...
In-Memory Computing Summit
 
F543 computer science part 2
F543 computer science part 2F543 computer science part 2
F543 computer science part 2
Mark Gibbs
 

What's hot (20)

Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013
 
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
 
Swap Administration in linux platform
Swap Administration in linux platformSwap Administration in linux platform
Swap Administration in linux platform
 
Disk Scheduling
Disk SchedulingDisk Scheduling
Disk Scheduling
 
SHADOW PAGING and BUFFER MANAGEMENT
SHADOW PAGING and BUFFER MANAGEMENTSHADOW PAGING and BUFFER MANAGEMENT
SHADOW PAGING and BUFFER MANAGEMENT
 
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
 
Computer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer ArchitectureComputer Memory Hierarchy Computer Architecture
Computer Memory Hierarchy Computer Architecture
 
FlashCopy and DB2 for z/OS
FlashCopy and DB2 for z/OSFlashCopy and DB2 for z/OS
FlashCopy and DB2 for z/OS
 
505 kobal exadata
505 kobal exadata505 kobal exadata
505 kobal exadata
 
Backup And Recovery
Backup And RecoveryBackup And Recovery
Backup And Recovery
 
Dba tuning
Dba tuningDba tuning
Dba tuning
 
HDFS NameNode High Availability
HDFS NameNode High AvailabilityHDFS NameNode High Availability
HDFS NameNode High Availability
 
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address TranslationMemory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
 
Using Release(deallocate) and Painful Lessons to be learned on DB2 locking
Using Release(deallocate) and Painful Lessons to be learned on DB2 lockingUsing Release(deallocate) and Painful Lessons to be learned on DB2 locking
Using Release(deallocate) and Painful Lessons to be learned on DB2 locking
 
Backing Up and Recovery
Backing Up and RecoveryBacking Up and Recovery
Backing Up and Recovery
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43
 
Ioppt
IopptIoppt
Ioppt
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
IMC Summit 2016 Breakout - Andy Pavlo - What Non-Volatile Memory Means for th...
IMC Summit 2016 Breakout - Andy Pavlo - What Non-Volatile Memory Means for th...IMC Summit 2016 Breakout - Andy Pavlo - What Non-Volatile Memory Means for th...
IMC Summit 2016 Breakout - Andy Pavlo - What Non-Volatile Memory Means for th...
 
F543 computer science part 2
F543 computer science part 2F543 computer science part 2
F543 computer science part 2
 

Viewers also liked

Improving Online Access to Drug-Related Information
Improving Online Access to Drug-Related InformationImproving Online Access to Drug-Related Information
Improving Online Access to Drug-Related Information
The Children's Hospital of Philadelphia
 
www.doubletake.com Data Protection Strategies for Virtualization
www.doubletake.com Data Protection Strategies for Virtualizationwww.doubletake.com Data Protection Strategies for Virtualization
www.doubletake.com Data Protection Strategies for Virtualizationwebhostingguy
 
4º Ideias na Laje - Marcelo Amorim
4º Ideias na Laje - Marcelo Amorim4º Ideias na Laje - Marcelo Amorim
4º Ideias na Laje - Marcelo Amorim
Ideias na Laje
 
Alan Andersen_Subcontinental-scale transects for assessing and monitoring eco...
Alan Andersen_Subcontinental-scale transects for assessing and monitoring eco...Alan Andersen_Subcontinental-scale transects for assessing and monitoring eco...
Alan Andersen_Subcontinental-scale transects for assessing and monitoring eco...TERN Australia
 
Increasing Website Revenue by Driving Social Behaviors
Increasing Website Revenue by Driving Social BehaviorsIncreasing Website Revenue by Driving Social Behaviors
Increasing Website Revenue by Driving Social Behaviors
Affiliate Summit
 
Foundations and methods of stochastic simulation
Foundations and methods of stochastic simulationFoundations and methods of stochastic simulation
Foundations and methods of stochastic simulationSpringer
 

Viewers also liked (8)

Improving Online Access to Drug-Related Information
Improving Online Access to Drug-Related InformationImproving Online Access to Drug-Related Information
Improving Online Access to Drug-Related Information
 
www.doubletake.com Data Protection Strategies for Virtualization
www.doubletake.com Data Protection Strategies for Virtualizationwww.doubletake.com Data Protection Strategies for Virtualization
www.doubletake.com Data Protection Strategies for Virtualization
 
Long
LongLong
Long
 
4º Ideias na Laje - Marcelo Amorim
4º Ideias na Laje - Marcelo Amorim4º Ideias na Laje - Marcelo Amorim
4º Ideias na Laje - Marcelo Amorim
 
Alan Andersen_Subcontinental-scale transects for assessing and monitoring eco...
Alan Andersen_Subcontinental-scale transects for assessing and monitoring eco...Alan Andersen_Subcontinental-scale transects for assessing and monitoring eco...
Alan Andersen_Subcontinental-scale transects for assessing and monitoring eco...
 
Increasing Website Revenue by Driving Social Behaviors
Increasing Website Revenue by Driving Social BehaviorsIncreasing Website Revenue by Driving Social Behaviors
Increasing Website Revenue by Driving Social Behaviors
 
Versão 1.56
Versão 1.56Versão 1.56
Versão 1.56
 
Foundations and methods of stochastic simulation
Foundations and methods of stochastic simulationFoundations and methods of stochastic simulation
Foundations and methods of stochastic simulation
 

Similar to Dbms by jeet goyal

19IS305_U4_LP10_LM10-22-23.pdf
19IS305_U4_LP10_LM10-22-23.pdf19IS305_U4_LP10_LM10-22-23.pdf
19IS305_U4_LP10_LM10-22-23.pdf
JESUNPK
 
Unit 4 DBMS.ppt
Unit 4 DBMS.pptUnit 4 DBMS.ppt
Unit 4 DBMS.ppt
HARRSHITHAASCSE
 
Mass storage systems presentation operating systems
Mass storage systems presentation operating systemsMass storage systems presentation operating systems
Mass storage systems presentation operating systems
night1ng4ale
 
disk sechduling
disk sechdulingdisk sechduling
disk sechdulinggopi7
 
04.01 file organization
04.01 file organization04.01 file organization
04.01 file organization
Bishal Ghimire
 
15 storage
15 storage15 storage
15 storage
Arun Kumar M
 
Conceptual framework storage devices (2)
Conceptual framework   storage devices (2)Conceptual framework   storage devices (2)
Conceptual framework storage devices (2)
Rajendra Sharma
 
Secondary storage
Secondary storageSecondary storage
Secondary storageAmni Muin
 
Thiru
ThiruThiru
Storage talk
Storage talkStorage talk
Storage talkchristkv
 
Tachyon memory centric, fault tolerance storage for cluster framworks
Tachyon  memory centric, fault tolerance storage for cluster framworksTachyon  memory centric, fault tolerance storage for cluster framworks
Tachyon memory centric, fault tolerance storage for cluster framworks
Viet-Trung TRAN
 
Computer memory
Computer memoryComputer memory
Computer memory
Jayapal Jp
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage mediaSrinath Sri
 
Tuning Linux Windows and Firebird for Heavy Workload
Tuning Linux Windows and Firebird for Heavy WorkloadTuning Linux Windows and Firebird for Heavy Workload
Tuning Linux Windows and Firebird for Heavy Workload
Marius Adrian Popa
 
SUSE Storage: Sizing and Performance (Ceph)
SUSE Storage: Sizing and Performance (Ceph)SUSE Storage: Sizing and Performance (Ceph)
SUSE Storage: Sizing and Performance (Ceph)
Lars Marowsky-Brée
 
3 computer memory
3   computer memory3   computer memory
3 computer memory
arslanzafar13162
 
cache cache memory memory cache memory.pptx
cache cache memory memory cache memory.pptxcache cache memory memory cache memory.pptx
cache cache memory memory cache memory.pptx
saimawarsi
 
primary memory
primary memoryprimary memory
primary memory
Ramya Kotyan
 
Unit IV Memory.pptx
Unit IV  Memory.pptxUnit IV  Memory.pptx
Unit IV Memory.pptx
madhukarvnimbalkar
 

Similar to Dbms by jeet goyal (20)

19IS305_U4_LP10_LM10-22-23.pdf
19IS305_U4_LP10_LM10-22-23.pdf19IS305_U4_LP10_LM10-22-23.pdf
19IS305_U4_LP10_LM10-22-23.pdf
 
Unit 4 DBMS.ppt
Unit 4 DBMS.pptUnit 4 DBMS.ppt
Unit 4 DBMS.ppt
 
Mass storage systems presentation operating systems
Mass storage systems presentation operating systemsMass storage systems presentation operating systems
Mass storage systems presentation operating systems
 
disk sechduling
disk sechdulingdisk sechduling
disk sechduling
 
04.01 file organization
04.01 file organization04.01 file organization
04.01 file organization
 
Memory types
Memory typesMemory types
Memory types
 
15 storage
15 storage15 storage
15 storage
 
Conceptual framework storage devices (2)
Conceptual framework   storage devices (2)Conceptual framework   storage devices (2)
Conceptual framework storage devices (2)
 
Secondary storage
Secondary storageSecondary storage
Secondary storage
 
Thiru
ThiruThiru
Thiru
 
Storage talk
Storage talkStorage talk
Storage talk
 
Tachyon memory centric, fault tolerance storage for cluster framworks
Tachyon  memory centric, fault tolerance storage for cluster framworksTachyon  memory centric, fault tolerance storage for cluster framworks
Tachyon memory centric, fault tolerance storage for cluster framworks
 
Computer memory
Computer memoryComputer memory
Computer memory
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage media
 
Tuning Linux Windows and Firebird for Heavy Workload
Tuning Linux Windows and Firebird for Heavy WorkloadTuning Linux Windows and Firebird for Heavy Workload
Tuning Linux Windows and Firebird for Heavy Workload
 
SUSE Storage: Sizing and Performance (Ceph)
SUSE Storage: Sizing and Performance (Ceph)SUSE Storage: Sizing and Performance (Ceph)
SUSE Storage: Sizing and Performance (Ceph)
 
3 computer memory
3   computer memory3   computer memory
3 computer memory
 
cache cache memory memory cache memory.pptx
cache cache memory memory cache memory.pptxcache cache memory memory cache memory.pptx
cache cache memory memory cache memory.pptx
 
primary memory
primary memoryprimary memory
primary memory
 
Unit IV Memory.pptx
Unit IV  Memory.pptxUnit IV  Memory.pptx
Unit IV Memory.pptx
 

Recently uploaded

RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
AG2 Design
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
NelTorrente
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
MERN Stack Developer Roadmap By ScholarHat PDF
MERN Stack Developer Roadmap By ScholarHat PDFMERN Stack Developer Roadmap By ScholarHat PDF
MERN Stack Developer Roadmap By ScholarHat PDF
scholarhattraining
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Reflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPointReflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPoint
amberjdewit93
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 

Recently uploaded (20)

RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
MERN Stack Developer Roadmap By ScholarHat PDF
MERN Stack Developer Roadmap By ScholarHat PDFMERN Stack Developer Roadmap By ScholarHat PDF
MERN Stack Developer Roadmap By ScholarHat PDF
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Reflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPointReflective and Evaluative Practice PowerPoint
Reflective and Evaluative Practice PowerPoint
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 

Dbms by jeet goyal

  • 1.
  • 2. Storage Device Hierarchy Cache Main Memory Flash Memory Magnetic Disk Optical Disk DBMS, JVP Magnetic Tapes Cost Access Speed
  • 3. • • • • • Fastest Most Costly Media Small & is managed by System H/W Generally is inbuilt on-chip memory For storage of important & critical instructions • If size of cache is increased – cost increased benefits of cache is lost DBMS, JVP
  • 4. • Machine instructions are stored in main memory • Its is quite small for storing Database • Its Volatile i.e. data is lost on power failure or system crash DBMS, JVP
  • 5. • • • • • EEPROM Read is Faster Write is very slow & complicated 4-10 microsec to write, can’t be overwritten To overwrite, has to erase entire data of memory • Used generally for hand-held & digital electronics devices DBMS, JVP
  • 6. • Stores the Database, data moves between Main Memory & Disk • Size – Few GB upto 80GB • Size of Magnetic Disk needs increases as we have requirement for larger capacity disks • Can survive power failure & system crash, is non-volatile storage media • Disk Failure results in loss of data stored on disk. DBMS, JVP
  • 7. • CD – holds about 640MB • DVD – holds 4.7 or 8.5GB per side to 17GB for two-sided disk • Data is stored optically on a disk, is read by laser • WORM-write once read many CDs & DVDs • CD-RW & DVD-RW : For multiple writes & read • CDs are magnetic-optical storage devices that use optical means to read magnetically encoded data. • DBMS, JVP archival storages Used for
  • 8. • • • • • Used for Backup Storage Cheaper & Slower Access Sequential-access Storage Not direct access like CDs Used for holding large backup data of large organization DBMS, JVP
  • 9. Spindle Track i Platter Disk Arm Arm Assembly Cylinder i DBMS, JVP R-W Head
  • 10. • Access Time : Read Req. Issued – Actual Data Transfer Begin • Seek Time : Avg. Seek Time Time For Repositioning the arm • Rotational Latency Time : Avg. RLT Time waiting for sector to appear under head • A T = S T + RL T • Data Transfer Rate : rate of data read/write to disk • Mean Time To Failure (MTTF) Amount of time on avg. we expect system to work w/o DBMS, JVP failure, measure of reliability of disk
  • 11. • Reliability of Disk : 1,00,000/100 = 1000 hours • Disk Failure leads to loss of data • So keep redundancy i.e. Mirroring of Disk • MTTF of mirrored disk depends on MTTR, time to replace failed disk & restore data • First write to one copy them to other so on power failure, blocks have complete data. DBMS, JVP
  • 12. • Parallel access to disks • Improve the transfer rate by ‘Striping’ • Bit-level striping : splitting bits of each byte across multiple disks, array of 4,8,16… disks, increase R/W at 8 times • Block-level striping : divide data into blocks, each block in a disk. • ith block is in (i mod n + 1)th disk, n=total no. of disks in array. • Balances load across multiple disks so access is fast & o/p is high DBMS, JVP
  • 13.
  • 18. • • • • Monetary Cost of extra disk Performance – no. of I/O Operations Performance when Disk fails Performance to rebuild the Data RAID 0, 1, 5 are currently in use DBMS, JVP
  • 19. • File is organized logically as a sequence of records. The records are stored in disk blocks. Fixed Length Records Variable Length Records DBMS, JVP
  • 20. • Deposit = record acc_no:char(10); br_nm:char(22); bal:real; end Acc_n Br_nm o Bal R-1 A-104 Bombay 500 R-2 A-121 Delhi 781 R-3 A-393 Pune 900 R-4 A-129 Bombay 400 R-5 A-214 Chennai 164 Total = 40 bytes DBMS, JVP
  • 21. Header A-104 Bombay 500 A-121 Delhi 781 A-393 Pune 900 A-129 Bombay 400 A-214 Chennai 164 DBMS, JVP
  • 22. • Records has varying length • Account_list : record Br_nm:char(22); accounts :- array(1---infinite) acc_no:char(10); bal:real; end end DBMS, JVP
  • 23. • Dis. Adv. – - Not easy to occupy space left by deleted record Leads to small fragments on disk - No space for records to grow Header has info : - No. of records - Free space pointer - Size of each record block DBMS, JVP
  • 24. • Reserved Space • List Representation – Anchor Block – Over Flow Block DBMS, JVP
  • 25. • Heap file organization • Sequential file organization – Search Key – Insert & Deleted using Overflow Block • Hashing file organization • Clustering file organization DBMS, JVP
  • 26. • A database that maintains data about relations, stores information about the tables of the database. • E.g. Name of relations Names of Attributes Domains & Length Constraints DBMS, JVP
  • 28. • Ordered Indices • Hash Indices Aspects :- Access Type : by value or range - Access Time - Insertion Time - Deletion Time - Space Overhead DBMS, JVP
  • 29. • Primary Index – Dense Index – Sparse Index Multilevel Indices Secondary Indices DBMS, JVP
  • 30. • Hash File Organization - Hash Function Uniform Distribution Random Distribution - Bucket Bucket Overflow & Skew Overflow Chining • Hash Indices • Comparison of Indexing & Hashing DBMS, JVP