【oracle案例】RMAN-06556

1.1.1. RMAN-06556

日期:2014-05-21 16:33

环境:测试环境

【情景描述】

使用RMAN进行了全库备份,但是在进行不完全恢复的时候遇到报错,提示某个数据文件必须从比给出的SCN更早的备份中恢复。

【报错信息】

备份数据库:

RMAN> backup database plus archivelog;

Starting backup at 2014-05-21 15:02:13

current log archived

......

Finished backup at 2014-05-21 15:02:15

Starting backup at 2014-05-21 15:02:15

using channel ORA_DISK_1

file 5 is excluded from whole databasebackup

file 8 is excluded from whole databasebackup

file 9 is excluded from whole databasebackup

channel ORA_DISK_1: starting full datafilebackup set

channel ORA_DISK_1: specifying datafile(s)in backup set

input datafile file number=00001name=/U01/app/oracle/oradata/testdb/system01.dbf

input datafile file number=00002name=/U01/app/oracle/oradata/testdb/sysaux01.dbf

input datafile file number=00003name=/U01/app/oracle/oradata/testdb/undotbs01.dbf

input datafile file number=00007name=/U01/app/oracle/oradata/testdb/hesper_hq_data01.dbf

input datafile file number=00010name=/U01/app/oracle/oradata/testdb/rcat_data01.dbf

input datafile file number=00006name=/U01/app/oracle/oradata/testdb/testdb01_index.dbf

input datafile file number=00004name=/U01/app/oracle/oradata/testdb/users01.dbf

channel ORA_DISK_1: starting piece 1 at2014-05-21 15:02:15

......

channel ORA_DISK_1: backup set complete,elapsed time: 00:00:55

Finished backup at 2014-05-21 15:03:10

Starting backup at 2014-05-21 15:03:10

current log archived

......

Finished backup at 2014-05-21 15:03:12

Starting Control File and SPFILE Autobackupat 2014-05-21 15:03:12

piecehandle=/home/oracle/rman/backup_recovery/testdb_c-2607759728-20140521-01comment=NONE

Finished Control File and SPFILE Autobackupat 2014-05-21 15:03:13

RMAN>

还原恢复:

RMAN> run {

2> allocate channel ch1 type disk;

3> allocate channel ch2 type disk;

4> set until scn 1519297;

5> restore database;

6> recover database;

7> release channel ch1;

8> release channel ch2;

9> }

allocated channel: ch1

channel ch1: SID=63 device type=DISK

allocated channel: ch2

channel ch2: SID=129 device type=DISK

executing command: SET until clause

Starting restore at 2014-05-21 15:11:07

file 5 is excluded from whole databasebackup

file 8 is excluded from whole databasebackup

file 9 is excluded from whole databasebackup

channel ch1: starting datafile backup setrestore

channel ch1: specifying datafile(s) torestore from backup set

channel ch1: restoring datafile 00001 to/U01/app/oracle/oradata/testdb/system01.dbf

channel ch1: restoring datafile 00002 to/U01/app/oracle/oradata/testdb/sysaux01.dbf

channel ch1: restoring datafile 00003 to/U01/app/oracle/oradata/testdb/undotbs01.dbf

channel ch1: restoring datafile 00004 to/U01/app/oracle/oradata/testdb/users01.dbf

channel ch1: restoring datafile 00006 to/U01/app/oracle/oradata/testdb/testdb01_index.dbf

channel ch1: restoring datafile 00007 to/U01/app/oracle/oradata/testdb/hesper_hq_data01.dbf

channel ch1: restoring datafile 00010 to/U01/app/oracle/oradata/testdb/rcat_data01.dbf

channel ch1: reading from backup piece/U01/app/test/rman/fra/TESTDB/backupset/2014_05_21/o1_mf_nnndf_TAG20140521T150215_9qrmvr0y_.bkp

channel ch1: piecehandle=/U01/app/test/rman/fra/TESTDB/backupset/2014_05_21/o1_mf_nnndf_TAG20140521T150215_9qrmvr0y_.bkptag=TAG20140521T150215

channel ch1: restored backup piece 1

channel ch1: restore complete, elapsedtime: 00:00:55

failover to previous backup

Finished restore at 2014-05-21 15:12:02

Starting recover at 2014-05-21 15:12:02

released channel: ch1

released channel: ch2

RMAN-00571:===========================================================

RMAN-00569: =============== ERROR MESSAGESTACK FOLLOWS ===============

RMAN-00571:===========================================================

RMAN-03002: failure of recover command at05/21/2014 15:12:02

RMAN-06556: datafile 5 must be restoredfrom backup older than SCN 1519297

RMAN>

【报错原因】

仔细观察备份过程和还原恢复过程的输出信息,会发现里面包含3条信息记录:

file5 is excluded from whole database backup

file8 is excluded from whole database backup

file9 is excluded from whole database backup

意思是说file 5、8、9没有进行备份,也没有进行还原恢复。

【解决方法】

修改RMAN备份策略中的排除规则

修改前:

CONFIGURE EXCLUDE FOR TABLESPACE‘TESTDB_DATA‘;

修改后:

RMAN> CONFIGURE EXCLUDE FOR TABLESPACE‘TESTDB_DATA‘ clear;

Tablespace TESTDB_DATA will be included infuture whole database backups

old RMAN configuration parameters aresuccessfully deleted

RMAN>

查看表空间备份策略(INCLUDED_IN_DATABASE_BACKUP):

SQL> select * from v$tablespace order by3;

TS# NAME            INC BIG FLAENC

---------- --------------- --- --- --- ---

3 TEMP            NO  NO  YES

1 SYSAUX          YES NO  YES

2 UNDOTBS1        YES NO  YES

4 USERS           YES NO  YES

9 RCAT_DATA       YES NO  YES

6 TESTDB_DATA     YES NO  YES

7 TESTDB_INDEX    YES NO  YES

8 HESPER_HQ       YES NO  YES

0 SYSTEM          YES NO  YES

9 rows selected.

【oracle案例】RMAN-06556,布布扣,bubuko.com

时间: 2024-10-12 18:38:47

【oracle案例】RMAN-06556的相关文章

Oracle Study之案例--RMAN ORA-19921错误

Oracle Study之案例--RMAN ORA-19921错误 系统环境: 操作系统: AIX5.3 Oracle:   Oracle 10gR2 错误现象:         数据库在通过rman连接时出现以下错误: [11:01:51 [email protected]: ~]$rman target / Recovery Manager: Release 10.2.0.1.0 - Production on Mon Jan 19 11:01:53 2015 Copyright (c) 1

Oracle Study之案例--RMAN备份配置参数

Oracle Study之案例--RMAN备份配置参数 1.PARALLELISM  我们还可以通过parallelism参数来指定同时"自动"创建多少个通道:RMAN > configure device type disk parallelism 3 ; 表示启动三个通道,可以加快备份恢复的速度. 案例分析: RMAN> show all; using target database control file instead of recovery catalog CO

【oracle案例】ORA-19573

1.1.1. ORA-19573 日期:2014-05-21 17:25 环境:测试环境 [情景描述] 数据库实例处于OPEN状态(READ WRITE),这时在RMAN中执行数据库还原.恢复操作遇到报错. [报错信息] RMAN> run { 2> allocate channel ch1 type disk; 3> allocate channel ch2 type disk; 4> set until scn 1520939; 5> restore database;

【oracle案例】RMAN-08138

1.1.1. RMAN-08138 日期:2014-05-21 14:36 环境:测试环境 [情景描述] 在测试机上,使用RMAN来删除归档日志文件的时候,提示WARNING警告,并且归档日志无法删除. [报错信息] RMAN> delete archivelog all completed before 'sysdate'; released channel: ORA_DISK_1 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=12

【oracle案例】ORA-19502,ORA-27072

1.1.1. ORA-19502,ORA-27072 日期:2014-05-12 00:12 环境:测试机 [错误号] $ oerr ora 19502 19502, 00000, "write error on file\"%s\", block number %s (block size=%s)" // *Cause: write error on output file // *Action: check the file $ oerr ora 27072 2

利用SHELL脚本来验证Oracle数据库RMAN备份集的有效性

利用SHELL脚本来验证Oracle数据库RMAN备份集的有效性 作者:赵全文  网名:guestart 我们生产环境的Oracle数据库都做了RMAN备份,是采用了一周的RMAN备份保留策略:除了使用RMAN备份以外,我们还使用了爱数(Eisoo)备份软件来进行备份,可以说是做到了有备无患.可是,如果有一天,Oracle数据库由于主机层面硬件原因或是数据库层面的原因不能对外提供高可用服务的时候,假设数据丢了一大部分,我们只有用RMAN备份来进行恢复,再如果发现,RMAN备份失效了,那就往地缝里

Oracle 12c RMAN备份文档

创建备份目录,查看剩余空间 [[email protected] ~]$ df -h df: '/home/oratest/.gvfs': Permission denied Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 450G 27G 423G 6% / devtmpfs 5.8G 0 5.8G 0% /dev tmpfs 5.8G 2.9G 3.0G 50% /dev/shm tmpfs 5.8G 34

window Oracle 10g RMAN异机异目录恢复

1.实验环境简介                                  1.1  SOA原数据库                                                                                                                                                           数据库名        COMSOA 实例名          COMSOA DB

Oracle 10g RMAN 跨平台迁移

RMAN异构平台迁移 1.实验环境简介 1.1  SOA生产系统 数据库名    comSOA 实例名      Comsoa DBID        4133565260 数据库版本 Windows 32bit 10.2.R2 数据文件目录 E:\ORASOA\ORADATA\COMSOAPfile  Initcomsoa.ora 1.2  待恢SOA系统 数据库名    comSOA 实例名      Comsoa DBID        4133565260 数据库版本 Linux 64i