DESCRIPTION
    Apply or Rollback a single or multiple patches in oracle home.

SYNTAX
<GI_HOME>/OPatch/opatchauto {apply | rollback}
                            [ <Patch Location> ]
			    [-phBaseDir <Patch directory location> ]
			    [-id <Patch id> ]
			    [-binary]
                            [-oh <oracle_home path> ]
                            [-target_type <target_type> ]
                            [-analyze]
                            [-invPtrLoc <Path to oraInst.loc> ]
                            [-cluster_hosts <comma separated list of target hosts | -hostConfig <path to file containing hostnames>]
			    [-filebusypatching]
			    [-force_conflict]
			    [-jre <jre_path> ]
			    [-customLogDir <path> ]
			 

OPTIONS
       -phBaseDir
              The location of base patch directory, that can contain multiple patches.
			  
       -id
             The id of the patches that need to be rolled back. Ids need to be specified as comma separated.
			 
       -oh
              This option specifies Oracle Home to be patched.
	   
       -hostConfig
              This option specifies file containing names of the target hosts on which the selected home shall be patched.

       -cluster_hosts
              This option specifies the comma separated list of target hosts on which the selected home shall be patched. 

       -target_type
              This specifies the type of the oracle home. These are predefined
              values for every target type.
              Some of the available target_type:
              RAC Home  - "rac_database"
              Grid Home - "cluster"
              SIDB      - "oracle_database"
              SIHA      - "has"

       -analyze
              This option runs all the required prerequisite checks to confirm
              the patchability of the system without actually patching or
              affecting the system in any way.

       -invPtrLoc
              Used to locate the oraInst.loc file when the installation used
              the -invPtrLoc. This should be the path to the oraInst.loc file.

       -filebusypatching
		     This option is used to skip the CheckActiveFilesAndExecutables
		     pre-req check while patching
		
       -force_conflict
             If a conflict exist which prevents the patch from being
             applied, the -force_conflict flag can be used to apply the
             patch. OPatch will remove all the conflicting patches before
             applying the current patch.
			 
	   -jre
	         The jre directory path, containing the java that will be used for patching.
	         
	   -customLogDir
	         This option is used to choose a location to create the log files. 
	         Alternatively, an environment variable 'CUSTOM_LOG_DIR' can also be set while
	         invoking the command.



PARAMETERS
      Patch Location
                    Path to the location for the patch. If the patch
                    location is not specified, then the current
                    directory is taken as the patch location.


Example:
      To analyze the applicability of a patch
      '<ORACLE_HOME>/OPatch/opatchauto apply <patch location> -binary -analyze'

      To analyze a patch for de-install
      '<ORACLE_HOME>/OPatch/opatchauto rollback <patch location> -binary -analyze'

      To patch a RAC database, choose the target type from the SystemPatch:
      '<ORACLE_HOME>/OPatch/opatchauto apply <patch location> -binary -analyze -target_type rac_database'
	  
      To apply multiple patches in an oracle home.
      '<ORACLE_HOME>/OPatch/opatchauto apply -phBaseDir <patch directory location> -binary'
	  
      To rollback multiple patches using id in an oracle home.
      '<ORACLE_HOME>/OPatch/opatchauto rollback -id <id1,id2,id3> -binary'
	  
      To apply patch on multiple hosts using opatchauto binary 
      '<ORACLE_HOME>/OPatch/opatchauto apply  <patch location> -binary -cluster_hosts adc01ecx,adc01egu'

