OPatchAuto -binary is a tool that applies multiple patches on a selected Oracle home. It can patch only one Oracle home per session. The utility internally performs the prerequisite checks before applying the bits.
Operational Characteristics
OPatchAuto -binary assumes that the targets have been already shutdown.
OPatchAuto -binary does not perform any other operation apart from applying the binary bits to the Oracle home.
OPatchAuto -binary can apply multiple patches per session. The selected patches can be any of the following types/configurations:
One ore more one-off patches
One composite patch
One system patch / bundle patch
One system patch / bundle patch and 1 or more one-off patches
One system patch / bundle patch which has a composite patch in it
One system patch / bundle patch which has a composite patch in it and 1 or more one-off patches
One system patch / bundle patch and 1 or more one-off patches and 1 composite patch
Multiple composite patches
Note that while OPatchAuto can apply all of the aforementioned patch types, OPatch cannot apply system patches. (OPatch can apply one off and composite patches.) So system patch application is the distinctive value for opatchauto -binary.
When running in analyze mode, OPatchAuto -binary runs the prerequisite checks on the patches but does not apply the bits. To run OPatchAuto -binary in analyze mode, use the -analyze
command line option. See "Syntax and Commands" for more information.
A SystemPatch contains a list of patches inside it and, for each of the patches, a list of applicable target types is defined. By default, OPatchAuto -binary applies all the patches inside the SystemPatch to the selected Oracle home. You can specify a particular target type to have OPatchAuto -binary apply only the applicable patches to the selected home.
The command line syntax for the opatchauto -binary utility is as follows.
opatchauto [ apply | rollback ] <patch_location> -binary -oh <oracle_home path> [-target_type <target_type>] [-id <patchID1, patchID2,..> ] [-analyze] [-invPtrLoc <oraInst.loc> ] [-jre <JRE Location> ]
Option | Description |
---|---|
<patch_location> | Path to the location of the Patch. In case of a SystemPatch, this path should contain the bundle.xml file. |
oh | Path to the Oracle home to be patched. |
id | Patch IDs that can be specified for rollback sessions. The values will be ignored for apply session. |
target_type | Specifies the type of the Oracle Home. These are predefined values for every target type. |
analyze | Run only the prerequisite checks and also apply or roll back the patch in report mode (patch application/rollback is not actually carried out). The prerequisite checks are performed, thereby reporting the feasibility of the patch session. |
invPtrLoc | Used to locate the oraInst.loc file when the installation used the -invPtrLoc option. This should be the path to the oraInst.loc file. |
jre | Instructs OPatchAuto to use the JRE (Java) from the specified location instead of the default location under Oracle Home. |