Oracle

在 RHEL 7 64 位上安裝 11.2.0 時出現問題

  • July 30, 2018

我在 RHEL 7 上停止 Oracle ASM 時遇到問題,請指教

[root@localhost grid]# ./root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
   ORACLE_OWNER= grid
   ORACLE_HOME=  /u01/app/grid/product/11.2.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/app/grid/product/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node lrma086 successfully pinned.
Adding Clusterware entries to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2015-10-19 10:19:43.306
[client(28082)]CRS-2101:The OLR was formatted using version 3.
2015-10-19 10:19:46.259
[client(28109)]CRS-1001:The OCR was formatted using version 3.
[client(28227)]CRS-10001:CRS-6021: No msg for has:crs-6021 [l][unlimited]
[client(28228)]CRS-10001:CRS-6021: No msg for has:crs-6021 [n][65536]

ohasd failed to start at /u01/app/grid/product/11.2.0/grid/crs/install/roothas.pl line 358, <ALERTLOG> line 6.
/u01/app/grid/product/11.2.0/grid/perl/bin/perl -I/u01/app/grid/product/11.2.0/grid/perl/lib -I/u01/app/grid/product/11.2.0/grid/crs/install /u01/app/grid/product/11.2.0/grid/crs/install/roothas.pl execution failed

我正在安裝不受支持的版本,Linux 7.1 的正確版本是 11.2.0.4

https://docs.oracle.com/cd/E11882_01/relnotes.112/e23558/toc.htm#CJAFHBIA

Oracle Linux 7 和 Red Hat Enterprise Linux 7 支持 從 Oracle Database 11g 第 2 版 (11.2.0.4) 開始,Linux x86-64 支持 Oracle Linux 7 和 Red Hat Enterprise Linux 7。

原因

未根據推薦值設置安全限制要求

訊息

$$ client(15674) $$CRS-10001:CRS-6021: has:crs-6021 沒有消息$$ n $$$$ 65536 $$ 考慮在 /etc/security/limits.conf 中為 oracle hard nofile 65536 推薦的值 然後這些消息讓人認為 /etc/security/limits.conf 中的其他參數可能沒有設置

$$ client(15669) $$CRS-10001:CRS-6021: has:crs-6021 沒有消息$$ l $$$$ unlimited $$ $$ client(15672) $$CRS-10001:CRS-6021: has:crs-6021 沒有消息$$ c $$$$ unlimited $$ 解決方案

使用 root 使用者確保 /etc/security/limits.conf 設置如下 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240

引用自:https://dba.stackexchange.com/questions/118485