Oracle client patch - Free Download
OPatch is an Oracle-supplied utility that assists you with the process of applying interim patches to Oracle's software and rolling back interim patches from Oracle's software. This chapter provides information on using OPatch for these purposes.
This chapter includes the following topics:. It is platform-independent and runs on all supported operating systems. Another version of OPatch, called standalone OPatch , is also available. It runs on Oracle homes without Oracle Universal Installer. Patches are a small collection of files copied over to an existing installation.
They are associated with particular versions of Oracle products. When applied to the correct version of an installed product, patches result in an upgraded version of the product.
Interim patches are bug fixes available to customers in response to specific bugs. They require a particular base release or patchset to be installed before you can apply them.
They generally address specific bugs for a particular customer. These patches are not versioned and are generally available in a future patchset as well as the next product release. Scalability — OPatch is scalable to support a large number of patches. Reliability — OPatch is reliable and protects the Oracle home and inventory.
It can bring back the Oracle home to a stable state from patch application failures. It can also easily detect patch conflicts. Availability — Opatch's online patching improves system availability by allowing database patches to be applied without needing to shut down databases. Portability — OPatch is compatible with all operating systems for which Oracle releases software. Robust — OPatch is very robust. It is very easy to apply a patch as well as remove it.
Easy to maintain — OPatch is easy to maintain and is also extensible. Support for Silent Operation — OPatch supports silent operation. This mode allows you to run the software without any user interaction. It is easy to extend it to Enterprise Manager Grid Control. Easy to debug — OPatch has various levels of logging and tracing mechanisms. It also has a debug option that helps to easily diagnose software problems.
Detecting a conflict when applying an interim patch after previous interim patches have been applied. It also suggests the best options to resolve a conflict. Oracle releases interim patches frequently to fix a bug or a set of bugs. The library path must be set correctly for Oracle Real Application Clusters environments. Ensure that the library path is set correctly as follows:. OPatch verifies if the Oracle home is present. Check the respective vendor documentation for details to set the environment variable.
When OPatch processes the script for the installation of a patch, it simultaneously generates a Rollback script and saves a copy of every file edited or deleted during the patching. OPatch also backs up the inventory information. Consequently, Oracle recommends that you have sufficient system space to accommodate the patch and the backup information. OPatch detects if a particular patch is applicable for an operating system. If it is not applicable, OPatch displays an error message. OPatch supports a set of properties used for various software operations.
You can use these properties to control the internal operations of OPatch. By default, OPatch uses the standard Java property format to specify the properties. The following list shows the default properties and their values:.
For Real Application Clusters, ensure that you perform the following prerequisite checks besides the other checks listed in the preceding section. On UNIX, this means rsh or ssh or both should be set up on the cluster machines. Ensure that you are able to invoke the opatch lsinventory -detail command and are able to see the node information being printed out. If you do not find the node information correctly printed out, you need to update the node list.
For more information on updating the node list, see "Updating the Nodes of a Cluster". If a backup does not exist, you may have to reinstall the software. The following string shows the syntax for the OPatch utility:. Installs an interim patch. Applies Oracle Clusterware patches. Lists what is currently installed on the system. Queries a given patch for specific details. Removes an interim patch. Removes n number of patches hence nrollback.
Prints the current version of the patch tool. This command applies an interim patch to an Oracle home from the current directory. Specifies the list of database instances on which the patch needs to be applied. Specify the value for this option using the following syntax:. The SID is required, but you can disregard the other parameters if desired, because OPatch provides default values for them.
If the system is not part of a RAC setup and you want to patch just the local node, provide the node name as an empty string. Specifies how many seconds to wait before attempting to lock the inventory again for a previous failure.
You can use this option only if you specify the retry option. Removes conflicting patches from the system. If a conflict exists that prevents the patch from being applied, you can use this option to apply the patch. OPatch removes all the conflicting patches before applying the current patch. Passes parameters to the init script, which executes before prerequisite checks are run. The values for this option must be enclosed in double-quotes.
Specifies the location of the oraInst. The invPtrLoc option is needed when this option is used during installation. Oracle recommends the use of the default Central Inventory for a platform. Specifies that OPatch should patch the local node and update the inventory of the local node.
It does not propagate the patch or inventory update to other nodes. You can use this option on Oracle Real Application Clusters environments and non-clustered environments. If an entire cluster is shut down before patching, you can use this option for non-rolling patches. Tells OPatch the local node for this cluster. You can use this option on Oracle Real Application Clusters environments.
This option only applies to Oracle Real Application Clusters environments. You cannot use it with the -local option with a rolling patch. Specifies to error out if the current patch's bugs-to-fix is a superset or same set of an installed patch's bugs-fixed in the Oracle home directory.
Bypasses the inventory for reading and updates. You cannot use this option with the local option. This option places the installation into an unsupported state. This option does not perform any make operations. You can use it during multiple patch applications and to perform the linking step only once. OPatch does not keep track of the make operations it did not perform.
You need to make sure to execute OPatch without this option at the end for compilation. Specifies that OPatch does not need to update the files in the system. It only updates the inventory.
It also does not execute the pre and post scripts. Specifies the Oracle home directory to use instead of the default. Marks the end of the init options. You use this option with the init option. If you do not use this option, everything after init until the end of the command is passed into init.
Marks the end of the post option. You use this option with the post option. If you do not use this option, everything after post until the end of the command is passed into post. Marks the end of the pre options.
Join the world’s largest interactive community dedicated to Oracle technologies.
Resolving OPatch Application Errors This section provides solutions to the following errors that may occur during patch application: Specifies the parameters to be passed to the post script. The Patch Search screen appears. An example of the history. The following list shows the default properties and their values:. This property file takes precedence over the one that OPatch supplies. Removes conflicting patches from the system. The best practice varies depending on which version of Controller you are using: You can use this option on Oracle Real Application Clusters environments.
All patches may not be compatible with one another. Oracle releases security advisories for Oracle Linux as patches become available. Update the nodes of the cluster. Please enter a title. Easy to maintain — OPatch is easy to maintain and is also extensible. A file conflict occurs if a set of files to be patched by the current interim patch includes files already patched by one or more previously installed interim patches, and it is not a bug superset. You need to enclose the values for this option in double-quotes. OPatch updates its standalone inventory. Indicates the patch to be rolled back. Migrating from standalone to OUI-based patching and vice versa.