Home » Fusion Middleware & Colab Suite » Weblogic & Application Server » ERROR: OPatch failed as verification of the patch failed. OPatch returns with error code = 240 (OracleDeveloperSuite10gRel2 10.1.2.3.0 ,WINDOWS 7 Utlimate)
ERROR: OPatch failed as verification of the patch failed. OPatch returns with error code = 240 [message #618107] Tue, 08 July 2014 02:17 Go to next message
rajesh4851
Messages: 85
Registered: January 2007
Member
Dear friends,
I'm trying to install OracleDeveloperSuite10gRel2 10.1.2.3.0 in WINDOWS 7 Utlimate plotform.
As per pre-requisites used in other projects i've to install the same by executing 3 steps below.

Step 1) Apply patch 10396165 (follow some steps) --> successful
Step 2) Apply patch 5983622 (follow some steps) --> successful
Step 3) Apply patch 7047034 (follow below steps) --> Un successful

Download and extract patch 7047034 from above location.
Make sure that OC4J is not running
Open up cmd as an administrator
In cmd(command prompt), set ORACLE_HOME to the path to your Oracle Home for Forms 10g : C:\Forms10g_1
5. Run the following: set PATH=%ORACLE_HOME%\OPatch;%PATH%
6. Run the following:opatch apply

i got the error after this step. it should be ideally return the code as 0 but for me its giving the error code as 240. Here is the logs. Pls help me to resolve this issue.

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
 
C:\Users\Admin>cd..
 
C:\Users>cd..
 
C:\>cd C:\7047034
 
C:\7047034>echo %ORACLE_HOME%
%ORACLE_HOME%
 
C:\7047034>set ORACLE_HOME=C:\Forms10g_1
 
C:\7047034>echo %ORACLE_HOME%
C:\Forms10g_1
 
C:\7047034>path
PATH=C:\Forms10g_1\OPatch;C:\Forms10g_1\jdk\jre\bin\classic;C:\Forms10g_1\jdk\jr
e\bin;C:\Forms10g_1\jdk\jre\bin\client;C:\Forms10g_1\jlib;C:\Forms10g_1\bin;C:\F
orms10g_1\jre\1.4.2\bin\client;C:\Forms10g_1\jre\1.4.2\bin;C:\Windows\system32;C
:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
 
C:\7047034>opatch apply
 
Oracle Interim Patch Installer version 1.0.0.0.57
Copyright (c) 2007 Oracle Corporation. All Rights Reserved..
 
We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference. We also recommend using
the latest OPatch version. For the latest OPatch version
and other support related issues, please refer to document
293369.1 which is viewable from metalink.oracle.com
 
Oracle Home           : C:\Forms10g_1
Oracle Home Inventory : C:\Forms10g_1\inventory
Central Inventory     : C:\Program Files\oracle\inventory
   from               : N/A
OUI location          : C:\Forms10g_1\oui
OUI shared library    : C:\Forms10g_1\oui\lib\win32\oraInstaller.dll
Java location         : "C:\Forms10g_1\jre\1.4.2\bin\java.exe"
Log file location     : C:\Forms10g_1/.patch_storage/<patch ID>/*.log
 
Creating log file "C:\forms10g_1\.patch_storage\7047034\Apply_7047034_07-06-2014
_20-19-39.log"
 
Backing up comps.xml ...
 
OPatch detected non-cluster Oracle Home from the inventory and will patch the lo
cal system only.
 
 
Please shut down Oracle instances running out of this ORACLE_HOME
(Oracle Home = c:\forms10g_1)
Is this system ready for updating?
Please respond Y|N >
Y
Executing the Apply pre-patch script (C:\7047034\custom\scripts\pre.bat)...
        1 file(s) copied.
 
 inflated: webapp.war
 
Applying patch 7047034...
 
Patching jar files...
 
Patching copy files...
 
Creating new directory "c:\forms10g_1\crs\admin"
Creating new directory "c:\forms10g_1\srvm\admin"
Creating file to hold list of directories that were mkdir'ed: "C:\forms10g_1\.pa
tch_storage\7047034\opatch_dirs_created.lst"
 
 
Inventory is good and does not have any dangling patches.
 
 
Updating inventory...
OPATCH_JAVA_ERROR  : UpdateInventory got errors calling update inventory, java.i
o.FileNotFoundException: C:\Program Files\Oracle\Inventory\Contents\OracleHomesL
ist.ser (Access is denied)
Files on system are patched but Inventory Update has failed.  Please run 'opatch
 lsinventory' to check if the patch has been recorded in Inventory.
(1)
 
 
Verifying patch...
  Verifying that patch ID is in Oracle Home inventory.
INVENTORY PROBLEM: Patch 7047034 is not present in Oracle Home inventory.
  Verifying copy files.
 
Comparing "C:\7047034\files\rdbms\mesg\oraus.msb" and "c:\forms10g_1\rdbms\mesg\
oraus.msb"
 
Comparing "C:\7047034\files\rdbms\admin\orageneric10.sym" and "c:\forms10g_1\rdb
ms\admin\orageneric10.sym"
 
Comparing "C:\7047034\files\rdbms\admin\oraclient10.sym" and "c:\forms10g_1\rdbm
s\admin\oraclient10.sym"
 
Comparing "C:\7047034\files\rdbms\admin\oracommon10.sym" and "c:\forms10g_1\rdbm
s\admin\oracommon10.sym"
 
Comparing "C:\7047034\files\bin\oracommon10.dll" and "c:\forms10g_1\bin\oracommo
n10.dll"
 
Comparing "C:\7047034\files\bin\orageneric10.dll" and "c:\forms10g_1\bin\oragene
ric10.dll"
 
Comparing "C:\7047034\files\bin\oraclient10.dll" and "c:\forms10g_1\bin\oraclien
t10.dll"
 
Comparing "C:\7047034\files\bin\oraocrb10.dll" and "c:\forms10g_1\bin\oraocrb10.
dll"
 
Comparing "C:\7047034\files\bin\orapls10.dll" and "c:\forms10g_1\bin\orapls10.dl
l"
 
Comparing "C:\7047034\files\rdbms\admin\orapls10.sym" and "c:\forms10g_1\rdbms\a
dmin\orapls10.sym"
 
Comparing "C:\7047034\files\lib\orapls10.lib" and "c:\forms10g_1\lib\orapls10.li
b"
 
Comparing "C:\7047034\files\rdbms\admin\oraocrb10.sym" and "c:\forms10g_1\rdbms\
admin\oraocrb10.sym"
 
Comparing "C:\7047034\files\srvm\admin\oraocrb10.sym" and "c:\forms10g_1\srvm\ad
min\oraocrb10.sym"
 
Comparing "C:\7047034\files\bin\orahasgen10.dll" and "c:\forms10g_1\bin\orahasge
n10.dll"
 
Comparing "C:\7047034\files\crs\admin\orahasgen10.sym" and "c:\forms10g_1\crs\ad
min\orahasgen10.sym"
 
Comparing "C:\7047034\files\rdbms\admin\orahasgen10.sym" and "c:\forms10g_1\rdbm
s\admin\orahasgen10.sym"
 
Comparing "C:\7047034\files\bin\wrap.exe" and "c:\forms10g_1\bin\wrap.exe"
 
Comparing "C:\7047034\files\bin\rman.exe" and "c:\forms10g_1\bin\rman.exe"
 
Comparing "C:\7047034\files\bin\extproc.exe" and "c:\forms10g_1\bin\extproc.exe"
 
 
Comparing "C:\7047034\files\bin\sqlldr.exe" and "c:\forms10g_1\bin\sqlldr.exe"
 
Comparing "C:\7047034\files\bin\imp.exe" and "c:\forms10g_1\bin\imp.exe"
 
Comparing "C:\7047034\files\rdbms\admin\recover.bsq" and "c:\forms10g_1\rdbms\ad
min\recover.bsq"
 
Comparing "C:\7047034\files\bin\owm2.dll" and "c:\forms10g_1\bin\owm2.dll"
 
Comparing "C:\7047034\files\bin\orantcp10.dll" and "c:\forms10g_1\bin\orantcp10.
dll"
 
Comparing "C:\7047034\files\bin\oran10.dll" and "c:\forms10g_1\bin\oran10.dll"
 
Comparing "C:\7047034\files\bin\orannmp10.dll" and "c:\forms10g_1\bin\orannmp10.
dll"
 
Comparing "C:\7047034\files\bin\orannzsbb10.dll" and "c:\forms10g_1\bin\orannzsb
b10.dll"
 
Comparing "C:\7047034\files\bin\oranro10.dll" and "c:\forms10g_1\bin\oranro10.dl
l"
 
Comparing "C:\7047034\files\bin\tnslsnr.exe" and "c:\forms10g_1\bin\tnslsnr.exe"
 
 
Comparing "C:\7047034\files\rdbms\admin\oran10.sym" and "c:\forms10g_1\rdbms\adm
in\oran10.sym"
 
Comparing "C:\7047034\files\bin\lsnrctl.exe" and "c:\forms10g_1\bin\lsnrctl.exe"
 
 
Comparing "C:\7047034\files\lib\xmlparserv2.jar" and "c:\forms10g_1\lib\xmlparse
rv2.jar"
 
Comparing "C:\7047034\files\lib\xml.jar" and "c:\forms10g_1\lib\xml.jar"
 
Comparing "C:\7047034\files\bin\oraxml10.dll" and "c:\forms10g_1\bin\oraxml10.dl
l"
 
Comparing "C:\7047034\files\lib\oraxml10.lib" and "c:\forms10g_1\lib\oraxml10.li
b"
 
Comparing "C:\7047034\files\bin\oranls10.dll" and "c:\forms10g_1\bin\oranls10.dl
l"
 
Comparing "C:\7047034\files\bin\lmsgen.exe" and "c:\forms10g_1\bin\lmsgen.exe"
 
Comparing "C:\7047034\files\rdbms\admin\oranls10.sym" and "c:\forms10g_1\rdbms\a
dmin\oranls10.sym"
 
Comparing "C:\7047034\files\bin\oracore10.dll" and "c:\forms10g_1\bin\oracore10.
dll"
 
Comparing "C:\7047034\files\rdbms\admin\oracore10.sym" and "c:\forms10g_1\rdbms\
admin\oracore10.sym"
 
Comparing "C:\7047034\files\oracore\zoneinfo\timezlrg.dat" and "c:\forms10g_1\or
acore\zoneinfo\timezlrg.dat"
 
Comparing "C:\7047034\files\oracore\zoneinfo\timezone.dat" and "c:\forms10g_1\or
acore\zoneinfo\timezone.dat"
 
Comparing "C:\7047034\files\oracore\zoneinfo\readme.txt" and "c:\forms10g_1\orac
ore\zoneinfo\readme.txt"
 
Comparing "C:\7047034\files\bin\orajox10.dll" and "c:\forms10g_1\bin\orajox10.dl
l"
 
Comparing "C:\7047034\files\lib\orajox10.lib" and "c:\forms10g_1\lib\orajox10.li
b"
 
Comparing "C:\7047034\files\bin\proc.exe" and "c:\forms10g_1\bin\proc.exe"
 
Comparing "C:\7047034\files\precomp\mesg\pcpus.msb" and "c:\forms10g_1\precomp\m
esg\pcpus.msb"
 
Comparing "C:\7047034\files\jdbc\lib\classes12.jar" and "c:\forms10g_1\jdbc\lib\
classes12.jar"
 
Comparing "C:\7047034\files\jdbc\lib\classes12.zip" and "c:\forms10g_1\jdbc\lib\
classes12.zip"
 
Comparing "C:\7047034\files\jdbc\lib\classes12dms.jar" and "c:\forms10g_1\jdbc\l
ib\classes12dms.jar"
 
Comparing "C:\7047034\files\jdbc\lib\ojdbc14.jar" and "c:\forms10g_1\jdbc\lib\oj
dbc14.jar"
 
Comparing "C:\7047034\files\jdbc\lib\ojdbc14dms.jar" and "c:\forms10g_1\jdbc\lib
\ojdbc14dms.jar"
OPATCH_JAVA_ERROR: Patch was not successfully applied.
Verification of the patch failed.
 
ERROR: OPatch failed as verification of the patch failed.
OPatch returns with error code = 240
 
C:\7047034>
Re: ERROR: OPatch failed as verification of the patch failed. OPatch returns with error code = 240 [message #618108 is a reply to message #618107] Tue, 08 July 2014 02:38 Go to previous messageGo to next message
John Watson
Messages: 4609
Registered: January 2010
Location: Global Village
Senior Member
The log looks clear enough: patch applied, but inventory update failed. This sort of thing happens quite often on Windows, either because you have the permissions set incorrectly or because there is still some process running that has a file open.
Re: ERROR: OPatch failed as verification of the patch failed. OPatch returns with error code = 240 [message #618110 is a reply to message #618108] Tue, 08 July 2014 03:46 Go to previous messageGo to next message
rajesh4851
Messages: 85
Registered: January 2007
Member
Thanks for your quick reply John.
I've installed with administrator rights, in fact there is only one admin user to login. But i'm not sure why its showing access denied Sad
And, there are no files opened during my installation, did this exercise after re-start the machine. Still same error.
Re: ERROR: OPatch failed as verification of the patch failed. OPatch returns with error code = 240 [message #618111 is a reply to message #618110] Tue, 08 July 2014 04:03 Go to previous messageGo to next message
John Watson
Messages: 4609
Registered: January 2010
Location: Global Village
Senior Member
If I were you, I would want to prove this. Check if there are any open file handles, and confirm the ownership and permissions.
There is also the possibility that you need to update opatch to a later release, you are running an ancient one.
Re: ERROR: OPatch failed as verification of the patch failed. OPatch returns with error code = 240 [message #618182 is a reply to message #618111] Wed, 09 July 2014 02:17 Go to previous message
rajesh4851
Messages: 85
Registered: January 2007
Member
Hi John,
Can you tell me how to find out the login user has the privileges to the desired location? if the user don't have the rights then how to grand the same?
Previous Topic: Could not create Java Virtual machin
Next Topic: Data not copied,Memory overrun avoided while calculating monitors
Goto Forum:
  


Current Time: Tue Sep 30 01:16:23 CDT 2014

Total time taken to generate the page: 0.08561 seconds