oracle rman catalog--ORA-01580: error creating control backup file
在测试rman catalog时,错误的设置了snapshot路径,报错
RMAN> show snapshot controlfile name; RMAN configuration parameters for database with db_unique_name ORCL are: CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_orcl.f'; # default RMAN> configure snapshot controlfile name to 'home/oracle/snapshot.ctl'; ##此处home路径设置错误,以至于后面报错 new RMAN configuration parameters: CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'home/oracle/snapshot.ctl'; new RMAN configuration parameters are successfully stored RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03008: error while performing automatic resync of recovery catalog ORA-01580: error creating control backup file /u01/app/oracle/product/11.2.0/db_1/dbs/home/oracle/snapshot.ctl ORA-27040: file create error, unable to create file Linux-x86_64 Error: 2: No such file or directory Additional information: 1
RMAN> configure snapshot controlfile name to '/home/oracle/snapshot.ctl'; RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of configure command at 06/17/2019 16:02:08 RMAN-03014: implicit resync of recovery catalog failed RMAN-03009: failure of full resync command on default channel at 06/17/2019 16:02:08 ORA-01580: error creating control backup file /u01/app/oracle/product/11.2.0/db_1/dbs/home/oracle/snapshot.ctl ORA-27040: file create error, unable to create file Linux-x86_64 Error: 2: No such file or directory Additional information: 1
在此,只要在catalog模式下,rman执行任何命令都会报错
RMAN> show all; RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of show command at 06/17/2019 16:20:28 RMAN-03014: implicit resync of recovery catalog failed RMAN-03009: failure of full resync command on default channel at 06/17/2019 16:20:28 ORA-01580: error creating control backup file /u01/app/oracle/product/11.2.0/db_1/dbs/home/oracle/snapshot.ctl ORA-27040: file create error, unable to create file Linux-x86_64 Error: 2: No such file or directory Additional information: 1 RMAN> backup current controlfile; Starting backup at 17-JUN-19 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of backup command at 06/17/2019 16:21:58 RMAN-03014: implicit resync of recovery catalog failed RMAN-03009: failure of full resync command on default channel at 06/17/2019 16:21:58 ORA-01580: error creating control backup file /u01/app/oracle/product/11.2.0/db_1/dbs/home/oracle/snapshot.ctl ORA-27040: file create error, unable to create file Linux-x86_64 Error: 2: No such file or directory Additional information: 1
解决
[oracle@DSI ~]$ rman target/ ###登录非catalog Recovery Manager: Release 11.2.0.4.0 - Production on Mon Jun 17 16:24:46 2019 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: ORCL (DBID=1534031567) RMAN> configure snapshot controlfile name to '/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_orcl.f'; ###修改正确的路径,这里恢复为原来的默认路径 using target database control file instead of recovery catalog old RMAN configuration parameters: CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'home/oracle/snapshot.ctl'; new RMAN configuration parameters: CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_orcl.f'; new RMAN configuration parameters are successfully stored RMAN> exit Recovery Manager complete. [oracle@DSI ~]$ rman target sys/oracle@orcl catalog rcowner/oracle@orcl Recovery Manager: Release 11.2.0.4.0 - Production on Mon Jun 17 16:25:04 2019 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: ORCL (DBID=1534031567) connected to recovery catalog database RMAN> show all; ##正常 starting full resync of recovery catalog full resync complete RMAN configuration parameters for database with db_unique_name ORCL are: CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS; CONFIGURE BACKUP OPTIMIZATION ON; CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default CONFIGURE CONTROLFILE AUTOBACKUP ON; CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE MAXSETSIZE TO UNLIMITED; # default CONFIGURE ENCRYPTION FOR DATABASE OFF; # default CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_orcl.f'; RMAN>
参考
https://community.oracle.com/thread/2368376?start=0&tstart=0
分类:
Oracle
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构