{"id":1853,"date":"2015-08-14T11:39:01","date_gmt":"2015-08-14T14:39:01","guid":{"rendered":"http:\/\/www.dbarj.com.br\/?p=1853"},"modified":"2015-08-14T17:32:10","modified_gmt":"2015-08-14T20:32:10","slug":"opatch-auto-is-not-patching-database-home","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/","title":{"rendered":"OPatch auto is not patching Database Home"},"content":{"rendered":"<p>Sometimes I face a situation where the following command finishes successfully, however, RAC database ORACLE_HOME is not patched:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\"># opatch auto -ocmrf<\/pre>\n<p>There are 2 situations where this happens:<\/p>\n<p><strong>1. The GI home and RAC database home are under different Patch Sets (until 4th digit)<\/strong><\/p>\n<p>i.e. :<\/p>\n<ul>\n<li>GI is 11.2.0.4 and RAC is 11.2.0.3<\/li>\n<li>GI is 12.1.0.2 and RAC is 11.2.0.4<\/li>\n<\/ul>\n<p>The PSU will be applied only to homes which have same patch set number.<\/p>\n<p><strong>2. The RAC database home has no database registered in the OCR<\/strong><\/p>\n<p>This is the most common case and happens when you installed RAC but haven&#8217;t\u00a0created any database yet.<\/p>\n<p>You can check if you have any DB registered in you OCR running:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ $GRID_HOME\/bin\/crsctl stat res -p -w \"TYPE = ora.database.type\" | egrep '^NAME|^ORACLE_HOME'<\/pre>\n<p>To patch your DB home, you will need to either:<\/p>\n<ul>\n<li>Run &#8220;opatch auto&#8221; again specifying RAC ORACLE_HOME:\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\"># opatch auto &lt;UNZIPPED_PATCH_LOCATION&gt; -oh &lt;RAC_HOME&gt; -ocmrf &lt;ocm response file&gt;<\/pre>\n<\/li>\n<li>Create\/Add your database to OCR and rerun &#8220;opatch auto&#8221;:\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ srvctl add database \/ instance<\/pre>\n<\/li>\n<\/ul>\n<p>More information:<\/p>\n<p><a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=1479651.1\" target=\"_blank\">Doc Id 1479651.1 (Why &#8220;opatch auto&#8221; not patching RAC database ORACLE_HOME?)<\/a><\/p>\n<b>Have you enjoyed? Please leave a comment or give a \ud83d\udc4d!<\/b>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style2 like-1853 jlk' href='javascript:void(0)' data-task='like' data-post_id='1853' data-nonce='de4404f630' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.dbarj.com.br\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-1853 lc'>+4<\/span><\/a><\/div><\/div> <div class='status-1853 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Sometimes I face a situation where the following command finishes successfully, however, RAC database ORACLE_HOME is not patched: # opatch auto -ocmrf There are 2 situations where this happens: 1. The GI home and RAC database home are under different Patch Sets (until 4th digit) i.e. : GI is 11.2.0.4 and RAC is 11.2.0.3 GI &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-1853","post","type-post","status-publish","format-standard","hentry","category-database-en","item-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>OPatch auto is not patching Database Home - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/title>\n<meta name=\"description\" content=\"Why is &quot;opatch auto&quot; not patching Database Home.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DBA RJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/08\\\/opatch-auto-is-not-patching-database-home\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/08\\\/opatch-auto-is-not-patching-database-home\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"OPatch auto is not patching Database Home\",\"datePublished\":\"2015-08-14T14:39:01+00:00\",\"dateModified\":\"2015-08-14T20:32:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/08\\\/opatch-auto-is-not-patching-database-home\\\/\"},\"wordCount\":161,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"articleSection\":[\"Oracle Database General\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/08\\\/opatch-auto-is-not-patching-database-home\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/08\\\/opatch-auto-is-not-patching-database-home\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/08\\\/opatch-auto-is-not-patching-database-home\\\/\",\"name\":\"OPatch auto is not patching Database Home - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"datePublished\":\"2015-08-14T14:39:01+00:00\",\"dateModified\":\"2015-08-14T20:32:10+00:00\",\"description\":\"Why is \\\"opatch auto\\\" not patching Database Home.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/08\\\/opatch-auto-is-not-patching-database-home\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/08\\\/opatch-auto-is-not-patching-database-home\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/08\\\/opatch-auto-is-not-patching-database-home\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OPatch auto is not patching Database Home\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\",\"name\":\"DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"description\":\"Blog about Databases, Security and High Availability\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\",\"name\":\"DBA RJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"width\":712,\"height\":712,\"caption\":\"DBA RJ\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OPatch auto is not patching Database Home - DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Why is \"opatch auto\" not patching Database Home.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/","twitter_misc":{"Written by":"DBA RJ","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"OPatch auto is not patching Database Home","datePublished":"2015-08-14T14:39:01+00:00","dateModified":"2015-08-14T20:32:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/"},"wordCount":161,"commentCount":1,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"articleSection":["Oracle Database General"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/","url":"https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/","name":"OPatch auto is not patching Database Home - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"datePublished":"2015-08-14T14:39:01+00:00","dateModified":"2015-08-14T20:32:10+00:00","description":"Why is \"opatch auto\" not patching Database Home.","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2015\/08\/opatch-auto-is-not-patching-database-home\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"OPatch auto is not patching Database Home"}]},{"@type":"WebSite","@id":"https:\/\/www.dbarj.com.br\/en\/#website","url":"https:\/\/www.dbarj.com.br\/en\/","name":"DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Blog about Databases, Security and High Availability","publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbarj.com.br\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9","name":"DBA RJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","width":712,"height":712,"caption":"DBA RJ"},"logo":{"@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/1853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/comments?post=1853"}],"version-history":[{"count":0,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/1853\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=1853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=1853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=1853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}