addNode的错误NullPointException

No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.

Exception java.lang.NullPointerException occurred..
java.lang.NullPointerException
at oracle.sysman.oii.oiic.OiicAddNodeSession.initialize(OiicAddNodeSession.java:564)
at oracle.sysman.oii.oiic.OiicAddNodeSession.<init>(OiicAddNodeSession.java:135)
at oracle.sysman.oii.oiic.OiicSessionWrapper.createNewSession(OiicSessionWrapper.java:860)
at oracle.sysman.oii.oiic.OiicSessionWrapper.<init>(OiicSessionWrapper.java:186)
at oracle.sysman.oii.oiic.OiicInstaller.init(OiicInstaller.java:481)
at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:928)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)

oraInst.loc的权限由问题

[oracle@inthrac01 ~]$ ls /etc/oraInst.loc -al
-rwxr-x--- 1 root root 63 Jun 20 08:21 /etc/oraInst.loc

[oracle@inthrac01 ~]$ su -
Password:
[root@inthrac01 ~]# chmod 777 /etc/oraInst.loc

[oracle@inthrac01 ~]$ ls /etc/oraInst.loc -al
-rwxrwxrwx 1 root root 63 Jun 20 08:21 /etc/oraInst.loc

就可以了。

有这个导致的问题,还包括Opatch的时候

出现

Oracle Home : /u01/app/oracle/product/10.2.0/db_1
Central Inventory : n/a
from :
OPatch version : 10.2.0.1.0
OUI version : 10.2.0.1.0
OUI location : /u01/app/oracle/product/10.2.0/db_1/oui
Log file location : n/a

OPatch cannot find a valid oraInst.loc file to locate Central Inventory.
java.lang.RuntimeException: OPatch cannot find a valid oraInst.loc file to locate Central Inventory.
at oracle.opatch.OPatchEnv.printOPatchHeader(OPatchEnv.java:3071)
at oracle.opatch.OPatchSession.main(OPatchSession.java:685)
at oracle.opatch.OPatch.main(OPatch.java:506)

Oracle技术论坛 http://www.oraforum.net

你可能感兴趣的:(java,oracle,C++,c,.net)