CRS cannot be started after the server name is changed

Source: Internet
Author: User
Environment: DB: Oracle11.2.0.2OS: OELLinux (OEL) 5.6 symptom: Change hostnamenjdyw-gt; restart server 07 and the crs service cannot be started

Environment: DB: Oracle 11.2.0.2 OS: OEL Linux (OEL) 5.6 symptom: Change hostnamenjdyw-gt; restart server 07 and the crs service cannot be started

Environment:

DB: Oracle 11.2.0.2

Operating System: OEL Linux (OEL) 5.6

Symptom:

Change hostnamenjdyw-> route 07

After the server is restarted, the crs service cannot be started.

[Oracle @ nvi07 diag] $ crs_stat-t

CRS-0184: unable to communicate with the CRS daemon.

[Oracle @ brief 07diag] $ crsctl start has

CLSU-00105: Operating System Interface reports Internal Faults

CLSU-00103: error location: scrcreate5

CLSU-00104: Other error message: need ha priv

CRS-4000: Command Start failed, or completed but error.

Solution:

Reconfigure the crs installation, as shown in the following figure.

-- View the following directory and find the configuration file directory with the previous server name

[Oracle @ brief 07 ~] $ Cd/etc/oracle/scls_scr

[Oracle @ override 07 scls_scr] $ ls

Njdyw

-- Under the root user

-- Enter the $ GRID_HOME/crs/install directory and execute the following script.

[Root @ mongo07install] # pwd

/U01/app/ora11g/product/11.2.0/grid/crs/install

[Root @ brief 07install] #./rootcrs. pl-deconfig-force

Usingconfiguration parameter file:./crsconfig_params

Usage: srvctl [ ]

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

Object: database | service | asm | diskgroup | listener | home | ons

For detailed help on various commands and objects, use:

Srvctl-H or

Srvctl -H

PRKO-2012: Oracle Restart does not support nodeapps objects

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 @ brief 07install] #./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: node1_07 successfully pinned.

Adding daemon toinittab

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

13:55:40/u01/app/ora11g/product/11.2.0/grid/cdata/201707/backup_20130723_135540.olr

Successfullyconfigured Oracle Grid Infrastructure for a Standalone Server

-- Check the crs configuration directory again.

[Oracle @ brief 07 ~] $ Cd/etc/oracle/scls_scr

[Oracle @ brief 07scls_scr] $ ls

07

-- View crs status

[Oracle @ brief 07 scls_scr] $ crs_stat-t

Name Type Target status host

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

Ora.css d. type ONLINE regular 07

Ora. diskmon ora... on. type ONLINE before 07

Ora. evmd ora. evm. type ONLINE before 07

Ora. ons ora. ons. type OFFLINE

-- If other services are missing, use the srvctl command to add

[Oracle @ brief 07 ~] $ Srvctl add listener
[Oracle @ brief 07 ~] $ Srvctl add asm-l LISTENER-d data

[Oracle @ brief 07 admin] $ crs_stat-t
Name Type Target status host
------------------------------------------------------------
Ora. DATA. dg ora... up. type ONLINE 07
Ora. FRA. dg ora... up. type ONLINE 07
Ora... ER. lsnr ora... er. type ONLINE before 07
Ora. asm ora. asm. type ONLINE before 07
Ora.css d. type ONLINE regular 07
Ora. diskmon ora... on. type ONLINE before 07
Ora. evmd ora. evm. type ONLINE before 07
Ora. ons ora. ons. type OFFLINE


Original article content:

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 1 Internal Error Information: Category:-1 Operation: 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.