{"id":15891,"date":"2023-12-04T23:52:36","date_gmt":"2023-12-04T15:52:36","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=15891"},"modified":"2023-12-04T23:55:09","modified_gmt":"2023-12-04T15:55:09","slug":"oracle-zhong-nei-cun-jie-gou-sgapga-zu-cheng-bu-fe","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/12\/04\/oracle-zhong-nei-cun-jie-gou-sgapga-zu-cheng-bu-fe\/","title":{"rendered":"Oracle \u4e2d\u5185\u5b58\u7ed3\u6784(SGA\u3001PGA)\u7ec4\u6210\u90e8\u5206\uff1f"},"content":{"rendered":"<p>\u5728 Oracle \u6570\u636e\u5e93\u4e2d\uff0c\u5185\u5b58\u7ed3\u6784\u5206\u4e3a SGA\uff08System Global Area\uff09\u548c PGA\uff08Program Global Area\uff09\u4e24\u4e2a\u4e3b\u8981\u90e8\u5206\u3002<\/p>\n<p><strong>SGA\uff08System Global Area\uff09\uff1a<\/strong><\/p>\n<p>SGA \u662f\u5728\u6570\u636e\u5e93\u5b9e\u4f8b\u542f\u52a8\u65f6\u7531 Oracle \u5206\u914d\u7684\u4e00\u5757\u5185\u5b58\uff0c\u7528\u4e8e\u5b58\u50a8\u6574\u4e2a\u6570\u636e\u5e93\u5b9e\u4f8b\u7684\u5171\u4eab\u6570\u636e\u548c\u63a7\u5236\u4fe1\u606f\u3002SGA \u5305\u62ec\u4ee5\u4e0b\u4e3b\u8981\u7ec4\u4ef6\uff1a<\/p>\n<ol>\n<li>\n<strong>Buffer Cache\uff1a<\/strong><\/p>\n<ul>\n<li>\u7528\u4e8e\u7f13\u5b58\u6570\u636e\u5e93\u5757\uff0c\u51cf\u5c11\u5bf9\u78c1\u76d8\u7684 I\/O \u64cd\u4f5c\u3002\u5305\u62ec\u6570\u636e\u5757\u7f13\u5b58\u548c\u63a7\u5236\u6587\u4ef6\u7f13\u5b58\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Shared Pool\uff1a<\/strong><\/p>\n<ul>\n<li>\u5b58\u50a8 SQL \u8bed\u53e5\u7684\u89e3\u6790\u7ed3\u679c\u3001\u6267\u884c\u8ba1\u5212\u3001\u5171\u4eab\u7684\u6e38\u6807\u548c PL\/SQL \u51fd\u6570\u7b49\u3002\u5305\u62ec\u5e93\u7f13\u5b58\u548c\u6570\u636e\u5b57\u5178\u7f13\u5b58\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Redo Log Buffer\uff1a<\/strong><\/p>\n<ul>\n<li>\u7528\u4e8e\u5b58\u50a8\u91cd\u505a\u65e5\u5fd7\u7684\u4fe1\u606f\uff0c\u4ee5\u652f\u6301\u6570\u636e\u5e93\u7684\u6062\u590d\u548c\u4e8b\u52a1\u7684\u6301\u4e45\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Large Pool\uff1a<\/strong><\/p>\n<ul>\n<li>\u7528\u4e8e\u5b58\u50a8\u5927\u5bf9\u8c61\u3001\u5e76\u884c\u64cd\u4f5c\u7684\u6d88\u606f\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Java Pool\uff1a<\/strong><\/p>\n<ul>\n<li>\u7528\u4e8e\u5b58\u50a8 Java \u5bf9\u8c61\u548c Java \u8fde\u63a5\u7684\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Streams Pool\uff1a<\/strong><\/p>\n<ul>\n<li>\u7528\u4e8e\u652f\u6301 Oracle Streams \u7684\u76f8\u5173\u529f\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>PGA\uff08Program Global Area\uff09\uff1a<\/strong><\/p>\n<p>PGA \u662f\u6bcf\u4e2a\u7528\u6237\u8fdb\u7a0b\u4e13\u7528\u7684\u5185\u5b58\u533a\u57df\uff0c\u7528\u4e8e\u5b58\u50a8\u7528\u6237\u8fdb\u7a0b\u79c1\u6709\u7684\u6570\u636e\u548c\u63a7\u5236\u4fe1\u606f\u3002\u6bcf\u4e2a\u7528\u6237\u8fdb\u7a0b\u90fd\u6709\u81ea\u5df1\u7684 PGA\uff0c\u5305\u62ec\u4ee5\u4e0b\u4e3b\u8981\u7ec4\u4ef6\uff1a<\/p>\n<ol>\n<li>\n<strong>Stack Space\uff1a<\/strong><\/p>\n<ul>\n<li>\u5b58\u50a8\u4f1a\u8bdd\u7ea7\u7684\u53d8\u91cf\u3001\u8fd4\u56de\u5730\u5740\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Session Memory\uff1a<\/strong><\/p>\n<ul>\n<li>\u5305\u62ec\u6392\u5e8f\u533a\u3001\u54c8\u5e0c\u533a\u7b49\u7528\u4e8e\u6267\u884c SQL \u67e5\u8be2\u7684\u5185\u5b58\u7ed3\u6784\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Private SQL Area\uff1a<\/strong><\/p>\n<ul>\n<li>\u5305\u62ec\u8f93\u5165\u7f13\u51b2\u533a\u3001\u89e3\u6790\u5668\u3001\u6267\u884c\u8ba1\u5212\u7b49\uff0c\u7528\u4e8e\u5b58\u50a8\u4e0e\u6267\u884c SQL \u8bed\u53e5\u76f8\u5173\u7684\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u603b\u4f53\u800c\u8a00\uff0cSGA \u662f\u6574\u4e2a\u6570\u636e\u5e93\u5b9e\u4f8b\u5171\u4eab\u7684\u5185\u5b58\u533a\u57df\uff0c\u800c PGA \u662f\u6bcf\u4e2a\u7528\u6237\u8fdb\u7a0b\u79c1\u6709\u7684\u5185\u5b58\u533a\u57df\u3002\u5b83\u4eec\u5171\u540c\u652f\u6301\u6570\u636e\u5e93\u7684\u8fd0\u884c\u548c\u7528\u6237\u7684\u4f1a\u8bdd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Oracle \u6570\u636e\u5e93\u4e2d\uff0c\u5185\u5b58\u7ed3\u6784\u5206\u4e3a SGA\uff08System Global Area\uff09\u548c PGA\uff08Progr [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120],"tags":[],"class_list":["post-15891","post","type-post","status-publish","format-standard","hentry","category-oracel"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/comments?post=15891"}],"version-history":[{"count":1,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15891\/revisions"}],"predecessor-version":[{"id":15892,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15891\/revisions\/15892"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=15891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=15891"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=15891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}