3. 4/29/2016 Module 16b Recovery Manager
http://www.siue.edu/~dbock/cmis565/module16brecovery_manager.htm 3/15
incremental backups to roll forward.
REGISTER
DATABASE
Registers a target database in the RMAN repository.
REPORT Provides a detailed analysis of the RMAN repository.
RESTORE Restores files from image copies or backupsets to disk – usually after a media failure. Can also be used to
validate a restore operation without actually performing the restore by specifying the PREVIEW option.
RUN Runs sequence of RMAN statements as a group between { and } – allows overriding RMAN parameters for
the group of statements executed.
SET Sets RMAN configuration settings for the duration of a RMAN session – not the same as CONFIGURE.
SHOW Shows all or individual RMAN configured settings.
SHUTDOWN Shuts down the target database with RMAN – same as SHUTDOWN within SQLPlus.
STARTUP Starts up the target database with RMAN – same as STARTUP within SQLPlus.
SQL Runs SQL commands – example: sql 'ALTER TABLESPACE data01 OFFLINE IMMEDIATE'; before a
restore/recover operation.
Starting RMAN and Connecting to a Database
Use the command rman to connect to the client.
dbockstd/@sobora2.isg.siue.edu=>rman
Recovery Manager: Release 11.2.0.3.0 Production on Wed Jul 10 12:30:05 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
RMAN>
Use the CONNECT TARGET command to connect to a target database.
RMAN connections to a database are specified and authenticated the same way SQL*Plus is.
RMAN connections require SYSDBA privilege.
This connects to the target (current ORACLE_SID value) by using operating system authentication this doesn't require a
separate password file that would otherwise be required.
RMAN> connect target /
connected to target database: USER350 (DBID=3391980809)
RMAN>
How to Persist an RMAN Setting
The SHOW ALL command displays default RMAN settings.
Notice the target database control file is being used instead of a recovery catalog.
Parameters set to default display a # default at the end of the configuration setting.
Execute a CONFIGURE command to change any setting.
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name DBORCL are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; #
default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO