DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: rollback issues. Any ideas

  1. #11
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Originally posted by clinton
    I mean selecting from a table e.g the EMP table. Does that use rollback segments?
    It may, depending on whether data is changing in the EMP table or not.

    I guess the big question is how do you use "USE"? [insert obvious Bill Clinton joke here...]

    Do you mean is information WRITTEN to the RBS? No.

    Do you mean the RBS has some involvement with the transaction? Yes.
    Jeff Hunter

  2. #12
    Join Date
    Jan 2001
    Posts
    157
    The feedbacks are not straight forward.
    I need a yes or no answer.

    The select is only a select(e.g. sql query to return an out output). Data is not changing, no insert, no update, no delete,etc. Just a plain select statement. There is no modification to the table
    EXAMPLE:Users select through a web application. There is no modification to the table. Just a plain select statement.

  3. #13
    Join Date
    Mar 2001
    Posts
    635
    Hi

    No !!! I dont think it will use any rollback segments for a

    select statement

    Regards,
    Santosh

  4. #14
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Originally posted by santoshym
    Hi

    No !!! I dont think it will use any rollback segments for a

    select statement

    Regards,
    YES it will. If there are ANY changes, your select might use a rollback segment. Surely, you won't have a database where the data never changes.
    Jeff Hunter

  5. #15
    Join Date
    Mar 2001
    Posts
    635
    Hi

    But Clinton specifically is said there are no updates,inserts or deletes going on. Just a simple SQL statement

    Regards,
    Santosh

  6. #16
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    For this one scenario, a very unlikely event in the real world, no a RBS will not be used. However, I think it is irresponsible to say that SELECT statements don't use RBS. It's simply not true.
    Jeff Hunter

  7. #17
    Join Date
    Mar 2001
    Posts
    635
    Hi Jeff

    I agree with you very unlikely event that there is no update or insert or data change going on in a database but I was just looking at the last post and answering.

    No offense meant!!!

    Regards,
    Santosh

  8. #18
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Theoreticaly speaking:
    Not that SELECT may only READ from rollback segments to get a consistent view of the data, it can also WRITE to RBS.

    If you call a PL/SQL function among the column list in your select statement, this function can easily write to some database table (for auditing puprposes, for example), and this will of course be recorded in RBS. And your function must use autonomus transaction for this.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

  9. #19
    Join Date
    Apr 2001
    Location
    Louisville KY
    Posts
    295
    Unless the statement 'Set Transaction Read Only' is issued prior to the select, the select is presumed to be a select for update. This means the retrieved blocks are stored for a 'before' image during the life of the transaction.

    Also, I believe Jeff Hunter is right in that it is Rollbacks that keep the read consistant data for long running queries.

    Net Result: Most of the time a query will use rollbacks, but quick queries may not be noticable for monitoring.

    Anyway, isn't this becoming moot as 9i has the undo tablespaces replacing rollbacks? At least as an architectural direction.

    Joseph R.P. Maloney, CSP,CDP,CCP
    'The answer is 42'

Posting Permissions

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


Click Here to Expand Forum to Full Width