opatch apply Exception in thread ""main"" java.lang.NullPointerException

$opatch apply
Performing pre-patch installation checks.

Exception in thread ""main"" java.lang.NullPointerException
at InitialDatabaseCheck.main(InitialDatabaseCheck.java:179)
/u01/orapurc/purcdb/9.2.0/OPatch/opatch.pl version: 1.0.0.0.24
Copyright (c) 2001,2002 Oracle Corporation. All Rights Reserved.

Unknown problem.

[@more@]

$opatch apply
Performing pre-patch installation checks.

Exception in thread ""main"" java.lang.NullPointerException
at InitialDatabaseCheck.main(InitialDatabaseCheck.java:179)
/u01/orapurc/purcdb/9.2.0/OPatch/opatch.pl version: 1.0.0.0.24
Copyright (c) 2001,2002 Oracle Corporation. All Rights Reserved.

Unknown problem.

242993.1 OPATCH FAQ

36) Got exception " Exception in thread "main" java.lang.NullPointerException at
GetSingleInventory.main(GetSingleInventory.java:124" when trying to run the lsinventory command?

The inventory stores the location of each ORACLE_HOME as a string. The ORACLE_HOME it's using (either from the environment or from the "-oh" option) doesn't match any entry in the oracle homes picked up from the inventory. Check if the ORACLE_HOME environment variable has been set correctly and that the central inventory's file ContentsXML/inventory contains the relevant Oraclehome or if this oracle home was cloned from another machine and then use "attachhome" first and then apply the patch.

SOLUTION:

[orapurc@purc]$ls /etc/oraInst.loc
/etc/oraInst.loc
[orapurc@purc]$cat /etc/oraInst.loc
inventory_loc=/u01/orapurc/oraInventory
[orapurc@purc]$cd /u01/orapurc/oraInventory
[orapurc@purc]$ls
Contents ContentsXML install.platform locks logs
[orapurc@purc]$cd ContentsXML
[orapurc@purc]$ls
comps.xml inventory.xml libs.xml
#change $ORACLE_HOME strings
[orapurc@purc]$vi inventory.xml
HOME NAME="APPSDB_purc" LOC="/u01/orapurc/purcdb/9.2.0" TYPE="O" IDX="1"/

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/807588/viewspace-1019206/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/807588/viewspace-1019206/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值