| 
		
			| OPatch failed with error code = 255 [message #673248] | Tue, 13 November 2018 06:44  |  
			| 
				
				|  | 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 #673258 is a reply to message #673248] | Tue, 13 November 2018 13:58   |  
			| 
				
				|  | 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 |  
	|  |  | 
	|  | 
	|  | 
	|  | 
	|  | 
	|  | 
	|  |