Subscribe YouTube Channel For More Live Tutorials

OPatchAuto consists of four primary commands:

  • apply
  • resume
  • rollback
  • version

And one global argument:

  • -help

apply

Apply a System Patch to a product home. User specified the patch location or the current directory will be taken as the patch location.

Important: OPatchAuto must be run from the product home as a root user.

Syntax

opatchauto apply [ <patch-location> ]
        [ -phBaseDir <patch.base.directory> ] 
        [ -oh <home> ] 
        [ -log <log> ] 
        [ -logLevel <log_priority> ] 
        [ -binary ] 
        [ -analyze ]                     
        [ -invPtrLoc <inventory.pointer.location> ]                     
        [ -host <host> ] 
        [ -wallet <wallet> ]                     
        [ -rolling ] 
        [ -database <database> ] 
        [ -generatesteps ] 
        [ -norestart ] 
        [ -ocmrf ocmrf> ] 
        [ -sdb ] 
        [ -remote ] 
        [ -nonrolling ]

rollback

This operation rolls back a patch.

Important: OPatchAuto must be run from the product home as a root user.

Syntax

opatchauto rollback [ <patch-location> ] 
        [ -phBaseDir <patch.base.directory> ]                     
        [ -oh <home> ] 
        [ -log <log> ] 
        [ -logLevel <log_priority> ] 
        [ -binary ] 
        [ -analyze ]                        
        [ -invPtrLoc <inventory.pointer.location> ]                        
        [ -host <host> ] 
        [ -wallet <wallet> ]                       
        [ -rolling ] 
        [ -database <database> ]               
        [ -generatesteps ] 
        [ -norestart ] 
        [ -sdb ]        
        [ -remote ] 
        [ -nonrolling ]

rollback

This operation rolls back a patch.

Important: OPatchAuto must be run from the product home as a root user.

Syntax

opatchauto rollback [ <patch-location> ] 
        [ -phBaseDir <patch.base.directory> ]                     
        [ -oh <home> ] 
        [ -log <log> ] 
        [ -logLevel <log_priority> ] 
        [ -binary ] 
        [ -analyze ]                        
        [ -invPtrLoc <inventory.pointer.location> ]                        
        [ -host <host> ] 
        [ -wallet <wallet> ]                       
        [ -rolling ] 
        [ -database <database> ]               
        [ -generatesteps ] 
        [ -norestart ] 
        [ -sdb ]        
        [ -remote ] 
        [ -nonrolling ]

help

You can view online help for any command by specifying the -help or -h option.

For example:

opatchauto -help
opatchauto -version
opatchauto apply -help
opatchauto resume -help
opatchauto rollback -help
 

version

Print the version of the OPatch utility, dependent OPlan version, and the osysmodel version.

Important: OPatchAuto must be run from the GI Home as a root user.

Syntax

<GI_HOME>OPatch/opatchauto version