SlideShare ist ein Scribd-Unternehmen logo
1 von 31
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

Weitere ähnliche Inhalte

Was ist angesagt?

Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Dale 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 platformashutosh123gupta
 
SHADOW PAGING and BUFFER MANAGEMENT
SHADOW PAGING and BUFFER MANAGEMENTSHADOW PAGING and BUFFER MANAGEMENT
SHADOW PAGING and BUFFER MANAGEMENTramya 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 ArchitectureHaris456
 
FlashCopy and DB2 for z/OS
FlashCopy and DB2 for z/OSFlashCopy and DB2 for z/OS
FlashCopy and DB2 for z/OSFlorence Dubois
 
505 kobal exadata
505 kobal exadata505 kobal exadata
505 kobal exadataKam Chan
 
HDFS NameNode High Availability
HDFS NameNode High AvailabilityHDFS NameNode High Availability
HDFS NameNode High AvailabilityDataWorks 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 TranslationFarwa 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 lockingJohn Campbell
 
Backing Up and Recovery
Backing Up and RecoveryBacking Up and Recovery
Backing Up and RecoveryMaham Huda
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43myrajendra
 
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 2Mark Gibbs
 

Was ist angesagt? (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
 

Andere mochten auch

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 AmorimIdeias 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 BehaviorsAffiliate Summit
 
Foundations and methods of stochastic simulation
Foundations and methods of stochastic simulationFoundations and methods of stochastic simulation
Foundations and methods of stochastic simulationSpringer
 

Andere mochten auch (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
 

Ähnlich wie 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.pdfJESUNPK
 
Mass storage systems presentation operating systems
Mass storage systems presentation operating systemsMass storage systems presentation operating systems
Mass storage systems presentation operating systemsnight1ng4ale
 
disk sechduling
disk sechdulingdisk sechduling
disk sechdulinggopi7
 
04.01 file organization
04.01 file organization04.01 file organization
04.01 file organizationBishal Ghimire
 
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
 
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 framworksViet-Trung TRAN
 
Computer memory
Computer memoryComputer memory
Computer memoryJayapal 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 WorkloadMarius 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
 
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.pptxsaimawarsi
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Kürzlich hochgeladen (20)

Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

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