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

猜你喜欢

转载自www.cnblogs.com/yhq1314/p/11040578.html