Home » RDBMS Server » Server Administration » OPatch failed with error code = 255 (Oracle Database 12c)
OPatch failed with error code = 255 [message #673248] Tue, 13 November 2018 06:44 Go to next message
rajeshsvnr
Messages: 9
Registered: June 2017
Junior Member
Hi All,

I have an issue with the installation of patches after installing Oracle Database 12c.

Firstly, i installed Oracle Database 12c (12.2.0.1).Later i installed OPATCH_VERSION:12.2.0.1.14.
When am installing the patches am getting the error "OPatch failed with error code = 255".

Details :-
oracle_base path -- C:\oracle12c
oracle home path -- C:\oracle12c\product\12.2.0\dbhome_1

The below commands are for applying patch:-
set oracle_home=c:\oracle12c\product\12.2.0\dbhome_1
set Path= c:\oracle12c\product\12.2.0\dbhome_1\OPatch;%PATH%


Can anyone suggest me to resolve the issue.



Regards,
Rajesh

Re: OPatch failed with error code = 255 [message #673252 is a reply to message #673248] Tue, 13 November 2018 08:04 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

Copy and paste the command and its execution.

Before, Please How to use [code] tags and make your code easier to read.

Re: OPatch failed with error code = 255 [message #673253 is a reply to message #673248] Tue, 13 November 2018 08:05 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
rajeshsvnr wrote on Tue, 13 November 2018 04:44
Hi All,

I have an issue with the installation of patches after installing Oracle Database 12c.

Firstly, i installed Oracle Database 12c (12.2.0.1).Later i installed OPATCH_VERSION:12.2.0.1.14.
When am installing the patches am getting the error "OPatch failed with error code = 255".

Details :-
oracle_base path -- C:\oracle12c
oracle home path -- C:\oracle12c\product\12.2.0\dbhome_1

The below commands are for applying patch:-
set oracle_home=c:\oracle12c\product\12.2.0\dbhome_1
set Path= c:\oracle12c\product\12.2.0\dbhome_1\OPatch;%PATH%


Can anyone suggest me to resolve the issue.



Regards,
Rajesh

Did you actually READ & FOLLOW the content of the README file?
Re: OPatch failed with error code = 255 [message #673258 is a reply to message #673248] Tue, 13 November 2018 13:58 Go to previous messageGo to next message
JPBoileau
Messages: 88
Registered: September 2017
Member
If you actually coded it as you posted it, it will not work:

set Path= c:\oracle12c\product\12.2.0\dbhome_1\OPatch;%PATH%

You put spaces between "PATH" and "=" and the actual path. Do no put spaces.

C:\>path
PATH=(null)

C:\>echo %ORACLE_HOME%
D:\oracle\product\12.2.0.1\dbhome

-- Spaces here

C:\>set path = %ORACLE_HOME%\opatch

C:\>path
PATH=(null)

-- No spaces here

C:\>set PATH=%ORACLE_HOME%\opatch

C:\>path
PATH=D:\oracle\product\12.2.0.1\dbhome\opatch;%PATH%


JP

[Updated on: Tue, 13 November 2018 13:59]

Report message to a moderator

Re: OPatch failed with error code = 255 [message #673261 is a reply to message #673258] Tue, 13 November 2018 22:39 Go to previous messageGo to next message
rajeshsvnr
Messages: 9
Registered: June 2017
Junior Member
Hi JP,

I executed the below commands, but still am getting error.

set oracle_home=c:\oracle12c\product\12.2.0\dbhome_1
set PATH=c:\oracle12c\product\12.2.0\dbhome_1\OPatch;%PATH%


Re: OPatch failed with error code = 255 [message #673273 is a reply to message #673261] Wed, 14 November 2018 02:53 Go to previous messageGo to next message
gazzag
Messages: 1119
Registered: November 2010
Location: Bedwas, UK
Senior Member
As you have been asked, please copy and paste your entire command prompt session so we can see what you're doing.
Re: OPatch failed with error code = 255 [message #673275 is a reply to message #673273] Wed, 14 November 2018 03:22 Go to previous messageGo to next message
rajeshsvnr
Messages: 9
Registered: June 2017
Junior Member
The below is the command prompt session :-

C:\oracle12c\product\12.2.0\dbhome_1\OPatch>set oracle_home=c:\oracle12c\product\12.2.0\dbhome_1

C:\oracle12c\product\12.2.0\dbhome_1\OPatch>set PATH=c:\oracle12c\product\12.2.0\dbhome_1\OPatch;%PATH%

C:\oracle12c\product\12.2.0\dbhome_1\OPatch>opatch apply
Oracle Interim Patch Installer version 12.2.0.1.14
Copyright (c) 2018, Oracle Corporation. All rights reserved.


ZOP-51: The patch location is not valid for apply, because it doesn't have correct metadata, or it points to a patch directory.
Argument(s) Error... Patch location is not valid for apply

Please check the arguments and try again.

OPatch failed with error code = 135
Re: OPatch failed with error code = 255 [message #673276 is a reply to message #673275] Wed, 14 November 2018 03:31 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

You must be in the directory of the patch NOT in the OPatch directory.
Please read the readme file of the patch you're trying to apply.

Re: OPatch failed with error code = 255 [message #673277 is a reply to message #673248] Wed, 14 November 2018 03:36 Go to previous messageGo to next message
gazzag
Messages: 1119
Registered: November 2010
Location: Bedwas, UK
Senior Member
rajeshsvnr wrote on Tue, 13 November 2018 12:44
"OPatch failed with error code = 255".
rajeshsvnr wrote on Wed, 14 November 2018 09:22

OPatch failed with error code = 135
Re: OPatch failed with error code = 255 [message #673285 is a reply to message #673275] Wed, 14 November 2018 04:52 Go to previous message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
The rule is:

Run opatch apply in the directory where the patch is, then run datapatch in the OPatch directory.
Previous Topic: Volume increased in DB
Next Topic: Interview question
Goto Forum:
  


Current Time: Thu Nov 28 08:54:39 CST 2024