暂无图片
分享
卢春龙
2019-02-27
oracle rac 备份这是两份吗

1.png

2.png

 这个备份脚本有问题吗 ?这个是不是 节点一和节点二多备份了呀,是不是只 备一个就够了需要怎么修改呢?谢谢

收藏
分享
10条回答
默认
最新
王文忠

备份脚本没什么大问题,保留备份集可以用如下配置,1代表保留一份:

CONFIGURE RETENTION POLICY TO REDUNDANCY = 1;


另外备份数据库在一个节点上执行备份就可以。看到的多个备份文件,是备份片,您开了4个channel来备份。

检查备份可以登录rman 命令窗口执行:

rman target /

list backup;

或者

list backup of database;

暂无图片 评论
暂无图片 有用 0
打赏 0
卢春龙

后缀1和2大小一样,是不是对应节点呢?

暂无图片 评论
暂无图片 有用 0
打赏 0
Moone

你这个很可能是1、2实例同时执行了备份任务导致:

参考

Database Backup and Recovery Reference 

 formatSpec的说明


%T Specifies the year, month, and day in the Gregorian calendar in this format: YYYYMMDD.

%s Specifies the backup set number. This number is a counter in the control file that is

incremented for each backup set. The counter value starts at 1 and is unique for the lifetime of

the control file. If you restore a backup control file, then duplicate values can result. Also,

CREATE CONTROLFILE initializes the counter back to 1.

%p Specifies the piece number within the backup set. This value starts at 1 for each backup set

and is incremented by 1 as each backup piece is created.

%c Specifies the copy number of the backup piece within a set of duplexed backup pieces. If you

did not duplex a backup, then this variable is 1 for backup sets and 0 for proxy copies. If a

command is enabled, then the variable shows the copy number. The maximum value for %c is

256.


暂无图片 评论
暂无图片 有用 0
打赏 0
卢春龙

 明 白谢谢 我ASM配置成
normal   有没有办法修改成external 呢

暂无图片 评论
暂无图片 有用 0
打赏 0
章芋文

没有办法,只有重建磁盘组。

暂无图片 评论
暂无图片 有用 0
打赏 0
卢春龙

 那是不是要重新安装了呀

暂无图片 评论
暂无图片 有用 0
打赏 0
墨天轮

如果没有给ocr和voting disk单独划盘就重装吧。存储也重新规划好

暂无图片 评论
暂无图片 有用 0
打赏 0
卢春龙

 RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on c1 channel at 02/28/2019 09:25:45
RMAN-20039: format requires %c when duplexing

----备份脚本

run{      

allocate channel c1 device type disk;
allocate channel c2 device type disk;
allocate channel c3 device type disk;
allocate channel c4 device type disk;
crosscheck backup;
sql 'alter system archive log current';
backup spfile format '/bak/backup/spfile_%T_%s_%p_%c';
#backup database format '/bak/backup/dbbk_0_%d_%t_%u_%s_%p';
backup as compressed backupset incremental level 0 database format '/bak/backup/dbbk_0_%d_%t_%u_%s_%p';
sql 'alter system archive log current';
backup archivelog all format '/bak/backup/arc_%T_%s_%p_%c' delete all input;
backup current controlfile format '/bak/backup/cntrl_%T_%s_%p_%c';
crosscheck archivelog all;
delete noprompt expired backup;
delete noprompt obsolete;
delete noprompt backup of database completed before 'sysdate - 7';
release channel c1;
release channel c2;
release channel c3;
release channel c4;

}

备份数据文件不加%C就会报错,加%C有两份一样的

暂无图片 评论
暂无图片 有用 0
打赏 0
章芋文

如果设置不冗余就可以不需要加c%,否则就会出现你的报错。

CONFIGURE RETENTION POLICY TO REDUNDANCY = 1;
show all
复制
暂无图片 评论
暂无图片 有用 0
打赏 0
卢春龙
问题已关闭: 问题已经得到解决
暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
Markdown


请输入正文
提交
相关推荐
Oracle中单个索引通常不建议超过几个字段
回答 2
已采纳
单个索引通常建议不超过3个字段。
业务过程中有sql语句执行出现了主键冲突,然后就没有进行insert,想查找这条Sql语句
回答 3
一般这种问题在数据库层面事后是比较难排查的,如果是绑定变量插入的,还需要去查询sqlbind相关视图,应用层一般都是日志的,可以从应用层查看。当然,也可以建立触发器记录这些报错sql和值
insert select 很慢
回答 4
量不算大,建议还是多在select上提升,如分批基于rowid的查询分片多sessioninsert
资深DBA为什么要定制统计信息收集策略?
回答 3
已采纳
优化器在计算执行计划的成本时依赖于统计信息,如果没有收集统计信息,或者是统计信息过期了,那么优化器就会出现严重偏差,从而导致性能问题,因此要确保统计信息准确性。虽然数据库自带有JOB每天晚上会定时收集
oracle 11g安装遇到问题,如何定义SID?
回答 2
你这是docker安装的吧,SID建库后如果需要修改,可参考:✅修改ORACLESID1、关闭数据库shutdownimmediate2、修改环境变量vi/home/oracle/.bashprofi
oms无法访问,https和http都打不开,但是服务是正常的
回答 3
点击网址前面的锁,手工信任证书试试。我之前20c自带的em同样的问题,将证书设置为始终信任解决了。
emcc误报问题
回答 3
好的,谢谢盖总
oracle磁盘组镜像问题
回答 2
做N组GROUP,每组2lun
各位大牛,想问下在Oracle中update,insert,delete的dml语句慢的时候的优化方向
回答 2
平台就有相关书籍可以学习https://cs.enmotech.com/download/2643
Oracle 11g 可以设置CTSS不随着集群启动而启动吗?
回答 1
开了ntp就不会使用ctts