top of page
Writer's pictureiltreptenphyda

Oracle Patch Using Opatch: A Step-by-Step Guide for Database Administrators



In previous releases of Oracle WebLogic Server, you could patch your Oracle WebLogic Server software using a utility called Smart Update. In Oracle Fusion Middleware 12c, Oracle WebLogic Server users can use OPatch to apply patches for both Oracle WebLogic Server and for Oracle Fusion Middleware.


If the Oracle home does not appear when you execute the opatch lsinventory -detail command, the Oracle home might be missing from the Central Inventory, or the Central Inventory itself could be missing or corrupted.




Oracle Patch Using Opatch




If the Oracle home is listed when you execute the opatch lsinventory -detail command, but the products and components within the Oracle home are not listed, the inventory within the Oracle home (local inventory) might be missing or corrupted.


From the above output,the opatch version is 12.2.0.1.6.You must use the OPatch utility version 12.2.0.1.12 or later to apply this patch. Oracle recommends that you use the latest released OPatch version for 12.2, which is available for download from My Oracle Support patch 6880880 by selecting the 12.2.0.1.0 release.


From this page, you can search for the desired patch based on a specific configuration. One particularly useful search feature is the Recommended Patch Advisor. The Recommended Patch Advisor lets you find recommended and mandatory patches for standalone products, product combinations, or products for a product stack. For example, using the Recommended Patch Advisor, you search for patches for the following product:


HCC (Hybrid Columnar Compression) is appeared only with Exadata but has recently become available to Oracle Databases using ZFS Storage Appliance and Pillar as the database storage. HCC is actually free with Oracle Database Enterprise Edition. No additional database options and no additional ZFS Storage Appliance options are required. HCC requires Oracle Database version 11.2.0.3. To enable HCC in Oracle Databases running on ZFS Storage Appliance, we need to install patch set update of 13343438.


3- The following step loads modified SQL files into the database. For a RAC environment, perform these steps on only one node. For each database instance running on the Oracle home being patched, connect to the database using SQL*Plus and run the catbundle.sql script as follows.


In this DocumentGoalSolution Details Announcement Overview Five easy steps to analyze a patch or group of patches using an OPatch inventory report Two easy steps to resolve conflicts How to monitor pending requests Known Issues Issue 1: PSUs ONLY - Additional patches added to the download table Issue 2: OPatch inventory log files not finding all patches installed or showing as Invalid file selected. Supported file types are text/plain Issue 3: PSUs ONLY - Conflict resolutions may not be found for large merged patches (patches containing more than one fix) Issue 4: 11.2.0.2 and 11.2.0.3 ONLY - Incorrect conflicts between Grid Infrastructure PSU and Database Oracle Home inventory listing reported Issue 5: WLS Conflict check does not detect conflict between 1 patch and an inventoryReferences My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.


Answer: The Opatch utility is used to install Oracle patches.Most Oracle DBAs are familiar with this utility.Every Oracle CPU (Critical Patch Update) is installed using this utility, as well as all other patches that Oracle produces to fix bugs and update their product. Opatch lsinventory detail is the command used to query opatch in order to find out what patches are installed.


So if a later step in the deployment procedure fails, the entire job will be marked as failed and the Oracle Enterprise Manager Grid Control repository Applied Patches view will not be updated, even though the database itself has already been patched (as you can verify by running opatch lsinventory at the operating system prompt ).


Oracle Home : /mytuxoraclehomeCentral Inventory : /oracle/oraInventory from: /etc/oraInst.locOPatch version : 11.2.0.1.2OUI version : 12.1.0.1.0 OUI location : /mytuxoraclehome/ouiWhen attempting to apply/install Tuxedo rolling patch RP078 using /mytuxoraclehome/Opatch/opatch the following error occurs as part of the stdout:


I'm trying to apply a patch using opatch but I'm getting this error: "OPatch was not able to find OUI jars to load them runtime. Please provide valid oui location using 'oui_loc' option. OPatch failed with error code 255".


  • Hi Al Mamum,\\n\\nYou cannot use Opatch for this.\\n\\nYou need to upgrade using DBUA (database upgrade assistant) from 10.2.0.2 to 10.2.0.4.\\n\\nRevert for any queries.\\n\\nsiddhartha\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":5461504,\"posted\":1233898396000,\"votes\":2,\"isAccepted\":true,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"score\":2,\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"accepted\":true,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[]},\"body\":\"An upgrade from 10.2.0.2 to 10.2.0.4 is not done by Opatch.Well, actually Opatch is a small part of the whole procedure. A lot of other things have to be done first.And you will have to read a lot of documentation first.Maybe start with SAP note 551542.hope this helps\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":5429052,\"posted\":1233328887000,\"votes\":0,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[],\"body\":\"upgrade to 10.2.0.4 using upgrade CD.then, use opatch to patch 10.2.0.4 to latest patch level.\",\"author\":\"username\":\"eric.brunelle3\",\"displayName\":\"Eric Brunelle\",\"groupIcons\":[],\"suspended\":false,\"isCurrentUser\":false,\"id\":5443940,\"posted\":1233670878000,\"votes\":0,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[]]"), answerForm: formAction: "/answers/5428823/post.json", textareaName: "body", textareaErrors: "", isAttachmentsEnabled: true, answerEditorialGuideline: title: "Before answering", content: "You should only submit an answer when you are proposing a solution to the poster\'s problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that your answer complies with our Rules of Engagement.", links: [ title: "Rules of Engagement", href: " -of-engagement.html", ] , answerMinBodyLength: '10', answerMaxBodyLength: '20000' , currentUser: sapInternalId: '', permissions: canVoteUpOrCancel: false, canVoteDownOrCancel: false, canModerate: false, , isVotedUp: false, isVotedDown: false , alerts: alertModeratorMinLength : "It should be given a proper explanation about why the content is inappropriate.", alertModeratorMinLengthValue : "10", alreadyReportedMessage : "You already have an active moderator alert for this content." , url: profileApiBaseUrl: ' -api.services.sap.com', followUnfollowQuestion: '/sap/nodeSubscription.json', isFollowingQuestion: '/sap/isFollowingNode.json', vote: voteUp: '/commands/0/voteup.json', voteDown: '/commands/0/votedown.json', cancelVote: '/commands/0/cancelvote.json' , rss: answers: '/feed/5428823/answers.rss', answersAndComments: '/feed/5428823/comments-and-answers.rss' , authorizeUploadContext: type: 'answer' , atMention: userSearchServiceUrl: ' ', currentUserName: '', useNewUSSCORS: true, atMentionDelayMs: 100, showMentionInRedactor: true , attachmentSettings: commentMaxAttachments: '2', answerMaxAttachments: '10', commentMaxAttachmentSizeBytes: '1048576', answerMaxAttachmentSizeBytes: '1048576', commentAttachmentsSizeBytesTotal: '2097152', answerAttachmentsSizeBytesTotal: '10485760' , editor: editorClipboardUploadEnabled: true }) })(); Home

  • Community

  • Ask a Question

  • Write a Blog Post

Login / Sign-up Search Questions and Answers 0 Former Member Jan 30, 2009 at 02:39 PM oracle patch with Opatch 130 Views Follow RSS Feed Hi


After fresh installation of your Oracle Database Software, you may need to install some oracle patches. This article describes how to use OPatch to install Oracle database patches on Windows platforms in an SAP environment. (on UNIX/Linux the steps is almost the same, just change the path).


Oracle 12c includes a queryable patch inventory feature. The feature allows users to retrieve Oracle software inventory information from within the database by using the DBMS_QOPATCH package. For more information, see the Oracle documentation for DBMS_QOPATCH.


For a long long time many customers asked for a solution. Just briefly browsing the bug database reveals a decent number of bugs and enhancement request filed against or for opatch to do a proper cleanup.


Hi Mike,nice stuff. What about consolidation of old patches on a host with mulitple oracle homes (identical versions) into just one archive location? Does unarchive remove the patch from the archive location and so make it unavailable for the other homes? 2ff7e9595c


1 view0 comments

Recent Posts

See All

Comentarios


!
Widget Didn’t Load
Check your internet and refresh this page.
If that doesn’t work, contact us.
bottom of page