DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: drop table and truncate table

  1. #1
    Join Date
    May 2005
    Location
    Boracay
    Posts
    681

    drop table and truncate table

    Hi,

    I just want to be sure....in Oracle10g u can rollback dropped tables
    but not truncated ones right?
    Behind The Success And Failure Of A Man Is A Woman

  2. #2
    Join Date
    Nov 2006
    Location
    Sofia
    Posts
    630
    Speaking generally, yes.
    If we should be correct, rollback as we do it normally will not bring back the data in both cases.
    However for dropped table you can
    flashback table to before drop
    IF:
    The table was not dropped using PURGE option\
    The table was not dropped as a result of DROP USER CASCADE or Drop tablespace including contents
    The space occupied by the table is still not reused
    This is in plase operation, no shutdown is needed, no resetlogs, fast and easy
    About the truncate, you need FLASHBACK DATABASE or incomplete recovery.
    They both requires shutdown and RESETLOGS and brings the entire database back

    Cheers

  3. #3
    Join Date
    May 2005
    Location
    Boracay
    Posts
    681
    thanks dear
    Behind The Success And Failure Of A Man Is A Woman

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