ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ASM--文件系统之间归档日志的拷贝

ASM--文件系统之间归档日志的拷贝

原创 Linux操作系统 作者:oldunix 时间:2011-04-08 17:31:56 0 删除 编辑
从ASM中拷贝归档日志到文件系统:


[oracle@rac1 orabak]$ rman target /

Recovery Manager: Release 10.2.0.4.0 - Production on Fri Apr 8 16:30:46 2011

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: ORADB (DBID=2480807860)
RMAN> copy archivelog '+ORADATA_DG/ORADB/ARCHIVELOG/1_81_727543102.dbf' to '/disk/orabak/1_81_727543102.dbf';

Starting backup at 08-APR-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=863 instance=oradb1 devtype=DISK
channel ORA_DISK_1: starting archive copy
input archive log thread=1 sequence=81 recid=266 stamp=747931083
output filename=/disk/orabak/1_81_727543102.dbf recid=491 stamp=747937858
channel ORA_DISK_1: archivelog copy complete, elapsed time: 00:00:02
Finished backup at 08-APR-11

RMAN> exit

=================


从文件系统中拷贝归档日志到ASM

RMAN> catalog archivelog '/disk/orabak/1_81_727543102.dbf';

cataloged archive log
archive log filename=/disk/orabak/1_79_727543102.dbf recid=158 stamp=747937512


RMAN> copy archivelog  '/disk/orabak/1_81_727543102.dbf' to '+ORADATA_DG/ORADBSDB/ARCH/1_81_727543102.dbf';

Starting backup at 08-APR-11
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive copy
input archive log thread=1 sequence=81 recid=161 stamp=747938070
output filename=+ORADATA_DG/oradbsdb/arch/1_81_727543102.dbf recid=185 stamp=747938158
channel ORA_DISK_1: archivelog copy complete, elapsed time: 00:00:02
Finished backup at 08-APR-11

RMAN> catalog archivelog '+ORADATA_DG/ORADBSDB/ARCH/1_81_727543102.dbf';

cataloged archive log
archive log filename=+ORADATA_DG/oradbsdb/arch/1_79_727543102.dbf recid=160 stamp=747937552

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/793004/viewspace-691969/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-06-10

  • 博文量
    3
  • 访问量
    10739