Skip to Content
Oracle Parallel Processing
book

Oracle Parallel Processing

by Tushar Mahapatra, Sanjay Mishra
August 2000
Intermediate to advanced
288 pages
7h 50m
English
O'Reilly Media, Inc.
Content preview from Oracle Parallel Processing

The PCTFREE Parameter: Reserving Free Space

The PCTFREE storage parameter specifies the percentage of each data block that is to be kept free for future updates that might expand the rows stored in that block. This parameter also can be used to control the number of rows that reside in a block. By reducing the number of rows in each block, you may be able to reduce pings on tables that are frequently accessed from many instances.

Let’s use for an example a table that takes up 20 blocks and that is accessed randomly by multiple OPS instances. By increasing the value of the PCTFREE parameter and re-creating the table, you can cause that same data to be spread out over 80 blocks—four times as many as the original number. This reduces the probability of block contention to one-fourth of what it used to be. In essence, you are trading space for performance. This concept is practical for relatively small tables. In an extreme case, for a very “hot” table that cannot be partitioned, you can adjust PCTFREE high enough so that only one row is assigned per block. As long as no two instances are contending for the same row, no pinging will occur.

Assume that your database block size is 16K and that one row of our particular table takes up 200 bytes. You can specify the following STORAGE clause to ensure that each row is written to a block of its own:

STORAGE (INITIAL 128K NEXT 64K PCTINCREASE 0 PCTFREE 98 PCTUSED 2)

As you can see, the PCTFREE parameter in this example requests that each block ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Oracle Streams 11g Data Replication

Oracle Streams 11g Data Replication

Kirtikumar Deshpande

Publisher Resources

ISBN: 156592701XCatalog PageErrata