{"id":9841,"date":"2017-03-06T17:40:23","date_gmt":"2017-03-06T16:40:23","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/"},"modified":"2017-03-06T17:40:23","modified_gmt":"2017-03-06T16:40:23","slug":"oda-32gb-template-but-got-a-database-with-16gb-sga","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/","title":{"rendered":"ODA \u2013 32GB template but got a database with 16GB SGA???"},"content":{"rendered":"<p>I got an interesting question today from a customer which created a database on ODA. He selected the template odb-04 which shows 32GB Memory but got a database with a 16GB SGA\u2026 Is it due to the PGA size, a limitation in the system, the huge pages usage which is reached or even a bug?<\/p>\n<p><!--more--><\/p>\n<p>Indeed, the answer is easier and funnier. If you look to the menu shown by OAKCLI while creating a database, you get something like that:<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\"> Please select one of the following for Database Class  [1 .. 6]:\n\n1    =&gt; odb-01s  (   1 cores ,     4 GB memory)\n\n2    =&gt;  odb-01  (   1 cores ,     8 GB memory)\n\n3    =&gt;  odb-02  (   2 cores ,    16 GB memory)\n\n4    =&gt;  odb-04  (   4 cores ,    32 GB memory)\n\n5    =&gt;  odb-06  (   6 cores ,    48 GB memory)\n\n6    =&gt;  odb-12  (  12 cores ,    96 GB memory)\n\n4\n\nSelected value is : odb-04  (   4 cores ,    32 GB memory)<\/pre>\n<p>&nbsp;<\/p>\n<p>So using the template odb-04 seems to use 32GB memory for the newly created database. However looking to what OAKCLI really does shows that the reality is a bit different. Following all files\/scripts which are called by OAKCLI at execution, we come to following file<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">\/opt\/oracle\/oak\/lib\/oakutilslib\/DbSizingValues.pm<\/pre>\n<p>&nbsp;<\/p>\n<p>This script contains the definition of the DBCA template used including the memory definition<\/p>\n<pre class=\"brush: perl; gutter: true; first-line: 1\">my $sga_size = $memory * $dbTypes{$dbtypeid}{sga_factor};\nmy $pga_size = $memory * $dbTypes{$dbtypeid}{pga_factor};<\/pre>\n<p>So the memory value is multiplied by a factor depending on the database type. Looking in the same script we find both information:<\/p>\n<pre class=\"brush: perl; gutter: true; first-line: 1\">my  %dbTemplates  =\n\n    (  1  =&gt; { name =&gt; 'odb-01s', cpus =&gt; 1,  sfactor  =&gt; 0.5},\n\n       2  =&gt; { name =&gt; 'odb-01',  cpus =&gt; 1  },\n\n       3  =&gt; { name =&gt; 'odb-02',  cpus =&gt; 2  },\n\n       4  =&gt; { name =&gt; 'odb-04',  cpus =&gt; 4  },\n\n       5  =&gt; { name =&gt; 'odb-06',  cpus =&gt; 6  },\n\n       6  =&gt; { name =&gt; 'odb-12',  cpus =&gt; 12 },\n\n       7  =&gt; { name =&gt; 'odb-16',  cpus =&gt; 16 },\n\n       8  =&gt; { name =&gt; 'odb-24',  cpus =&gt; 24 },\n\n       9  =&gt; { name =&gt; 'odb-32',  cpus =&gt; 32 },\n\n       10 =&gt; { name =&gt; 'odb-36',  cpus =&gt; 36 }\n\n    );\n\nmy  %dbTypes  =\n\n    ( 1 =&gt; { name =&gt; 'OLTP', template_name =&gt; 'OAK_oltp.dbt',     sga_factor =&gt; 0.5,  pga_factor =&gt; 0.25 },\n\n      2 =&gt; { name =&gt; 'DSS',  template_name =&gt; 'OAK_dss.dbt',      sga_factor =&gt; 0.25, pga_factor =&gt; 0.50 },\n\n      3 =&gt; { name =&gt; 'In-Memory', template_name =&gt; 'OAK_oltp.dbt',sga_factor =&gt; 0.25, pga_factor =&gt; 0.25, in_mem_factor=&gt;0.25, only12c=&gt; 1}\n\n    );<\/pre>\n<p>&nbsp;<\/p>\n<p>This means that If you create an OLTP database with the odb-04 template it takes 32GB as basis and multiplied them by 0,5.<br \/>\nHere we go we have our <strong>16GB<\/strong>!!<\/p>\n<p>In conclusion the memory information shown by OAKCLI CREATE DATABASE is the base memory used for the calculation and not the one assigned to the SGA. I must admit that this is quite confusing for the end users as the base memory as no signification and is useless\u2026<\/p>\n<p>To be fully fair, I have to mention that the correct information about SGA size per template is available in the documentation the appendix B:<\/p>\n<p><a href=\"http:\/\/docs.oracle.com\/cd\/E83239_01\/doc.121\/e83201\/database-templates-oracle-database-appliance.htm#CMTAR269\"> http:\/\/docs.oracle.com\/cd\/E83239_01\/doc.121\/e83201\/database-templates-oracle-database-appliance.htm#CMTAR269<\/a><\/p>\n<p>Enjoy!<\/p>\n<p>David<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got an interesting question today from a customer which created a database on ODA. He selected the template odb-04 which shows 32GB Memory but got a database with a 16GB SGA\u2026 Is it due to the PGA size, a limitation in the system, the huge pages usage which is reached or even a bug?<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229,198,199,42],"tags":[23,1046,1047,79,96,365],"type_dbi":[],"class_list":["post-9841","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring","category-database-management","category-hardware-storage","category-operating-systems","tag-dba","tag-engineered-system","tag-oakcli","tag-oda","tag-oracle","tag-oracle-database-appliance"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>ODA \u2013 32GB template but got a database with 16GB SGA??? - dbi Blog<\/title>\n<meta name=\"description\" content=\"After creating a database with OAKCLI, you find out that the SGA size does not match to the selection you made. Find the reason for this difference...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ODA \u2013 32GB template but got a database with 16GB SGA???\" \/>\n<meta property=\"og:description\" content=\"After creating a database with OAKCLI, you find out that the SGA size does not match to the selection you made. Find the reason for this difference...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-03-06T16:40:23+00:00\" \/>\n<meta name=\"author\" content=\"David Hueber\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Hueber\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/\"},\"author\":{\"name\":\"David Hueber\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8873e20a98a02305870909f4e3d0088f\"},\"headline\":\"ODA \u2013 32GB template but got a database with 16GB SGA???\",\"datePublished\":\"2017-03-06T16:40:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/\"},\"wordCount\":291,\"commentCount\":0,\"keywords\":[\"DBA\",\"Engineered system\",\"OAKCLI\",\"ODA\",\"Oracle\",\"Oracle database appliance\"],\"articleSection\":[\"Database Administration &amp; Monitoring\",\"Database management\",\"Hardware &amp; Storage\",\"Operating systems\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/\",\"name\":\"ODA \u2013 32GB template but got a database with 16GB SGA??? - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2017-03-06T16:40:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8873e20a98a02305870909f4e3d0088f\"},\"description\":\"After creating a database with OAKCLI, you find out that the SGA size does not match to the selection you made. Find the reason for this difference...\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ODA \u2013 32GB template but got a database with 16GB SGA???\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8873e20a98a02305870909f4e3d0088f\",\"name\":\"David Hueber\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/fc07284dbd5667f0bed32b0d8d64076ab885746973ea1b5c4e69c6fa7074cf59?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fc07284dbd5667f0bed32b0d8d64076ab885746973ea1b5c4e69c6fa7074cf59?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fc07284dbd5667f0bed32b0d8d64076ab885746973ea1b5c4e69c6fa7074cf59?s=96&d=mm&r=g\",\"caption\":\"David Hueber\"},\"description\":\"David Hueber has ten years of experience in infrastructure operation &amp; management, engineering, and optimization. He is specialized in Oracle technologies (engineering, backup and recovery, high availability, etc.), Service Management standards and Oracle infrastructure operation processes (Service Desk, Change Management, Capacity Planning, etc.). David Hueber is ITILv3 Service Operation Lifecycle certified and Linux LPIC-1 certified. He received a university degree in Informatics and Networks at the IUT Mulhouse, France. He also studied Information Systems at the Conservatoire National des Arts et M\u00e9tiers in Mulhouse, France. His branch-related experience covers Financial Services \/ Banking, Chemicals &amp; Pharmaceuticals, Transport &amp; Logistics, Retail, Food, etc.\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/david-hueber\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"ODA \u2013 32GB template but got a database with 16GB SGA??? - dbi Blog","description":"After creating a database with OAKCLI, you find out that the SGA size does not match to the selection you made. Find the reason for this difference...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/","og_locale":"en_US","og_type":"article","og_title":"ODA \u2013 32GB template but got a database with 16GB SGA???","og_description":"After creating a database with OAKCLI, you find out that the SGA size does not match to the selection you made. Find the reason for this difference...","og_url":"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/","og_site_name":"dbi Blog","article_published_time":"2017-03-06T16:40:23+00:00","author":"David Hueber","twitter_card":"summary_large_image","twitter_misc":{"Written by":"David Hueber","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/"},"author":{"name":"David Hueber","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8873e20a98a02305870909f4e3d0088f"},"headline":"ODA \u2013 32GB template but got a database with 16GB SGA???","datePublished":"2017-03-06T16:40:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/"},"wordCount":291,"commentCount":0,"keywords":["DBA","Engineered system","OAKCLI","ODA","Oracle","Oracle database appliance"],"articleSection":["Database Administration &amp; Monitoring","Database management","Hardware &amp; Storage","Operating systems"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/","url":"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/","name":"ODA \u2013 32GB template but got a database with 16GB SGA??? - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2017-03-06T16:40:23+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8873e20a98a02305870909f4e3d0088f"},"description":"After creating a database with OAKCLI, you find out that the SGA size does not match to the selection you made. Find the reason for this difference...","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/oda-32gb-template-but-got-a-database-with-16gb-sga\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"ODA \u2013 32GB template but got a database with 16GB SGA???"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8873e20a98a02305870909f4e3d0088f","name":"David Hueber","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fc07284dbd5667f0bed32b0d8d64076ab885746973ea1b5c4e69c6fa7074cf59?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fc07284dbd5667f0bed32b0d8d64076ab885746973ea1b5c4e69c6fa7074cf59?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fc07284dbd5667f0bed32b0d8d64076ab885746973ea1b5c4e69c6fa7074cf59?s=96&d=mm&r=g","caption":"David Hueber"},"description":"David Hueber has ten years of experience in infrastructure operation &amp; management, engineering, and optimization. He is specialized in Oracle technologies (engineering, backup and recovery, high availability, etc.), Service Management standards and Oracle infrastructure operation processes (Service Desk, Change Management, Capacity Planning, etc.). David Hueber is ITILv3 Service Operation Lifecycle certified and Linux LPIC-1 certified. He received a university degree in Informatics and Networks at the IUT Mulhouse, France. He also studied Information Systems at the Conservatoire National des Arts et M\u00e9tiers in Mulhouse, France. His branch-related experience covers Financial Services \/ Banking, Chemicals &amp; Pharmaceuticals, Transport &amp; Logistics, Retail, Food, etc.","url":"https:\/\/www.dbi-services.com\/blog\/author\/david-hueber\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/9841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=9841"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/9841\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=9841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=9841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=9841"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=9841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}