Re: Fast roll-back




"astalavista" <nobody@xxxxxxxxxxx> wrote in message
news:4978dca3$0$15296$426a74cc@xxxxxxxxxxxxxxx
Hi,

Why, where a roll back occurred, it is faster
to reboot the database instead of waiting the end
of the roll-back ?

Thanks for your lights




You may be thinking of something like the following:

If a process issues a rollback; then all the rows it had
locked will stay locked until the entire rollback is complete.

If the session is killed or the database is restarted (before
the process commits its transaction) then smon handles the
rollback. But if some other user process needs to update
some of the inconsistent data, it can detect that it's looking
at blocks that are in need of rollback and perform a "localised"
rollback against just those blocks.

This means that killing a session (or in your extreme case bouncing
the database) can allow other work to resume faster than it could
if you waited for a process rollback to complete.

It's possible that in earlier versions of Oracle, this "localised" rollback
could take place only at database restart. In modern versions it can
happen after a "kill session". Of course, it won't necessarily be the
case that killing a session will help.


--
Regards

Jonathan Lewis
http://jonathanlewis.wordpress.com

Author: Cost Based Oracle: Fundamentals
http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html


.



Relevant Pages

  • Re: just wondering about MSKB 828481
    ... seems to depend on the database being in other than ... > rollback I'll be OK. ... SQL Server doesn't, AFAIK, offer any native method for unravelling ... Steve Foster [SBS MVP] ...
    (microsoft.public.windows.server.sbs)
  • Re: How to transactionally update a DB Schema?
    ... You can execute DDL as part of an explicit transaction so that you can ... rollback in the case of an error. ... database prior the upgrade and restore if an error is encountered. ...
    (microsoft.public.sqlserver.server)
  • Re: ROLLBACK a transaction
    ... execute your select query, but it would ignore all non-committed records as ... > I'm reading records from one database to another database, ... We have to do a rollback of all the ... > Is there a solution for this whitout changing the select to "......with ...
    (microsoft.public.sqlserver.programming)
  • Re: Scope of transaction processing wrapper
    ... Just pass the Database variable, and it will all rollback. ... This article illustrates transactions: ... My question is on the scope of what transaction ...
    (comp.databases.ms-access)
  • Re: Recovery from Delete statement using the transaction logs
    ... If you did, just do ROLLBACK. ... Are you performing regular transaction log backups? ... Is database in full or bulk logged recovery ...
    (microsoft.public.sqlserver.server)