Difference between RMAN Validate and crosscheck commands

 RMAN validate and crosscheck commands are using for maintenance activity

RMAN Validate

RMAN Validate is the 11g New feature.

It’s used to find the corrupted blocks and missing files

This command is check for validity of data files and update the v$database_block_corruption view in case it finds any corruption

Validate command can also use to check Database, Tablespace, Datafile, Spfile, Archivelog, Control file

 

RMAN VALIDATE COMMANDS

Validate whole Database

RMAN> backup validate database;

Validate Tablespace

RMAN> backup validate tablespace system;

Validate a specific datafile

RMAN> backup validate datafile 8;

Validate SPFILE

RMAN> backup validate spfile;

Validate archived redo log files

RMAN> backup validate archivelog all;

Validate current control file

RMAN> backup validate current control file;

 

Following commands, we will see backup is valid and available for restoration process.

 

RMAN> restore database validate;

RMAN> restore tablespace systemvalidate;

RMAN> restore datafile 6 validate;

RMAN> restore archivelog all validate;

RMAN> restore control file validate;

RMAN> restore spfile validate;

 

RMAN CROSSCHECK

Ensure repository information is synchronized with actual files.

Check the status of backup or copy

Update the repository when files have been deleted with operating system commands

RMAN crosscheck command compares the RMAN catalog entries with the actual OS files and reports to locate "expired" or "obsolete" RMAN catalog entries.

Once a RMAN crosscheck identified expired, deleted on on obsolete catalog entries you can run an RMAN delete command to remove these entries to synchronize the RMAN catalog with the real database files

CROSSCHECK command can also use to check Datafile, backup piece, control file

RMAN CROSSCHECK COMMANDS

RMAN>crosscheck backup;

RMAN> crosscheck backupdet of database;

RMAN>crosscheck copy;


Reference:

RMAN Overview

Loss of a Non system Data file recovery scenarios

Archive log Basic


Comments

  1. Please find some more oracle DBA interview question:
    https://www.top15search.blogspot.com

    ReplyDelete
  2. thanks for the simple and crispy information.

    - Satya
    https://satya-dba.blogspot.com/2010/04/rman-commands.html

    ReplyDelete

Post a Comment

Popular posts from this blog

How to troubleshoot long running concurrent request in R12.2

How to run Gather Schema Statistics in R12.2

How to compile forms in R12.2