搭dg mount报错ora-01103 database name XXXX in control file 处理

问题

处理方法

RMAN> shutdown

Oracle instance shut down

RMAN>
[oracle@primary1 ~]$ cd $ORACLE_HOME/dbs
[oracle@primary1 dbs]$ ls
hc_racpm1.dat  hc_stdg11.dat  id_racpm1.dat  init.ora  initstd.ora  orapwstdg11  spfilestdg11.ora
[oracle@primary1 dbs]$ vi initstd.ora

改成与主库一致的数据库名

[oracle@primary1 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Fri Jun 7 09:51:41 2024

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> create spfile from pfile ='$ORACLE_HOME/dbs/initstd.ora';

File created.


SQL> startup nomount
ORACLE instance started.

Total System Global Area 7532969984 bytes
Fixed Size                  2941920 bytes
Variable Size            1358957600 bytes
Database Buffers         6157238272 bytes
Redo Buffers               13832192 bytes
SQL> show parameter name

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cell_offloadgroup_name               string
db_file_name_convert                 string      +DATA/STANDBY/DATAFILE/, +DATA
                                                 /PRIMARY/DATAFILE/, +DATA/STAN
                                                 DBY/TEMPFILE/, +DATA/PRIMARY/T
                                                 EMPFILE/
db_name                              string      standby
db_unique_name                       string      primary
global_names                         boolean     FALSE
instance_name                        string      stdg11
lock_name_space                      string
log_file_name_convert                string      +DATA/STANDBY/ONLINELOG, +DATA

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
                                                 /PRIMARY/ONLINELOG
pdb_file_name_convert                string
processor_group_name                 string
service_names                        string      primary
SQL>
修改后的数据库名与主库保持一致

重新开始恢复控制文件并启动到mount

[oracle@primary1 dbs]$ rman target /

Recovery Manager: Release 12.1.0.2.0 - Production on Fri Jun 7 09:54:29 2024

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

connected to target database: STANDBY (not mounted)

RMAN> restore standby controlfile from '/backup/ctl_STANDBY_20240607_8_1';

Starting restore at 07-JUN-24
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=18 device type=DISK

channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
output file name=+DATA/PRIMARY/CONTROLFILE/controlfile01.ctl
output file name=+ARCH/PRIMARY/CONTROLFILE/controlfile02.ctl
Finished restore at 07-JUN-24

RMAN>
mount成功

相关推荐

  1. oracle切换ADG后JVM组件查询ORA-29516处理

    2024-06-07 11:10:03       56 阅读
  2. 笔记:oracleORA-55941

    2024-06-07 11:10:03       35 阅读
  3. Mysql处理

    2024-06-07 11:10:03       64 阅读
  4. flask处理

    2024-06-07 11:10:03       36 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-07 11:10:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-07 11:10:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-07 11:10:03       82 阅读
  4. Python语言-面向对象

    2024-06-07 11:10:03       91 阅读

热门阅读

  1. Python 脚本打包

    2024-06-07 11:10:03       27 阅读
  2. 二叉树的镜像--c++【做题记录】

    2024-06-07 11:10:03       35 阅读
  3. 使用C++版本的opencv dnn 部署onnx模型

    2024-06-07 11:10:03       31 阅读
  4. 【OpenCV 基础知识 21】霍夫变换圆形检测

    2024-06-07 11:10:03       28 阅读
  5. Ubuntu系统中挂载一个jar运行程序

    2024-06-07 11:10:03       30 阅读
  6. flink 作业动态维护更新,不重启flink,不提交作业

    2024-06-07 11:10:03       34 阅读
  7. Flink协调器Coordinator及自定义Operator

    2024-06-07 11:10:03       23 阅读
  8. 人工智能安全风险分析及应对策略

    2024-06-07 11:10:03       30 阅读
  9. stm32g030f6p6读取ina3221

    2024-06-07 11:10:03       26 阅读