OPatch Frequently Asked Questions Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. General Questions: Q1. What are some of the new options in OPatch? '-property_file' is a new option available for 'opatch apply' and 'opatch rollback' operations. This option can be used to provide the user defined property file, giving details like the path to system commands like 'fuser', 'ar', etc... Q2. What does: " Exception in thread "main" java.lang.UnsatisfiedLinkError: no oraInstaller in java.library.path" mean? This is a unix specific issue. The most frequent reason for this is the liboraInstaller shared object file cannot be located at run time. The extension is ".so" for most systems, ".sl" for most other systems. It means LD_LIBRARY_PATH (or SHLIB_PATH, LIBPATH, DYLD_LIBRARY_PATH or it's equivalent) doesn't include a path to liboraInstaller file. The file is located under the "oui" hierarchy (normally under oui/bin/, like oui/bin/solaris). The "oui" directory should be in the same directory as the oraInventory directory that is pointed to by the oraInst.loc file. Q3. Where does OPatch officially reside? Currently, OPatch resides in $ORACLE_HOME/OPatch. Some people prefer to keep a central copy. Some download it each time given it's small size. Q4. When applying a patch I got the following error: "sh: ar: not found" This means that the patch involves archiving a file, and OPatch can not find the executable "ar" in your PATH. Reset your PATH and try OPatch again. Q5. Where can I find information about patch 123456 that I applied last year? If the patch is not rolled back, then look at the files in $ORACLE_HOME/inventory/oneoffs/. It has info. about the patch such as bugs fixed and bugs descr. You can also use 'opatch lsinventory -detail' to see which files had been modified by the patch. A copy of original patch will be kept in $ORACLE_HOME/.patch_storage//original_patch Whether the patch is rolled back or not, you can get the information from here also. Q6. What is a rolling RAC patch and how do I enable it? Rolling RAC patching allows the interoperation of a patched node and an unpatched node simultaneously. This means only one node is out of commission while it is patched. This cannot be enabled from the command line. Oracle supplies a patch that is recognized as being suitable for rolling RAC. To test if a patch is a rolling patch, you can use 'opatch query -all' Q7. When I apply a patch I get an error that reads "Failed to load the patch object. Possible causes are: The specified path is not an interim patchshiphome. Meta-data files are missing from the patch area ". What do I do? This simply means the directory OPatch is using to find the patch doesn't match the template it is checking for. For more information on this error, refer to section "Not a valid patch area" in OPatch User Guide. Q8. When I apply a patch I get an error that reads "Syntax error.....Patch location not valid". What do I do? This simply means the directory OPatch is using to find the patch doesn't match the template for what it's checking for. Normally your running OPatch on directory out from where you think you are. When starting OPatch the directory needs to have: a. a directory .../etc that has the files that drive OPatch, b. a directory .../files that has patches for the files, and c. the directory should have the same name as patch id. If you didn't start OPatch from the directory then you can tell OPatch where to look for this directory by giving the directory as the last argument to "apply", i.e. $ apply /tmp/ Q9. When I apply a patch, I get an error that reads "OPatch cannot find the required command ar from Property file and your PATH". What do I do? ar is a command used by OPatch. This message may appear if OPatch is not able to locate this command. For more details and workaround for this problem, refer to OPatch User Guide. Q10. When I apply a patch, I get an error that reads "OPatch cannot find the required command fuser from Property file and your PATH". What do I do? fuser is a command used by OPatch. This message may appear if OPatch is not able to locate this command. For more details and workaround for this problem, refer to OPatch User Guide. Q11. Can I run patching in scripted mode? Yes, it is possible by using the command opatch