{"id":93770,"date":"2024-10-19T16:46:17","date_gmt":"2024-10-19T08:46:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/93770\/"},"modified":"2024-10-19T16:46:17","modified_gmt":"2024-10-19T08:46:17","slug":"oracle-10g-%e7%b3%bb%e7%b5%b1%e7%ae%a1%e7%90%86%ef%bc%9a%e8%87%aa%e5%8b%95-sga-%e5%85%a7%e5%ad%98%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/93770\/","title":{"rendered":"Oracle 10g \u7cfb\u7d71\u7ba1\u7406\uff1a\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406"},"content":{"rendered":"<h1 id=\"oracle-10g-%e7%b3%bb%e7%b5%b1%e7%ae%a1%e7%90%86%ef%bc%9a%e8%87%aa%e5%8b%95-sga-%e5%85%a7%e5%ad%98%e7%ae%a1%e7%90%86-LCMKcsndUT\">Oracle 10g \u7cfb\u7d71\u7ba1\u7406\uff1a\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406<\/h1>\n<p>\u5728\u73fe\u4ee3\u6578\u64da\u5eab\u7ba1\u7406\u4e2d\uff0c\u5167\u5b58\u7ba1\u7406\u662f\u4e00\u500b\u81f3\u95dc\u91cd\u8981\u7684\u65b9\u9762\u3002Oracle 10g \u5f15\u5165\u4e86\u81ea\u52d5\u7cfb\u7d71\u5168\u5c40\u5340\uff08SGA\uff09\u5167\u5b58\u7ba1\u7406\u7684\u529f\u80fd\uff0c\u9019\u4f7f\u5f97\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u80fd\u5920\u66f4\u6709\u6548\u5730\u914d\u7f6e\u548c\u8abf\u6574\u5167\u5b58\u4f7f\u7528\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e Oracle 10g \u7684\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406\uff0c\u4e26\u63d0\u4f9b\u76f8\u95dc\u7684\u5be6\u7528\u793a\u4f8b\u548c\u6700\u4f73\u5be6\u8e10\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af-sga%ef%bc%9f-LCMKcsndUT\">\u4ec0\u9ebc\u662f SGA\uff1f<\/h2>\n<p>\u7cfb\u7d71\u5168\u5c40\u5340\uff08SGA\uff09\u662f Oracle \u6578\u64da\u5eab\u7684\u4e00\u500b\u91cd\u8981\u7d44\u4ef6\uff0c\u5b83\u662f\u4e00\u500b\u5171\u4eab\u5167\u5b58\u5340\u57df\uff0c\u7528\u65bc\u5b58\u5132\u6578\u64da\u5eab\u7684\u6578\u64da\u548c\u63a7\u5236\u4fe1\u606f\u3002SGA \u5305\u542b\u591a\u500b\u7d44\u4ef6\uff0c\u5982\u6578\u64da\u7de9\u885d\u5340\u3001\u5171\u4eab\u6c60\u3001\u91cd\u505a\u65e5\u8a8c\u7de9\u885d\u5340\u7b49\u3002\u9019\u4e9b\u7d44\u4ef6\u5171\u540c\u5de5\u4f5c\uff0c\u4ee5\u63d0\u9ad8\u6578\u64da\u5eab\u7684\u6027\u80fd\u548c\u6548\u7387\u3002<\/p>\n<h2 id=\"%e8%87%aa%e5%8b%95-sga-%e5%85%a7%e5%ad%98%e7%ae%a1%e7%90%86%e7%9a%84%e5%84%aa%e5%8b%a2-LCMKcsndUT\">\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406\u7684\u512a\u52e2<\/h2>\n<ul>\n<li><strong>\u7c21\u5316\u7ba1\u7406\uff1a<\/strong>\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406\u6e1b\u5c11\u4e86\u624b\u52d5\u8abf\u6574\u5167\u5b58\u53c3\u6578\u7684\u9700\u6c42\uff0c\u964d\u4f4e\u4e86\u7ba1\u7406\u7684\u8907\u96dc\u6027\u3002<\/li>\n<li><strong>\u52d5\u614b\u8abf\u6574\uff1a<\/strong>\u6839\u64da\u6578\u64da\u5eab\u7684\u5be6\u969b\u8ca0\u8f09\uff0c\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406\u53ef\u4ee5\u52d5\u614b\u8abf\u6574\u5167\u5b58\u7684\u5206\u914d\uff0c\u5f9e\u800c\u63d0\u9ad8\u6027\u80fd\u3002<\/li>\n<li><strong>\u8cc7\u6e90\u512a\u5316\uff1a<\/strong>\u901a\u904e\u81ea\u52d5\u8abf\u6574\uff0c\u6578\u64da\u5eab\u80fd\u5920\u66f4\u6709\u6548\u5730\u5229\u7528\u53ef\u7528\u5167\u5b58\uff0c\u907f\u514d\u8cc7\u6e90\u6d6a\u8cbb\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e5%95%9f%e7%94%a8%e8%87%aa%e5%8b%95-sga-%e5%85%a7%e5%ad%98%e7%ae%a1%e7%90%86-LCMKcsndUT\">\u5982\u4f55\u555f\u7528\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406<\/h2>\n<p>\u8981\u555f\u7528\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406\uff0c\u60a8\u9700\u8981\u8a2d\u7f6e\u4ee5\u4e0b\u53c3\u6578\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET SGA_TARGET = 1G SCOPE = SPFILE;\nALTER SYSTEM SET MEMORY_TARGET = 2G SCOPE = SPFILE;<\/code><\/pre>\n<p>\u5728\u9019\u88e1\uff0c<code>SGA_TARGET<\/code> \u662f SGA \u7684\u76ee\u6a19\u5927\u5c0f\uff0c\u800c <code>MEMORY_TARGET<\/code> \u662f\u6574\u500b\u5167\u5b58\u7684\u76ee\u6a19\u5927\u5c0f\u3002\u9019\u4e9b\u8a2d\u7f6e\u5c07\u5728\u4e0b\u6b21\u555f\u52d5\u6578\u64da\u5eab\u6642\u751f\u6548\u3002<\/p>\n<h2 id=\"%e7%9b%a3%e6%8e%a7%e8%87%aa%e5%8b%95-sga-%e5%85%a7%e5%ad%98%e7%ae%a1%e7%90%86-LCMKcsndUT\">\u76e3\u63a7\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406<\/h2>\n<p>\u70ba\u4e86\u78ba\u4fdd\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406\u7684\u6709\u6548\u6027\uff0c\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u9700\u8981\u5b9a\u671f\u76e3\u63a7 SGA \u7684\u4f7f\u7528\u60c5\u6cc1\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u67e5\u8a62\u4f86\u6aa2\u67e5 SGA \u7684\u7576\u524d\u4f7f\u7528\u60c5\u6cc1\uff1a<\/p>\n<pre><code>SELECT * FROM V$SGA;<\/code><\/pre>\n<p>\u9019\u500b\u67e5\u8a62\u5c07\u8fd4\u56de SGA \u7684\u5404\u500b\u7d44\u4ef6\u7684\u5927\u5c0f\u548c\u4f7f\u7528\u60c5\u6cc1\uff0c\u5e6b\u52a9\u7ba1\u7406\u54e1\u4e86\u89e3\u5167\u5b58\u7684\u5206\u914d\u662f\u5426\u5408\u7406\u3002<\/p>\n<h2 id=\"%e6%9c%80%e4%bd%b3%e5%af%a6%e8%b8%90-LCMKcsndUT\">\u6700\u4f73\u5be6\u8e10<\/h2>\n<ul>\n<li><strong>\u5b9a\u671f\u6aa2\u67e5\uff1a<\/strong>\u5b9a\u671f\u6aa2\u67e5 SGA \u7684\u4f7f\u7528\u60c5\u6cc1\uff0c\u6839\u64da\u9700\u8981\u8abf\u6574 <code>SGA_TARGET<\/code> \u548c <code>MEMORY_TARGET<\/code> \u7684\u503c\u3002<\/li>\n<li><strong>\u6027\u80fd\u6e2c\u8a66\uff1a<\/strong>\u5728\u555f\u7528\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406\u5f8c\uff0c\u9032\u884c\u6027\u80fd\u6e2c\u8a66\u4ee5\u78ba\u4fdd\u7cfb\u7d71\u7684\u7a69\u5b9a\u6027\u548c\u6548\u7387\u3002<\/li>\n<li><strong>\u8a18\u9304\u8b8a\u66f4\uff1a<\/strong>\u5c0d\u65bc\u4efb\u4f55\u5167\u5b58\u914d\u7f6e\u7684\u8b8a\u66f4\uff0c\u61c9\u9032\u884c\u8a73\u7d30\u8a18\u9304\uff0c\u4ee5\u4fbf\u672a\u4f86\u7684\u53c3\u8003\u548c\u6545\u969c\u6392\u9664\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-LCMKcsndUT\">\u7d50\u8ad6<\/h2>\n<p>Oracle 10g \u7684\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406\u529f\u80fd\u70ba\u6578\u64da\u5eab\u7ba1\u7406\u63d0\u4f9b\u4e86\u6975\u5927\u7684\u4fbf\u5229\uff0c\u901a\u904e\u52d5\u614b\u8abf\u6574\u5167\u5b58\u5206\u914d\uff0c\u80fd\u5920\u6709\u6548\u63d0\u5347\u6578\u64da\u5eab\u7684\u6027\u80fd\u3002\u96a8\u8457\u6578\u64da\u5eab\u74b0\u5883\u7684\u8b8a\u5316\uff0c\u7ba1\u7406\u54e1\u61c9\u5b9a\u671f\u76e3\u63a7\u548c\u8abf\u6574\u5167\u5b58\u914d\u7f6e\uff0c\u4ee5\u78ba\u4fdd\u7cfb\u7d71\u7684\u6700\u4f73\u904b\u884c\u72c0\u614b\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u548c\u5176\u4ed6\u670d\u52d9\u7684\u4fe1\u606f\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3 Oracle 10g \u7cfb\u7d71\u7ba1\u7406\u4e2d\u7684\u81ea\u52d5 SGA \u5167\u5b58\u7ba1\u7406\uff0c\u63d0\u5347\u6578\u64da\u5eab\u6027\u80fd\u8207\u6548\u7387\uff0c\u7c21\u5316\u5167\u5b58\u914d\u7f6e\u904e\u7a0b\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-93770","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=93770"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93770\/revisions"}],"predecessor-version":[{"id":93771,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93770\/revisions\/93771"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=93770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=93770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=93770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}