Restore archivelog from ASM to filesystem

RMAN> run

2> {

3> set archivelog destination to ‘/tmp‘;

4> restore archivelog sequence 142 thread 2;

5> }

executing command: SET ARCHIVELOG DESTINATION

Starting restore at 2015-03-12 00:22:25

using channel ORA_DISK_1

archived log for thread 2 with sequence 142 is already on disk as file +FRA/rac/archivelog/2015_03_11/thread_2_seq_142.717.874033939

restore not done; all files read only, offline, or already restored

Finished restore at 2015-03-12 00:22:25

注,这里因为原本的归档日志还存在,导致restore archivelog到/tmp下失败。

如果log_archive_dest_1或log_archive_dest未设置,归档日志默认放到闪回区。如果要restore的归档日志在闪回区还存在的话,则无法restore。

手工去除后,restore到/tmp了

RMAN> delete archivelog sequence 142 thread 2;

RMAN> run

2> {

3> set archivelog destination to ‘/tmp‘;

4> restore archivelog sequence 142 thread 2;

5> }

[[email protected] ~]$ ll -ltar /tmp

total 48904

drwx------  2 root   root         4096 Sep 21 15:54 keyring-PiyxKA

。。。

-rw-r-----  1 oracle asmadmin 49039872 Mar 12 00:24 2_142_870389881.dbf

时间: 2024-08-24 17:44:00

Restore archivelog from ASM to filesystem的相关文章

restore archivelog 的用法

1.备份所有归档日志文件 RMAN> backup archivelog all delete input; 第二: restore archivelog 的各种选项 0.根据rac线程restore archivelog from logseq 6160 thread 2; 1.restore archivelog all  恢复全部归档日志文件 RMAN> restore archivelog all; 2.只恢复 5到8这四个归档日志文件 RMAN> restore archive

11g RMAN Restore archivelog用法

I.备份所有归档日志文件 RMAN> BACKUP FORMAT '/u01/backup/arch_%U_%T' skip inaccessible filesperset 5 ARCHIVELOG ALL DELETE INPUT; II.使用RMAN方式清除 RMAN清除方式会自动清除磁盘上的归档日志文件,同时会释放控制文件中对应的归档日志的归档信息. 可以基于不同的条件来清除归档日志,如基于SCN,基于SEQUENCE,基于TIME等方式. 对于上述的三种方式又可以配合from, unt

restore archivelog 常用用法

         restore archivelog all;   还原全部归档日志文件      restore archivelog from logseq 2213 ;  还原log sequence为2213之后的所有归档日志      restore archivelog from logseq 2213 until logseq 2222; 还原log sequence为2213到2222这几个归档日志       restore archivelog from time 'sys

rman 还原归档日志(restore archivelog)

听说过还原(restore)数据库,表空间及数据库文件,使用归档日志恢复(recover)数据库,表空间,数据库文件. 咦,还有还原归档日志这一说法呢?没错,可能我们忽略了还原归档日志这一个过程,原因是还原归档日志通常情况下是oracle在recover时自动完成的. 大多数情况下我们是先还原数据库,恢复数据库,打开数据库.实际上在恢复数据库之前有一个动作,那就是还原归档日志,也就是将日志文件还原到缺省的归档位置, 如果我们在备份归档日志时使用了delete [all] input子句的话. 本

RMAN 0级恢复测试---RAC+ASM恢复到单机

最近做了一次RMAN 0 级恢复测试,测试模拟了生产数据库发生灾难性故障,只剩下rman全备份的备份片,利用备份的spfile.控制文件.数据文件.归档日志恢复数据的过程. 首先说一下环境,网上很多文章都是互相粘贴,并不一定适用于你的测试环境.我这次测试的生产环境是2个节点的RAC,存储使用了ASM去管理,操作系统为RHEL6.4,Oracle11.2.0.4,rman每日全备份,使用全备份去恢复数据.恢复的机器选择了1台PC机,安装RHEL6.4,操作系统.Oracle版本均和服务器一致,区别

HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another Node

In this Document APPLIES TO: Oracle Database - Enterprise Edition - Version 9.2.0.1 and laterInformation in this document applies to any platform.***Checked for relevance on 15-Apr-2014*** GOAL - You have a RAC database backed up by RMAN to disk loca

如何将RAC数据库的 RMAN Disk 备份 Restore 到另一个节点上的单个实例 (Doc ID 415579.1)

HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another Node (Doc ID 415579.1) APPLIES TO: Oracle Database - Enterprise Edition - Version 9.2.0.1 and laterOracle Database Cloud Schema Service - Version N/A and laterOracle Databa

oracle数据库recover和restore的区别

restore just copy the physical file, recover will consistent the database.restore 是还原,文件级的恢复.就是物理文件还原.recover 是恢复,数据级的恢复.逻辑上恢复,比如应用归档日志.重做日志,全部同步,保持一致.即用restore命令先从上次备份的文件提取出数据文件拷贝到原目录下进行替换,而recover是在restore之后,使用redo log & archive log补全从备份到现在时刻的差异数据.

【翻译自mos文章】当控制文件的备份丢失是,怎么restore database

当控制文件的备份丢失是,怎么restore database? 来源于: How to restore database when controlfile backup missing (文档 ID 1438776.1) 适用于: Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.2.0.3 [Release 9.2 to 11.2] Information in this document applies to any p