{"id":1904,"date":"2016-12-28T18:00:28","date_gmt":"2016-12-29T00:00:28","guid":{"rendered":"https:\/\/bijoos.com\/oraclenotes\/?p=1904"},"modified":"2026-02-07T15:27:12","modified_gmt":"2026-02-07T21:27:12","slug":"12-days-of-cloud-apply-patch-to-dbaas-instance","status":"publish","type":"post","link":"https:\/\/bijoos.com\/oraclenotes\/2016\/1904\/","title":{"rendered":"12 Days of #Cloud: Apply Patch to #DBaaS Instance"},"content":{"rendered":"<h2>12 Days of #Cloud: Day 9<\/h2>\n<p>I have a 12.1. Database Cloud Instance, which comes with several patches including July 2016 PSU.<\/p>\n<p id=\"nuPhbqB\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1949 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_585e08793c38d.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>The dbaascli\u00a0cloud tool can be used to query and apply patches. Before we use dbaascli, let&#8217;s check what the Cloud interface shows.<\/p>\n<p id=\"eKWQjls\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"size-full wp-image-1950 alignleft\" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_585e08feafe76.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>Choose the DBaaS instance and view details. The &#8220;Administration&#8221; tile shows one patch available. Shows the October 2016 PSU is available to apply. I guess PSU is the only patch Oracle strongly recommends everyone to apply.<\/p>\n<p id=\"jbffjlt\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1951 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_585e09f131c58.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>The patch menu has two options &#8211; &#8220;Precheck&#8221; and &#8220;Patch&#8221;.<\/p>\n<p>The precheck failed, not sure why.<\/p>\n<p id=\"XejnmBH\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1952 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_585e0b92ab05a.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>Per <a href=\"https:\/\/docs.oracle.com\/en\/cloud\/paas\/database-dbaas-cloud\/csdbi\/dbaascli-dbpatchm-prereq.html\" target=\"_blank\">documentation<\/a>, updated the psunum= value with\u00a012.1.0.2.161018 and executed the prereq check using dbaascli (command line on Linux VM),\u00a0in the hope to get more information.<\/p>\n<p id=\"rKULFqD\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1953 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_585e1026c6731.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>My troubleshooting did not go far, <a href=\"https:\/\/community.oracle.com\/thread\/4002818\" target=\"_blank\">contacted cloud forum<\/a>\u00a0for help.<\/p>\n<p>Based on the forum recommendation, updated the DBaaS tools to latest version to fix the issue.<\/p>\n<p>To find out the current version and if there are any newer versions available, run &#8220;<a href=\"http:\/\/docs.oracle.com\/en\/cloud\/paas\/database-dbaas-cloud\/csdbi\/update-cloud-tooling-using-dbpatchm.html\" target=\"_blank\">dbaascli <\/a>dbpatchm &#8211;run -list_tools&#8221; command as root user.<\/p>\n<p id=\"OlcoKuj\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1960 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_58641e6e31c9e.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>The output does not show much information, but the log file does.<\/p>\n<p id=\"CjtQYtz\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1961 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_58641f34c1e63.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>The version that came with DBaaS needs update.<\/p>\n<p>[root@CLDB121 opc]# rpm -qa|grep -i dbaastools<\/p>\n<p>dbaastools-1.0-1+16.4.5.0.0_161107.1102.x86_64<\/p>\n<p>The latest version is\u00a016.4.5.1_161213.1526.<\/p>\n<p>Updating the tools was easy (BTW, I strongly suggest and expect Oracle to keep the cloud tools updated on my VM as I am subscribing to DBaaS service. It is not really my responsibility to manually update the cloud tools).<\/p>\n<p id=\"hSUAETf\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1962 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_5864207ca23eb.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>Once the dbaascli tool was updated to latest version, the precheck completed successfully.<\/p>\n<p id=\"AuOtHgg\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1963 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_586420a434f44.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>Tried the same from front-end GUI also.<\/p>\n<p id=\"WKQLDdm\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1964 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_586420c2039b0.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>Applying the patch is a click of a menu item.<\/p>\n<p id=\"JUfFKlj\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1965 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_586420ec76100.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>When the patch process begins, the database service is placed in maintenance status.<\/p>\n<p id=\"YyrMntn\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1966 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_586421338e28e.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>The log files are written to \/var\/opt\/oracle\/log\/dbpatchm directory. You can monitor the patch progress through the log file (there is no progress indication, or log file access or error reporting detail through the GUI).<\/p>\n<p id=\"SOUuGrD\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1967 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_586421a91f9f0.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>The log file shows details such as downloading the patch, unzip, stop services, apply patch, start services, run utlrp, etc.<\/p>\n<p id=\"GhwBWyS\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1968 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_586424505cb68.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>The DBaaS service was down to apply the PSU patch for about 40 minutes, which is really good assuming no interference from DBA to apply the patch. I wish there was an option to schedule the patch through the cloud front-end management console.<\/p>\n<p id=\"bGEyiNQ\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1969 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_586424ca3015f.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>Running the $ORACLE_HOME\/OPatch\/opatch\u00a0lsinventory shows the patch apply status.<\/p>\n<p id=\"nzaXEwW\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"alignnone size-full wp-image-1970 \" src=\"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/img_586424f7c6bc2.png?w=1200&#038;ssl=1\" alt=\"\" \/><\/p>\n<p>PSU can be applied using the dbaascli dbpatchm\u00a0command or using the Cloud Interface. For all other one-off patches, use opatch.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>12 Days of #Cloud: Day 9 I have a 12.1. Database Cloud Instance, which comes with several patches including July 2016 PSU. The dbaascli\u00a0cloud tool can be used to query and apply patches. Before we use dbaascli, let&#8217;s check what the Cloud interface shows. Choose the DBaaS instance and view details. The &#8220;Administration&#8221; tile shows &#8230; <a title=\"12 Days of #Cloud: Apply Patch to #DBaaS Instance\" class=\"read-more\" href=\"https:\/\/bijoos.com\/oraclenotes\/2016\/1904\/\" aria-label=\"Read more about 12 Days of #Cloud: Apply Patch to #DBaaS Instance\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[55],"class_list":["post-1904","post","type-post","status-publish","format-standard","hentry","category-cloud-autonomous","tag-oracle-cloud"],"acf":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/1904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/comments?post=1904"}],"version-history":[{"count":1,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/1904\/revisions"}],"predecessor-version":[{"id":2987,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/1904\/revisions\/2987"}],"wp:attachment":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/media?parent=1904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/categories?post=1904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/tags?post=1904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}