您的位置:首页 > 数据库 > Oracle

Oracle 11g 053 使用 RMAN 执行恢复

u011868279 2019-10-23 20:15 537 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 本文链接:https://blog.csdn.net/u011868279/article/details/102710029

 

 

RMAN> show all;

RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
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 2;
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 '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default

RMAN> CONFIGURE ARCHIVELOG BACKUP COPIES CLAER;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "for device"
RMAN-01008: the bad identifier was: CLAER
RMAN-01007: at line 1 column 36 file: standard input

RMAN> CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK clear;

old RMAN configuration parameters:
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
RMAN configuration parameters are successfully reset to default value

RMAN> show all;

RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
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 '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default

RMAN> backup database plus archivelog;


Starting backup at 23-OCT-19
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=16 RECID=2 STAMP=1022220573
input archived log thread=1 sequence=17 RECID=3 STAMP=1022313667
input archived log thread=1 sequence=18 RECID=5 STAMP=1022390382
input archived log thread=1 sequence=19 RECID=8 STAMP=1022390429
input archived log thread=1 sequence=20 RECID=10 STAMP=1022390720
input archived log thread=1 sequence=21 RECID=11 STAMP=1022390874
input archived log thread=1 sequence=22 RECID=13 STAMP=1022391977
channel ORA_DISK_1: starting piece 1 at 23-OCT-19
channel ORA_DISK_1: finished piece 1 at 23-OCT-19
piece handle=+FRA/orcl/backupset/2019_10_23/annnf0_tag20191023t054617_0.279.1022391979 tag=TAG20191023T054617 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:55
Finished backup at 23-OCT-19

Starting backup at 23-OCT-19
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=+DATA/orcl/datafile/system.256.1016595403
input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.1016595403
input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.1016595403
input datafile file number=00005 name=+DATA/orcl/datafile/example.265.1016595663
input datafile file number=00004 name=+DATA/orcl/datafile/users.259.1016595405
channel ORA_DISK_1: starting piece 1 at 23-OCT-19
channel ORA_DISK_1: finished piece 1 at 23-OCT-19
piece handle=+FRA/orcl/backupset/2019_10_23/nnndf0_tag20191023t054713_0.278.1022392039 tag=TAG20191023T054713 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:02:26
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 23-OCT-19
channel ORA_DISK_1: finished piece 1 at 23-OCT-19
piece handle=+FRA/orcl/backupset/2019_10_23/ncsnf0_tag20191023t054713_0.260.1022392195 tag=TAG20191023T054713 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
Finished backup at 23-OCT-19

Starting backup at 23-OCT-19
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=23 RECID=15 STAMP=1022392200
channel ORA_DISK_1: starting piece 1 at 23-OCT-19
channel ORA_DISK_1: finished piece 1 at 23-OCT-19
piece handle=+FRA/orcl/backupset/2019_10_23/annnf0_tag20191023t055000_0.261.1022392201 tag=TAG20191023T055000 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 23-OCT-19

RMAN> 

 

 

 

 

 

 

 

 

标签: