当前位置: 代码迷 >> 综合 >> Addnode.sh失败,日志文件报错PRKC-1025 java.lang.OutOfMemoryError: Java heap space
  详细解决方案

Addnode.sh失败,日志文件报错PRKC-1025 java.lang.OutOfMemoryError: Java heap space

热度:58   发布时间:2023-12-15 07:42:55.0

环境: 

Linux 5.5 + RAC 11203

 

问题描述:

添加集群成员命令如下:

$GRID_HOME/oui/bin/addNode.sh -silent "CLUSTER_NEW_NODES={X3850AR}" "CLUSTER_NEW_PRIVATE_NODE_NAMES={X3850AR-priv}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={X3850AR-vip}"

报错如下:

Instantiating scripts for add node (Wednesday, January 14, 2015 1:06:57 AM CST)
.                                                                 1% Done.
Instantiation of add node scripts complete

Copying to remote nodes (Wednesday, January 14, 2015 1:06:59 AM CST)
.......SEVERE:Abnormal program termination. An internal error has occured. Please provide the following files to Oracle Support :

"/grid/oraInventory/logs/addNodeActions2015-01-14_01-06-38AM.log"
"/grid/oraInventory/logs/oraInstall2015-01-14_01-06-38AM.err"
"/grid/oraInventory/logs/oraInstall2015-01-14_01-06-38AM.out"

 

其中.err部分内容如下:

oracle.ops.mgmt.cluster.SharedDeviceException: PRKC-1025 : Failed to create a file under the filepath /grid because the filepath is not executable or writable
        at oracle.ops.mgmt.nativesystem.UnixSystem.isSharedPath(UnixSystem.java:1623)
        at oracle.ops.mgmt.cluster.Cluster.isSharedPath(Cluster.java:1109)
        at oracle.sysman.oii.oiip.oiipg.OiipgCFSDriveCheck.isDriveOnCFS(OiipgCFSDriveCheck.java:655)
        at oracle.sysman.oii.oiic.OiicAddNodeSummaryInformation.isVolumeOnCFS(OiicAddNodeSummaryInformation.java:164)
        at oracle.sysman.oii.oiic.OiicAddNodeSummaryInformation.computeSpaceInfo(OiicAddNodeSummaryInformation.java:459)
        at oracle.sysman.oii.oiic.OiicAddNodeSummaryInformation.initializeAddNodeSession(OiicAddNodeSummaryInformation.java:383)
        at oracle.sysman.oii.oiic.OiicAddNodeSummaryInformation.<init>(OiicAddNodeSummaryInformation.java:140)
        at oracle.sysman.oii.oiif.oiifw.OiifwAddNodeSummaryWCDE.writeSummaryInformation(OiifwAddNodeSummaryWCDE.java:212)
        at oracle.sysman.oii.oiif.oiifw.OiifwAddNodeSummaryWCDE.logDialog(OiifwAddNodeSummaryWCDE.java:204)
        at oracle.sysman.oii.oiif.oiifb.OiifbWizChainDlgElem.doOperation(OiifbWizChainDlgElem.java:702)
        at oracle.sysman.oii.oiif.oiifw.OiifwAddNodeSummaryWCDE.doOperation(OiifwAddNodeSummaryWCDE.java:180)
        at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:171)
        at oracle.sysman.oii.oiic.OiicPullSession.doOperation(OiicPullSession.java:1380)
        at oracle.sysman.oii.oiic.OiicSessionWrapper.doOperation(OiicSessionWrapper.java:294)
        at oracle.sysman.oii.oiic.OiicInstaller.run(OiicInstaller.java:579)
        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:969)
        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:906)
Exception java.lang.OutOfMemoryError: Java heap space occurred..
java.lang.OutOfMemoryError: Java heap space
        at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
        at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)

 

解决思路:

检查/grid的大小,和读写权限正常,如下如示:

...

Cluster Node Addition Summary
Global Settings
   Source: /grid/app/11.2.0/grid
   New Nodes
Space Requirements
   New Nodes
      X3850AR
         /grid: Required 8.77GB : Available 29.02GB
Installed Products

...

[root@X3850AR grid]# ls -ld /grid/
drwxrwxr-x 5 grid oinstall 4096 Jan 14 00:44 /grid/

...

OutOfMemoryError -->>>>>>> JAVA内存不足:

[grid@X3850AX ~]$ cd cd $GRID_HOME/oui/

[grid@X3850AX oui]$ grep JRE_MEMORY_OPTIONS oraparam.ini
#JRE_MEMORY_OPTIONS=" -mx150m"   <<<<<<<默认值是150M
JRE_MEMORY_OPTIONS=" -mx1024m" <<<<<<<<修改值为1024M

 

重新执行addNode.sh脚本,执行成功

 

 

 

 

  相关解决方案