最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501
当前位置: 首页 - 科技 - 知识百科 - 正文

设置rman实现归档备份在两个不同的目录

来源:懂视网 责编:小采 时间:2020-11-09 15:10:00
文档

设置rman实现归档备份在两个不同的目录

设置rman实现归档备份在两个不同的目录:[oracle@edbjr2p1 admin]$ rman target /catalog rc_admin/rc_admin@emrep Recovery Manager: Release 10.2.0.1.0 -Production on Sat Apr 12 09:41:41 2014 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database: PROD(DB
推荐度:
导读设置rman实现归档备份在两个不同的目录:[oracle@edbjr2p1 admin]$ rman target /catalog rc_admin/rc_admin@emrep Recovery Manager: Release 10.2.0.1.0 -Production on Sat Apr 12 09:41:41 2014 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database: PROD(DB

[oracle@edbjr2p1 admin]$ rman target /catalog rc_admin/rc_admin@emrep Recovery Manager: Release 10.2.0.1.0 -Production on Sat Apr 12 09:41:41 2014 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database: PROD(DB

[oracle@edbjr2p1 admin]$ rman target /catalog rc_admin/rc_admin@emrep

Recovery Manager: Release 10.2.0.1.0 -Production on Sat Apr 12 09:41:41 2014

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

connected to target database: PROD(DBID=255136845)

connected to recovery catalog database

RMAN>configure archivelog backup copies for device type disk to 2;

old RMAN configuration parameters:

CONFIGURE ARCHIVELOG BACKUP COPIES FORDEVICE TYPE DISK TO 2;

new RMAN configuration parameters:

CONFIGURE ARCHIVELOG BACKUP COPIES FORDEVICE TYPE DISK TO 2;

new RMAN configuration parameters aresuccessfully stored

starting full resync of recovery catalog

full resync complete

RMAN>configure channel 1 device type disk format '/u01/%U','/u01/app/%U';

old RMAN configuration parameters:

CONFIGURE CHANNEL 1 DEVICE TYPE DISKFORMAT '/u01/%U', '/u01/app/%U';

new RMAN configuration parameters:

CONFIGURE CHANNEL 1 DEVICE TYPE DISKFORMAT '/u01/%U', '/u01/app/%U';

new RMAN configuration parameters aresuccessfully stored

starting full resync of recovery catalog

full resync complete

RMAN> backuparchivelog all;

Starting backup at 12-APR-14

current log archived

configuration for DISK channel 2 is ignored

allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=196 devtype=DISK

skipping archive log file/home/oracle/flash/PROD/archivelog/2014_03_31/o1_mf_1_6_9ml8yy6m_.arc; alreadybacked up 2 time(s)

略。

channel ORA_DISK_1: starting archive logbackupset

channel ORA_DISK_1: specifying archivelog(s) in backup set

input archive log thread=1 sequence=38recid=33 stamp=844681323

channel ORA_DISK_1: starting piece 1 at12-APR-14

channel ORA_DISK_1: finished piece 1 at12-APR-14 with 2 copies and tag TAG20140412T094204

piece handle=/u01/0mp5hk3c_1_1 comment=NONE

piece handle=/u01/app/0mp5hk3c_1_2 comment=NONE

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

Finished backup at 12-APR-14

Starting Control File and SPFILE Autobackupat 12-APR-14

piecehandle=/home/oracle/backup/control/cf_c-255136845-20140412-03 comment=NONE

Finished Control File and SPFILE Autobackupat 12-APR-14

此时配置完备份archivelog可以看到archivelog备份到了两个位置。

但是对于备份数据文件会看到数据文件只是备份到了一个目录:

RMAN> backupdatafile 2;

Starting backup at 12-APR-14

using channel ORA_DISK_1

channel ORA_DISK_1: starting full datafilebackupset

channel ORA_DISK_1: specifying datafile(s)in backupset

input datafile fno=00002name=/u01/app/oracle/oradata/PROD/disk1/undotbs01.dbf

channel ORA_DISK_1: starting piece 1 at12-APR-14

channel ORA_DISK_1: finished piece 1 at12-APR-14

piece handle=/u01/0op5hk42_1_1 tag=TAG20140412T094226comment=NONE

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

Finished backup at 12-APR-14

Starting Control File and SPFILE Autobackupat 12-APR-14

piecehandle=/home/oracle/backup/control/cf_c-255136845-20140412-04 comment=NONE

Finished Control File and SPFILE Autobackupat 12-APR-14

声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文档

设置rman实现归档备份在两个不同的目录

设置rman实现归档备份在两个不同的目录:[oracle@edbjr2p1 admin]$ rman target /catalog rc_admin/rc_admin@emrep Recovery Manager: Release 10.2.0.1.0 -Production on Sat Apr 12 09:41:41 2014 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database: PROD(DB
推荐度:
标签: 设置 备份 两个
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top