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

Thread: System Datafile corrupted

  1. #1
    Join Date
    Nov 2007
    Location
    Douala, Cameroun.
    Posts
    77

    System Datafile corrupted

    Hello,

    When I started my database this morning I got a message telling that the database should be open in RESETLOGS or in NORESETLOGS.
    I opened it in RESETLOGS as configured in my control file. I then got the ORA-01113 and ORA-01110 message, where I discovered that my system datafile was corrupted. I copied it from the backup location, to the original location then I started the DataBase in mount mode and issued the ALTER DATABASE RENAME command, but then It told me that the file does not exist. Not knowing what step to follow next, I ventured issuing the RECOVER DATABASE command,upon which it instructed me to recover using the BACKUP CONTROLFILE option. I did issue that command
    specifying the full path of the control file, and I got the ORA-00905 Keyword missing error.
    I re-issued the same command, this time without specifying the location where I did back up my control file and I got the following:

    SQL> recover database using backup controlfile
    ORA-00279: change 1329085 generated at 12/11/2007 07:59:13 needed for thread 1
    ORA-00289: suggestion : D:\ORACLE\ORA92\RDBMS\ARC00012.001
    ORA-00280: change 1329085 for thread 1 is in sequence 12
    specify log: {=suggested | filename |AUTO | CANCEL}
    Now I'm stucked and I do not know how to proceed.


    Any tips?

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Question is... Do you have the archived log Oracle is asking for?
    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.

  3. #3
    Join Date
    Nov 2007
    Location
    Douala, Cameroun.
    Posts
    77
    I do not have the arc00012.001 it is asking for. The one I have is
    arc00010.001.

  4. #4
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    try this...
    shutdown your database
    restore corrupted datafile from last backup
    restore archive logs taken since date of corrupted datafile's last backup
    startup mount
    recover database until cancel
    ...apply your logs
    ...at the time you reach the missing log just type CANCEL with one hand while keeping your fingers crossed on the other hand.
    alter database open resetlogs;
    shutdown database
    take a cold backup
    startup
    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.

  5. #5
    Join Date
    Apr 2007
    Location
    USA
    Posts
    110

    Smile

    Quote Originally Posted by PAVB
    try this...
    shutdown your database
    restore corrupted datafile from last backup
    restore archive logs taken since date of corrupted datafile's last backup
    startup mount
    recover database until cancel
    ...apply your logs
    ...at the time you reach the missing log just type CANCEL with one hand while keeping your fingers crossed on the other hand.
    alter database open resetlogs;
    shutdown database
    take a cold backup
    startup
    made my day....
    Looking for the greatest evil in the world? Look in the mirror.

  6. #6
    Join Date
    Nov 2007
    Location
    Douala, Cameroun.
    Posts
    77
    Quote Originally Posted by PAVB
    try this...

    recover database until cancel
    ...apply your logs
    ...at the time you reach the missing log just type CANCEL with one hand while keeping your fingers crossed on the other hand.
    startup
    Thank god I am working on my own otherwise the stress on me would have iced my fingers, PAV
    I will try that though, I would like to know only one thing, How do I apply the logs?

    Thanks

  7. #7
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    you follow what it says on screen, by giving the name of the logs - try it out

  8. #8
    Join Date
    Nov 2007
    Location
    Douala, Cameroun.
    Posts
    77
    I did that and even simpler... I tried just hitting ENTER and I saw that it was working

  9. #9
    Join Date
    Nov 2002
    Location
    Mooresville, NC
    Posts
    349
    To ABDEL,
    Then just say a plain thank you.
    PAVB saved your ass.
    http://www.perf-engg.com
    A performance engineering forum

  10. #10
    Join Date
    Nov 2006
    Location
    Sofia
    Posts
    630
    :-) And maybe you should know that you lost some data

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