更改服务器名后crs无法启动解决
DB:oracle 11.2.0.2
OS:OEL Linux (OEL)5.6
现象:
更改hostnamenjdyw -> hotel07
重启服务器后发现crs服务无法启动
[oracle@hotel07 diag]$ crs_stat -t
CRS-0184: 无法与 CRS 守护程序通信。
[oracle@hotel07diag]$ crsctl start has
CLSU-00105: 操作系统接口报告了内部故障
CLSU-00103: 错误位置: scrcreate5
CLSU-00104: 其他错误信息: need ha priv
CRS-4000: 命令 Start 失败, 或已完成但出现错误。
解决办法:
重新配置crs安装,具体如下
--查看下面的目录,发现有之前服务器名的配置文件目录
[oracle@hotel07~]$ cd /etc/oracle/scls_scr
[oracle@hotel07 scls_scr]$ ls
njdyw
--在root用户下
--进到$GRID_HOME/crs/install目录,执行下面的脚本
[root@hotel07install]# pwd
/u01/app/ora11g/product/11.2.0/grid/crs/install
[root@hotel07install]# ./rootcrs.pl -deconfig -force
Usingconfiguration parameter file: ./crsconfig_params
用法: srvctl
有关各个命令和对象的详细帮助, 请使用:
srvctl -h 或
srvctl
原文内容:
With 11.2 database, if thehostname is changed we’ll see following err