[oracle@10g ~]$ cd $ORACLE_HOME
[oracle@10g db_1]$ cd OPatch/
[oracle@10g OPatch]$ opatch lsinventory
-bash: opatch: command not found
[oracle@10g OPatch]$ ./opatch lsinventory
Invoking OPatch 10.2.0.5.1
Oracle Interim Patch Installer version 10.2.0.5.1
Copyright (c) 2010, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/product/10.2.0/db_1
Central Inventory : /oracle/oraInventory
from : /etc/oraInst.loc
OPatch version : 10.2.0.5.1
OUI version : 10.2.0.5.0
OUI location : /oracle/product/10.2.0/db_1/oui
Log file location : /oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2015-12-30_20-43-25PM.log
Patch history file: /oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt
Lsinventory Output file location : /oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2015-12-30_20-43-25PM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (2):
Oracle Database 10g 10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 4 10.2.0.5.0
There are 2 products installed in this Oracle Home.
Interim patches (1) :
Patch 13343471 : applied on Thu Nov 26 16:55:03 CST 2015
Unique Patch ID: 14282265
Created on 20 Dec 2011, 21:48:08 hrs PST8PDT
Bugs fixed:
6402302, 10269717, 10327190, 11693109, 8865718, 10017048, 9024850
8394351, 8546356, 8224558, 13489660, 9360157, 9770451, 9020537, 9772888
8650138, 8664189, 8488233, 10091698, 10092858, 12551710, 7519406
13349665, 10132870, 8771916, 9109487, 7509714, 9171933, 10173237
9532911, 10139235, 10159846, 10068982, 8350262, 11792865, 7119382
7361418, 10306945, 8666117, 11724962, 11725006, 6157713, 10214450
9184754, 8966823, 8544696, 9320130, 9767674, 9323583, 7026523, 9399589
8277300, 9672816, 13343467, 9726739, 9499302, 8412426, 10165083, 10208905
12419392, 6651220, 9150282, 9145204, 9659614, 9949948, 11076894, 10327179
8882576, 7612454, 7111619, 7450366, 9711859, 11893577, 9714832, 9735237
8970313, 6011045, 11814891, 10162036, 10248542, 9952230, 9469117, 13359623
9952270, 9842573, 13343471, 8660422, 10324526, 11066597, 12419258
9322219, 8636407, 9713537, 12828105, 10010310, 9390484, 9824435, 12925532
9963497, 9032322, 12862186, 12551700, 12862187, 12551701, 10249537
12551702, 12551703, 9586877, 8211733, 12551704, 10076669, 6694396
9548269, 12551705, 12551706, 9337325, 12551707, 8354642, 7602341, 12551708
9308296, 12827745, 9072105, 8528171, 10157402, 12565867, 11737047
--------------------------------------------------------------------------------
OPatch succeeded.
[oracle@10g OPatch]$