{"id":250,"date":"2012-05-25T12:18:58","date_gmt":"2012-05-25T12:18:58","guid":{"rendered":"https:\/\/adilfahim.com\/myblog\/?p=250"},"modified":"2012-05-25T12:18:58","modified_gmt":"2012-05-25T12:18:58","slug":"reduce-sga-size-in-oracle-10g","status":"publish","type":"post","link":"https:\/\/adilfahim.com\/myblog\/reduce-sga-size-in-oracle-10g\/","title":{"rendered":"Reduce SGA size in Oracle 10g"},"content":{"rendered":"<p>Due to some limitation we need to decrease the <em><strong>SGA<\/strong><\/em> size of our IDES system.-<\/p>\n<p>What is SGA ?<\/p>\n<p>&#8211; The shared pool<br \/>\n&#8211; The large pool<br \/>\n&#8211; The Java pool<br \/>\n&#8211; The buffer cache<br \/>\n&#8211; The Streams pool<br \/>\n&#8211; The Log Buffer<\/p>\n<p>All this memory areas together are the SGA.<\/p>\n<p>we check the parameters &amp; found that our database is running via <strong>SPfile.<\/strong><\/p>\n<p>We follow the below steps to perform this action:<\/p>\n<p>1. login to sql \/ as sysdba<\/p>\n<p>SQL&gt; show SGA &#8211; Check current SGA size.<\/p>\n<p>SQL&gt; show parameter &#8211; check whether oracle is running via SPFILE or PFILE.<\/p>\n<p>SQL&gt; create pfile from spfile; ( pfile is created in dbs or database folders)<\/p>\n<p>SQL&gt;shutdown immediate<\/p>\n<p>while checking parameters we found that our <em><strong>SGA_MAX_SIZE = 1 GB<\/strong><\/em> in working pfile.(init&lt;SID&gt;.ora)<\/p>\n<p>we decrease the value 25% of current <strong>SGA_MAX_SIZE<\/strong> (<strong>512MB+256MB = 768 MB<\/strong>)<\/p>\n<p>we also decrease the <strong>shared_pool_size value<\/strong> &amp; <strong>db buffer cache value<\/strong> to <strong>25%<\/strong>.<\/p>\n<p>save the file.<\/p>\n<p>Now start Database with this newly PFILE.<\/p>\n<p>SQL&gt;starup PFILE=&#8221;d:oracleSID102databaseinit&lt;SID&gt;.ora&#8221;<\/p>\n<p>if database is successfully started then convert it to SPFILE.<\/p>\n<p>SQL&gt; create spfile from pfile;<\/p>\n<p>SQL&gt; shutdown immediate<\/p>\n<p>SQL&gt; startup<\/p>\n<p>Now check the value of changed SGA.<\/p>\n<p>SQL&gt; show sga<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Due to some limitation we need to decrease the SGA size of our IDES system.- What is SGA ? &#8211; The shared pool &#8211; The large pool &#8211; The Java pool &#8211; The buffer cache &#8211; The Streams pool &#8211; The Log Buffer All this memory areas together are the SGA. we check the parameters [&hellip;]<\/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":[8],"tags":[156,166,225,226,227,254],"class_list":["post-250","post","type-post","status-publish","format-standard","hentry","category-sap-updates","tag-oracle","tag-pfile","tag-sga","tag-sga_max_size","tag-shared_pool_size","tag-spfile"],"_links":{"self":[{"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/posts\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/comments?post=250"}],"version-history":[{"count":0,"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/posts\/250\/revisions"}],"wp:attachment":[{"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/categories?post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/tags?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}