{"id":6271,"date":"2021-09-01T23:50:48","date_gmt":"2021-09-01T23:50:48","guid":{"rendered":"https:\/\/swiv.com.br\/how-to-create-a-grid-and-database-gold-image\/"},"modified":"2026-05-27T20:02:30","modified_gmt":"2026-05-27T19:02:30","slug":"how-to-create-a-grid-and-database-gold-image","status":"publish","type":"post","link":"https:\/\/swiv.com.br\/index.php\/2021\/09\/01\/how-to-create-a-grid-and-database-gold-image\/","title":{"rendered":"How to create a GRID and Database Gold Image"},"content":{"rendered":"<p>Estava discutindo com meu amigo Arthur como poder\u00edamos diminuir o tempo de execu\u00e7\u00e3o de um processo em nosso trabalho, que envolvia um Upgrade de GRID 12C para 19C, em seu \u00faltimo Release Update. Sugeri que a instala\u00e7\u00e3o do novo bin\u00e1rio fosse feita j\u00e1 com a RU, conforme exemplo abaixo (que \u00e9 exposto <a href=\"\/%22https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/18\/rilin\/applying-patches-during-database-install-or-upgrade.html#GUID-9E8DC4A7-4DCD-4BF7-A476-434B1B047418%22\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">nessa<\/a> documenta\u00e7\u00e3o)<\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ .\/runInstaller -applyRU patch_directory_location\n<\/pre><\/div>\n\n\n<p>Por\u00e9m, meu amigo deu uma sugest\u00e3o que at\u00e9 ent\u00e3o eu n\u00e3o conhecia: utilizar Gold Images criados previamente para serem utilizados na instala\u00e7\u00e3o. J\u00e1 que aprendi algo novo, vou simular em meu laborat\u00f3rio para aumentar meu repert\u00f3rio t\u00e9cnico.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Gold Image para bin\u00e1rio do GRID<\/h2>\n\n\n\n<p>Vou criar um diret\u00f3rio que abrigar\u00e1 o Gold Image:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@oel7 ~]$ cd \/grid\n&#x5B;grid@oel7 grid]$ mkdir GOLD_IMAGE\n&#x5B;grid@oel7 grid]$ cd GOLD_IMAGE\/\n&#x5B;grid@oel7 GOLD_IMAGE]$ pwd\n\/grid\/GOLD_IMAGE\n<\/pre><\/div>\n\n\n<p>No GRID_HOME, basta usarmos o utilit\u00e1rio Grid_Setup para gerarmos nossa imagem, conforme abaixo:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@oel7 product]$ cd $ORACLE_HOME\n&#x5B;grid@oel7 product]$ .\/gridSetup.sh -createGoldImage -destinationLocation \/grid\/GOLD_IMAGE\nLaunching Oracle Grid Infrastructure Setup Wizard...\n\n<\/pre><\/div>\n\n\n<p>A evolu\u00e7\u00e3o \u00e9 reportada conforme abaixo:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/swiv.com.br\/wp-content\/uploads\/2022\/07\/image-7.png\" alt=\"\" class=\"wp-image-7434\"\/><\/figure>\n\n\n\n<p>Notamos que um arquivo tempor\u00e1rio \u00e9 criado no diret\u00f3rio que definimos:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;oracle@oel7 ~]$ cd \/grid\n&#x5B;oracle@oel7 grid]$ cd GOLD_IMAGE\/\n&#x5B;oracle@oel7 GOLD_IMAGE]$ ll\ntotal 262200\n-rw-------. 1 grid oinstall 268492057 Sep  1 20:21 ziOzHuwG\n<\/pre><\/div>\n\n\n<p>Finalizado com sucesso:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/swiv.com.br\/wp-content\/uploads\/2022\/07\/image-2-1.png\" alt=\"\" class=\"wp-image-7435\"\/><\/figure>\n\n\n\n<p>Arquivo gerado:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@oel7 product]$ cd \/grid\/GOLD_IMAGE\/\n&#x5B;grid@oel7 GOLD_IMAGE]$ ll\ntotal 2802416\n-rw-r--r--. 1 grid oinstall 2869667553 Sep  1 20:28 grid_home_2021-09-01_08-20-10PM.zip\n&#x5B;grid@oel7 GOLD_IMAGE]$ du -hs *\n2.7G    grid_home_2021-09-01_08-20-10PM.zip\n&#x5B;grid@oel7 GOLD_IMAGE]$\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\"> Gold Image para bin\u00e1rio do Oracle Database<\/h2>\n\n\n\n<p>O processo \u00e9 basicamente o mesmo, sendo que o que muda \u00e9 o utilit\u00e1rio (para o database, usamos o runInstaller):<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;oracle@oel7 grid]$ mkdir DB_GOLD_IMAGE\n&#x5B;oracle@oel7 grid]$ cd DB_GOLD_IMAGE\/\n&#x5B;oracle@oel7 DB_GOLD_IMAGE]$ pwd\n\/grid\/DB_GOLD_IMAGE\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;oracle@oel7 DB_GOLD_IMAGE]$ export DISPLAY=192.168.0.102:0.0\n&#x5B;oracle@oel7 DB_GOLD_IMAGE]$ cd $ORACLE_HOME\n&#x5B;oracle@oel7 product]$ .\/runInstaller -createGoldImage -destinationLocation \/grid\/DB_GOLD_IMAGE\nLaunching Oracle Database Setup Wizard...\n\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/swiv.com.br\/wp-content\/uploads\/2022\/07\/image-3-1.png\" alt=\"\" class=\"wp-image-7436\"\/><\/figure>\n\n\n\n<p>Arquivo gerado com sucesso:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/swiv.com.br\/wp-content\/uploads\/2022\/07\/image-4-1.png\" alt=\"\" class=\"wp-image-7437\"\/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;oracle@oel7 product]$ cd \/grid\/DB_GOLD_IMAGE\/\n&#x5B;oracle@oel7 DB_GOLD_IMAGE]$ ll\ntotal 2999892\n-rw-r--r--. 1 oracle oinstall 3071881572 Sep  1 20:48 db_home_2021-09-01_08-39-51PM.zip\n&#x5B;oracle@oel7 DB_GOLD_IMAGE]$ du -hs *\n2.9G    db_home_2021-09-01_08-39-51PM.zip\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Estava discutindo com meu amigo Arthur como poder\u00edamos diminuir o tempo de execu\u00e7\u00e3o de um processo em nosso trabalho, que envolvia um Upgrade de GRID 12C para 19C, em seu \u00faltimo Release Update. Sugeri que a instala\u00e7\u00e3o do novo bin\u00e1rio fosse feita j\u00e1 com a RU, conforme exemplo abaixo (que \u00e9 exposto nessa documenta\u00e7\u00e3o) Por\u00e9m, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-6271","post","type-post","status-publish","format-standard","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=6271"}],"version-history":[{"count":1,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6271\/revisions"}],"predecessor-version":[{"id":9055,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6271\/revisions\/9055"}],"wp:attachment":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=6271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=6271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=6271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}