Friday, August 3, 2018

How to resolve grid(12.1.0) root.sh issue in Linux6

Issue:

[root@oracle grid]# ./root.sh
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/grid/product/12.1.0/grid/crs/install/crsconfig_params
PROTL-4: Failed to retrieve data from the local registry
2017/04/20 14:05:56 CLSRSC-169: Failed to create or upgrade OLR

Died at /u01/grid/product/12.1.0/grid/crs/install/crsutils.pm line 7672.
The command '/u01/grid/product/12.1.0/grid/perl/bin/perl -I/u01/grid/product/12.1.0/grid/perl/lib -I/u01/grid/product/12.1.0/grid/crs/install /u01/grid/product/12.1.0/grid/crs/install/roothas.pl ' execution failed 

Solution:

Need to deconfig grid before fresh installtion.


[root@oracle etc]# /u01/grid/product/12.1.0/grid/crs/install/roothas.pl -deconfig -force -verbose
Using configuration parameter file: /u01/grid/product/12.1.0/grid/crs/install/crsconfig_params
2017/04/20 14:54:18 CLSRSC-332: CRS resources for listeners are still configured
[root@oracle grid]# ./root.sh
PRCR-1065 : Failed to stop resource ora.ASMDB.lsnr
CRS-5013: Agent "ORAAGENT" failed to start process "/u01/db/oracle/product/12.1.0/dbhome_1/bin/lsnrctl" for action "clean": details at "(:CLSN00008:)" in "/u01/grid/diag/crs/oracle/crs/trace/ohasd_oraagent_grid.trc"
CRS-5013: Agent "ORAAGENT" failed to start process "/u01/db/oracle/product/12.1.0/dbhome_1/bin/lsnrctl" for action "check": details at "(:CLSN00008:)" in "/u01/grid/diag/crs/oracle/crs/trace/ohasd_oraagent_grid.trc"
CRS-2680: Clean of 'ora.ASMDB.lsnr' on 'oracle' failed

2017/04/20 14:54:19 CLSRSC-424: Failed to stop database listener, but continuing to deconfigure with force option

PRKO-2573 : ONS daemon is already stopped.
CRS-4133: Oracle High Availability Services has been stopped.
2017/04/20 14:54:37 CLSRSC-337: Successfully deconfigured Oracle Restart stack


[root@oracle grid]# ./root.sh
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/grid/product/12.1.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/grid/product/12.1.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'dba'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node oracle successfully pinned.
2017/04/20 14:57:05 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'


oracle     2017/04/20 14:57:30     /u01/grid/product/12.1.0/grid/cdata/oracle/backup_20170420_145730.olr     0
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'oracle'
CRS-2673: Attempting to stop 'ora.evmd' on 'oracle'
CRS-2677: Stop of 'ora.evmd' on 'oracle' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'oracle' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
2017/04/20 14:57:47 CLSRSC-327: Successfully configured Oracle Restart for a standalone server

1 comment: