Tài liệu Oracle Database Recovery Manager Reference doc

372 416 0
Tài liệu Oracle Database Recovery Manager Reference doc

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Oracle® Database Recovery Manager Reference 10g Release 1 (10.1) Part No. B10770-02 June 2004 Oracle Database Recovery Manager Reference 10g Release 1 (10.1) Part No. B10770-02 Copyright © 1996, 2004, Oracle. All rights reserved. Primary Author: Antonio Romero Contributing Author: Lance Ashdown Contributors: Anand Beldalker, Tammy Bednar, Senad Dizdar, Muthu Olagappan, Francisco Sanchez, Steve Wertheimer Graphic Designer: Valarie Moore 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 is a registered trademark 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 Send Us Your Comments vii Preface ix 1 About RMAN Commands Conventions Used in this Reference . 1-2 RMAN Command Entries . 1-7 2 RMAN Commands Summary of RMAN Commands 2-2 @ . 2-6 @@ 2-7 ALLOCATE CHANNEL 2-8 ALLOCATE CHANNEL FOR MAINTENANCE 2-12 allocOperandList . 2-15 ALTER DATABASE 2-19 archivelogRecordSpecifier 2-22 BACKUP . 2-28 BLOCKRECOVER 2-62 CATALOG 2-67 CHANGE 2-71 cmdLine 2-75 completedTimeSpec . 2-80 CONFIGURE . 2-82 iv CONNECT 2-100 connectStringSpec . 2-103 CONVERT 2-105 CREATE CATALOG . 2-113 CREATE SCRIPT . 2-115 CROSSCHECK 2-118 datafileSpec 2-121 DELETE . 2-123 DELETE SCRIPT . 2-127 deviceSpecifier . 2-129 DROP CATALOG . 2-131 DROP DATABASE . 2-133 DUPLICATE . 2-135 EXECUTE SCRIPT 2-145 EXIT . 2-147 fileNameConversionSpec 2-148 FLASHBACK . 2-151 formatSpec 2-156 HOST . 2-160 keepOption . 2-162 LIST . 2-164 listObjList . 2-185 maintQualifier . 2-188 maintSpec . 2-190 obsOperandList . 2-193 PRINT SCRIPT 2-195 QUIT 2-197 recordSpec 2-198 RECOVER . 2-200 REGISTER 2-212 RELEASE CHANNEL 2-214 releaseForMaint . 2-216 REPLACE SCRIPT 2-217 REPORT 2-220 RESET DATABASE 2-228 v RESTORE . 2-231 RESYNC 2-246 RUN . 2-249 SEND . 2-252 SET . 2-254 SHOW . 2-263 SHUTDOWN . 2-266 SPOOL 2-269 SQL 2-271 STARTUP 2-273 SWITCH . 2-276 UNREGISTER DATABASE 2-280 untilClause . 2-282 UPGRADE CATALOG 2-285 VALIDATE . 2-287 3 Recovery Catalog Views Summary of RMAN Recovery Catalog Views 3-2 RC_ARCHIVED_LOG . 3-4 RC_BACKUP_CONTROLFILE 3-6 RC_BACKUP_CORRUPTION . 3-8 RC_BACKUP_DATAFILE . 3-10 RC_BACKUP_FILES 3-12 RC_BACKUP_PIECE . 3-15 RC_BACKUP_REDOLOG 3-17 RC_BACKUP_SET 3-19 RC_BACKUP_SPFILE 3-21 RC_CHECKPOINT . 3-22 RC_CONTROLFILE_COPY 3-23 RC_COPY_CORRUPTION . 3-25 RC_DATABASE 3-26 RC_DATABASE_BLOCK_CORRUPTION . 3-27 RC_DATABASE_INCARNATION 3-28 RC_DATAFILE 3-29 RC_DATAFILE_COPY . 3-31 vi RC_LOG_HISTORY . 3-33 RC_OFFLINE_RANGE 3-34 RC_PROXY_ARCHIVEDLOG . 3-35 RC_PROXY_CONTROLFILE . 3-37 RC_PROXY_DATAFILE . 3-39 RC_REDO_LOG 3-41 RC_REDO_THREAD . 3-42 RC_RESYNC 3-43 RC_RMAN_CONFIGURATION . 3-44 RC_RMAN_STATUS 3-45 RC_STORED_SCRIPT . 3-47 RC_STORED_SCRIPT_LINE . 3-48 RC_TABLESPACE . 3-49 A Deprecated RMAN Commands B RMAN Compatibility About RMAN Compatibility B-2 RMAN Compatibility Matrix . B-3 RMAN Compatibility: Scenario . B-4 Index vii Send Us Your Comments Oracle Database Recovery Manager Reference 10g Release 1 (10.1) Part No. B10770-02 Oracle Corporation welcomes your comments and suggestions on the quality and usefulness of this document. Your input is an important part of the information used for revision. ■ Did you find any errors? ■ Is the information clearly presented? ■ Do you need more information? If so, where? ■ Are the examples correct? Do you need more examples? ■ What features did you like most? If you find any errors or have any other suggestions for improvement, please indicate the title and part number of the documentation and the chapter, section, and page number (if available). You can send comments to us in the following ways: ■ Electronic mail: infodev_us@oracle.com ■ FAX: (650) 506-7227 Attn: Server Technologies Documentation Manager ■ Postal service: Oracle Corporation Server Technologies Documentation 500 Oracle Parkway, Mailstop 4op11 Redwood Shores, CA 94065 USA If you would like a reply, please give your name, address, telephone number, and electronic mail address (optional). If you have problems with the software, please contact your local Oracle Support Services. viii ix Preface This preface contains these topics: ■ Audience ■ Organization ■ Related Documentation ■ Conventions ■ Documentation Accessibility x Audience Recovery Manager Reference is intended for database administrators who perform the following tasks: ■ Back up, restore, and recover Oracle databases ■ Perform maintenance on backups and copies of database files To use this document, you need to know the following: ■ Relational database concepts and basic database administration as described in Oracle Database Concepts and the Oracle Database Administrator's Guide ■ Basic RMAN concepts and tasks as described in Oracle Database Backup and Recovery Basics ■ The operating system environment under which you are running Oracle Organization This document contains: Chapter 1, "About RMAN Commands" This chapter describes the basic conventions of RMAN syntax. Chapter 2, "RMAN Commands" This chapter displays the RMAN syntax diagrams, describes the elements of the syntax, and provides examples. Chapter 3, "Recovery Catalog Views" This chapter describes the recovery catalog views. Appendix A, "Deprecated RMAN Commands" This appendix describes RMAN syntax that is deprecated (that is, no longer supported) but still functional. Appendix B, "RMAN Compatibility" This appendix shows the compatible combinations of the RMAN client, target database, recovery catalog database, and recovery catalog schema. [...]...Related Documentation For more information, see these Oracle resources: s Oracle Database Backup and Recovery Basics s Oracle Database Utilities s http://otn .oracle. com/deploy/availability/index.html Many of the examples in this book use the sample schemas of the seed database, which is installed by default when you install Oracle Refer to Oracle Database Sample Schemas for information... target, auxiliary, or recovery catalog database 2-2 Recovery Manager Reference Summary of RMAN Commands Table 2–1 Recovery Manager Commands Command Purpose "connectStringSpec" on page 2-103 Specify the username, password, and net service name for connecting to a target, recovery catalog, or auxiliary database The connection is necessary to authenticate the user and identify the database "CONVERT" on... This reference uses syntax diagrams to show Recovery Manager commands These syntax diagrams use lines and arrows to show syntactic structure, as shown in Figure 1–1 1-2 Recovery Manager Reference Conventions Used in this Reference Figure 1–1 CATALOG Command catalog::= catalog ARCHIVELOG CONTROLFILECOPY CATALOG = , BACKUPPIECE ’ LEVEL filename integer ’ DATAFILECOPY ; RECOVERY AREA NOPROMPT DB _RECOVERY_ FILE_DEST... how you can use them yourself Printed documentation is available for sale in the Oracle Store at http://oraclestore .oracle. com/ To download free release notes, installation documentation, white papers, or other collateral, please visit the Oracle Technology Network (OTN) You must register online before using OTN; registration is free and can be done at http://otn .oracle. com/membership/ If you already... surrounding it in quotes, then RMAN generates an error These are examples of correct and incorrect entries: 1-4 Recovery Manager Reference Conventions Used in this Reference ALLOCATE CHANNEL backup DEVICE TYPE DISK; ALLOCATE CHANNEL ’backup’ DEVICE TYPE DISK; BACKUP DATABASE TAG full; BACKUP DATABASE TAG ’full’; # # # # incorrect correct incorrect correct Reserved Word Reserved Word Reserved Word Reserved... of database objects (tablespace_name) s Oracle datatype names (date_string) s Subclauses (datafileSpec) About RMAN Commands 1-3 Conventions Used in this Reference When you see a placeholder in a syntax diagram, substitute an object or expression of the appropriate type in the RMAN statement For example, to write a DUPLICATE TARGET DATABASE TO database_ name’ command, use the name of the duplicate database. .. information from that snapshot control file to the recovery catalog "RUN" on page 2-249 Execute a sequence of one or more RMAN commands, which are one or more statements executed within the braces of RUN "SEND" on page 2-252 Send a vendor-specific quoted string to one or more specific channels 2-4 Recovery Manager Reference Summary of RMAN Commands Table 2–1 Recovery Manager Commands Command Purpose "SET" on... statement ALTER DATABASE RENAME FILE as it applies to datafiles "UNREGISTER DATABASE" on page 2-280 Unregisters a database from the recovery catalog "untilClause" on page 2-282 A subclause specifying an upper limit by time, SCN, or log sequence number This clause is usually used to specify the desired point in time for an incomplete recovery "UPGRADE CATALOG" on page 2-285 Upgrade the recovery catalog... bkup_db.rman from the command line, which specifies that RMAN should look for the bkup_logs.rman script in the Oracle home directory: echo echo echo rman "BACKUP ARCHIVELOG ALL;" > $ORACLE_ HOME/bkup_logs.rman "BACKUP DATABASE; " > $ORACLE_ HOME/bkup_db.rman "@@bkup_logs.rman" >> $ORACLE_ HOME/bkup_db.rman TARGET / @ $ORACLE_ HOME/bkup_db.rman RMAN Commands 2-7 ALLOCATE CHANNEL ALLOCATE CHANNEL Syntax allocate::= allocate... Optional sections following the examples provide more information on how and when to use the statement About RMAN Commands 1-7 RMAN Command Entries 1-8 Recovery Manager Reference 2 RMAN Commands This chapter describes, in alphabetical order, Recovery Manager commands and subclauses For a summary of the RMAN commands and command-line options, refer to "Summary of RMAN Commands" on page 2-2 RMAN Commands . Oracle Database Recovery Manager Reference 10g Release 1 (10.1) Part No. B10770-02 June 2004 Oracle Database Recovery Manager Reference 10g. target database, recovery catalog database, and recovery catalog schema. xi Related Documentation For more information, see these Oracle resources: ■ Oracle

Ngày đăng: 21/12/2013, 04:17

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan