DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: table lost

  1. #1
    Join Date
    Mar 2008
    Posts
    140

    table lost

    hi, Iam taking weekly full database backup using rman and daily archive log file backup. A user complained about loss of a table, no one knows at what time the table was accidently dropped.

    Question: How to recover the lost table in this case?


    thanks,

  2. #2
    Join Date
    Jan 2001
    Posts
    2,828
    Hi

    You need to have the approximate time atleast to know when the table was dropped.

    then you can mine the dictonary using log miner and then find out the time and take it from there.

    regards
    Hrishy

  3. #3
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    if on 10g - flashback to before drop

  4. #4
    Join Date
    Jan 2001
    Posts
    2,828
    Hi

    davey hmm why didnt i think that before :-)

    regards
    Hrishy

  5. #5
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Quote Originally Posted by hrishy
    davey hmm why didnt i think that before :-)
    Perhaps because of poster did not disclose Oracle version?
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  6. #6
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Talking

    Or perhaps because flashback only works if you actually have it enabled.
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

  7. #7
    Join Date
    Aug 2007
    Location
    Cyberjaya,kuala lumpur
    Posts
    340
    hi,

    You can try this....

    Shutdown immediate
    Restore all datafiles from backup.
    Recover database until change 123456;

    the undrop table is not undo based.

    in 10g, when you drop a table, the table is renamed, hidden -- but we maintain the extent mapping.
    to undrop, all we do is rename it back.

    extents that belong to dropped objects are eligible for reuse -- but we'll postpone reusing them
    for as long as we can and we'll use them in a fifo manner (oldest extents out first). Just like
    the recycle bin on your desktop for files.

    If you are using the Orace 10g you can go for the flahsback recovery, if the flash is enabled...?

    flashback table to before drop;

    Gopu

  8. #8
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Talking

    Quote Originally Posted by gopu_g
    ... in 10g, when you drop a table, the table is renamed
    Only if you have "recycle bin" enabled.
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

  9. #9
    Join Date
    Aug 2007
    Location
    Cyberjaya,kuala lumpur
    Posts
    340
    Quote Originally Posted by LKBrwn_DBA
    Only if you have "recycle bin" enabled.
    Yes...LKBrwn....

  10. #10
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    You might try restoring to another location, and allow the database to recover to just before the table gets dropped and then export that table only.

    Of course if you don't know when it was deleted you might need Log Miner to get the scn of where to stop the restore.

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