SlideShare une entreprise Scribd logo
1  sur  9
Forum Archives Forum Archives
PCTFREE Vs PCTUSED
Thread: PCTFREE Vs PCTUSED
Click Here to Expand Forum to Full Width
Databasejournal.com - Feature Database Articles
Databasejournal.com
Parallel Processing -- Bane or Boon
Performing Full-text Searches in MySQL 5.6
SQL Server 2012: Time Marches On
Partitioning in SQL Server - Part 3
SQL Server 2012 Integration Services - Introduction to Managing
SQL Server with PowerShell
Techniques for Analyzing Historical DB2 Application Perform ance
Data
Working With Metrics Extensions in Oracle Enterprise Manager
12c Cloud Control
A Tale of Two Indexes
Com paring SQL Server and MySQL Functions
Developing a SQL Server Backup Strategy
User Name Password Log in
Remember Me?
RegisterHelp
What's New?
FAQ Calendar Forum Actions Quick Links Advanced Search
Results 1 to 10 of 15
Page 1 of 2 1 2
Last
Thread Tools Display
02-23-2001 09:12 PM
Join Date:
Posts:
Oct 2000
250
#1
Senior Member
ckwan
Forum
PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-...
1 of 9 12/02/2013 01:40
Dear all,
I want to pour some questions on the
above topic questions :
1. I come across a statement saying that
PCTUSED Parameter explanation - After a
data block becomes full, as determined by
PCTFREE, Oracle does not consider the
block for the insertion of new rows until
the percentage of the block being used
falls below the parameter PCTUSED.
Before this value is archived, Oracle uses
the free space of the data block only for
updates to rows already contained in the
data block.
Q : What is the reason for this - PCTUSED
? Why they want to control that parameter
? Can I set it to 0 ?
Q: Is free list this pre-allocated ? Is this
only use for PCTFREE ? Where does it
store ?
Your answer is very much appreciated.
Thanks.
Reply With Quote
02-24-2001 03:04 AM
Join Date:
Posts:
Feb 2001
7
re: pctused vs pctfree
hope this will provide you your answer...
The PCTFREE parameter specifies the
percentage of
space in each data block that is reserved
for growth
resulting from updates of rows in that
data block. This
parameter has a default value of 10
percent.
For example, the value of the PCTFREE
parameter is
specified as 20 in a CREATE TABLE
statement. This
indicates that inserts to the block should
stop as soon as
#2
Junior Member
IT_girl200
PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-...
2 of 9 12/02/2013 01:40
free space drops to 20 percent or less.
The free space
thereafter can only be used for updates.
The PCTUSED parameter represents the
minimum
percentage of the used space that the
Oracle server tries
to maintain for each data block of the
table. This
parameter has a default value of 40
percent.
When a data block is filled to the limit
determined by the
value of the PCTFREE parameter, Oracle
considers the
block unavailable for the insertion of new
rows. The block
is unavailable for the insertion of new
rows until the
percentage filled by the data of that block
falls below the
value of the PCTUSED parameter.
Until the percentage of the block falls
below the value of
the PCTUSED parameter, Oracle uses the
free space of
the data block only for updating the rows
contained in the
data block.
For example, if PCTUSED is defined as 40
percent, the
block is reused for inserts as soon as
utilization drops to
less than 40 percent. Inserts continue
until utilization
reaches 80 percent and the cycle repeats.
Reply With Quote
PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-...
3 of 9 12/02/2013 01:40
02-24-2001 03:31 AM
Join Date:
Location:
Posts:
Feb 2001
Bombay,India
530
Pctused and Pctfree are block storage
parameters.
Pctused is used to find out how much
percentage of the block will be used to
store rows.Pctfree is used to find out how
much percentage of the block will be used
to store rows resulting from further
updates to the rows in the same
datablock.
Eg. If u keep pctused to 40% and pctfree
20.so u can insert rows till 40 %.if the
limit exceeds 40%,still also u can insert
rows in the datablock till the limit reaches
80% (100%-20%) as u have kept pctfree
to 20%.Now if one goes on deleting the
rows,the block is not said to be free unless
and until pctused falls below 40%.As soon
as pctused falls below 40% from deleting
the rows, that block can be used to insert
the rows.In this way the cycle
continous.So it is recommended that u
never sum up
pctused+pctfree=100.Always have some
gap between them this helps in reducing
ur Oracle server for allocation and
disallocation of freelists.
If any further doubts write to
rohitsn@hotmail.com
Advisor
rohitsn
Reply With Quote
02-25-2001 12:48 PM
Join Date:
Location:
Posts:
May 2000
ATLANTA, GA, USA
3,136
This is an interesting question. I would
like to share my experience.
In the last 3 months, I had interviewed 15
Oracle DBAs and asked the same
question. Only one person answered
correctly.
Both the parameters are applicable and
used for each data block in the Database.
I hope an example will give you the right
answer.
#4
Moderator
tamilselvan
PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-...
4 of 9 12/02/2013 01:40
Consider 8K block size. The total bytes 8 x
1024 = 8196 bytes
Each block requires approximately 117
bytes for the header. Please note that the
header size varies depending upon the
block size.
The total available bytes for data = ( 8196
– 117) = 8079 bytes.
A table is created with PCTFREE 20
PCTUSED 50 .
PCTRFREE in bytes = 1615
PCTUSED in bytes = 4039
Now the data available for insert and
update = (8079 – (20 * 8079)/100 ) =
6463 Bytes.
Now user can insert new rows into this
block as long as the old rows’ total bytes
+ new row’s total byte is less than or
equal to 6463 bytes. If the new row’s total
byte cannot be put into this block, then
Oracle will get the next block from the
free list, and inserts into it.
When a row is updated and the row’s data
is expanded, then PCTFREE come into
play. The updated row’s data is placed
into PCTFREE’s area, provided the updated
row’s new data can be fit into PCTFREE
area. If it is not fit into that area, another
new block will be obtained from the
Freelist, and the row will be migrated. But
the original row info (pointer) is kept in
the old block. For subsequent access to
this row involves 2 read I/O. That is why
row migration should be avoided because
of excessive I/Os.
ROW DELETION:
The PCTUSED parameter value (in this
example 50 %) is the threshold limit for
the old block to be added in the FREELIST.
To understand better, let us assume that a
block is of full data. Now the user starts
deleting rows from the block. When a row
is deleted, Oracle does not put the block
into the FREELIST because it requires
many recursive calls to update the
FREELIST. The PCTUSED % (50)
determines when the block should be
added into FREELIST. When the total
bytes in the block is less than or equal to
4039 bytes, then the block will be added
into FREELIST.
If a table has high inserts and high
deletion, then you should decrease the
PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-...
5 of 9 12/02/2013 01:40
PCTUSED value in order to minimize the
frequent update of FREELIST.
The best confidence booster is knowledge.
Good Luck, guys.
Reply With Quote
02-26-2001 12:03 PM
Join Date:
Location:
Posts:
May 2000
ATLANTA, GA, USA
3,136
Correction in earlier post.
The overhead for each block is 107 bytes,
not 117 bytes.
Tamilselvan
#5
Moderator
tamilselvan
Reply With Quote
02-26-2001 12:27 PM
Join Date:
Location:
Posts:
Oct 2000
Saskatoon, SK,
Canada
3,925
#6
Senior Advisor
sambavan
PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-...
6 of 9 12/02/2013 01:40
That was one damn good explanation. But
on reading this thread, I'm getting more
questions than that of answers.
1. How do one get to check the over head
for different block_sizes.
2. What happens when one sets the
PCTFREE to 80%
Sorry for such a lame question, but was
curious to know the answer, atleast to the
first one.
Thanx,
Sam
Thanx
Sam
Life is a journey, not a destination!
Reply With Quote
02-26-2001 12:41 PM
Join Date:
Location:
Posts:
May 2000
ATLANTA, GA, USA
3,136
Oracle says the overhead for each block
varies from 84 bytes to 107 bytes.
I do not know how to cross check over
head bytes for various block sizes.
Does anybody know the answer?
#7
Moderator
tamilselvan
Reply With Quote
02-26-2001 12:44 PM
Join Date:
Location:
Posts:
Jun 2000
Madrid, Spain
7,448
if pctfree is high then basically we are
wasting hard drive space since only 10%
of block is used for inserts, of course if
you consider that you will update the rows
so often and fill the 80% up then it´s up
#8
Pando & Company
pando
PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-...
7 of 9 12/02/2013 01:40
to you but I think it´s pretty rare
I say 10% but it can be less since
pctfree+pctused cant be more than 100
and if we set pctused 20 and pctfree 80
most probably we will face perfomance
issues because the block has to be put on
freelist and taken off free list all the time.
As for block overhead I think there is a
formula in Oracle DBA Handbook
Reply With Quote
02-26-2001 12:47 PM
Join Date:
Posts:
Jan 2001
642
To add on to the question pool,
I understand that the pctused is used by
oracle to put the block into the free list for
future inserts.
1) Will any new blocks(extends) added will
directly put into the freelist ?
2) I know that I have a table, in which I
rarely have any updates and deletes but
only insertions, then can I set the
parameters for
PCT FREE = 100
and PCT USED=0?
Badrinath
#9
Advisor
badrinathn
Reply With Quote
02-26-2001 01:11 PM
Join Date:
Posts:
Nov 2000
212
badrinathn:
on site [url]http://www.ixora.com.au
/q+a/datablock.htm[/url] is good
discussion of that issue. from my
understanding, new blocks goes to so
called master free list.
pctused=0 and pctfree=100 would make
sense for insert only table.
#10
Member
LND
Reply With Quote
PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-...
8 of 9 12/02/2013 01:40
« Previous Thread | Next Thread »
Acceptable Use Policy
Copyright 2013 QuinStreet Inc. All Rights Reserved.
Terms of Service | Licensing & Permissions | Privacy Policy
About the IT Business Edge Network | Advertise
All times are GMT -4. The time now is 07:29 PM.
Page 1 of 2 1 2 Last
Quick Navigation Forum Archives Top
PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-...
9 of 9 12/02/2013 01:40

Contenu connexe

Plus de infcom

Cours admin-secure-4 avril-2011
Cours admin-secure-4 avril-2011Cours admin-secure-4 avril-2011
Cours admin-secure-4 avril-2011infcom
 
Tpdba1
Tpdba1Tpdba1
Tpdba1infcom
 
T2 corrections-qc md
T2 corrections-qc mdT2 corrections-qc md
T2 corrections-qc mdinfcom
 
T1 corrections-qcm
T1 corrections-qcmT1 corrections-qcm
T1 corrections-qcminfcom
 
Db aing td3v1
Db aing td3v1Db aing td3v1
Db aing td3v1infcom
 
Chap06 (méthodes de vérification)
Chap06 (méthodes de vérification)Chap06 (méthodes de vérification)
Chap06 (méthodes de vérification)infcom
 
Db aing td2v1
Db aing td2v1Db aing td2v1
Db aing td2v1infcom
 
Chap05 (buchi)
Chap05 (buchi)Chap05 (buchi)
Chap05 (buchi)infcom
 
Db aing td1v1
Db aing td1v1Db aing td1v1
Db aing td1v1infcom
 
Examens heykel Tej ISITCOM ingénierie protocoles
Examens heykel Tej ISITCOM ingénierie protocolesExamens heykel Tej ISITCOM ingénierie protocoles
Examens heykel Tej ISITCOM ingénierie protocolesinfcom
 
Tpdba3
Tpdba3Tpdba3
Tpdba3infcom
 
Chap02 fsm-mpssr-ht
Chap02 fsm-mpssr-htChap02 fsm-mpssr-ht
Chap02 fsm-mpssr-htinfcom
 
Examens Zaki Brahmi ISITCOM
Examens Zaki Brahmi ISITCOMExamens Zaki Brahmi ISITCOM
Examens Zaki Brahmi ISITCOMinfcom
 
Ch3 ing
Ch3 ingCh3 ing
Ch3 inginfcom
 
Examens Aline Laatiri ISITCOM
Examens Aline Laatiri ISITCOMExamens Aline Laatiri ISITCOM
Examens Aline Laatiri ISITCOMinfcom
 
Wafa kamoun-admin-sec-reseaux
Wafa kamoun-admin-sec-reseauxWafa kamoun-admin-sec-reseaux
Wafa kamoun-admin-sec-reseauxinfcom
 

Plus de infcom (19)

Cours admin-secure-4 avril-2011
Cours admin-secure-4 avril-2011Cours admin-secure-4 avril-2011
Cours admin-secure-4 avril-2011
 
Tpdba1
Tpdba1Tpdba1
Tpdba1
 
T2 corrections-qc md
T2 corrections-qc mdT2 corrections-qc md
T2 corrections-qc md
 
T1 corrections-qcm
T1 corrections-qcmT1 corrections-qcm
T1 corrections-qcm
 
Db aing td3v1
Db aing td3v1Db aing td3v1
Db aing td3v1
 
Chap06 (méthodes de vérification)
Chap06 (méthodes de vérification)Chap06 (méthodes de vérification)
Chap06 (méthodes de vérification)
 
Db aing td2v1
Db aing td2v1Db aing td2v1
Db aing td2v1
 
Chap05 (buchi)
Chap05 (buchi)Chap05 (buchi)
Chap05 (buchi)
 
Db aing td1v1
Db aing td1v1Db aing td1v1
Db aing td1v1
 
Examens heykel Tej ISITCOM ingénierie protocoles
Examens heykel Tej ISITCOM ingénierie protocolesExamens heykel Tej ISITCOM ingénierie protocoles
Examens heykel Tej ISITCOM ingénierie protocoles
 
Tpdba3
Tpdba3Tpdba3
Tpdba3
 
Chap02 fsm-mpssr-ht
Chap02 fsm-mpssr-htChap02 fsm-mpssr-ht
Chap02 fsm-mpssr-ht
 
Examens Zaki Brahmi ISITCOM
Examens Zaki Brahmi ISITCOMExamens Zaki Brahmi ISITCOM
Examens Zaki Brahmi ISITCOM
 
Ch4
Ch4Ch4
Ch4
 
Ch2
Ch2Ch2
Ch2
 
Ch1
Ch1Ch1
Ch1
 
Ch3 ing
Ch3 ingCh3 ing
Ch3 ing
 
Examens Aline Laatiri ISITCOM
Examens Aline Laatiri ISITCOMExamens Aline Laatiri ISITCOM
Examens Aline Laatiri ISITCOM
 
Wafa kamoun-admin-sec-reseaux
Wafa kamoun-admin-sec-reseauxWafa kamoun-admin-sec-reseaux
Wafa kamoun-admin-sec-reseaux
 

Dernier

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 

Dernier (20)

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 

Pctfree vs pctused

  • 1. Forum Archives Forum Archives PCTFREE Vs PCTUSED Thread: PCTFREE Vs PCTUSED Click Here to Expand Forum to Full Width Databasejournal.com - Feature Database Articles Databasejournal.com Parallel Processing -- Bane or Boon Performing Full-text Searches in MySQL 5.6 SQL Server 2012: Time Marches On Partitioning in SQL Server - Part 3 SQL Server 2012 Integration Services - Introduction to Managing SQL Server with PowerShell Techniques for Analyzing Historical DB2 Application Perform ance Data Working With Metrics Extensions in Oracle Enterprise Manager 12c Cloud Control A Tale of Two Indexes Com paring SQL Server and MySQL Functions Developing a SQL Server Backup Strategy User Name Password Log in Remember Me? RegisterHelp What's New? FAQ Calendar Forum Actions Quick Links Advanced Search Results 1 to 10 of 15 Page 1 of 2 1 2 Last Thread Tools Display 02-23-2001 09:12 PM Join Date: Posts: Oct 2000 250 #1 Senior Member ckwan Forum PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-... 1 of 9 12/02/2013 01:40
  • 2. Dear all, I want to pour some questions on the above topic questions : 1. I come across a statement saying that PCTUSED Parameter explanation - After a data block becomes full, as determined by PCTFREE, Oracle does not consider the block for the insertion of new rows until the percentage of the block being used falls below the parameter PCTUSED. Before this value is archived, Oracle uses the free space of the data block only for updates to rows already contained in the data block. Q : What is the reason for this - PCTUSED ? Why they want to control that parameter ? Can I set it to 0 ? Q: Is free list this pre-allocated ? Is this only use for PCTFREE ? Where does it store ? Your answer is very much appreciated. Thanks. Reply With Quote 02-24-2001 03:04 AM Join Date: Posts: Feb 2001 7 re: pctused vs pctfree hope this will provide you your answer... The PCTFREE parameter specifies the percentage of space in each data block that is reserved for growth resulting from updates of rows in that data block. This parameter has a default value of 10 percent. For example, the value of the PCTFREE parameter is specified as 20 in a CREATE TABLE statement. This indicates that inserts to the block should stop as soon as #2 Junior Member IT_girl200 PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-... 2 of 9 12/02/2013 01:40
  • 3. free space drops to 20 percent or less. The free space thereafter can only be used for updates. The PCTUSED parameter represents the minimum percentage of the used space that the Oracle server tries to maintain for each data block of the table. This parameter has a default value of 40 percent. When a data block is filled to the limit determined by the value of the PCTFREE parameter, Oracle considers the block unavailable for the insertion of new rows. The block is unavailable for the insertion of new rows until the percentage filled by the data of that block falls below the value of the PCTUSED parameter. Until the percentage of the block falls below the value of the PCTUSED parameter, Oracle uses the free space of the data block only for updating the rows contained in the data block. For example, if PCTUSED is defined as 40 percent, the block is reused for inserts as soon as utilization drops to less than 40 percent. Inserts continue until utilization reaches 80 percent and the cycle repeats. Reply With Quote PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-... 3 of 9 12/02/2013 01:40
  • 4. 02-24-2001 03:31 AM Join Date: Location: Posts: Feb 2001 Bombay,India 530 Pctused and Pctfree are block storage parameters. Pctused is used to find out how much percentage of the block will be used to store rows.Pctfree is used to find out how much percentage of the block will be used to store rows resulting from further updates to the rows in the same datablock. Eg. If u keep pctused to 40% and pctfree 20.so u can insert rows till 40 %.if the limit exceeds 40%,still also u can insert rows in the datablock till the limit reaches 80% (100%-20%) as u have kept pctfree to 20%.Now if one goes on deleting the rows,the block is not said to be free unless and until pctused falls below 40%.As soon as pctused falls below 40% from deleting the rows, that block can be used to insert the rows.In this way the cycle continous.So it is recommended that u never sum up pctused+pctfree=100.Always have some gap between them this helps in reducing ur Oracle server for allocation and disallocation of freelists. If any further doubts write to rohitsn@hotmail.com Advisor rohitsn Reply With Quote 02-25-2001 12:48 PM Join Date: Location: Posts: May 2000 ATLANTA, GA, USA 3,136 This is an interesting question. I would like to share my experience. In the last 3 months, I had interviewed 15 Oracle DBAs and asked the same question. Only one person answered correctly. Both the parameters are applicable and used for each data block in the Database. I hope an example will give you the right answer. #4 Moderator tamilselvan PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-... 4 of 9 12/02/2013 01:40
  • 5. Consider 8K block size. The total bytes 8 x 1024 = 8196 bytes Each block requires approximately 117 bytes for the header. Please note that the header size varies depending upon the block size. The total available bytes for data = ( 8196 – 117) = 8079 bytes. A table is created with PCTFREE 20 PCTUSED 50 . PCTRFREE in bytes = 1615 PCTUSED in bytes = 4039 Now the data available for insert and update = (8079 – (20 * 8079)/100 ) = 6463 Bytes. Now user can insert new rows into this block as long as the old rows’ total bytes + new row’s total byte is less than or equal to 6463 bytes. If the new row’s total byte cannot be put into this block, then Oracle will get the next block from the free list, and inserts into it. When a row is updated and the row’s data is expanded, then PCTFREE come into play. The updated row’s data is placed into PCTFREE’s area, provided the updated row’s new data can be fit into PCTFREE area. If it is not fit into that area, another new block will be obtained from the Freelist, and the row will be migrated. But the original row info (pointer) is kept in the old block. For subsequent access to this row involves 2 read I/O. That is why row migration should be avoided because of excessive I/Os. ROW DELETION: The PCTUSED parameter value (in this example 50 %) is the threshold limit for the old block to be added in the FREELIST. To understand better, let us assume that a block is of full data. Now the user starts deleting rows from the block. When a row is deleted, Oracle does not put the block into the FREELIST because it requires many recursive calls to update the FREELIST. The PCTUSED % (50) determines when the block should be added into FREELIST. When the total bytes in the block is less than or equal to 4039 bytes, then the block will be added into FREELIST. If a table has high inserts and high deletion, then you should decrease the PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-... 5 of 9 12/02/2013 01:40
  • 6. PCTUSED value in order to minimize the frequent update of FREELIST. The best confidence booster is knowledge. Good Luck, guys. Reply With Quote 02-26-2001 12:03 PM Join Date: Location: Posts: May 2000 ATLANTA, GA, USA 3,136 Correction in earlier post. The overhead for each block is 107 bytes, not 117 bytes. Tamilselvan #5 Moderator tamilselvan Reply With Quote 02-26-2001 12:27 PM Join Date: Location: Posts: Oct 2000 Saskatoon, SK, Canada 3,925 #6 Senior Advisor sambavan PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-... 6 of 9 12/02/2013 01:40
  • 7. That was one damn good explanation. But on reading this thread, I'm getting more questions than that of answers. 1. How do one get to check the over head for different block_sizes. 2. What happens when one sets the PCTFREE to 80% Sorry for such a lame question, but was curious to know the answer, atleast to the first one. Thanx, Sam Thanx Sam Life is a journey, not a destination! Reply With Quote 02-26-2001 12:41 PM Join Date: Location: Posts: May 2000 ATLANTA, GA, USA 3,136 Oracle says the overhead for each block varies from 84 bytes to 107 bytes. I do not know how to cross check over head bytes for various block sizes. Does anybody know the answer? #7 Moderator tamilselvan Reply With Quote 02-26-2001 12:44 PM Join Date: Location: Posts: Jun 2000 Madrid, Spain 7,448 if pctfree is high then basically we are wasting hard drive space since only 10% of block is used for inserts, of course if you consider that you will update the rows so often and fill the 80% up then it´s up #8 Pando & Company pando PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-... 7 of 9 12/02/2013 01:40
  • 8. to you but I think it´s pretty rare I say 10% but it can be less since pctfree+pctused cant be more than 100 and if we set pctused 20 and pctfree 80 most probably we will face perfomance issues because the block has to be put on freelist and taken off free list all the time. As for block overhead I think there is a formula in Oracle DBA Handbook Reply With Quote 02-26-2001 12:47 PM Join Date: Posts: Jan 2001 642 To add on to the question pool, I understand that the pctused is used by oracle to put the block into the free list for future inserts. 1) Will any new blocks(extends) added will directly put into the freelist ? 2) I know that I have a table, in which I rarely have any updates and deletes but only insertions, then can I set the parameters for PCT FREE = 100 and PCT USED=0? Badrinath #9 Advisor badrinathn Reply With Quote 02-26-2001 01:11 PM Join Date: Posts: Nov 2000 212 badrinathn: on site [url]http://www.ixora.com.au /q+a/datablock.htm[/url] is good discussion of that issue. from my understanding, new blocks goes to so called master free list. pctused=0 and pctfree=100 would make sense for insert only table. #10 Member LND Reply With Quote PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-... 8 of 9 12/02/2013 01:40
  • 9. « Previous Thread | Next Thread » Acceptable Use Policy Copyright 2013 QuinStreet Inc. All Rights Reserved. Terms of Service | Licensing & Permissions | Privacy Policy About the IT Business Edge Network | Advertise All times are GMT -4. The time now is 07:29 PM. Page 1 of 2 1 2 Last Quick Navigation Forum Archives Top PCTFREE Vs PCTUSED http://www.dbasupport.com/forums/showthread.php?7235-PCTFREE-... 9 of 9 12/02/2013 01:40