How To Size UNDO Tablespace For Automatic Undo Management [ID 262066.1]
2013-01-12 23:00
561 查看
SizinganUNDOtablespacerequiresthreepiecesofdata.
(UR)UNDO_RETENTIONinseconds
(UPS)Numberofundodatablocksgeneratedpersecond
(DBS)Overheadvariesbasedonextentandfilesize(db_block_size)
Theundospaceneedediscalculatedas:
UndoSpace=UR*(UPS*DBS)
Twoofthepiecesofinformationcanbeobtainedfromtheinstanceconfiguration:UNDO_RETENTIONandDB_BLOCK_SIZE.Thethirdpieceoftheformularequiresaquerybeingrunagainstthedatabase.Themaximumnumberofundoblocksgeneratedpersecondcan
beacquiredfromV$UNDOSTAT.
Note:Overallconsiderationforpeak/heavyvs.normalsystemactivityshouldbetakenintoaccountwhenpeformingthecalculations.AutoextendOFFvs.ONwillchangethebehaviorforUNDO_RETENTIONgrowthanduseofUNEXPIREDextents.SeeNote461480.1for
moreinformation.
Thefollowingformulacalculatesthepeakundoblocksgeneratedpersecond:
SQL>SELECTundoblks/((end_time-begin_time)*86400)"PeakUndoBlockGeneration"FROMv$undostatWHEREundoblks=(SELECTMAX(undoblks)FROMv$undostat);
ColumnEND_TIMEandBEGIN_TIMEareDATEdatatypes.WhenDATEdatatypesaresubtracted,theresultingvalueisthe#ofdaysbetweenbothdates.Toconvertdaystoseconds,youmultiplyby86400,thenumberofsecondsinaday(24hours*60minutes*60
seconds).
Thefollowingquerycalculatesthenumberofbytesneededtohandleapeakundoactivity:
SQL>SELECT(UR*(UPS*DBS))AS"Bytes"FROM(SELECTvalueASURFROMv$parameterWHEREname='undo_retention'),(SELECTundoblks/((end_time-begin_time)*86400)ASUPSFROMv$undostatWHEREundoblks=(SELECTMAX(undoblks)FROMv$undostat)),(SELECTblock_sizeASDBSFROMdba_tablespacesWHEREtablespace_name=(SELECTUPPER(value)FROMv$parameterWHEREname='undo_tablespace'));
ColumnEND_TIMEandBEGIN_TIMEareDATEdatatypes.WhenDATEdatatypesaresubtracted,theresultingvalueisthe#ofdaysbetweenbothdates.Toconvertdaystoseconds,youmultiplyby86400,thenumberofsecondsinaday(24hours*60minutes*60
seconds).
Thefollowingquerycalculatesthenumberofbytesneededtohandleapeakundoactivity:
相关文章推荐
- TECH: Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION` with Automatic Undo Management [ID 283945.1]
- How To Reclaim Wasted Space on The Segment (Table, Index and LOB) and Tablespace Levels (文档 ID 16827
- TECH: Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION` with Automatic Undo Management [ID 283945.1]
- How to recover a skipped tablespace after an incomplete recovery with resetlogs? [ID 1561645.1]
- Minimum Size for Bigfile Tablespace in 12c (Doc ID 2076125.1)
- TECH: Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION` with Automatic Undo Management [ID 283945.1]
- MANUAL segment management on tablespace for AUD$ and FGA_LOG$ could lead to database hanging with gc
- TECH: Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION` with Automatic Undo Management [ID 283945.1]
- TECH: Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION` with Automatic Undo Management [ID 283945.1]
- How To Reclaim Wasted Space on The Segment (Table, Index and LOB) and Tablespace Levels (文档 ID 16827
- What Is The Maximum Tablespace Size And Database Limit For An Oracle Database ? (文档 ID 1372905.1)
- TECH: Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION` with Automatic Undo Management [ID 283945.1]
- TECH: Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION` with Automatic Undo Management [ID 283945.1]
- Linux: How to Configure the DNS Server for 11gR2 SCAN [ID 1107295.1]
- How-to find the SQL that using lots of temp tablespace in Oracle
- Deployment of very large databases (10TB to PB range) with Automatic Storage Management (ASM) [ID 368055.1]
- How to Calculate Your Shared Pool Size [ID 1012046.6]
- How To Quickly Add/Remove Column Statistics (Histograms) For A Column (文档 ID 390249.1
- Oracle 10g 异常:ORA-01658:unable to create INITIAL extent for segmnet in tablespace SYSTEM
- How to find indexPath for tapped button in tableView Using Seque