Oracle® Database
Backup and Recovery Reference
10g Release 2 (10.2)
B14194-03
November 2005
This book provides complete reference information on the
Recovery Manager client, including command syntax, a
compatibility matrix, and recovery catalog views.
Oracle Database Backup and Recovery Reference, 10g Release 2 (10.2)
B14194-03
Copyright © 1996, 2005, Oracle. All rights reserved.
Primary Author: Antonio Romero
Contributing Author: Lance Ashdown
Contributors: Tammy Bednar, Anand Beldalker, Timothy Chien, Raymond Guzman, Alex Hwang, Ashok
Joshi, J. William Lee, Valarie Moore, Muthu Olagappan, Samitha Samaranayake, Francisco Sanchez, Steven
Wertheimer, Wanli Yang
The Programs (which include both the software and documentation) contain proprietary information; they
are provided under a license agreement containing restrictions on use and disclosure and are also protected
by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly,
or decompilation of the Programs, except to the extent required to obtain interoperability with other
independently created software or as specified by law, is prohibited.
The information contained in this document is subject to change without notice. If you find any problems in
the documentation, please report them to us in writing. This document is not warranted to be error-free.
Except as may be expressly permitted in your license agreement for these Programs, no part of these
Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any
purpose.
If the Programs are delivered to the United States Government or anyone licensing or using the Programs on
behalf of the United States Government, the following notice is applicable:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data
delivered to U.S. Government customers are "commercial computer software" or "commercial technical data"
pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As
such, use, duplication, disclosure, modification, and adaptation of the Programs, including documentation
and technical data, shall be subject to the licensing restrictions set forth in the applicable Oracle license
agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19, Commercial
Computer Software—Restricted Rights (June 1987). Oracle Corporation, 500 Oracle Parkway, Redwood City,
CA 94065
The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently
dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup,
redundancy and other measures to ensure the safe use of such applications if the Programs are used for such
purposes, and we disclaim liability for any damages caused by such use of the Programs.
Oracle, JD Edwards, PeopleSoft, and Retek are registered trademarks of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective owners.
The Programs may provide links to Web sites and access to content, products, and services from third
parties. Oracle is not responsible for the availability of, or any content provided on, third-party Web sites.
You bear all risks associated with the use of such content. If you choose to purchase any products or services
from a third party, the relationship is directly between you and the third party. Oracle is not responsible for:
(a) the quality of third-party products or services; or (b) fulfilling any of the terms of the agreement with the
third party, including delivery of products or services and warranty obligations related to purchased
products or services. Oracle is not responsible for any loss or damage of any sort that you may incur from
dealing with any third party.
iii
Contents
Preface............................................................................................................................................................... vii
Audience...................................................................................................................................................... vii
Documentation Accessibility.................................................................................................................... vii
Related Documentation............................................................................................................................ viii
Conventions ............................................................................................................................................... viii
1 About RMAN Commands
Conventions Used in this Reference .................................................................................................... 1-1
RMAN Text Conventions.................................................................................................................. 1-1
RMAN Command Format, Syntax Diagrams and Notation ...................................................... 1-1
Format of RMAN Commands................................................................................................... 1-1
Syntax Diagrams ......................................................................................................................... 1-2
Keywords.............................................................................................................................. 1-2
Placeholders.......................................................................................................................... 1-2
RMAN Reserved Words ............................................................................................................ 1-3
RMAN Command Entries....................................................................................................................... 1-5
RMAN Code Examples .................................................................................................................... 1-5
2 RMAN Commands
Summary of RMAN Commands ........................................................................................................... 2-1
@................................................................................................................................................................... 2-5
@@................................................................................................................................................................ 2-6
ALLOCATE CHANNEL.......................................................................................................................... 2-7
ALLOCATE CHANNEL FOR MAINTENANCE ............................................................................ 2-10
allocOperandList ................................................................................................................................... 2-13
ALTER DATABASE .............................................................................................................................. 2-16
archivelogRecordSpecifier .................................................................................................................. 2-18
BACKUP.................................................................................................................................................. 2-22
BLOCKRECOVER ................................................................................................................................ 2-48
CATALOG............................................................................................................................................... 2-51
CHANGE ................................................................................................................................................ 2-54
cmdLine................................................................................................................................................... 2-57
completedTimeSpec.............................................................................................................................. 2-61
CONFIGURE.......................................................................................................................................... 2-63
CONNECT.............................................................................................................................................. 2-75
iv
connectStringSpec................................................................................................................................. 2-77
CONVERT .............................................................................................................................................. 2-79
CREATE CATALOG.............................................................................................................................. 2-89
CREATE SCRIPT ................................................................................................................................... 2-91
CROSSCHECK ...................................................................................................................................... 2-93
datafileSpec ............................................................................................................................................ 2-95
DELETE ................................................................................................................................................... 2-96
DELETE SCRIPT ................................................................................................................................. 2-100
deviceSpecifier..................................................................................................................................... 2-101
DROP CATALOG................................................................................................................................ 2-102
DROP DATABASE.............................................................................................................................. 2-103
DUPLICATE ......................................................................................................................................... 2-104
EXECUTE SCRIPT............................................................................................................................... 2-112
EXIT........................................................................................................................................................ 2-113
fileNameConversionSpec.................................................................................................................. 2-114
FLASHBACK........................................................................................................................................ 2-117
formatSpec............................................................................................................................................ 2-122
HOST ..................................................................................................................................................... 2-125
keepOption........................................................................................................................................... 2-126
LIST........................................................................................................................................................ 2-128
listObjList ............................................................................................................................................. 2-144
maintQualifier ..................................................................................................................................... 2-146
maintSpec.............................................................................................................................................. 2-148
obsOperandList ................................................................................................................................... 2-150
PRINT SCRIPT .................................................................................................................................... 2-151
QUIT ...............................................................................................................................
....................... 2-152
recordSpec............................................................................................................................................. 2-153
RECOVER............................................................................................................................................. 2-155
REGISTER ............................................................................................................................................ 2-164
RELEASE CHANNEL......................................................................................................................... 2-166
releaseForMaint ................................................................................................................................... 2-167
REPLACE SCRIPT............................................................................................................................... 2-168
REPORT ................................................................................................................................................ 2-170
RESET DATABASE............................................................................................................................. 2-176
RESTORE.............................................................................................................................................. 2-179
RESYNC ................................................................................................................................................ 2-193
RUN........................................................................................................................................................ 2-195
SEND ..................................................................................................................................................... 2-198
SET ......................................................................................................................................................... 2-199
SHOW.................................................................................................................................................... 2-207
SHUTDOWN ....................................................................................................................................... 2-210
SPOOL................................................................................................................................................... 2-212
SQL......................................................................................................................................................... 2-213
STARTUP .............................................................................................................................................. 2-215
SWITCH ................................................................................................................................................ 2-217
tempfileSpec......................................................................................................................................... 2-220
TRANSPORT TABLESPACE ............................................................................................................ 2-222
v
UNREGISTER DATABASE............................................................................................................... 2-226
untilClause............................................................................................................................................ 2-228
UPGRADE CATALOG ....................................................................................................................... 2-230
VA L I D AT E ............................................................................................................................................ 2-231
3 Recovery Catalog Views
Summary of RMAN Recovery Catalog Views.................................................................................... 3-1
RC_ARCHIVED_LOG ............................................................................................................................ 3-4
RC_BACKUP_ARCHIVELOG_DETAILS........................................................................................... 3-6
RC_BACKUP_ARCHIVELOG_SUMMARY ...................................................................................... 3-7
RC_BACKUP_CONTROLFILE ............................................................................................................. 3-8
RC_BACKUP_CONTROLFILE_DETAILS....................................................................................... 3-10
RC_BACKUP_CONTROLFILE_SUMMARY .................................................................................. 3-11
RC_BACKUP_COPY_DETAILS......................................................................................................... 3-12
RC_BACKUP_COPY_SUMMARY .................................................................................................... 3-13
RC_BACKUP_CORRUPTION............................................................................................................ 3-14
RC_BACKUP_DATAFILE.................................................................................................................... 3-15
RC_BACKUP_DATAFILE_DETAILS................................................................................................ 3-17
RC_BACKUP_DATAFILE_SUMMARY............................................................................................ 3-18
RC_BACKUP_FILES............................................................................................................................. 3-19
RC_BACKUP_PIECE............................................................................................................................ 3-22
RC_BACKUP_PIECE_DETAILS ........................................................................................................ 3-23
RC_BACKUP_REDOLOG................................................................................................................... 3-25
RC_BACKUP_SET ................................................................................................................................ 3-27
RC_BACKUP_SET_DETAILS............................................................................................................. 3-29
RC_BACKUP_SET_SUMMARY ........................................................................................................ 3-31
RC_BACKUP_SPFILE .......................................................................................................................... 3-32
RC_BACKUP_SPFILE_DETAILS....................................................................................................... 3-33
RC_BACKUP_SPFILE_SUMMARY .................................................................................................. 3-34
RC_CHECKPOINT ............................................................................................................................... 3-35
RC_CONTROLFILE_COPY ................................................................................................................ 3-36
RC_COPY_CORRUPTION.................................................................................................................. 3-37
RC_DATABASE..................................................................................................................................... 3-38
RC_DATABASE_BLOCK_CORRUPTION ...................................................................................... 3-39
RC_DATABASE_INCARNATION .................................................................................................... 3-40
RC_DATAFILE ....................................................................................................................................... 3-41
RC_DATAFILE_COPY.......................................................................................................................... 3-42
RC_LOG_HISTORY .............................................................................................................................
3-44
RC_OFFLINE_RANGE ........................................................................................................................ 3-45
RC_RMAN_OUTPUT .......................................................................................................................... 3-46
RC_PROXY_ARCHIVEDLOG ........................................................................................................... 3-47
RC_PROXY_ARCHIVELOG_DETAILS ........................................................................................... 3-48
RC_PROXY_ARCHIVELOG_SUMMARY....................................................................................... 3-49
RC_PROXY_CONTROLFILE.............................................................................................................. 3-50
RC_PROXY_COPY_DETAILS ............................................................................................................ 3-52
RC_PROXY_COPY_SUMMARY........................................................................................................ 3-53
RC_PROXY_DATAFILE ....................................................................................................................... 3-54