root.sh CLSRSC-188: Failed to create keys in Oracle Local Registry hatası
Grid Infrastructure kurulumu sonrasında root.sh çalıştırıldığında eğer sunucunun host adı bir sayı ile başlıyorsa yani 123sunucu gibi bir host adı varsa root.sh çalıştırıldığında “Failed to create keys in the OLR” , “CLSRSC-188: Failed to create keys in Oracle Local Registry” gibi hata ile sonuçlanmaktadır. Sorunun çözümü için host adının başına bir harf eklemek gerekecek.
Alınana hata aşağıdaki gibi olacaktır. Örnekteki sunucu adı 12cr2db şeklinde olup sunucu adı bir (1) ile başlamaktadır.
[root@12cr2db lib64]# /u01/app/12.2.0.1/grid/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/12.2.0.1/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/app/12.2.0.1/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/oracle/crsdata/12cr2db/crsconfig/roothas_2022-11-25_01-08-29AM.log
2022/11/25 01:08:29 CLSRSC-363: User ignored prerequisites during installation
Site name (12cr2db) is invalid.clscfg -localadd -z <site guid> [-avlookup]
-p property1:value1,property2:value2...
-avlookup - Specify if the operation is during clusterware upgrade
-z <site guid> - Specify the site GUID for this node
-p propertylist - list of cluster properties and its value pairs
Adds keys in OLR for the HASD.
WARNING: Using this tool may corrupt your cluster configuration. Do not
use unless you positively know what you are doing.
Failed to create keys in the OLR, rc = 100, Message:
2022/11/25 01:08:32 CLSRSC-188: Failed to create keys in Oracle Local Registry
Died at /u01/app/12.2.0.1/grid/crs/install/oraolr.pm line 552.
The command '/u01/app/12.2.0.1/grid/perl/bin/perl -I/u01/app/12.2.0.1/grid/perl/lib -I/u01/app/12.2.0.1/grid/crs/install /u01/app/12.2.0.1/grid/crs/install/roothas.pl ' execution failed
Host adını örneğin a12crdb şekline dönüştürdüğümüzde root.sh sorunsuz şekilde çalışacaktır.
Host adını aşağıdaki gibi değiştirebilirsiniz .
[root@12cr2db ]# echo a12crdb > /etc/hostname
[root@12cr2db ]#
[root@12cr2db ]#
[root@12cr2db ]# cat /etc/hostname
a12crdb
[root@12cr2db ]# systemctl restart systemd-hostnamed
[root@12cr2db ]# hostname
a12crdb
Host adı değişimi sonrasında root.sh sorunsuz şekilde çalışacaktır.
[root@a12cr2db ~]# /u01/app/12.2.0.1/grid/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/12.2.0.1/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/app/12.2.0.1/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/oracle/crsdata/a12crdb/crsconfig/roothas_2022-11-25_01-09-34AM.log
2022/11/25 01:09:41 CLSRSC-363: User ignored prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
PROT-53: The file name [/u01/app/12.2.0.1/grid/cdata/localhost/local.ocr] specified for the 'ocrconfig -repair', 'ocrconfig -add' or 'ocrconfig -replace' command designates an invalid storage type for the Oracle Cluster Registry.
2022/11/25 01:09:45 CLSRSC-155: Replace of older local-only OCR failed
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node a12crdb successfully pinned.
2022/11/25 01:09:47 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'a12crdb'
CRS-2673: Attempting to stop 'ora.evmd' on 'a12crdb'
CRS-2677: Stop of 'ora.evmd' on 'a12crdb' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'a12crdb' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
a12crdb 2022/11/25 01:10:42 /u01/app/12.2.0.1/grid/cdata/a12crdb/backup_20221125_011042.olr 0
2022/11/25 01:10:43 CLSRSC-327: Successfully configured Oracle Restart for a standalone server