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

解决

[[email protected] ~]$ 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.
[[email protected] ~]$ 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

原文地址:https://www.cnblogs.com/yhq1314/p/11040578.html

时间: 2024-10-02 20:54:00

oracle rman catalog--ORA-01580: error creating control backup file的相关文章

NET:Error Creating Control -"Object Reference Not Set To An Instance Of Object"

这几天,竟遇见些奇葩问题,有的实在懒的写了,这个比较有意思,以前没见过,写个文章记录下: Error Creating Control -"Object Reference Not Set To An Instance Of Object" 在winforms页面中,所有page的所有服务器控件的位置出现一行红字"Error Creating Control - Object reference not set to an instance of an object"

另类方法解决设计Web页面出现:Error Creating Control

在B/S开发的过程中,经常会遇到这样的提示:Error Creating Control ,而这些页面明明之前是可以打开的,但还是出现如下图所示: 网上找到的方法是把控件初始化放在OnInit里去写,本人试了下,还是会出现的..... 最后本人找到了一种另类的方法,把原先的aspx后台类名更改,假如是:test =>test2 ,对应前台后面CodeBehind的地方同样需要改成test =>test2,然后保存, 保存完以后,再倒腾一次,按照原来修改的地方把test2 =>test,再

TFS Build Error: CSC : fatal error CS0042: Unexpected error creating debug information file 'xxxx.PDB'

CSC : fatal error CS0042: Unexpected error creating debug information file 'xxxx.PDB' -- 'c:\Builds\xxxx.pdb: The process cannot access the file because it is being used by another process. 查看了详细的Build Log, 发现了同样的一文件被build了两次. 原因是 Solution 中的 Project

Oracle RMAN备份恢复指导书

目 录 1 目的与范围... 1 2 术语和定义... 1 3 角色和职责... 2 4 使用RMAN备份数据库... 2 4.1.1 检查数据库模式... 2 4.1.2 连接到target数据库... 3 4.1.3 查看备份信息... 3 4.1.4 备份数据库... 5 4.1.5 备份数据文件... 6 4.1.6 备份表空间... 6 4.1.7 备份控制文件... 6 4.1.8 备份归档日志文件... 7 4.1.9 备份闪回区... 8 4.1.10 增量备份... 8 4.2

Oracle Rman 中backuppiece 的uncatalog 和 backupset 的delete

本文是原创文章,转载请注明出处:http://write.blog.csdn.net/postedit/42424083 本文基于Oracle 10.2.0.4版本进行如下的测试: RMAN> list backup of archivelog all; 中间略去很多,只保留下面的这个: BS Key Size Device Type Elapsed Time Completion Time ------- ---------- ----------- ------------ --------

Oracle RMAN备份中catalog和nocatalog区别

nocatalog方式:用control file作为catalog,每一次备份都要往控制文件里面写好多备份信息,控制文件里面会有越来越多的备份信息,即RMAN的备份信息写在本地控制文件里面. catalog方式:必须要首先要创建目录备份数据库(catalog,也称知识库),建立恢复目录,即数据库的备份信息写到恢复目录里面. 当通过rman nocatalog方式备份Oracle数据库,Oracle使用controlfile存放RMAN的备份信息.因此,当使用Rman nocatalog方式备份

BIP Requests Are Failing With Error "OPP Error Oracle.apps.xdo.XDOException: Error Creating Lock Fil

In this Document   Symptoms   Cause   Solution   References Applies to: BI Publisher (formerly XML Publisher) - Version 12.1 to 12.2 [Release 12.1 to 12.2] Information in this document applies to any platform. Symptoms BiP Requests are failing: ERROR

oracle rman异机恢复

  Oracle源主机 Oracle目标主机 主机平台 CentOS6.2(final) CentOs6.2(FInal) 主机名 vick rman IP地址 192.168.1.11 192.168.1.10 实例名字 orcl orcl Oracle版本 11.2.0.4 11.2.0.4 Oracle数据文件存储 filesystem filesystem 控制文件路径 /u01/app/oracle/oradata /u01/app/oracle/oradata 数据文件路径 /u01

Oracle RMAN备份与还原

RMAN在数据库服务器的帮助下实现数据库文件.控制文件.数据库文件与控制文件的映像副本.归档日志文件.数据库服务器参数文件的备份. RMAN的特点: (1) 支持增量备份:传统的exp与expdp备份工具,只能实现一个完整备份而不能增量备份,RMAN采用备份级别实现增量备份,在一个完整的备份基础上采用增量备份可以大大减少备份的数量: (2) 自动管理备份文件:RMAN备份的数据是RMAN自动管理的,包括文件名字,备份文件存储目录等: (3) 自动化备份与恢复:在备份与恢复操作时,使用简单的指令就