Welcome 微信登录

首页 / 数据库 / MySQL / 更改服务器名后CRS无法启动

环境:DB:Oracle 11.2.0.2OS:OEL Linux (OEL)5.6 现象:更改hostnamenjdyw -> hotel07 重启服务器后发现crs服务无法启动[oracle@hotel07 diag]$ crs_stat -tCRS-0184: 无法与 CRS 守护程序通信。 更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12[oracle@hotel07diag]$ crsctl start hasCLSU-00105: 操作系统接口报告了内部故障CLSU-00103: 错误位置: scrcreate5CLSU-00104: 其他错误信息: need ha privCRS-4000: 命令 Start 失败, 或已完成但出现错误。  解决办法:重新配置crs安装,具体如下 --查看下面的目录,发现有之前服务器名的配置文件目录[oracle@hotel07~]$ cd /etc/oracle/scls_scr[oracle@hotel07 scls_scr]$ lsnjdyw --在root用户下--进到$GRID_HOME/crs/install目录,执行下面的脚本[root@hotel07install]# pwd/u01/app/ora11g/product/11.2.0/grid/crs/install[root@hotel07install]# ./rootcrs.pl -deconfig -forceUsingconfiguration 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> -hPRKO-2012 :Oracle Restart 不支持 nodeapps 对象ACFS-9459:ADVM/ACFS is not supported on this OS version: "2.6.32-100.26.2.el5"ACFS-9201: NotSupportedCRS-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 properlycleanup theprocesses started by Oracle clusterwareerror: packagecvuqdisk is not installedSuccessfully deconfiguredOracle clusterware stack on this node [root@hotel07install]# ./roothas.plUsingconfiguration parameter file: ./crsconfig_paramsLOCAL ADD MODECreating OCRkeys for user "oracle", privgrp "oinstall"..Operationsuccessful.LOCAL ONLY MODESuccessfullyaccumulated necessary OCR keys.Creating OCRkeys for user "root", privgrp "root"..Operationsuccessful.CRS-4664: Nodehotel07 successfully pinned.Adding daemon toinittabACFS-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.olrSuccessfullyconfigured Oracle Grid Infrastructure for a Standalone Server --然后再看crs配置目录[oracle@hotel07~]$ cd /etc/oracle/scls_scr[oracle@hotel07scls_scr]$ lshotel07 --查看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 HASservicesdev-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.dev-srv-20:+ASM:/etc/oracle/scls_scr>ls -altotal 0drwxr-xr-x 3 root epsdba  80 2009-05-12 08:36 .drwxr-xr-x 5 root epsdba 200 2010-03-08 14:27 ..drwxr-xr-x 4 root epsdba  96 2009-05-12 08:36 dev-srv-25
So to fix the problem1. De-configure the CRS$GRID_HOME/crs/install/rootcrs.pl -deconfig -force2. Reconfigure CRS$GRID_HOME/crs/install/roothas.plMetalink Note 4632899.8 talksabout similar behaviour. MySQL常用命令之-用户密码修改通过GC创建DataGuard备库失败一则相关资讯      CRS  启动CRS 
  • CRS报CRS-2409告警信息问题分析与  (08/11/2013 09:57:56)
本文评论 查看全部评论 (0)
表情: 姓名: 字数

版权所有©石家庄振强科技有限公司2024 冀ICP备08103738号-5 网站地图