Oracle Cloud Infrastructure
Coming soon ...
Apps R12.2
  • R12.2 Architecture
  • Cloning Error (RC-50208)
  • Apps R12.1
  • Major changes from 11i
  • R12:HTTP Debug Logging
  • Compile Apps Schema invalid objects in R12
  • Apps 11i
  • Apps Components and Architecture
  • Concurrent managers
  • Patching
  • Using AD Patch
  • Using AD Control
  • FNDCPASS utility
  • Single-node Installation
  • Multi-node Installation
  • Find Apps Version
  • Cloning
  • Upgrade 11.5.9 to 11.5.10.2
  • Upgrade from 11.5.10.2 to R12
  • Upgrading 9i to 10g with 11i
  • 11i/R12 General Topics
  • AppsDBA System Management Utilities Guide
  • Identifying Long Idle Sessions
  • Identifying High Active Sessions
  • Change hostname for EBS
  • Oracle 12c Database
  • Oracle12c PSU Apply
  • Oracle12c Datafile moved Online
  • Oracle 11g Database
  • Upgrade 10g to 11g R1
  • Upgrade 11.2.0.2 to 11.2.0.3
  • Database 9i-10g
  • Top 99 Responsibilities of a DBA
  • General Info
  • Database Patching
  • 10g:ASM
  • 10g:Data Pump
  • 10g:Data Guard Installing
  • 10g:Rollback Monitoring
  • 10g:Flashback Table
  • Tablespace Management
  • Materialized Views
  • 10g:Enterprise Manager
  • 10g:Upgrade
  • Error:Ora-01631
  • DBA Scripts
  • Disk I/O,Events,Waits
  • Tablespace Information
  • Session Statistics
  • Hit/Miss Ratios
  • User Information
  • Rollback Segments
  • Full Table Scans
  • Contention/Locking
  • Redo Log Buffer
  • Data Dictionary Info
  • Oracle10g Application Server
  • Oracle10g Application Installation
  • (Re)Securing OAS Control
  • Oracle AS10g null protocol issue
  • Oracle Backup & Recovery
  • RMAN
  • RMAN Setup
  • Backup Recovery
  • Flash Recovery Area
  • Oracle10g Discoverer with Apps
    Coming soon ..............
    Troubleshooting
  • Discoverer Troubleshooting
  • Access EBS in mozile
  • Linux and Unix Platforms
  • How To configure NFS
  • Unix/Linux Command
  • Change hostname in Linux
  • SENDMAIL configuration
  • This Oracle Application DBA Portal is the biggest knowledge gateway for the people in the world of Oracle...
    Monday, June 22, 2009
    Rollback Segments
    Rollback Segments
    Here are some scripts related to Rollback Segments .

    Segments
    ROLLBACK INFORMATION NOTES:


    Segment Name - Name of the rollback segment.
    Owner - Owner of the rollback segment.
    Tablespace - Name of the tablespace containing the rollback segment.
    Segment ID - ID number of the rollback segment.
    File ID - ID number of the block containing the segment header.
    Block ID - Starting block number of the extent.
    Initial Extent - Initial extent size in bytes.
    Next Extent - Secondary extent size in bytes.
    Min Extents - Minimum number of extents.
    Max Extents - Maximum number of extents.
    PCT Increase - Percent increase for extent size.
    Status - ONLINE if the segment is online, or PENDING OFFLINE if the segment is going offline but some active (distributed) transactions are using the rollback segment. When the transaction(s) complete, the segment goes OFFLINE.
    Instance - Instance this rollback segment belongs to (Parallel Server), or NULL for a single-instance system .

    select SEGMENT_NAME,
    OWNER,
    TABLESPACE_NAME,
    SEGMENT_ID,
    FILE_ID,
    BLOCK_ID,
    INITIAL_EXTENT,
    NEXT_EXTENT,
    MIN_EXTENTS,
    MAX_EXTENTS,
    PCT_INCREASE,
    STATUS,
    INSTANCE_NUM
    from dba_rollback_segs
    order by SEGMENT_NAME

    Transactions
    ROLLBACK STATISTIC (TRANSACTION TABLES) NOTES:


    Statistic Name - Name of the statistic
    Value - Current value

    The name of the consistent changes statistic is misleading. It does not indicate the number of updates (or changes), but rather, the number of times a consistent get had to retrieve and "old" version of a block because of updates that occurred after the cursor had been opened. As of Oracle7.3, a more accurate statistic was added. Named data blocks consistent reads - undo records applied; the new statistic gives the actual number of data records applied.
    The consistent gets statistic reflects the number of accesses made to the block buffer to retrieve data in a consistent mode. Most accesses to the buffer are done with the consistent get mechanism, which uses the SCN (System Change Number) to make sure the data being read has not changed sine the query was started.
    The data blocks consistent reads - undo records applied statistic reflects the number of updates (or changes) applied.

    select NAME,
    VALUE
    from v$sysstat
    where name in (
    'consistent gets',
    'consistent changes',
    'transaction tables consistent reads - undo records applied',
    'transaction tables consistent read rollbacks',
    'data blocks consistent reads - undo records applied',
    'no work - consistent read gets',
    'cleanouts only - consistent read gets',
    'rollbacks only - consistent read gets',
    'cleanouts and rollbacks - consistent read gets')
    order by NAME

    Contention
    ROLLBACK CONTENTION NOTES:


    Segment Name - Name of the rollback segment.
    Seg# - Rollback segment number.
    Gets - Number of header gets.
    Waits - Number of header waits.
    Hit Ratio - Ratio of gets to waits. This should be >= 99%.
    Active Transactions - Number of active transactions.
    Writes - Number of bytes written to rollback segment.

    Hit Ratio should be >= 99% - if not, consider adding additional rollback segments.
    Check the system undo header, system undo block, undo header, undo block statistics under "Wait Statistics" for additional information on rollback contention.

    select b.NAME,
    a.USN seg#,
    GETS,
    WAITS,
    round(((GETS-WAITS)*100)/GETS,2) hit_ratio,
    XACTS active_transactions,
    WRITES
    from v$rollstat a,
    v$rollname b
    where a.USN = b.USN

    Growth
    ROLLBACK EXTENDING AND SHRINKAGE NOTES:


    Rollback Segment - Name of rollback segment.
    Seg# - Rollback segment number.
    Size - Size in bytes of the rollback segment.
    OptSize - Optimal size of rollback segment.
    HWM - High Water Mark of rollback segment size.
    Extends - Number of times rollback segment was extended to have a new extent.
    Wraps - Number of times rollback segment wraps from one extent to another.
    Shrinks - Number of times rollback segment shrank, eliminating one or more additional extents each time.
    Average Shrink - Total size of freed extents divided by number of shrinks.
    Average Active - Current average size of active extents, where "active" extents have uncommitted transaction data.
    Status - ONLINE if the segment is online, or PENDING OFFLINE if the segment is going offline but some active (distributed) transactions are using the rollback segment. When the transaction(s) complete, the segment goes OFFLINE.

    select NAME,
    a.USN,
    RSSIZE,
    OPTSIZE,
    HWMSIZE,
    EXTENDS,
    WRAPS,
    SHRINKS,
    AVESHRINK,
    AVEACTIVE,
    STATUS
    from v$rollstat a ,
    v$rollname b
    where a.USN=b.USN
    order by NAME

    Labels:

    posted by Srinivasan .R @ 1:59 AM  
    0 Comments:
    Post a Comment
    << Home
     
    About Me

    Name: Srinivasan .R
    Home: Chennai, India

    About Me:
    I am working as an Oracle Applications DBA specializing in EBS 11i/R12 with Over 14+ years of experience, mainly in different versions of Oracle Database & Application administration on various platforms like HP-UX, SOLARIS, AIX, Red hat Linux & Windows
    See my complete profile
    High Availability
  • Oracle10g RAC Installation
  • A Quick Reference for Oracle Database 10g RAC on Linux and Unix Platforms
  • Implementing Oracle 10g RAC with ASM on AIX
  • Locked objects for whole RAC
  • Monitor Memory RAC
  • Sessions RAC
  • Install Oracle 11g RAC On Linux
  • Migrating Oracle10g DB to ASM
  • Helpful Links
  • Good Metalink Notes
  • Discoverer:Metalink Notes
  • Logs Scripts:Metalink Notes
  • Support:Metalink Notes
  • Previous Post
  • User Information
  • Hit/Miss Ratios
  • Session Statistics
  • Tablespace Information
  • Disk I/O, Events, Waits
  • General Info
  • Migrating Oracle10g DB to ASM
  • Install Oracle 11g RAC On Linux
  • Sessions RAC
  • Monitor Memory RAC
  • Archives
    Download Software
  • Oracle 11g
  • Oracle 10g
  • 10g Express Edition
  • Oracle 9i
  • Oracle Apps
  • Oracle Linux
  • Oracle VM
  • App Server
  • Solaris
  • Fedora
  • Fedora
  • OpenSUSE
  • Ubuntu
  • Advertisement Links
    INTUIT Technology

    MACHS DATA

    Add Ons
    Locations of visitors to this page

    Add to Google Reader or Homepage

    Template by
    Sreene



    Oracle Application DBA Portal