更改服务器名后crs无法启动_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 1621 | 回复: 0   主题: 更改服务器名后crs无法启动        下一篇 
solo9867
注册用户
等级:新兵
经验:61
发帖:71
精华:0
注册:2011-12-15
状态:离线
发送短消息息给solo9867 加好友    发送短消息息给solo9867 发消息
发表于: IP:您无权察看 2015-6-29 17:38:32 | [全部帖] [楼主帖] 楼主

环境:

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 <command> <object> [<options>]

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

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

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

     srvctl <command> -h 或

     srvctl <command> <object> -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
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


--转自 北京联动北方科技有限公司




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论