{"id":1218,"date":"2020-11-09T15:02:43","date_gmt":"2020-11-09T17:02:43","guid":{"rendered":"http:\/\/www.soudba.com.br\/?p=1218"},"modified":"2020-11-09T15:02:43","modified_gmt":"2020-11-09T17:02:43","slug":"error-to-apply-patch","status":"publish","type":"post","link":"https:\/\/www.soudba.com.br\/?p=1218","title":{"rendered":"Error to apply patch &#8211; OPATCHAUTO-72043"},"content":{"rendered":"<h1><strong>To solve the problem, change the permission\/owner to your owner like oracle or grid.<\/strong><\/h1>\n<p>See below the steps:<\/p>\n<p>[root@machine01 30920127]# cat \/etc\/oratab<br \/>\n#<br \/>\n+ASM2:\/u01\/app\/19.0.0\/grid:N<br \/>\nteste:\/u01\/app\/oracle\/product\/12.2.0\/dbhome_1:N<br \/>\n[root@machine01 ~]# . oraenv<br \/>\nORACLE_SID = [root] ? teste<br \/>\nThe Oracle base has been set to \/u01\/app\/oracle<br \/>\n[root@machine01 ~]# \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1\/OPatch\/opatchauto apply \/stage\/midia\/30920127 -oh $ORACLE_HOME<\/p>\n<p>OPatchauto session is initiated at Mon Nov 7 13:50:27 2020<\/p>\n<p>System initialization log file is \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1\/cfgtoollogs\/opatchautodb\/systemconfig2020-11-07_02-50-29PM.log.<\/p>\n<p>Session log file is \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1\/cfgtoollogs\/opatchauto\/opatchauto2020-11-07_02-50-37PM.log<br \/>\nThe id for this session is 3CTC<br \/>\nOPATCHAUTO-72043: Patch collection failed.<br \/>\nOPATCHAUTO-72043: Failed to create bundle patch object.<br \/>\nOPATCHAUTO-72043: Please verify the patch supplied.<br \/>\nOPatchAuto failed.<\/p>\n<p>OPatchauto session completed at Mon Nov 7 13:50:38 2020<br \/>\nTime taken to complete the session 0 minute, 11 seconds<\/p>\n<p>opatchauto failed with error code 42<br \/>\n[root@machine01 ~]# pwd<br \/>\n\/root<br \/>\n[root@machine01 ~]# cd \/stage\/midia\/30920127\/<br \/>\n[root@machine01 30920127]# ls<br \/>\n26839277 30869447 30882603 30886680 30888810 automation bundle.xml README.html README.txt<br \/>\n[root@machine01 30920127]# chown oracle:oinstall * -Rf<br \/>\n[root@machine01 30920127]# \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1\/OPatch\/opatchauto apply \/stage\/midia\/30920127 -oh $ORACLE_HOME<\/p>\n<p>OPatchauto session is initiated at Mon Nov 7 13:50:59 2020<\/p>\n<p>System initialization log file is \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1\/cfgtoollogs\/opatchautodb\/systemconfig2020-11-07_02-51-01PM.log.<\/p>\n<p>Session log file is \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1\/cfgtoollogs\/opatchauto\/opatchauto2020-11-07_02-51-09PM.log<br \/>\nThe id for this session is RB4L<br \/>\nOPATCHAUTO-72043: Patch collection failed.<br \/>\nOPATCHAUTO-72043: Failed to create bundle patch object.<br \/>\nOPATCHAUTO-72043: Please verify the patch supplied.<br \/>\nOPatchAuto failed.<\/p>\n<p>OPatchauto session completed at Mon Nov 7 13:51:10 2020<br \/>\nTime taken to complete the session 0 minute, 11 seconds<\/p>\n<p>opatchauto failed with error code 42<br \/>\n<strong>[root@machine01 30920127]# chown oracle:oinstall ..\/* -Rf<\/strong><\/p>\n<p><strong>or<\/strong><br \/>\n<strong>chown oracle:oinstall \/stage\/midia\/30920127 -Rf<\/strong><\/p>\n<p>##############################################################################<br \/>\nProblem solved !!!!<br \/>\n##############################################################################<\/p>\n<p>[root@machine01 30920127]# \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1\/OPatch\/opatchauto apply \/stage\/midia\/30920127 -oh $ORACLE_HOME<\/p>\n<p>OPatchauto session is initiated at Mon Nov 7 13:51:24 2020<\/p>\n<p>System initialization log file is \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1\/cfgtoollogs\/opatchautodb\/systemconfig2020-11-07_02-51-26PM.log.<\/p>\n<p>Session log file is \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1\/cfgtoollogs\/opatchauto\/opatchauto2020-11-07_02-51-33PM.log<br \/>\nThe id for this session is WH1A<\/p>\n<p>Executing OPatch prereq operations to verify patch applicability on home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<br \/>\nPatch applicability verified successfully on home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<\/p>\n<p>Verifying SQL patch applicability on home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<br \/>\nNo step execution required&#8230;&#8230;&#8230;<\/p>\n<p>Preparing to bring down database service on home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<br \/>\nNo step execution required&#8230;&#8230;&#8230;<\/p>\n<p>Performing prepatch operation on home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<br \/>\nPerpatch operation completed successfully on home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<\/p>\n<p>Start applying binary patch on home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<br \/>\nBinary patch applied successfully on home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<\/p>\n<p>Performing postpatch operation on home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<br \/>\nPostpatch operation completed successfully on home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<\/p>\n<p>Preparing home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1 after database service restarted<br \/>\nNo step execution required&#8230;&#8230;&#8230;<\/p>\n<p>Trying to apply SQL patch on home \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<br \/>\nNo step execution required&#8230;&#8230;&#8230;<\/p>\n<p>OPatchAuto successful.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Summary&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>Patching is completed successfully. Please find the summary as follows:<\/p>\n<p>Host:machine01<br \/>\nRAC Home:\/u01\/app\/oracle\/product\/12.2.0\/dbhome_1<br \/>\nVersion:12.2.0.1.0<br \/>\nSummary:<\/p>\n<p>==Following patches were SKIPPED:<\/p>\n<p>Patch: \/stage\/midia\/30920127\/30869447<br \/>\nReason: This patch is not applicable to this specified target type &#8211; &#8220;rac_database&#8221;<\/p>\n<p>Patch: \/stage\/midia\/30920127\/26839277<br \/>\nReason: This patch is not applicable to this specified target type &#8211; &#8220;rac_database&#8221;<\/p>\n<p>Patch: \/stage\/midia\/30920127\/30888810<br \/>\nReason: This patch is not applicable to this specified target type &#8211; &#8220;rac_database&#8221;<\/p>\n<p>==Following patches were SUCCESSFULLY applied:<\/p>\n<p>Patch: \/stage\/midia\/30920127\/30882603<br \/>\nLog: \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1\/cfgtoollogs\/opatchauto\/core\/opatch\/opatch2020-11-07_14-51-45PM_1.log<\/p>\n<p>Patch: \/stage\/midia\/30920127\/30886680<br \/>\nLog: \/u01\/app\/oracle\/product\/12.2.0\/dbhome_1\/cfgtoollogs\/opatchauto\/core\/opatch\/opatch2020-11-07_14-51-45PM_1.log<\/p>\n<p>OPatchauto session completed at Mon Nov 7 13:54:01 2020<br \/>\nTime taken to complete the session 2 minutes, 37 seconds<\/p>\n<p>[root@machine01 30920127]#<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To solve the problem, change the permission\/owner to your owner like oracle or grid. See below the steps: [root@machine01 30920127]# cat \/etc\/oratab # +ASM2:\/u01\/app\/19.0.0\/grid:N teste:\/u01\/app\/oracle\/product\/12.2.0\/dbhome_1:N [root@machine01 ~]# . oraenv ORACLE_SID = [root] ? teste The Oracle base has been set &hellip; <a href=\"https:\/\/www.soudba.com.br\/?p=1218\">Continue lendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[381,382],"class_list":["post-1218","post","type-post","status-publish","format-standard","hentry","category-sem-categoria","tag-opatch","tag-opatchauto-72043"],"_links":{"self":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1218"}],"version-history":[{"count":0,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1218\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}