newbie DBA - rollback segments

Ask a Question related to Oracle Server, Design and Development.

  1. #1

    Default newbie DBA - rollback segments

    I'm new to the oracle dba roll, so please be gentle.

    I load several large tables every night. My database is only about
    20gB and is 24x7. I have 10 rollback segments of 100 mB each. I've
    noticed that the I have a rather high amount of that space getting
    used up (especially after I ran an adhoc UPDATE query on one of those
    large tables). How do I clear the RBS (beyond stopping and restarting
    the instance)? Is there a danger in having 75% or more utilization of
    those RBS's?

    Thanks,
    Mark
    Mark Perrault Guest

  2. Similar Questions and Discussions

    1. preloading in segments
      How can I preload a flashwebsite in segments? I'm building a website with 9 'rooms'. The background and the main navigation are the same in all the...
    2. Order of memory segments
      Is the order of memory segments(text, data, BSS, heap) guaranteed to be same in any unix memory model ?
    3. How many rollback segments can a transaction use?
      Oracle8(TM) Server Concepts " When a transaction runs out of space in the current extent and needs to continue writing, Oracle finds an available...
    4. Differences between Undo and Rollback Segments?
      There is absolutely, positively no architectural difference between rollback and undo segments, apart from a name change occasioned by the marketing...
    5. mapping segments to sessions
      I am trying to trace segment growth in the temp tablespace back to a specific session. The tablespace will grow rapidly (40Gb) without warning. I...
  3. #2

    Default Re: newbie DBA - rollback segments


    "Mark Perrault" <mperrault@ingdirect.com> wrote in message
    news:ee979b3c.0307021149.7d707a35@posting.google.c om...
    > I'm new to the oracle dba roll, so please be gentle.
    >
    > I load several large tables every night. My database is only about
    > 20gB and is 24x7. I have 10 rollback segments of 100 mB each. I've
    > noticed that the I have a rather high amount of that space getting
    > used up (especially after I ran an adhoc UPDATE query on one of those
    > large tables). How do I clear the RBS (beyond stopping and restarting
    > the instance)? Is there a danger in having 75% or more utilization of
    > those RBS's?
    >
    > Thanks,
    > Mark
    You don't clear them up. If you really are afraid you are using up too much
    space, or one of them is really much bigger than the others, shrink them
    (alter rollback segment shrink to ...)
    You don't clear them up because you need to have multiple extents
    accomodating for multiple transactions.
    Also, in dictionary managed tablespaces, extent allocation is expensive.
    You're going to shoot yourself in your foot also because they will grow
    again, when a larger transaction use the rollback segment. Once transaction
    commits you shrink the segment and the whole story starts over again.
    Configure them properly and leave them alone as much as possible.


    --
    Sybrand Bakker
    Senior Oracle DBA

    to reply remove '-verwijderdit' from my e-mail address


    Sybrand Bakker Guest

  4. #3

    Default Re: newbie DBA - rollback segments

    Mark Perrault wrote:
    > I'm new to the oracle dba roll, so please be gentle.
    >
    > I load several large tables every night. My database is only about
    > 20gB and is 24x7. I have 10 rollback segments of 100 mB each. I've
    > noticed that the I have a rather high amount of that space getting
    > used up (especially after I ran an adhoc UPDATE query on one of those
    > large tables). How do I clear the RBS (beyond stopping and restarting
    > the instance)? Is there a danger in having 75% or more utilization of
    > those RBS's?
    >
    > Thanks,
    > Mark
    If it ain't broke don't fix it. From what you've written everything is
    fine.

    You don't clear rollback segments ... you size them large enough to handle
    the largest transactions (which appears to be the case) and then you leave
    them alone.

    In the future be sure to post hardware, O/S, version and edition. For
    example if your database is 9.2 you should be using UNDO rather than
    Rollback.
    --
    Daniel Morgan
    [url]http://www.outreach.washington.edu/extinfo/certprog/oad/oad_crs.asp[/url]
    [email]damorgan@x.washington.edu[/email]
    (replace 'x' with a 'u' to reply)


    Daniel Morgan Guest

  5. #4

    Default Re: newbie DBA - rollback segments

    Mark Perrault wrote:
    > I'm new to the oracle dba roll, so please be gentle.
    >
    > I load several large tables every night. My database is only about
    > 20gB and is 24x7. I have 10 rollback segments of 100 mB each. I've
    > noticed that the I have a rather high amount of that space getting
    > used up (especially after I ran an adhoc UPDATE query on one of those
    > large tables). How do I clear the RBS (beyond stopping and restarting
    > the instance)? Is there a danger in having 75% or more utilization of
    > those RBS's?

    The rollback segment is a circular buffer. So it'll automatically
    re-use its space. There is no need to "clear" it. The segment grows
    usually when you have long running transactions (preventing the rollback
    segment from re-using certain extents because the transaction has not
    completed). But when the transaction commits, the space is available
    for re-use again.

    Having a large RBS is not a concern except that for optimal performance,
    you would want the RBS to be just small enough to support the largest
    transaction for your apps. This way, the RBS can be cached in the
    buffer cache and you save disk I/O. To achieve this, set the OPTIMAL
    parameter in the storage clause of the RBS. This will cause Oracle to
    attempt to periodically shrink the RBS back to the optimal size you set.
    If you do this, be sure to check V$ROLLSTAT regularly and adjust your
    OPTIMAL parameter so that OPTSIZE is close to AVEACTIVE, and SHRINKS is
    a low value.

    Cheers,
    Dave





    >
    > Thanks,
    > Mark
    Dave Hau Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139