{"id":1905,"date":"2015-11-25T00:33:05","date_gmt":"2015-11-25T02:33:05","guid":{"rendered":"http:\/\/www.dbarj.com.br\/en\/?p=1905"},"modified":"2015-11-25T10:59:44","modified_gmt":"2015-11-25T12:59:44","slug":"em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2015\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/","title":{"rendered":"EM Patch apply failing with: Prereq &#8220;checkActiveFilesAndExecutables&#8221; is not executed"},"content":{"rendered":"<p>Those days, when trying to apply Database Patches using the Oracle Enterprise Manager 12c, I was getting an error: <strong>Prereq &#8220;checkActiveFilesAndExecutables&#8221; is not executed<\/strong>.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Invoking prereq \"checkactivefilesandexecutables\"\r\n\r\nPrereq \"checkActiveFilesAndExecutables\" is not executed.\r\n\r\nThe details are:\r\nNo patch location specified.\r\n\r\nOPatch failed with error code 2\r\n \r\nERROR: Failed to invoke 'opatch prereq checkActiveFilesAndExecutables' \r\nERROR: Some processes are still running.<\/pre>\n<p>The last error said something about &#8220;processes are still running&#8221;. However, checking with &#8220;ps&#8221;, there wasn&#8217;t any oracle process executing. The DB was already down.<\/p>\n<p>Checking the log file generated inside the DB server ( <strong>$ORACLE_HOME\/cfgtoollogs\/opatch<\/strong> ), the things start becoming even more strange:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[Nov 24, 2015 4:01:30 PM]    PREREQ session\r\n[Nov 24, 2015 4:01:31 PM]    OPatch invoked as follows: 'prereq checkActiveFilesAndExecutables -phBaseFile \/tmp\/JOB_254C3E1748426EDAE053DE3FDD0A00B7\/ChkProcess_PatchList_ciocopbddrjs002 -invPtrLoc \/u01\/app\/oracle\/product\/12.1.2\/dbhome_1\/oraInst.loc '\r\n[Nov 24, 2015 4:01:31 PM]    Could not get central inventory using NGOUI; oracle.sysman.nextgen.utils.NextGenInventoryUtil\r\n[Nov 24, 2015 4:01:31 PM]    OUI-67077:\r\n                             Oracle Home       : \/u01\/app\/oracle\/product\/12.1.2\/dbhome_1\r\n                             Central Inventory : \/u01\/app\/oraInventory\r\n                                from           : \/u01\/app\/oracle\/product\/12.1.2\/dbhome_1\/oraInst.loc\r\n                             OPatch version    : 12.1.0.1.10\r\n                             OUI version       : 12.1.0.2.0\r\n                             OUI location      : \/u01\/app\/oracle\/product\/12.1.2\/dbhome_1\/oui\r\n                             Log file location : \/u01\/app\/oracle\/product\/12.1.2\/dbhome_1\/cfgtoollogs\/opatch\/opatch2015-11-24_16-01-30PM_1.log\r\n[Nov 24, 2015 4:01:31 PM]    Patch history file: \/u01\/app\/oracle\/product\/12.1.2\/dbhome_1\/cfgtoollogs\/opatch\/opatch_history.txt\r\n[Nov 24, 2015 4:01:31 PM]    Invoking prereq \"checkactivefilesandexecutables\"\r\n[Nov 24, 2015 4:01:31 PM]    Prereq \"checkActiveFilesAndExecutables\" is not executed.\r\n[Nov 24, 2015 4:01:31 PM]    The details are:\r\n                             No patch location specified.\r\n[Nov 24, 2015 4:01:31 PM]    Finishing PrereqSession at Tue Nov 24 16:01:31 BRST 2015<\/pre>\n<p>So actually the error was &#8220;<strong>No patch location specified<\/strong>&#8220;. Smell of bug is in the air.<\/p>\n<p>After researching in MOS, my conclusion became true: Bug 21469024 &#8211; Prereq checkActiveFilesAndExecutables fails with &#8220;No patch location specified&#8221;<\/p>\n<p>There was also a MOS Doc talking about that:\u00a0<a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=2077727.1\" target=\"_blank\">Patching a Database Using Cloud Control With In place Patching Fails At Step &#8220;Check If All Processes Are Shut Down&#8221; (Doc ID 2077727.1)<\/a><\/p>\n<p>The solution for this bug is basically to apply the\u00a0<span style=\"text-decoration: underline;\"><strong>EM-DB-BP 12.1.0.8.4<\/strong><\/span> bundle patch. You can find it for download in\u00a0<a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=2039331.1\" target=\"_blank\">Doc ID 2039331.1<\/a>.<\/p>\n<p>Actually, the bundles are cumulative monthly patches. Going forward, the most recent bundle will contain all patches from previous months., you can download the latest.\u00a0Apply both &#8220;OMS-Side System&#8221;\u00a0and &#8220;Agent-Side-Monitoring&#8221;.<\/p>\n<p>That&#8217;s it. YAOB.<\/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-1905 jlk' href='javascript:void(0)' data-task='like' data-post_id='1905' 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-1905 lc'>0<\/span><\/a><\/div><\/div> <div class='status-1905 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Those days, when trying to apply Database Patches using the Oracle Enterprise Manager 12c, I was getting an error: Prereq &#8220;checkActiveFilesAndExecutables&#8221; is not executed. Invoking prereq &#8220;checkactivefilesandexecutables&#8221; Prereq &#8220;checkActiveFilesAndExecutables&#8221; is not executed. The details are: No patch location specified. OPatch failed with error code 2 ERROR: Failed to invoke &#8216;opatch prereq checkActiveFilesAndExecutables&#8217; ERROR: Some processes &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2015\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/\">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":[16],"tags":[],"class_list":["post-1905","post","type-post","status-publish","format-standard","hentry","category-oem12c-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>EM Patch apply failing with: Prereq &quot;checkActiveFilesAndExecutables&quot; is not executed - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/title>\n<meta name=\"description\" content=\"Howto resolve the problem that\u00a0Prereq &quot;checkActiveFilesAndExecutables&quot; is not executed\u00a0when trying to apply a patch in Oracle Enterprise\u00a0Manager Cloud.\" \/>\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\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/\" \/>\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=\"2 minutes\" \/>\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\\\/11\\\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/11\\\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"EM Patch apply failing with: Prereq &#8220;checkActiveFilesAndExecutables&#8221; is not executed\",\"datePublished\":\"2015-11-25T02:33:05+00:00\",\"dateModified\":\"2015-11-25T12:59:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/11\\\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\\\/\"},\"wordCount\":206,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"articleSection\":[\"Enterprise Manager 12c\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/11\\\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/11\\\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/11\\\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\\\/\",\"name\":\"EM Patch apply failing with: Prereq \\\"checkActiveFilesAndExecutables\\\" is not executed - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"datePublished\":\"2015-11-25T02:33:05+00:00\",\"dateModified\":\"2015-11-25T12:59:44+00:00\",\"description\":\"Howto resolve the problem that\u00a0Prereq \\\"checkActiveFilesAndExecutables\\\" is not executed\u00a0when trying to apply a patch in Oracle Enterprise\u00a0Manager Cloud.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/11\\\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/11\\\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/11\\\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"EM Patch apply failing with: Prereq \\\"checkActiveFilesAndExecutables\\\" is not executed\"}]},{\"@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":"EM Patch apply failing with: Prereq \"checkActiveFilesAndExecutables\" is not executed - DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Howto resolve the problem that\u00a0Prereq \"checkActiveFilesAndExecutables\" is not executed\u00a0when trying to apply a patch in Oracle Enterprise\u00a0Manager Cloud.","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\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/","twitter_misc":{"Written by":"DBA RJ","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/en\/2015\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2015\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"EM Patch apply failing with: Prereq &#8220;checkActiveFilesAndExecutables&#8221; is not executed","datePublished":"2015-11-25T02:33:05+00:00","dateModified":"2015-11-25T12:59:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2015\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/"},"wordCount":206,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"articleSection":["Enterprise Manager 12c"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/en\/2015\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2015\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/","url":"https:\/\/www.dbarj.com.br\/en\/2015\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/","name":"EM Patch apply failing with: Prereq \"checkActiveFilesAndExecutables\" is not executed - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"datePublished":"2015-11-25T02:33:05+00:00","dateModified":"2015-11-25T12:59:44+00:00","description":"Howto resolve the problem that\u00a0Prereq \"checkActiveFilesAndExecutables\" is not executed\u00a0when trying to apply a patch in Oracle Enterprise\u00a0Manager Cloud.","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2015\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2015\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2015\/11\/em-patch-apply-failing-with-prereq-checkactivefilesandexecutables-is-not-executed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"EM Patch apply failing with: Prereq \"checkActiveFilesAndExecutables\" is not executed"}]},{"@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\/1905","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=1905"}],"version-history":[{"count":0,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/1905\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=1905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=1905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=1905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}