更改服务器名后CRS无法启动

php中文网
发布: 2016-06-07 17:35:03
原创
1631人浏览过

环境: DB:Oracle 11.2.0.2 OS:OEL Linux (OEL)5.6 现象: 更改hostnamenjdyw -gt; hotel07 重启服务器后发现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 []

    命令:enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config

    对象: database|service|asm|diskgroup|listener|home|ons

有关各个命令和对象的详细帮助, 请使用:

  srvctl -h 或

  srvctl -h

PRKO-2012 :Oracle Restart 不支持 nodeapps 对象

ACFS-9459:ADVM/ACFS is not supported on this OS version: '2.6.32-100.26.2.el5'

ACFS-9201: NotSupported

CRS-4013: Thiscommand is not supported in a single-node configuration.

CRS-4000:Command Stop failed, or completed with errors.

You must killcrs processes or reboot the system to properly

cleanup theprocesses started by Oracle clusterware

黑灰色风格企业网站源码1.0_20250213
黑灰色风格企业网站源码1.0_20250213

hdhcms网站支持PC、手机版,同时后台支持公众号的接入,包括微信服务号订阅号,可以设置自动回复及服务号菜单及认证订阅号菜单。 1、网站上线方法: 1.1本网站运行环境为:IIS6.5+SQLITE 1.2将网站解压到网站目录 1.3数据库默认为SQLITE,包括在解压目录内,无须修改 1.4 完成上面的配置后通过所绑定的域名即可运行2网址访问及后台访问配置

黑灰色风格企业网站源码1.0_20250213 0
查看详情 黑灰色风格企业网站源码1.0_20250213

error: packagecvuqdisk is not installed

Successfully deconfiguredOracle clusterware stack on this node

 

[root@hotel07install]# ./roothas.pl

Usingconfiguration parameter file: ./crsconfig_params

LOCAL ADD MODE

Creating OCRkeys for user 'oracle', privgrp 'oinstall'..

Operationsuccessful.

LOCAL ONLY MODE

Successfullyaccumulated necessary OCR keys.

Creating OCRkeys for user 'root', privgrp 'root'..

Operationsuccessful.

CRS-4664: Nodehotel07 successfully pinned.

Adding daemon toinittab

ACFS-9459:ADVM/ACFS is not supported on this OS version: '2.6.32-100.26.2.el5'

 

 

hotel07    2013/07/23 13:55:40    /u01/app/ora11g/product/11.2.0/grid/cdata/hotel07/backup_20130723_135540.olr

Successfullyconfigured Oracle Grid Infrastructure for a Standalone Server

 

--然后再看crs配置目录

[oracle@hotel07~]$ cd /etc/oracle/scls_scr

[oracle@hotel07scls_scr]$ ls

hotel07

 

--查看crs状态

[oracle@hotel07 scls_scr]$ crs_stat -t

名称          类型          目标      状态      主机     

------------------------------------------------------------

ora.cssd      ora.cssd.type  ONLINE  ONLINE    hotel07   

ora.diskmon    ora....on.type ONLINE    ONLINE  hotel07   

ora.evmd      ora.evm.type  ONLINE  ONLINE    hotel07   

ora.ons        ora.ons.type  OFFLINE  OFFLINE 

 

--如果缺少其它服务用srvctl命令进行添加

[oracle@hotel07 ~]$ srvctl add listener
[oracle@hotel07 ~]$ srvctl add asm -l LISTENER -d data

 

 

[oracle@hotel07 admin]$ crs_stat -t
名称          类型          目标      状态      主机       
------------------------------------------------------------
ora.DATA.dg    ora....up.type ONLINE    ONLINE    hotel07   
ora.FRA.dg    ora....up.type ONLINE    ONLINE    hotel07   
ora....ER.lsnr ora....er.type ONLINE    ONLINE    hotel07   
ora.asm        ora.asm.type  ONLINE    ONLINE    hotel07   
ora.cssd      ora.cssd.type  ONLINE    ONLINE    hotel07   
ora.diskmon    ora....on.type ONLINE    ONLINE    hotel07   
ora.evmd      ora.evm.type  ONLINE    ONLINE    hotel07   
ora.ons        ora.ons.type  OFFLINE  OFFLINE   

 


原文内容:

With 11.2 database, if thehostname is changed we’ll see following error while starting the HASservices

dev-srv-20:+ASM:/home/ora11gr2>crsctl start hasFailure at scls_scr_create with code 1Internal Error Information:  Category: -1Operation: has_ha_privs  Location: scrcreate5  Other: need ha priv  System Dependent Information: 0  CRS-4000: Command Start failed, or completed with errors.To make sure, it is due to changein hostname check the directory in the following path. As we can see thehostname with which HAS was originally configured is different fromcurrent hostname.

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号