在查看11G数据库的集群日志时,发现了CRS-2316 / CRS-2317的错误:
CRS-2317:Fatal error: cannot get local GPnP security keys (wallet).
CRS-2316:Fatal error: cannot initialize GPnP, CLSGPNP_ERR (Generic GPnP error).
查阅官方文档(ID:1332725.1),得知出现这种报错信息的原因可能有:
1. ORA_CRS_HOME environment variable is set 设置了环境变量ORA_CRS_HOME
It's highly recommended to unset ORA_CRS_HOME completely from user profile(root user, grid user and RAC database user) and shell environment, otherwise various errors will be encountered including the error above.
A wrongly set ORA_CRS_HOME to non active GI home will have worse impact.
2. Error in $GI_HOME/log/<host>/alert<host>.log while running root script (root.sh or rootupgrade.sh): 当执行脚本时出现了这个报错
1A. If root script finishes successfully, the error can be ignored. 若脚本执行成功,则可以忽略这个报错
1B. If root script fails, and $GRID_HOME/cfgtoollogs/rootcrs_<node>.log has the following:
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
Refer to note 1069182.1 and note 1050908.1 Section "Case 1: OHASD.BIN does not start" to debug. 若脚本执行失败,参照文档解除错误
3. Persists error in $GI_HOME/log/<host>/alert<host>.log while GI or node is restarting and GI fails to come up
The likely cause is GI software is damaged. The solution is to remove and add the node back to the cluster. Refer to the following documentation details:
当重启GI或者节点重启时GI无法找到,日志中错误持续存在,GI软件可能已经损坏,解决方法是移除后再重新将节点加入集群
可参考:
Oracle® Clusterware
Administration and Deployment Guide
11g Release 2 (11.2)
Chapter 4: Adding and Deleting Cluster Nodes
Oracle® Real Application Clusters
Administration and Deployment Guide
11g Release 2 (11.2)
Chapter 10: Adding and Deleting Oracle RAC from Nodes on Linux and UNIX Systems
Chapter 11: Adding and Deleting Oracle RAC from Nodes on Windows Systems
4. Error in RAC DB/ASM alert.log
Starting ORACLE instance (normal) 在启动oracle实例时告警日志中出现错误
....
[USER(9816)]CRS-2317:Fatal error: cannot get local GPnP security keys (wallet).
....
[USER(9816)]CRS-2316:Fatal error: cannot initialize GPnP, CLSGPNP_ERR (Generic GPnP error).
kggpnpInit: failed to init gpnp
WARNING: No cluster interconnect has been specified. Depending on
the communication driver configured Oracle cluster traffic
may be directed to the public interface of this machine.
Oracle recommends that RAC clustered databases be configured
with a private interconnect for enhanced security and
performance.
.....
Cluster communication is configured to use the following interface(s) for this instance
<IP ADDRESS>
The following error is reported from sqlplus SQL statement or in trace file:
ORA-29780: unable to connect to GPnP daemon [CLSGPNP_ERR] <<<<<<-------
First thing is to ensure that gpnpd.bin is running: 首先确认gpnpd.bin在运行
<GI_HOME>/bin/crsctl stat res ora.gpnpd -t -init
---------------------------------------------
Name Target State Server
---------------------------------------------
Cluster Resources
---------------------------------------------
ora.gpnpd
1 ONLINE ONLINE <HOSTNAME1>
---------------------------------------------
Second, ensure ORA_CRS_HOME environment variable is unset 然后清除环境变量ORA_CRS_HOME的设置
5. Command "oifcfg" returns the error 在执行oifcfg命令时出现这个错误,参照文档1050472.1
Refer to:
note 1050472.1 - Failed to initialize GPnP Reported While Executing oifcfg
|