一. 问题描述:
因为克隆了11g r2改了hostname
结果重启服务器后就css和oha都起不来了
相关文档:
Reconfiguring & Recreating The11gR2,12cR1 Restart,OHAS,SIHA Stack Configuration (Standalone) , How toReconfigure Oracle Restart 文档 1422517.1.mhtml
How to Reconfigure Oracle Restart 文档986740.1.mhtml
原因分析:
grid不能改主机名
standalone改了就得重配 restart
cluster的话改主机名只能使用增删节点的方式
This document is about reconfiguring Oracle Restart. One reasonfor such action might be if the server (host) was renamed. If that was the caseand the server was rebooted, the ASM startup would fail with ORA-29701.
The solution is to reconfigure Oracle Restart.
has检查:
[root@node1bak grid]# crsctl start has
CLSU-00100: Operating System function:opendir failed with error data: 2
CLSU-00101: Operating System error message:No such file or directory
CLSU-00103: error location: scrsearch1
CLSU-00104: additional error information:cant open scr home dir scls_scr_getval
CRS-4000: Command Start failed, orcompleted with errors.
[root@node1bak grid]# hostname
node1bak.example.com
[root@node1bak grid]#
css检查:
[root@node1bak grid]# crsctl check css
CRS-4639: Could not contact Oracle HighAvailability Services
CRS-4000: Command Check failed, orcompleted with errors.
[root@node1bak grid]#
启动+asm实例报错:
[grid@node1bak grid]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production onSun Sep 18 11:10:51 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing systemparameters
ORA-29701: unable to connect to Cluster Synchronization Service
SQL>
二. 解决方案
参考文档:
How to Reconfigure Oracle Restart (文档 ID 986740.1)
实施步骤:
1. Remove Oracle Restart configuration
This step should be performedas privileged (root) user.
#$GRID_HOME/crs/install/roothas.pl -deconfig -force
The expected result is "Successfully deconfigured OracleRestart stack".
[root@node1bak grid]# $GRID_HOME/crs/install/roothas.pl -deconfig-force
bash: /crs/install/roothas.pl: No such fileor directory
[root@node1bak grid]#$GRID_HOME/crs/install/roothas.pl -deconfig -force
bash: /crs/install/roothas.pl: No such fileor directory
[root@node1bak grid]#$O