{"id":1242,"date":"2020-04-14T21:43:40","date_gmt":"2020-04-14T21:43:40","guid":{"rendered":"https:\/\/swiv.com.br\/creating-an-oracle-database-18c-using-dbca-in-silent-mode\/"},"modified":"2026-05-27T20:02:54","modified_gmt":"2026-05-27T19:02:54","slug":"creating-an-oracle-database-18c-using-dbca-in-silent-mode","status":"publish","type":"post","link":"https:\/\/swiv.com.br\/index.php\/2020\/04\/14\/creating-an-oracle-database-18c-using-dbca-in-silent-mode\/","title":{"rendered":"Creating an Oracle Database 18C using DBCA in silent mode"},"content":{"rendered":"\n<p>Para quem teve a oportunidade de aprender a tocar algum instrumento musical, j\u00e1 se deparou com o termo: tocar uma m\u00fasica &#8220;cover&#8221;. Esse \u00e9 o processo onde voc\u00ea interpreta uma m\u00fasica que j\u00e1 existe, no intuito de se divertir, e principalmente: aprender. Aqui na TI, especificamente na \u00e1rea de banco de dados, n\u00e3o seria diferente. Leio com frequ\u00eancia \u00f3timos artigos t\u00e9cnicos, e para perpetuar o conhecimento que estou tendo contato, nada melhor do que um &#8220;cover&#8221; do artigo, ou seja, tentar coloc\u00e1-lo em pr\u00e1tica, j\u00e1 que a experi\u00eancia \u00e9 tudo nessa vida.<\/p>\n\n\n<p>Desse modo, pegando um artigo do Tim Hall (o link est\u00e1 <a rel=\"\\&quot;noreferrer noopener\" noopener=\"\" href=\"https:\/\/oracle-base.com\/articles\/19c\/oracle-db-19c-installation-on-oracle-linux-8\" target=\"\\&quot;_blank\\&quot;\">AQUI<\/a>), decidi ter a experi\u00eancia de criar banco Oracle 18C via linha de comando.<\/p>\n\n\n<p>Criando os diret\u00f3rios que abrigar\u00e3o os dados, archives e  FRA do Oracle:<\/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@oel8 admin]$ mkdir -p \/oracle\/dados\n&#x5B;oracle@oel8 admin]$ mkdir -p \/oracle\/fra\n&#x5B;oracle@oel8 admin]$ mkdir -p \/oracle\/archives\n<\/pre><\/div>\n\n\n<p>Permiss\u00f5es:<\/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@oel8 admin]$ chown -R oracle:oinstall \/oracle\/dados\/ \/oracle\/fra\/ \/oracle\/archives\/\n&#x5B;oracle@oel8 admin]$ chmod 775 \/oracle\/dados\/ \/oracle\/fra\/ \/oracle\/archives\/\n<\/pre><\/div>\n\n\n<p>Par\u00e2metros usados:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndbca -silent -createDatabase                \\\n    -responseFile NO_VALUE                  \\\n    -gdbName RMANDB                         \\\n    -templateName General_Purpose.dbc       \\\n    -sid ${ORACLE_SID}                      \\\n    -createAsContainerDatabase false        \\\n    -sysPassword Oracle123                  \\\n    -systemPassword Oracle123               \\\n    -emConfiguration NONE                   \\\n    -dvConfiguration false                  \\\n    -olsConfiguration false                 \\\n    -datafileDestination \/oracle\/dados      \\\n    -redoLogFileSize 50                     \\\n    -recoveryAreaDestination \/oracle\/fra    \\\n    -recoveryAreaSize 500                   \\\n    -storageType FS                         \\\n    -runCVUChecks false                     \\\n    -enableArchive true                     \\\n    -archiveLogMode AUTO                    \\\n    -archiveLogDest \/oracle\/archives        \\\n    -automaticMemoryManagement false        \\\n    -createListener LISTENER                \\\n    -useOMF true                            \\\n    -databaseConfigType SINGLE              \\\n    -characterSet AL32UTF8                  \\\n    -sampleSchema false                     \\\n    -totalMemory 2048                       \\\n    -databaseType MULTIPURPOSE              \n<\/pre><\/div>\n\n\n<p>Devido ao pouco espa\u00e7o de mem\u00f3ria na m\u00e1quina, o Oracle reporta um erro por conta disso (al\u00e9m do warning sobre o espa\u00e7o m\u00ednimo de FRA):<\/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@oel8 admin]$ dbca -silent -createDatabase                \\\n&gt;     -responseFile NO_VALUE                  \\\n&gt;     -gdbName RMANDB                         \\\n&gt;     -templateName General_Purpose.dbc       \\\n&gt;     -sid ${ORACLE_SID}                      \\\n&gt;     -createAsContainerDatabase false        \\\n&gt;     -sysPassword Oracle123                  \\\n&gt;     -systemPassword Oracle123               \\\n&gt;     -emConfiguration NONE                   \\\n&gt;     -dvConfiguration false                  \\\n&gt;     -olsConfiguration false                 \\\n&gt;     -datafileDestination \/oracle\/dados      \\\n&gt;     -redoLogFileSize 50                     \\\n&gt;     -recoveryAreaDestination \/oracle\/fra    \\\n&gt;     -recoveryAreaSize 500                   \\\n&gt;     -storageType FS                         \\\n&gt;     -runCVUChecks false                     \\\n&gt;     -enableArchive true                     \\\n&gt;     -archiveLogMode AUTO                    \\\n&gt;     -archiveLogDest \/oracle\/archives        \\\n&gt;     -automaticMemoryManagement false        \\\n&gt;     -createListener LISTENER                \\\n&gt;     -useOMF true                            \\\n&gt;     -databaseConfigType SINGLE              \\\n&gt;     -characterSet AL32UTF8                  \\\n&gt;     -sampleSchema false                     \\\n&gt;     -totalMemory 2048                       \\\n&gt;     -databaseType MULTIPURPOSE\n&#x5B;WARNING] &#x5B;DBT-06801] Specified Fast Recovery Area size (500 MB) is less than the recommended value.\n   CAUSE: Fast Recovery Area size should at least be three times the database size (692 MB).\n   ACTION: Specify Fast Recovery Area Size to be at least three times the database size.\n&#x5B;WARNING] &#x5B;DBT-11209] Current available memory is less than the required available memory (2,048MB) for creating the database.\n   CAUSE: Following nodes do not have required available memory :\n Node:oel8              Available memory:1.8942GB (1986164.0KB)\n \n&#x5B;FATAL] &#x5B;DBT-11214] Automatic Memory Management is not a feasible option on the system.\n   CAUSE: There is not enough free space on volume \/dev\/shm to allocate 2,048MB.\n&#x5B;oracle@oel8 admin]$\n<\/pre><\/div>\n\n\n<p>Aumentando a mem\u00f3ria da m\u00e1quina virtual:<\/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-473.png\" alt=\"\" class=\"wp-image-8320\"\/><\/figure>\n\n\n\n<p>Depois alterado comando para:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndbca -silent -createDatabase                \\\n    -responseFile NO_VALUE                  \\\n    -gdbName RMANDB                         \\\n    -templateName General_Purpose.dbc       \\\n    -sid ${ORACLE_SID}                      \\\n    -createAsContainerDatabase false        \\\n    -sysPassword Oracle123                  \\\n    -systemPassword Oracle123               \\\n    -emConfiguration NONE                   \\\n    -dvConfiguration false                  \\\n    -olsConfiguration false                 \\\n    -datafileDestination \/oracle\/dados      \\\n    -redoLogFileSize 50                     \\\n    -recoveryAreaDestination \/oracle\/fra    \\\n    -recoveryAreaSize 700                   \\\n    -storageType FS                         \\\n    -runCVUChecks false                     \\\n    -enableArchive true                     \\\n    -archiveLogMode AUTO                    \\\n    -archiveLogDest \/oracle\/archives        \\\n    -automaticMemoryManagement false        \\\n    -createListener LISTENER                \\\n    -useOMF true                            \\\n    -databaseConfigType SINGLE              \\\n    -characterSet AL32UTF8                  \\\n    -sampleSchema false                     \\\n    -totalMemory 2048                       \\\n    -databaseType MULTIPURPOSE\n<\/pre><\/div>\n\n\n<p>Banco criado com sucesso:<\/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@oel8 ~]$ dbca -silent -createDatabase                \\\n&gt;     -responseFile NO_VALUE                  \\\n&gt;     -gdbName RMANDB                         \\\n&gt;     -templateName General_Purpose.dbc       \\\n&gt;     -sid ${ORACLE_SID}                      \\\n&gt;     -createAsContainerDatabase false        \\\n&gt;     -sysPassword Oracle123                  \\\n&gt;     -systemPassword Oracle123               \\\n&gt;     -emConfiguration NONE                   \\\n&gt;     -dvConfiguration false                  \\\n&gt;     -olsConfiguration false                 \\\n&gt;     -datafileDestination \/oracle\/dados      \\\n&gt;     -redoLogFileSize 50                     \\\n&gt;     -recoveryAreaDestination \/oracle\/fra    \\\n&gt;     -recoveryAreaSize 700                   \\\n&gt;     -storageType FS                         \\\n&gt;     -runCVUChecks false                     \\\n&gt;     -enableArchive true                     \\\n&gt;     -archiveLogMode AUTO                    \\\n&gt;     -archiveLogDest \/oracle\/archives        \\\n&gt;     -automaticMemoryManagement false        \\\n&gt;     -createListener LISTENER                \\\n&gt;     -useOMF true                            \\\n&gt;     -databaseConfigType SINGLE              \\\n&gt;     -characterSet AL32UTF8                  \\\n&gt;     -sampleSchema false                     \\\n&gt;     -totalMemory 2048                       \\\n&gt;     -databaseType MULTIPURPOSE\n&#x5B;WARNING] &#x5B;DBT-06801] Specified Fast Recovery Area size (700 MB) is less than the recommended value.\n   CAUSE: Fast Recovery Area size should at least be three times the database size (692 MB).\n   ACTION: Specify Fast Recovery Area Size to be at least three times the database size.\n&#x5B;WARNING] &#x5B;DBT-06801] Specified Fast Recovery Area size (700 MB) is less than the recommended value.\n   CAUSE: Fast Recovery Area size should at least be three times the database size (2,252 MB).\n   ACTION: Specify Fast Recovery Area Size to be at least three times the database size.\nPrepare for db operation\n10% complete\nCopying database files\n40% complete\nCreating and starting Oracle instance\n42% complete\n46% complete\n50% complete\n54% complete\n60% complete\nCompleting Database Creation\n66% complete\n69% complete\n70% complete\nExecuting Post Configuration Actions\n100% complete\nDatabase creation complete. For details check the logfiles at:\n \/oracle\/18.0.0\/base\/cfgtoollogs\/dbca\/RMANDB.\nDatabase Information:\nGlobal Database Name:RMANDB\nSystem Identifier(SID):RMANDB\nLook at the log file &quot;\/oracle\/18.0.0\/base\/cfgtoollogs\/dbca\/RMANDB\/RMANDB.log&quot; for further details.\n&#x5B;oracle@oel8 ~]$\n<\/pre><\/div>\n\n\n<p>Consultando banco:<\/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@oel8 ~]$ sqlplus \/ as sysdba\n \nSQL*Plus: Release 18.0.0.0.0 - Production on Sun Apr 5 21:59:01 2020\nVersion 18.3.0.0.0\n \nCopyright (c) 1982, 2018, Oracle.  All rights reserved.\n \n \nConnected to:\nOracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production\nVersion 18.3.0.0.0\n \nSQL&gt; select instance_name,status from gv$instance;\n \nINSTANCE_NAME    STATUS\n---------------- ------------\nRMANDB           OPEN\n \nSQL&gt; select banner from v$version;\n \nBANNER\n--------------------------------------------------------------------------------\nOracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production\n \nSQL&gt;\n<\/pre><\/div>\n\n\n<p>Consultando oratab:<\/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@oel8 ~]$ cat \/etc\/oratab\n#\n \n \n \n# This file is used by ORACLE utilities.  It is created by root.sh\n# and updated by either Database Configuration Assistant while creating\n# a database or ASM Configuration Assistant while creating ASM instance.\n \n# A colon, &#039;:&#039;, is used as the field terminator.  A new line terminates\n# the entry.  Lines beginning with a pound sign, &#039;#&#039;, are comments.\n#\n# Entries are of the form:\n#   $ORACLE_SID:$ORACLE_HOME:&amp;lt;N|Y&gt;:\n#\n# The first and second fields are the system identifier and home\n# directory of the database respectively.  The third field indicates\n# to the dbstart utility that the database should , &quot;Y&quot;, or should not,\n# &quot;N&quot;, be brought up at system boot time.\n#\n# Multiple entries with the same $ORACLE_SID are not allowed.\n#\n#\nRMANDB:\/oracle\/18.0.0\/product:N\n&#x5B;oracle@oel8 ~]$\n<\/pre><\/div>\n\n\n<p>Editando o mesmo para que possa ser reinicializado quando a m\u00e1quina virtual subir:<\/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@oel8 ~]$ vi \/etc\/oratab\n<\/pre><\/div>\n\n\n<p>Conte\u00fado:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n#\n \n \n \n# This file is used by ORACLE utilities.  It is created by root.sh\n# and updated by either Database Configuration Assistant while creating\n# a database or ASM Configuration Assistant while creating ASM instance.\n \n# A colon, &#039;:&#039;, is used as the field terminator.  A new line terminates\n# the entry.  Lines beginning with a pound sign, &#039;#&#039;, are comments.\n#\n# Entries are of the form:\n#   $ORACLE_SID:$ORACLE_HOME:&amp;lt;N|Y&gt;:\n#\n# The first and second fields are the system identifier and home\n# directory of the database respectively.  The third field indicates\n# to the dbstart utility that the database should , &quot;Y&quot;, or should not,\n# &quot;N&quot;, be brought up at system boot time.\n#\n# Multiple entries with the same $ORACLE_SID are not allowed.\n#\n#\nRMANDB:\/oracle\/18.0.0\/product:Y\n<\/pre><\/div>\n\n<p>Al\u00e9m do artigo do Tim que usei como base, li com cuidado todos os par\u00e2metros da documenta\u00e7\u00e3o Oracle, para entender todos os valores poss\u00edveis e suas defini\u00e7\u00f5es. A tabela voc\u00ea encontra neste <a rel=\"\\&quot;noreferrer noopener\" noopener=\"\" href=\"https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/18\/admin\/creating-and-configuring-an-oracle-database.html#GUID-0A94814D-032B-4F6A-8B54-A35223A1E3EF\" target=\"\\&quot;_blank\\&quot;\">LINK<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Para quem teve a oportunidade de aprender a tocar algum instrumento musical, j\u00e1 se deparou com o termo: tocar uma m\u00fasica &#8220;cover&#8221;. Esse \u00e9 o processo onde voc\u00ea interpreta uma m\u00fasica que j\u00e1 existe, no intuito de se divertir, e principalmente: aprender. Aqui na TI, especificamente na \u00e1rea de banco de dados, n\u00e3o seria diferente. [&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":[19],"class_list":["post-1242","post","type-post","status-publish","format-standard","hentry","category-administration","tag-oracle-database"],"_links":{"self":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/1242","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=1242"}],"version-history":[{"count":1,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/1242\/revisions"}],"predecessor-version":[{"id":9294,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/1242\/revisions\/9294"}],"wp:attachment":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=1242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=1242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=1242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}