第三方发起备份的ORA-00245问题

文章目录


前言

在使用 AnyBackup 管理控制台发起 Oracle RAC 数据库备份后,在任务历史记录 > 执行输出中显示如下错误信息:

control file backup failed; in Oracle RAC, target might not be on shared storage.

or

control file backup failed; in Oracle RAC, target is likely on a local file system .

RMAN输出报错,请检查下是否符合备份恢复条件、是否有配置错误或者有对Oracle的错误操作。 错误提供者:

oracleschedule,错误值:425984055,错误位置:ncOracleExecThread.cpp:877)

一、信息确认

共享目录位置

shell 复制代码
[root@cxlrac01 ~]# su  - grid
Last login: Tue Nov 28 14:35:03 CST 2023 on pts/2
[grid@cxlrac01 ~]$ 
[grid@cxlrac01 ~]$ 
[grid@cxlrac01 ~]$ asmcmd
ASMCMD> 
ASMCMD> 
ASMCMD> ls
DATAC1/
RECOC1/
ASMCMD> cd datac1
ASMCMD> 
ASMCMD> ls
ASM/
Cluster-um1/
DB1DB1/
TDHLBG/
TDHLDW/
TDHLTS/
TDHLYL/
orapwasm
orapwasm_backup
ASMCMD> 
ASMCMD> 
ASMCMD> exit

控制文件快照位置

节点1

rman 复制代码
[oracle@cxlrac01 ~]$ rman target /

Recovery Manager: Release 19.0.0.0.0 - Production on Tue Nov 28 14:46:48 2023
Version 19.15.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

connected to target database: TDHLYL (DBID=1578450313)

RMAN> 

RMAN> 

RMAN> show snapshot controlfile name;

using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name TDHLYL are:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/19.0.0.0/dbhome_1/dbs/snapcf_tdhlyl1.f'; # default

RMAN> 

节点2

rman 复制代码
[oracle@cxlrac02 ~]$ rman target /

Recovery Manager: Release 19.0.0.0.0 - Production on Tue Nov 28 14:48:29 2023
Version 19.15.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

connected to target database: TDHLYL (DBID=1578450313)

RMAN> 

RMAN> show snapshot controlfile name;

using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name TDHLYL are:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/19.0.0.0/dbhome_1/dbs/snapcf_tdhlyl2.f'; # default

RMAN> exit


Recovery Manager complete.
[oracle@cxlrac02 ~]$ 

二、RAC修改snapshot controlfile 参数

在其中一节点下进行参数修改CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+DATAC1/TDHLBG/snapcf_tdhlyl.f';

rman 复制代码
[oracle@cxlrac01 ~]$ rman target /

Recovery Manager: Release 19.0.0.0.0 - Production on Tue Nov 28 14:46:48 2023
Version 19.15.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

connected to target database: TDHLYL (DBID=1578450313)

RMAN> 

RMAN> 

RMAN> show snapshot controlfile name;

using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name TDHLYL are:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/19.0.0.0/dbhome_1/dbs/snapcf_tdhlyl1.f'; # default

RMAN> 

RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+DATAC1/TDHLYL/snapcf_TDHLyl.f';

new RMAN configuration parameters:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+DATAC1/TDHLYL/snapcf_TDHLyl.f';
new RMAN configuration parameters are successfully stored

RMAN> show snapshot controlfile name;

RMAN configuration parameters for database with db_unique_name TDHLYL are:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+DATAC1/TDHLYL/snapcf_TDHLyl.f';

RMAN> 

RMAN> exit


Recovery Manager complete.
[oracle@cxlrac01 ~]$ 

在第二节点确认参数信息:

rman 复制代码
[oracle@cxlrac02 ~]$ 
[oracle@cxlrac02 ~]$ rman target /

Recovery Manager: Release 19.0.0.0.0 - Production on Tue Nov 28 14:48:29 2023
Version 19.15.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

connected to target database: TDHLYL (DBID=1578450313)

RMAN> 

RMAN> show snapshot controlfile name;

using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name TDHLYL are:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+DATAC1/TDHLYL/snapcf_tdhlyl.f';

RMAN> exit


Recovery Manager complete.

三、字典表确认以及测试

select * from V$RMAN_CONFIGURATION;

在 AnyBackup 控制台重新发起备份任务进行测试。

相关推荐
小崔爱读书几秒前
普元DWS - Linux下安装DWS标准版
linux·运维·服务器
PerfMan17 分钟前
基于eBPF的procstat软件追踪程序垃圾回收(GC)事件
linux·开发语言·gc·ebpf·垃圾回收·procstat
失心疯_202330 分钟前
006.MySQL_查询数据
数据库·sql·mysql·关系型数据库·sqlyog·mysql教程·查询语句
环能jvav大师38 分钟前
基于R语言的统计分析基础:使用SQL语句操作数据集
开发语言·数据库·sql·数据分析·r语言·sqlite
小安运维日记43 分钟前
Linux云计算 |【第三阶段】PROJECT1-DAY1
linux·运维·云计算·apache
骆晨学长1 小时前
基于springboot的智慧社区微信小程序
java·数据库·spring boot·后端·微信小程序·小程序
pyliumy1 小时前
rsync 全网备份
linux·运维·服务器
@月落1 小时前
alibaba获得店铺的所有商品 API接口
java·大数据·数据库·人工智能·学习
楠枬1 小时前
MySQL数据的增删改查(一)
数据库·mysql
goTsHgo1 小时前
从底层原理上解释 clickhouse 保证完全的幂等性
数据库·clickhouse