Solution to CRS-4124 and CRS-4000 in the process of installing grid 2

Source: Internet
Author: User
Tags stack trace
Click to open the link 017-01-09 17:18:30

Category: Oracle

A problem was encountered before installing the grid

When the previous steps have been successfully completed, you will need to execute two scripts when you arrive at this step.
There's nothing wrong with executing the first script.
But in the second file, I reported a mistake.

[Grid@14oracle16/]#/u01/sys_software/product/11.2.0/grid/root.sh

Running Oracle 11g root.sh script ...


The following environment variables is SETAs:

Oracle_owner= Oracle

Oracle_home=/u01/app/11.2.0/grid


Enter the full pathname of the local bindirectory: [/usr/local/bin]:

Copying dbhome To/usr/local/bin ...

Copying oraenv To/usr/local/bin ...

Copying coraenv To/usr/local/bin ...


Entries'll be added to the/etc/oratabfile as needed by

Database Configuration Assistant when Adatabase is created

Finished running generic part of Root.shscript.

Now product-specific root actions would beperformed.

2012-06-27 10:31:18:parsing the host name

2012-06-27 10:31:18:checking for Superuser privileges

2012-06-27 10:31:18:user has super userprivileges

Using Configuration parameter File:/u01/app/11.2.0/grid/crs/install/crsconfig_params

Creating Trace Directory

LOCAL ADD MODE

Creating OCR keys for user ' root ', privgrp ' root '.

Operation successful.

Root Wallet

Root Wallet Cert

Root cert Export

Peer Wallet

Profile Reader Wallet

Pawallet

Peer wallet Keys

Pawallet keys

Peer Cert request

Pacert Request

Peer cert

Pacert

Peer Root cert TP

Profile Reader Root cert TP

Paroot cert TP

Peer PA cert TP

Papeer cert TP

Profile Reader PA cert TP

Profile Reader Peer cert TP

Peer User Cert

Pauser cert

Adding Daemon to Inittab

crs-4124:oracle High Availability Services startup failed.

Crs-4000:command Start failed, or completed with errors.

OHASD failed to start:inappropriate IOCTL for device

OHASD failed to the start at/u01/app/11.2.0/grid/crs/install/rootcrs.pl line 443.

Search by Internet to find out because the version of the grid, there is a bug

Here's how to fix it:
Because before and once the script has run

So first delete the node

[Grid@14oracle16/]$ CD U01/app/oracle/product/11.2.0/grid/crs/install

[Grid@14oracle16 install]$./roothas.pl-delete-force-verbose

2016-05-27 05:36:01:checking for Super User privileges

You must is logged in as the root to run this script.

2016-05-27 05:36:01: ###### Begin Error Stack Trace ######

2016-05-27 05:36:01:package File Line Calling

2016-05-27 05:36:01:-------------------------------------------------

2016-05-27 05:36:01:1: crsconfig_lib s_crsconfig_lib.pm 121 Crsconfig_lib::error

2016-05-27 05:36:01:2: crsconfig_lib crsconfig_lib.pm 856 Crsconfig_lib::s_check_superuser

2016-05-27 05:36:01:3: main roothas.pl 173 Crsconfig_lib::check_superuser

2016-05-27 05:36:01: ####### End Error Stack Trace #######


Log in as root and rerun this script.

2016-05-27 05:36:01: ###### Begin Error Stack Trace ######

2016-05-27 05:36:01:package File Line Calling

2016-05-27 05:36:01:-------------------------------------------------

2016-05-27 05:36:01:1: crsconfig_lib s_crsconfig_lib.pm 122 Crsconfig_lib::error

2016-05-27 05:36:01:2: crsconfig_lib crsconfig_lib.pm 856 Crsconfig_lib::s_check_superuser

2016-05-27 05:36:01:3: main roothas.pl 173 Crsconfig_lib::check_superuser

2016-05-27 05:36:01: ####### End Error Stack Trace #######


2016-05-27 05:36:01:not running as authorized user

Insufficient privileges to execute this script

2016-05-27 05:36:01: ###### Begin Error Stack Trace ######

2016-05-27 05:36:01:package File Line Calling

2016-05-27 05:36:01:-------------------------------------------------

2016-05-27 05:36:01:1: main roothas.pl 175 Crsconfig_lib::error

2016-05-27 05:36:01: ####### End Error Stack Trace #######


re-run again

[Grid@14oracle16/]#/u01/sys_software/product/11.2.0/grid/root.sh

Running Oracle 11g root.sh script ...


The following environment variables is SETAs:

Oracle_owner= Oracle

Oracle_home=/u01/app/11.2.0/grid


Enter the full pathname of the local bindirectory: [/usr/local/bin]:

Copying dbhome To/usr/local/bin ...

Copying oraenv To/usr/local/bin ...

Copying coraenv To/usr/local/bin ...


Entries'll be added to the/etc/oratabfile as needed by

Database Configuration Assistant when Adatabase is created

Finished running generic part of Root.shscript.

Now product-specific root actions would beperformed.

2012-06-27 10:31:18:parsing the host name

2012-06-27 10:31:18:checking for Superuser privileges

2012-06-27 10:31:18:user has super userprivileges

Using Configuration parameter File:/u01/app/11.2.0/grid/crs/install/crsconfig_params

Creating Trace Directory

LOCAL ADD MODE


There will be a pause at this point, to open another terminal immediately run the following command with the root user

DD if=/var/tmp/.oracle/npohasd of=/dev/nullbs=1024 count=1

And then it's going to work.

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.