重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1228|回复: 0
打印 上一主题 下一主题

[Oracle] rac环境节点1修改参数后,节点2启动出现ORA-01105、ORA-01677告警

[复制链接]
跳转到指定楼层
楼主
发表于 2022-12-23 18:35:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
问题描述:rac环境节点1修改参数后,节点2启动出现ORA-01105ORA-01677告警,如下所示:
环境:oracle rac(双节点)11.2.0.4 此为双节点rac dg环境
1、问题重现
--节点2启动报错
SQL>startup
ORACLEinstance started.
TotalSystem Global Area  855982080 bytes
FixedSize                  2258040 bytes
VariableSize             352324488 bytes
DatabaseBuffers          494927872 bytes
RedoBuffers                6471680 bytes
ORA-01105:mount is incompatible with mounts by other instances
ORA-01677:standby file name convert parameters differ from other instance
2、问题排查
--查节点1参数
SQL>show parameter log_file_name_convert
NAME                                 TYPE        VALUE
----------------------------------------------- ------------------------------
log_file_name_convert                string          +data/healdg/tempfile/, +data/
                                                heal/tempfile/, +data/healdg/o
                                                nlinelog/, +data/heal/onlinelo
                                                g/, +data/healdg/controlfile/,
                                                 +data/heal/controlfile/
SQL>show parameter db_file_name_convert
NAME                                 TYPE        VALUE
----------------------------------------------- ------------------------------
db_file_name_convert                 string         +data/healdg/datafile/,+data/
                                                heal/datafile/, +data/healdg/t
                                                empfile/, +data/heal/tempfile/
SQL>show parameter fal
NAME                                 TYPE        VALUE
----------------------------------------------- ------------------------------
fal_client                           string      heal
fal_server                           string      healdg
--查节点2参数
SQL>show parameter log_file_name_convert
NAME                                 TYPE        VALUE
----------------------------------------------- ------------------------------
log_file_name_convert                string
SQL>show parameter db_file_name_convert
NAME                                 TYPE        VALUE
----------------------------------------------- ------------------------------
db_file_name_convert                 string
SQL>show parameter fal
NAME                                 TYPE       VALUE
----------------------------------------------- ------------------------------
fal_client                           string
fal_server                           string
3、解决过程
--节点2执行
SQL>create pfile='/home/oracle/pfile.ora' from spfile;
Filecreated.
[oracle@hisdb2~]$ vi pfile.ora
添加如下内容:
*.db_file_name_convert='+data/healdg/datafile/','+data/heal/datafile/','+data/healdg/tempfile/','+data/heal/tempfile/'
*.log_file_name_convert='+data/healdg/tempfile/','+data/heal/tempfile/','+data/healdg/onlinelog/','+data/heal/onlinelog/','+data/healdg/controlfile/','+data/heal/controlfile/'
*.fal_server='healdg'
*.fal_client='heal'
[oracle@hisdb2~]$ ps -ef|grep ora_smon
oracle    59575     1  0 09:56 ?        00:00:00 ora_smon_heal2
oracle    63859  3944  0 10:51 pts/0    00:00:00 grep --color=auto ora_smon
[oracle@hisdb2~]$ kill -9 59575
[oracle@hisdb2~]$ sqlplus / as sysdba
SQL*Plus:Release 11.2.0.4.0 Production on Tue Nov 29 10:52:17 2022
Copyright(c) 1982, 2013, Oracle.  All rightsreserved.
Connectedto an idle instance.
SQL>startup nomount pfile='/home/oracle/pfile.ora';
ORACLEinstance started.
TotalSystem Global Area  855982080 bytes
FixedSize                  2258040 bytes
VariableSize             352324488 bytes
DatabaseBuffers          494927872 bytes
RedoBuffers                6471680 bytes
SQL>alter database mount;
alterdatabase mount
*
ERROR atline 1:
ORA-01105:mount is incompatible with mounts by other instances
ORA-19808:recovery destination parameter mismatch
--此时因其它参数不同造成异常,查节点1参数
SQL>show parameter db_recov
NAME                                 TYPE        VALUE
----------------------------------------------- ------------------------------
db_recovery_file_dest                string      +fra
db_recovery_file_dest_size           big integer   50G
--节点2修改
SQL>shutdown immediate
ORA-01507:database not mounted
ORACLEinstance shut down.
[oracle@hisdb2~]$ vi pfile.ora
添加如下内容.
*.db_recovery_file_dest='+fra'
*.db_recovery_file_dest_size=50g
[oracle@hisdb2~]$ sqlplus / as sysdba
SQL*Plus:Release 11.2.0.4.0 Production on Tue Nov 29 11:05:47 2022
Copyright(c) 1982, 2013, Oracle.  All rightsreserved.
Connectedto an idle instance.
SQL>startup nomount pfile='/home/oracle/pfile.ora';
ORACLE instancestarted.
TotalSystem Global Area  855982080 bytes
FixedSize                  2258040 bytes
VariableSize             352324488 bytes
DatabaseBuffers          494927872 bytes
RedoBuffers                6471680 bytes
SQL>alter database mount;
Databasealtered.
SQL>alter database open;
Databasealtered.
SQL>create spfile from pfile='/home/oracle/pfile.ora';
Filecreated.
SQL>shutdown immediate
Databaseclosed.
Databasedismounted.
ORACLEinstance shut down.
SQL>startup
ORACLEinstance started.
TotalSystem Global Area  855982080 bytes
FixedSize                  2258040 bytes
VariableSize             352324488 bytes
DatabaseBuffers          494927872 bytes
RedoBuffers                6471680 bytes
Databasemounted.
Databaseopened.
结论:节点2成功启动数据库.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-9-28 06:24 , Processed in 0.128546 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表