12c RMAN备份脚本,ORA-00245
2017-12-07 15:57
726 查看
12c rac
报错如下:
解决:
奉上一个备份脚本仅供参考
报错如下:
channel d3: backup set complete, elapsed time: 00:00:08 RMAN-03009: failure of backup command on d4 channel at 12/07/2017 15:08:46 ORA-00245: control file backup failed; in Oracle RAC, target might not be on shared storage continuing other job steps, job failed will not be re-run channel d2: finished piece 1 at 07-DEC-2017 15:09:41 piece handle=/u01/bak/db_fullbk_2_1_962118518.rmn tag=BACKUP_FULL comment=NONE channel d2: backup set complete, elapsed time: 00:01:04 channel d1: finished piece 1 at 07-DEC-2017 15:10:02 piece handle=/u01/bak/db_fullbk_1_1_962118518.rmn tag=BACKUP_FULL comment=NONE channel d1: backup set complete, elapsed time: 00:01:24 released channel: d1 released channel: d2 released channel: d3 released channel: d4 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure of backup command on d4 channel at 12/07/2017 15:08:46 ORA-00245: control file backup failed; in Oracle RAC, target might not be on shared storage
解决:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+datadg/snapcf_orcl1.f';
奉上一个备份脚本仅供参考
#!/bin/sh #backup full database and archivelog #filename:/home/oracle/rk_rman.sh #oracle user execute:sh /home/oracle/rk_rman.sh >./backup.log 2>&1 & #authored by:roidba ####export ORACLE_SID=xxxx rman target / <<EOF run { CONFIGURE CONTROLFILE AUTOBACKUP ON; CONFIGURE BACKUP OPTIMIZATION ON; CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+datadg/snapcf_orcl1.f'; allocate channel d1 type disk; allocate channel d2 type disk; allocate channel d3 type disk; allocate channel d4 type disk; backup as compressed backupset database format '/u01/bak/db_fullbk_%s_%p_%t.rmn' tag='backup_full' include current controlfile; backup as compressed backupset archivelog from time 'sysdate - 1/12' format '/u01/bak/archive_%s_%p_%t.arc'; backup current controlfile tag='backup_contorlfile' format='/u01/bak/ctl_%s_%p_%t'; backup spfile tag='backup_spfile' format='/u01/bak/spfile_%s_%p_%t'; release channel d2; release channel d1; release channel d3; release channel d4; } exit; EOF
相关文章推荐
- rman备份遇到错误ORA-00245
- rman 备份出现ORA-00245/RMAN-08132
- Oracle 11g RAC RMAN ORA-00245 control file backup operation failed 错误 与 控制文件备份 说明
- 生产系统RMAN备份失败ORA-00245
- Oracle 11g RAC RMAN ORA-00245 control file backup operation failed 错误 与 控制文件备份 说明
- Oracle 11g RAC RMAN ORA-00245 control file backup operation failed 错误 与 控制文件备份 说明
- Oracle 11g RAC RMAN ORA-00245 control file backup operation failed 错误 与 控制文件备份 说明
- 11gR2 RAC RMAN备份问题------ORA-00245控制文件autobackup错误
- 12C -- 创建RMAN备份用户
- oracle数据库中rman备份脚本非常实用
- RMAN - 常用的备份脚本
- Oracle RMAN备份脚本
- Nocatalog 下的RMAN 增量备份 shell脚本
- oracle数据库备份出现错误:RMAN-03002 ORA-19809 ORA-19804
- 使用RMAN和控制文件备份删除归档日志的SHELL脚本--RED HAT 5 LINUX 64
- rman 总结(附一个AIX的全备份脚本)
- Oracle的RMAN备份与恢复脚本
- 12c 验证RMAN加密备份
- ORACLE 10G rman 备份脚本
- RMAN备份数据到NFS提示ORA-27054