{"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_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4],"tags":[55],"class_list":["post-1904","post","type-post","status-publish","format-standard","hentry","category-cloud-autonomous","tag-oracle-cloud"],"acf":[],"jetpack-related-posts":[{"id":2115,"url":"https:\/\/bijoos.com\/oraclenotes\/2017\/2115\/","url_meta":{"origin":1904,"position":0},"title":"Oracle Tidbits &#8211; October 2017 #oratidbit","author":"Biju","date":"November 2, 2017","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d (#oratidbit) published on Facebook, Twitter, and Google+\u00a0during weekdays\u00a0in October 2017. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well\u2026 Hope you find these helpful to learn something new or to remind you\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2017\/02\/oratidbit.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1992,"url":"https:\/\/bijoos.com\/oraclenotes\/2016\/1992\/","url_meta":{"origin":1904,"position":1},"title":"12 Days of #Cloud: Exploring #DBaaS with Data Guard","author":"Biju","date":"December 30, 2016","format":false,"excerpt":"12 Days of #Cloud: Day 11 After a few failed attempts, I was successful in creating a Data Guard DBaaS Instance. Since I was playing with a trial account, the resources were limited. I guess when I had another database running, there is not much storage left to create two\u2026","rel":"","context":"In &quot;Cloud &amp; Autonomous Database&quot;","block_context":{"text":"Cloud &amp; Autonomous Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/cloud-autonomous\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/image22.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1761,"url":"https:\/\/bijoos.com\/oraclenotes\/2016\/1761\/","url_meta":{"origin":1904,"position":2},"title":"Oracle Tidbits &#8211; September 2016","author":"Biju","date":"October 3, 2016","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d (#oratidbit) published at\u00a0https:\/\/www.facebook.com\/oraclenotes\u00a0on weekdays\u00a0in September\u00a02016. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well\u2026 Hope you find these helpful to learn something new or to remind you of its existence and use\u2026\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"Oracle TidBit","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2014\/05\/TidBit.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2144,"url":"https:\/\/bijoos.com\/oraclenotes\/2018\/2144\/","url_meta":{"origin":1904,"position":3},"title":"Oracle Tidbits &#8211; February 2018 #oratidbit","author":"Biju","date":"March 1, 2018","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d (#oratidbit) published on Facebook, Twitter, and Google+\u00a0during weekdays\u00a0in February 2018. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well\u2026 Hope you find these helpful to learn something new or to remind you\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2017\/02\/oratidbit.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2022,"url":"https:\/\/bijoos.com\/oraclenotes\/2016\/2022\/","url_meta":{"origin":1904,"position":4},"title":"12th Day of #Cloud: Thoughts","author":"Biju","date":"December 31, 2016","format":false,"excerpt":"12 Days of #Cloud: Day 12 After playing with Oracle Database Cloud Service (DBaaS) for past several days, I have mixed feeling. I like quite a lot of features and the amount of automation went into the product. For example, creating an RAC instance and creating a Data Guard instance\u2026","rel":"","context":"In &quot;Cloud &amp; Autonomous Database&quot;","block_context":{"text":"Cloud &amp; Autonomous Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/cloud-autonomous\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1927,"url":"https:\/\/bijoos.com\/oraclenotes\/2016\/1927\/","url_meta":{"origin":1904,"position":5},"title":"12 Days of #Cloud: Cloning #DBaaS Instance","author":"Biju","date":"December 22, 2016","format":false,"excerpt":"12 Days of #Cloud: Day 8 It is very easy to stand up a new DBaaS instance as a replica or clone of an existing instance. In this demo, I am going to create a new instance as a copy of CLDB4ACED DBaaS instance. First, need to create a snapshot\u2026","rel":"","context":"In &quot;Cloud &amp; Autonomous Database&quot;","block_context":{"text":"Cloud &amp; Autonomous Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/cloud-autonomous\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/image22.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_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}]}}