﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals / Command References / Oracle Command References  / rman crosscheck - RMAN CROSSCHECK - command reference / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals</description><link>http://www.franklinfaces.com/</link><webMaster>no-reply@FranklinFaces.com</webMaster><lastBuildDate>Sat, 19 May 2012 18:52:03 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: rman crosscheck - RMAN CROSSCHECK - command reference</title><link>http://www.franklinfaces.com/Topic56-93-1.aspx</link><description>If you have a script like this:&lt;br&gt;&lt;br&gt;. $HOME/.profile&lt;br&gt;export ORACLE_SID=&lt;your SID&gt;&lt;br&gt;rman target sys/password nocatalog &lt;&lt; EOF&lt;br&gt;crosscheck archivelog all;&lt;br&gt;delete expired archivelog all;&lt;br&gt;Yes&lt;br&gt;..&lt;br&gt;..&lt;br&gt;&lt;br&gt;If you need the script to ignore asking you "Do you really want to delete ... (YES is needed)" and sometimes there is nothing to delete (YES is not needed)?  &lt;br&gt;&lt;br&gt;If you want to stop it from asking you, you can add a no prompt option to it.  Here is an example.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;[i]RMAN&gt; delete expired archivelog all;&lt;br&gt;&lt;br&gt;released channel: ORA_DISK_1&lt;br&gt;allocated channel: ORA_DISK_1&lt;br&gt;channel ORA_DISK_1: sid=137 devtype=DISK&lt;br&gt;specification does not match any archive log in the recovery catalog&lt;br&gt;&lt;br&gt;RMAN&gt; delete noprompt expired archivelog all;&lt;br&gt;&lt;br&gt;released channel: ORA_DISK_1&lt;br&gt;allocated channel: ORA_DISK_1&lt;br&gt;channel ORA_DISK_1: sid=137 devtype=DISK&lt;br&gt;specification does not match any archive log in the recovery catalog&lt;br&gt;[/i]&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 18 Jan 2009 19:57:22 GMT</pubDate><dc:creator>stacyliang83</dc:creator></item><item><title>RE: rman crosscheck - RMAN CROSSCHECK - command reference</title><link>http://www.franklinfaces.com/Topic56-93-1.aspx</link><description>Once again, Thank you!!!</description><pubDate>Sun, 18 Jan 2009 15:26:08 GMT</pubDate><dc:creator>stacyliang83</dc:creator></item><item><title>rman crosscheck - RMAN CROSSCHECK - command reference</title><link>http://www.franklinfaces.com/Topic56-93-1.aspx</link><description>&lt;FONT color=#113333&gt;&lt;STRONG&gt;RMAN Crosscheck&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Crosschecks update outdated RMAN repository information about backups whose repository records do not match their physical status. For example, if a user removes archived logs from disk with an operating system command, the repository still indicates that the logs are on disk, when in fact they are not.&lt;BR&gt;&lt;BR&gt;If the backup is on disk, then the CROSSCHECK command determines whether the header of the file is valid. If the backup is on tape, then the command simply checks that the backup exists. The possible status values for backups are AVAILABLE, UNAVAILABLE, and EXPIRED.&lt;BR&gt;&lt;BR&gt;You can view the status of backups using the RMAN LIST command, or by queryingV$BACKUP_FILES or many of the recovery catalog views such as RC_DATAFILE_COPY or RC_ARCHIVED_LOG. Running a crosscheck updaets the RMAN repository so that all of these methods provide accurate information. For each backup in the RMAN repository, if the backup is no longer available, then RMAN marks it as EXPIRED. If it was EXPIRED and is now available, then RMAN marks it AVAILABLE.&lt;BR&gt;&lt;BR&gt;&lt;B&gt;&lt;FONT color=#113333&gt;Note:&lt;/FONT&gt;&lt;/B&gt;&lt;BR&gt;The CROSSCHECK command does not delete operating system files, and it does not remove RMAN repository records of backups that are not available at the time of the crosscheck. It only updates the repository records with the status of the backups. Use the DELETE command to remove records of expired backups from the RMAN repository.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113333&gt;&lt;STRONG&gt;Basic Use of CROSSCHECK with Backup Sets and Image Copies&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;After connecting to the target database and recovery catalog (if you use one), run CROSSCHECK commands as needed to verify the status and availability of backups known to RMAN.&lt;BR&gt;&lt;BR&gt;If you have channnels configured for your tape or other media manager, you can crosscheck all backups on all media with CROSSCHECK BACKUP as shown in this example:&lt;BR&gt;&lt;BR&gt;&lt;EM&gt;&lt;FONT color=#3333dd&gt;CROSSCHECK BACKUP;&lt;/FONT&gt;&lt;/EM&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;If you do not have configured channels for your tape backups, you can allocate a maintenance channel in a RUN block before running CROSSCHECK as in this example:&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#3333dd&gt;&lt;EM&gt;RUN {&lt;BR&gt;ALLOCATE CHANNEL FOR MAINTENANCE DEVICE TYPE sbt;&lt;BR&gt;CROSSCHECK BACKUP; &lt;BR&gt;}&lt;/EM&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;This example shows how to crosscheck disk image copies only:&lt;BR&gt;&lt;BR&gt;&lt;EM&gt;&lt;FONT color=#3333dd&gt;CROSSCHECK COPY;&lt;/FONT&gt;&lt;/EM&gt;     # crosschecks only disk copies of &lt;BR&gt;                               # database files&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;This example shows how to crosscheck backup sets only:&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#3333dd&gt;&lt;EM&gt;CROSSCHECK BACKUPSET&lt;/EM&gt;;&lt;/FONT&gt;             # crosschecks backupsets on disk and SBT&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113333&gt;&lt;STRONG&gt;Crosschecking Specific Backup Sets and Copies&lt;/STRONG&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;You can use the LIST command to report your backups and then use the CROSSCHECK command to check that specific backups described in the LIST output still exist. The DELETE EXPIRED command deletes repository records for backups that fail the crosscheck.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113333&gt;To crosscheck specified backups:&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;1.&lt;BR&gt;&lt;BR&gt;Identify the desired backups that you want to check by issuing a LIST command. For example, issue:&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#3333dd&gt;LIST BACKUP;&lt;/FONT&gt;            # lists all backup sets, proxy copies, and image copies&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;2.&lt;BR&gt;&lt;BR&gt;Check whether the specified backups still exist. For example, enter:&lt;BR&gt;&lt;BR&gt;&lt;EM&gt;&lt;FONT color=#3333dd&gt;CROSSCHECK BACKUP;&lt;/FONT&gt;&lt;/EM&gt;                                       # checks backup sets, proxy copies, and image copies&lt;BR&gt;&lt;FONT color=#3333dd&gt;&lt;EM&gt;CROSSCHECK COPY OF DATABASE;&lt;BR&gt;CROSSCHECK BACKUPSET 1338, 1339, 1340;&lt;BR&gt;CROSSCHECK BACKUPPIECE TAG = 'nightly_backup';&lt;BR&gt;CROSSCHECK CONTROLFILECOPY '/tmp/control01.ctl';&lt;BR&gt;CROSSCHECK DATAFILECOPY 113, 114, 115;&lt;BR&gt;CROSSCHECK PROXY 789;&lt;/EM&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;&lt;FONT color=#113333&gt;Crosschecking Backups of Specific Database Files&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR&gt;&lt;BR&gt;You can use options of the CROSSCHECK command to check only backups of a specific database, tablespace, datafile, control file, or archived redo log. For example:&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#3333dd&gt;&lt;EM&gt;CROSSCHECK BACKUP OF DATAFILE "?/oradata/trgt/system01.dbf" &lt;BR&gt;COMPLETED AFTER 'SYSDATE-14';&lt;BR&gt;CROSSCHECK BACKUP OF ARCHIVELOG ALL SPFILE;&lt;/EM&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;You can check for backups of archived redo logs and SPFILE using this command:&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#3333dd&gt;&lt;EM&gt;CROSSCHECK BACKUP OF ARCHIVELOG ALL SPFILE;&lt;/EM&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#113333&gt;&lt;STRONG&gt;Limiting RMAN CROSSCHECK to a Backups Since a Specific Time&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;You can add a COMPLETED AFTER clause to a CROSSCHECK command to restrict the checking to backups created after a specified point in time. For example, this command checks for backups of a datafile created in the last week:&lt;BR&gt;&lt;BR&gt;&lt;EM&gt;&lt;FONT color=#3333dd&gt;CROSSCHECK BACKUP OF DATAFILE 4&lt;BR&gt;COMPLETED AFTER 'SYSDATE-14';&lt;/FONT&gt;&lt;/EM&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Admin</description><pubDate>Sat, 17 Jan 2009 12:23:30 GMT</pubDate><dc:creator>Admin</dc:creator></item></channel></rss>
