help:rman level 0 备份出错

[复制链接]
查看11 | 回复8 | 2005-2-28 12:57:00 | 显示全部楼层 |阅读模式
run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup incremental level = 0
tag backup_db_level_0
format '/u02/rman/full%u_%s_%p'
database
FILESPERSET=6;
release channel c1;
release channel c2;
release channel c3;
}
出错信息为:
allocated channel: c1
channel c1: sid=34 devtype=DISK
allocated channel: c2
channel c2: sid=30 devtype=DISK
allocated channel: c3
channel c3: sid=36 devtype=DISK
Starting backup at 30-5ÔÂ -06
channel c1: starting incremental level 0 datafile backupset
channel c1: specifying datafile(s) in backupset
channel c2: starting incremental level 0 datafile backupset
channel c2: specifying datafile(s) in backupset
input datafile fno=00013 name=/u01/app/oracle/oradata/orcl/data02.dbf
input datafile fno=00005 name=/u01/app/oracle/oradata/orcl/example01.dbf
channel c2: starting piece 1 at 30-5ÔÂ -06
channel c3: starting incremental level 0 datafile backupset
channel c3: specifying datafile(s) in backupset
input datafile fno=00014 name=/u01/app/oracle/oradata/orcl/data01.dbf
input datafile fno=00002 name=/u01/app/oracle/oradata/orcl/rman_ts01.dbf
input datafile fno=00010 name=/u01/app/oracle/oradata/orcl/xdb01.dbf
input datafile fno=00007 name=/u01/app/oracle/oradata/orcl/odm01.dbf
channel c3: starting piece 1 at 30-5ÔÂ -06
released channel: c1
released channel: c2
released channel: c3
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on c1 channel at 05/30/2006 14:34:47
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
请问是什么原因呢?
同样的情况备份归档日志文件没有问题:
run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
sql 'alter system archive log current';
backup format '/u02/rman/arch/arch%u_%s_%p'filesperset3
archivelog all delete input;
release channel c1;
release channel c2;
release channel c3;
}
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层

ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
上可看出数据文件有问题,请检查相应数据文件情况。
fno=00013 name=/u01/app/oracle/oradata/orcl/data02.dbf
fno=00005 name=/u01/app/oracle/oradata/orcl/example01.dbf
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
但这个错一般是在备份归档日志是因为归档日志文件不存在(如被删了)而出的错。
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
没问题呀,这几个数据文件都很正常。
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
'/u02/rman/'这个目录存在么?另外,datafile 的状态都正常么?有无offline或readonly的
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
整个数据库都是正常在用的,目录/u02/rman也存在,你看备份归档日志的时候都没有出错。
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
重新再rman备份一次看看怎么样。
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
搞定了,原来备份system数据文件的时候是需要spfile的,我建立了一个pfile,然后把spfile移到了别的地方。所以rman备份的时候就出错了。
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
哦。那就对了,备份system时自动会备份控制文件和spfile的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行