1.3.2 Common OPatch Commands When Patching an Oracle Fusion Middleware Oracle Home

OPatch provides several commands that you can use to apply a patch, roll back a patch, and verify the application of patch in an Oracle home. You can use OPatch to apply and roll back a single patch or apply and roll back multiple patches.

Table 1-3 Common OPatch Commands Used When Patching an Oracle Fusion Middleware Environment

Command Description Example

opatch apply

This command applies an interim patch to an Oracle home from the current directory. The ORACLE_HOME environment variable must be set to the Oracle home to be patched.

Verifying the Prerequisites for a Patch

Applying a Single Patch Using the Apply Command

opatch napply

This command applies multiple patches.

Applying Multiple Patches Using the OPatch napply Command

opatch lsinventory

This command lists the inventory for a particular Oracle home, or displays all installations that can be found. This command does not have any required options.

Using the OPatch lsinventory Command to Verify the Patches Applied to an Oracle Home

opatch rollback

This command removes an existing one-off patch from the appropriate Oracle home directory indicated by the reference ID.

Rolling Back a Patch You Have Applied

opatch nrollback

This command rolls back multiple interim patches at the same time.

Rolling Back Multiple Patches You Have Applied