'opatchauto rollback' using OPatch 12.1.0.1.3 failed with ERROR: Unknown Option: Rollback (Doc ID 1929980.1)

Last updated on SEPTEMBER 28, 2014

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

Using OPatch utility 12.1.0.1.3 to rollback a patch from Oracle Restart home using command 'opatchauto rollback' failed with the below error.

 

Executing command:
/usr/bin/perl /app/oracle/Restart/Home/product/12.1.0.2/crs/install/roothas.pl -prepatch -rollback -norestart
2014-09-23_11-04-23 :

COMMAND EXECUTION FAILURE :
Usage:
      roothas.pl [-verbose] [-upgrade | -patch]
                 [-paramfile <parameter-file>] [-deconfig] [-force]
                 [-unlock [-hahome <path to Oracle Restart home> [-nocrsstop]]
                 [[-prepatch | -postpatch] [-norestart] [-dstcrshome <path to Oracle Restart home>]]
                 [-lockacfs] [-init]
.
.
ERROR:
Unknown option: rollback       <<<<<<<

2014-09-23_11-04-23 :
Failed to run this command :
/usr/bin/perl /app/oracle/Restart/Home/product/12.1.0.2/crs/install/roothas.pl -prepatch -rollback -norestart
oracle.opatch.gi.RunExecutionSteps.runGenericShellCommands(RunExecutionSteps.java:854)
oracle.opatch.gi.RunExecutionSteps.processAllSteps(RunExecutionSteps.java:193)
oracle.opatch.gi.GIPatching.processPatchingSteps(GIPatching.java:744)
oracle.opatch.gi.OPatchautoExecution.main(OPatchautoExecution.java:125)
Command "/usr/bin/perl /app/oracle/Restart/Home/product/12.1.0.2/crs/install/roothas.pl -prepatch -rollback -norestart" execution failed:
Unknown option: rollback

 This issue has not occured when using OPatch utility 12.1.0.1.2

 With using OPatch utility 12.1.0.1.3, 'opatchauto' internally executing the below command and failing.

/usr/bin/perl /app/oracle/Restart/Home/product/12.1.0.2/crs/install/roothas.pl -prepatch -rollback -norestart"

Here opatchauto adding/appending an extra parameter '-rollback' for roothas.pl causing the 'opatchauto rollback' command to fail.

Changes

 Rolling back a patch using OPatch utility 12.1.0.1.3

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms