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

Thread: MaxCorrupt

  1. #1
    Join Date
    Dec 2001
    Posts
    320
    hi guys,
    i'm currently doing the backup scripts for my production database, and i need to know if it's a good idea to always use the 'Set MaxCorrupt for datafile n to 0'.

    i find it very useful that i will always have a usable, and reliable backup, but i also need to know from you guys if there is any disadvantage in using this parameter in such a way.

    Regards.

  2. #2
    Join Date
    Dec 2001
    Posts
    320
    anyone has an answer?

    Regards.

  3. #3
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938
    I think that the default for MAXCORRUPT is 0. So you do not have to set it explicitely in the script.
    Oracle Certified Master
    Oracle Certified Professional 6i,8i,9i,10g,11g,12c
    email: ocp_9i@yahoo.com

  4. #4
    Join Date
    Dec 2001
    Posts
    320
    Originally posted by julian
    I think that the default for MAXCORRUPT is 0. So you do not have to set it explicitely in the script.
    Then i guess it means that i will always have a corruption free backups (copies) if i leave the default value as it is, right?.

    Does that mean that i will query v$backup_corruption, and v$copy_corruption only if i set maxcorrupt to a number > 0?

    One more thing i need to clarify please, why would anyone set the maxcorrupt to a number > 0?

    the block media recovery (BMR) feature in 9i is meaningless unless i set the value of maxcorrupt to a number > 0 (which i don't know why would anyone want to do), right?

    Thanks Julian.

  5. #5
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938
    Originally posted by hany
    Originally posted by julian
    I think that the default for MAXCORRUPT is 0. So you do not have to set it explicitely in the script.
    Then i guess it means that i will always have a corruption free backups (copies) if i leave the default value as it is, right?.

    Yes. This is from the Oracle documentation:

    "MAXCORRUPT sets a limit on the number of previously undetected physical block corruptions that Oracle will allow in a specified datafile or list of datafiles. If a BACKUP or COPY command detects more than the specified number of corruptions, the command aborts. The default limit is zero, meaning that RMAN tolerates no corrupt blocks."


    Does that mean that i will query v$backup_corruption, and v$copy_corruption only if i set maxcorrupt to a number > 0?
    Yes.


    One more thing i need to clarify please, why would anyone set the maxcorrupt to a number > 0?

    Thanks Julian.
    Good question! Probably if you really need the backup and don't care about some corrupted blocks hoping possibly they they are index blocks. So that you can then drop and recreate the indexes. I really don't know :-)
    Oracle Certified Master
    Oracle Certified Professional 6i,8i,9i,10g,11g,12c
    email: ocp_9i@yahoo.com

  6. #6
    Join Date
    Dec 2001
    Posts
    320
    Thank you Julian, i really appreciate your help.

    Cheers.

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