際際滷

際際滷Share a Scribd company logo
When do Rollback Segments Shrink?                                               Administration Tips




When do Rollback Segments shrink?

Rollback segments shrink whenever a transaction crosses an extent boundary, provided
that OPTIMAL has been set. Crossing the extent boundary is known as a 'wrap' (erroneously,
many think a 'wrap' only occurs when the segment starts re-using its first extent. It doesn't.
Any time a new extent starts to be used, that's a wrap).

If OPTIMAL has not been set, shrinks will not occur, however many wraps you have.

If you think about it, shrinking as a transaction seeks to cross the extent boundary is a
ludicrous time to do the deed. There's your transaction, wanting to get on and write its
rollback, and suddenly, it has to take time out waiting for the rollback segment to decide
which extents are to be de-allocated. Shrinkage also forces DBWR to flush rollback blocks
in the Buffer Cache back down to disk -and any time anything induces additional I/O,
performance suffers.

Therefore, my strong advice has always been: First, size your segments properly in the first
place, so that they neither grow nor shrink. Second, if they do inadvertently balloon in
size (perhaps because of a blocking transaction, which there's very little you can do to
prevent happening), perform a shrink manually, at a time and place of your choosing,
instead of relying on the automatic OPTIMAL method firing off in the middle of
transactions.

To induce a manual shrink, issue the command:

ALTER ROLLBACK SEGMENT BLAH SHRINK TO    50M;

(...or whatever size is appropriate for you). The segment might not get all the way down
to the specified size (it will never drop extents that contain active rollback -i.e., live
transactions- for example), but it will get as close as it can. If that command fires at night
when few people are using the system, nobody will notice the performance hit it induces.




Copyright 息 Howard Rogers 2001            10/18/2001                                     Page 1 of 1
Ad

Recommended

Tablerename
Tablerename
oracle documents
Rollbacksizes
Rollbacksizes
oracle documents
Sequencereset
Sequencereset
oracle documents
Userlimit
Userlimit
oracle documents
Rollbackblocking
Rollbackblocking
oracle documents
Undo internalspresentation
Undo internalspresentation
oracle documents
Usertracing
Usertracing
oracle documents
Applyinga blockcentricapproachtotuning
Applyinga blockcentricapproachtotuning
oracle documents
Windowsosauthent
Windowsosauthent
oracle documents
Whatistnsnames
Whatistnsnames
oracle documents
Whatisadatabaselink
Whatisadatabaselink
oracle documents
Varraysandnestedtables
Varraysandnestedtables
oracle documents
Userpasswrd
Userpasswrd
oracle documents
Undo internals paper
Undo internals paper
oracle documents
Tablespacelmt
Tablespacelmt
oracle documents
Sql scripting sorcerypresentation
Sql scripting sorcerypresentation
oracle documents
Sql scripting sorcerypaper
Sql scripting sorcerypaper
oracle documents
Sql for dbaspresentation
Sql for dbaspresentation
oracle documents
Rollbacklmt
Rollbacklmt
oracle documents
Rollback1555s
Rollback1555s
oracle documents
Redosize
Redosize
oracle documents
Real liferecoverypresentation
Real liferecoverypresentation
oracle documents
Real liferecoverypaper
Real liferecoverypaper
oracle documents
Perfstats
Perfstats
oracle documents
Oracledates
Oracledates
oracle documents
Ora12154
Ora12154
oracle documents
Nologging
Nologging
oracle documents
Migration
Migration
oracle documents
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
pavelborek
Webinar: Why Odoo is a game-changer for Service Companies
Webinar: Why Odoo is a game-changer for Service Companies
dear digital

More Related Content

More from oracle documents (20)

Windowsosauthent
Windowsosauthent
oracle documents
Whatistnsnames
Whatistnsnames
oracle documents
Whatisadatabaselink
Whatisadatabaselink
oracle documents
Varraysandnestedtables
Varraysandnestedtables
oracle documents
Userpasswrd
Userpasswrd
oracle documents
Undo internals paper
Undo internals paper
oracle documents
Tablespacelmt
Tablespacelmt
oracle documents
Sql scripting sorcerypresentation
Sql scripting sorcerypresentation
oracle documents
Sql scripting sorcerypaper
Sql scripting sorcerypaper
oracle documents
Sql for dbaspresentation
Sql for dbaspresentation
oracle documents
Rollbacklmt
Rollbacklmt
oracle documents
Rollback1555s
Rollback1555s
oracle documents
Redosize
Redosize
oracle documents
Real liferecoverypresentation
Real liferecoverypresentation
oracle documents
Real liferecoverypaper
Real liferecoverypaper
oracle documents
Perfstats
Perfstats
oracle documents
Oracledates
Oracledates
oracle documents
Ora12154
Ora12154
oracle documents
Nologging
Nologging
oracle documents
Migration
Migration
oracle documents

Recently uploaded (20)

Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
pavelborek
Webinar: Why Odoo is a game-changer for Service Companies
Webinar: Why Odoo is a game-changer for Service Companies
dear digital
Stuart Frost - The Chief Executive Officer Of Geminos
Stuart Frost - The Chief Executive Officer Of Geminos
Stuart Frost
Integration of Information Security Governance and Corporate Governance
Integration of Information Security Governance and Corporate Governance
Tokyo Security Community
QuickBooks Keeps Freezing: Causes & Solutions.pptx
QuickBooks Keeps Freezing: Causes & Solutions.pptx
robastwilliams
IT Companies in Magarpatta: A Thriving Hub of Technology and Innovation
IT Companies in Magarpatta: A Thriving Hub of Technology and Innovation
prernarathi90
The Key Cultural Role of Punes Shivsrushti
The Key Cultural Role of Punes Shivsrushti
kapoorgita1991
Kenyan Msme Export Book by Dickens Aluha Mujumba
Kenyan Msme Export Book by Dickens Aluha Mujumba
JoshuaKihara
Ian McAllister - Respected Photographer And Writer
Ian McAllister - Respected Photographer And Writer
Ian McAllister
Oleksandr Osypenko: Defining PMO Structure and Governance (UA)
Oleksandr Osypenko: Defining PMO Structure and Governance (UA)
Lviv Startup Club
SELECTION. Of the chapter staffing plustwo business studies
SELECTION. Of the chapter staffing plustwo business studies
dilshap23
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul
BMGI India Addressing Strategic, Innovative, and Operational Problems at Core...
BMGI India Addressing Strategic, Innovative, and Operational Problems at Core...
Naresh Raisinghani
From Visibility to Action: How Modern Cloud Teams Regain Control
From Visibility to Action: How Modern Cloud Teams Regain Control
Amnic
Pendant Lights That Reflect Your Style and Transform Your Living Space
Pendant Lights That Reflect Your Style and Transform Your Living Space
neslightingofficial
Zero-emission zones in the Netherlands 2025
Zero-emission zones in the Netherlands 2025
Walther Ploos van Amstel
Enhancing Customer Engagement in Direct Selling Through AI Segmentation
Enhancing Customer Engagement in Direct Selling Through AI Segmentation
Epixel MLM Software
ERP Modernization in 2025: A Practical Guide for CIOs
ERP Modernization in 2025: A Practical Guide for CIOs
Praxis Info Solutions
Rushi Manche | Blockchain Tech Company Co-Founder
Rushi Manche | Blockchain Tech Company Co-Founder
Rushi Manche
Marketing Assignment presentation of good marketing techniques how to impleme...
Marketing Assignment presentation of good marketing techniques how to impleme...
Priya Raj
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
Akn鱈 pl叩n pro chemick箪 pr哲mysl - Ivan Souek
pavelborek
Webinar: Why Odoo is a game-changer for Service Companies
Webinar: Why Odoo is a game-changer for Service Companies
dear digital
Stuart Frost - The Chief Executive Officer Of Geminos
Stuart Frost - The Chief Executive Officer Of Geminos
Stuart Frost
Integration of Information Security Governance and Corporate Governance
Integration of Information Security Governance and Corporate Governance
Tokyo Security Community
QuickBooks Keeps Freezing: Causes & Solutions.pptx
QuickBooks Keeps Freezing: Causes & Solutions.pptx
robastwilliams
IT Companies in Magarpatta: A Thriving Hub of Technology and Innovation
IT Companies in Magarpatta: A Thriving Hub of Technology and Innovation
prernarathi90
The Key Cultural Role of Punes Shivsrushti
The Key Cultural Role of Punes Shivsrushti
kapoorgita1991
Kenyan Msme Export Book by Dickens Aluha Mujumba
Kenyan Msme Export Book by Dickens Aluha Mujumba
JoshuaKihara
Ian McAllister - Respected Photographer And Writer
Ian McAllister - Respected Photographer And Writer
Ian McAllister
Oleksandr Osypenko: Defining PMO Structure and Governance (UA)
Oleksandr Osypenko: Defining PMO Structure and Governance (UA)
Lviv Startup Club
SELECTION. Of the chapter staffing plustwo business studies
SELECTION. Of the chapter staffing plustwo business studies
dilshap23
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul Shares 5 Key Impacts of AI Agents on the Sales Industry
Noah Loul
BMGI India Addressing Strategic, Innovative, and Operational Problems at Core...
BMGI India Addressing Strategic, Innovative, and Operational Problems at Core...
Naresh Raisinghani
From Visibility to Action: How Modern Cloud Teams Regain Control
From Visibility to Action: How Modern Cloud Teams Regain Control
Amnic
Pendant Lights That Reflect Your Style and Transform Your Living Space
Pendant Lights That Reflect Your Style and Transform Your Living Space
neslightingofficial
Zero-emission zones in the Netherlands 2025
Zero-emission zones in the Netherlands 2025
Walther Ploos van Amstel
Enhancing Customer Engagement in Direct Selling Through AI Segmentation
Enhancing Customer Engagement in Direct Selling Through AI Segmentation
Epixel MLM Software
ERP Modernization in 2025: A Practical Guide for CIOs
ERP Modernization in 2025: A Practical Guide for CIOs
Praxis Info Solutions
Rushi Manche | Blockchain Tech Company Co-Founder
Rushi Manche | Blockchain Tech Company Co-Founder
Rushi Manche
Marketing Assignment presentation of good marketing techniques how to impleme...
Marketing Assignment presentation of good marketing techniques how to impleme...
Priya Raj
Ad

Rollbackshrinks

  • 1. When do Rollback Segments Shrink? Administration Tips When do Rollback Segments shrink? Rollback segments shrink whenever a transaction crosses an extent boundary, provided that OPTIMAL has been set. Crossing the extent boundary is known as a 'wrap' (erroneously, many think a 'wrap' only occurs when the segment starts re-using its first extent. It doesn't. Any time a new extent starts to be used, that's a wrap). If OPTIMAL has not been set, shrinks will not occur, however many wraps you have. If you think about it, shrinking as a transaction seeks to cross the extent boundary is a ludicrous time to do the deed. There's your transaction, wanting to get on and write its rollback, and suddenly, it has to take time out waiting for the rollback segment to decide which extents are to be de-allocated. Shrinkage also forces DBWR to flush rollback blocks in the Buffer Cache back down to disk -and any time anything induces additional I/O, performance suffers. Therefore, my strong advice has always been: First, size your segments properly in the first place, so that they neither grow nor shrink. Second, if they do inadvertently balloon in size (perhaps because of a blocking transaction, which there's very little you can do to prevent happening), perform a shrink manually, at a time and place of your choosing, instead of relying on the automatic OPTIMAL method firing off in the middle of transactions. To induce a manual shrink, issue the command: ALTER ROLLBACK SEGMENT BLAH SHRINK TO 50M; (...or whatever size is appropriate for you). The segment might not get all the way down to the specified size (it will never drop extents that contain active rollback -i.e., live transactions- for example), but it will get as close as it can. If that command fires at night when few people are using the system, nobody will notice the performance hit it induces. Copyright 息 Howard Rogers 2001 10/18/2001 Page 1 of 1