RMAN-06054错误解决办法

RMAN> recover database;#会报错,但不要紧,我们只需要得到thread和sequence号就行
Starting recover at 20-JUL-11
using channel ORA_DISK_1
starting media recovery
unable to find archive log
archive log thread=1 sequence=10305

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 07/20/2011 01:33:58
RMAN-06054: media recovery requesting unknown log: thread 1 seq 1 lowscn 484679
UNTIL SEQUENCE恢复:
假定丢失了一个序列号为10305的日志文件。
RMAN> run {
shutdown immediate;
startup mount;
set untile sequence 10305 thread 1;
restore database;
recover database;
alter database open resetlogs;}

注意:UNTIL SEQUENCE的规范必须同时包含日志切换序列号与线程号。对于单实例环境来说,线程号始终为1.但是在集群环境中,每个实例都会生成自己的重做线程,这些重做线程都具有自己的一组日志切换序列号,因此,我们还必须指定线程号,从而能够标识所引用的序列号。

你可能感兴趣的:(Oracle,Troubleshooting)