{"id":1815,"date":"2018-11-06T12:18:01","date_gmt":"2018-11-06T10:18:01","guid":{"rendered":"http:\/\/www.ludovicocaldara.net\/dba\/?p=1815"},"modified":"2020-08-18T16:05:02","modified_gmt":"2020-08-18T14:05:02","slug":"gi-18c-gridsetup-goldimage","status":"publish","type":"post","link":"https:\/\/www.ludovicocaldara.net\/dba\/gi-18c-gridsetup-goldimage\/","title":{"rendered":"Grid Infrastructure 18c: changes in gridSetup.sh -applyRU and -createGoldImage"},"content":{"rendered":"<p>Starting with release 12cR2, Grid Infrastructure binaries are no more shipped as an installer, but as a zip file that is uncompressed directly in the Oracle Home path.<br \/>\nThis opened a few new possibilities including patching the software before the Grid Infrastructure configuration.<br \/>\nMy former colleague Markus Flechtner wrote an excellent blog post about it, here: <a href=\"https:\/\/www.markusdba.net\/?p=294\">https:\/\/www.markusdba.net\/?p=294<\/a><\/p>\n<p>Now, with 18c, there are a couple of things that changed comparing to Markus blog.<\/p>\n<p><strong>The -applyRU switch replaces the -applyPSU<\/strong><\/p>\n<p>While it is possible to apply several sub-patches of a PSU one by one:<\/p>\n<pre class=\"lang:plsql highlight:0 decode:true\">.\/gridSetup.sh -silent -applyOneOffs &lt;path to sub-patch&gt;\r\ne.g.\r\n\r\n.\/gridSetup.sh -silent -applyOneOffs \/work\/p28659165_180000_Linux-x86-64\/28659165\/28547619\r\n.\/gridSetup.sh -silent -applyOneOffs \/work\/p28659165_180000_Linux-x86-64\/28659165\/28655784\r\n.\/gridSetup.sh -silent -applyOneOffs \/work\/p28659165_180000_Linux-x86-64\/28659165\/28655916\r\n...<\/pre>\n<p>it was possible to do all at once with:<\/p>\n<pre class=\"lang:plsql highlight:0 decode:true\">.\/gridSetup.sh -silent -applyPSU &lt;path to PSU&gt;<\/pre>\n<p>Now the switch is called, for consistency with the patch naming, -applyRU.<\/p>\n<p>E.g.:<\/p>\n<pre class=\"lang:plsql decode:true\"># [ oracle@server:\/u01\/app\/grid\/crs1840 [16:38:40] [18.4.0.0.0 [GRID] SID=GRID] 255 ] #\r\n$ .\/gridSetup.sh -silent -applyRU \/u01\/app\/oracle\/stage\/p28659165_180000_Linux-x86-64\/28659165\r\nPreparing the home to patch...\r\nApplying the patch  \/u01\/app\/oracle\/stage\/p28659165_180000_Linux-x86-64\/28659165...\r\nSuccessfully applied the patch.\r\nThe log can be found at: \/u01\/app\/oraInventory\/logs\/GridSetupActions2018-11-02_04-39-54PM\/installerPatchActions_2018-11-02_04-39-54PM.log\r\nLaunching Oracle Grid Infrastructure Setup Wizard...\r\n\r\n[FATAL] [INS-40426] Grid installation option has not been specified.\r\n   ACTION: Specify the valid installation option.<\/pre>\n<p>Still there are no options to avoid the run of the Setup Wizard, but it is safe to ignore the error as the patch has been applied successfully.<\/p>\n<p><strong>The -createGoldImage does not work anymore if the Home is not attached<\/strong><\/p>\n<p>I have tried to create the golden image as per Markus post, but I get this error:<\/p>\n<pre class=\"lang:plsql decode:true \"># [ oracle@server:\/u01\/app\/grid\/crs1840 [09:43:39] [18.4.0.0.0 [GRID] SID=GRID] 0 ] #\r\n$ .\/gridSetup.sh -createGoldImage -destinationlocation  \/u01\/app\/oracle\/stage\/golden_images\/crs1840 -silent\r\nLaunching Oracle Grid Infrastructure Setup Wizard...\r\n\r\n[FATAL] [INS-32715] The source home (\/u01\/app\/grid\/crs1840) is not registered in the central inventory.\r\n   ACTION: Ensure that the source home is registered in the central inventory.\r\n<\/pre>\n<p>To workaround the issue, there are two ways:<\/p>\n<ol>\n<li>Create a zip file manually, as all the content needed to install the patched version is right there. No need to touch anything as the software is not configured yet.<\/li>\n<li>Configure the software with CRS_SWONLY before creating the gold image:\n<pre class=\"lang:ini decode:true\">$ cat grid1840_swonly.rsp\r\noracle.install.responseFileVersion=\/oracle\/install\/rspfmt_crsinstall_response_schema_v18.0.0\r\nINVENTORY_LOCATION=\/u01\/app\/oraInventory\r\noracle.install.option=CRS_SWONLY\r\nORACLE_BASE=\/u01\/app\/oracle\r\noracle.install.asm.OSDBA=dba\r\noracle.install.asm.OSASM=asmdba\r\noracle.install.crs.config.scanType=LOCAL_SCAN\r\noracle.install.crs.config.gpnp.configureGNS=false\r\noracle.install.crs.config.autoConfigureClusterNodeVIP=false\r\noracle.install.crs.config.gpnp.gnsOption=CREATE_NEW_GNS\r\noracle.install.crs.config.clusterNodes=server1,server2\r\noracle.install.asm.configureGIMRDataDG=false\r\noracle.install.crs.config.useIPMI=false\r\noracle.install.asm.storageOption=ASM\r\noracle.install.asmOnNAS.configureGIMRDataDG=false\r\noracle.install.asm.diskGroup.name=OCRVOT\r\noracle.install.asm.diskGroup.AUSize=1\r\noracle.install.asm.gimrDG.AUSize=1\r\noracle.install.asm.configureAFD=false\r\noracle.install.crs.configureRHPS=false\r\noracle.install.crs.config.ignoreDownNodes=false\r\noracle.install.config.managementOption=NONE\r\noracle.install.config.omsPort=0\r\noracle.install.crs.rootconfig.executeRootScript=false\r\n\r\n$ .\/gridSetup.sh -silent -responseFile grid1840_swonly.rsp ORACLE_HOME_NAME=crs1840\r\nLaunching Oracle Grid Infrastructure Setup Wizard...\r\n\r\nThe response file for this session can be found at:\r\n \/u01\/app\/grid\/crs1840\/install\/response\/grid_2018-11-05_01-18-28PM.rsp\r\n\r\nYou can find the log of this install session at:\r\n \/u01\/app\/oraInventory\/logs\/GridSetupActions2018-11-05_01-18-28PM\/gridSetupActions2018-11-05_01-18-28PM.log\r\n\r\nAs a root user, execute the following script(s):\r\n        1. \/u01\/app\/grid\/crs1840\/root.sh\r\n\r\nExecute \/u01\/app\/grid\/crs1840\/root.sh on the following nodes:\r\n[server1, server2]\r\n\r\n[root@server1 dbs01]# \/u01\/app\/grid\/crs1840\/root.sh\r\nCheck \/u01\/app\/grid\/crs1840\/install\/root_server1.cern.ch_2018-11-05_14-13-58-835084539.log for the output of root script\r\n\r\n[root@server2 dbs01]# \/u01\/app\/grid\/crs1840\/root.sh\r\nCheck \/u01\/app\/grid\/crs1840\/install\/root_server2.cern.ch_2018-11-05_14-15-18-835087641.log for the output of root script\r\n\r\n$ .\/gridSetup.sh -createGoldImage -destinationlocation  \/u01\/app\/oracle\/stage\/golden_images\/crs1840 -silent\r\nLaunching Oracle Grid Infrastructure Setup Wizard...\r\n\r\nSuccessfully Setup Software.\r\nGold Image location: \/u01\/app\/oracle\/stage\/golden_images\/crs1840\/grid_home_2018-11-05_02-25-52PM.zip\r\n<\/pre>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>HTH<\/p>\n<p>&#8212;<\/p>\n<p>Ludo<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Starting with release 12cR2, Grid Infrastructure binaries are no more shipped as an installer, but as a zip file that is uncompressed directly in the Oracle Home path. This opened a few new possibilities including patching the software before the &hellip; <a href=\"https:\/\/www.ludovicocaldara.net\/dba\/gi-18c-gridsetup-goldimage\/\">Continue reading <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":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[321,326,3,308,330,149],"tags":[],"class_list":["post-1815","post","type-post","status-publish","format-standard","hentry","category-aced","category-oracle","category-oracledb","category-oracle-database-18c","category-oracle-inst-upg","category-oracle-rac"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/1815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/comments?post=1815"}],"version-history":[{"count":2,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/1815\/revisions"}],"predecessor-version":[{"id":1817,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/1815\/revisions\/1817"}],"wp:attachment":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/media?parent=1815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/categories?post=1815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/tags?post=1815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}