{"id":84681,"date":"2024-10-17T09:49:18","date_gmt":"2024-10-17T01:49:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/84681\/"},"modified":"2024-10-17T09:49:18","modified_gmt":"2024-10-17T01:49:18","slug":"ora-10261-%e9%99%90%e5%88%b6-pga-%e5%a0%86%e7%9a%84%e5%a4%a7%e5%b0%8f%e3%80%82oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/84681\/","title":{"rendered":"ORA-10261: \u9650\u5236 PGA \u5806\u7684\u5927\u5c0f\u3002ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-10261-%e9%99%90%e5%88%b6-pga-%e5%a0%86%e7%9a%84%e5%a4%a7%e5%b0%8f-oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86-AiFzDnGOUu\">ORA-10261: \u9650\u5236 PGA \u5806\u7684\u5927\u5c0f &#8211; ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \u6578\u64da\u5eab\u6642\uff0c\u958b\u767c\u8005\u548c\u7cfb\u7d71\u7ba1\u7406\u54e1\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662f <strong>ORA-10261<\/strong>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207 PGA\uff08Program Global Area\uff09\u5806\u7684\u5927\u5c0f\u9650\u5236\u6709\u95dc\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u9019\u500b\u932f\u8aa4\u7684\u6210\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u548c\u9060\u7a0b\u8655\u7406\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af-pga%ef%bc%9f-AiFzDnGOUu\">\u4ec0\u9ebc\u662f PGA\uff1f<\/h2>\n<p>PGA \u662f Oracle \u6578\u64da\u5eab\u4e2d\u7528\u65bc\u5b58\u5132\u7528\u6236\u6703\u8a71\u7684\u6578\u64da\u548c\u63a7\u5236\u4fe1\u606f\u7684\u5167\u5b58\u5340\u57df\u3002\u5b83\u5305\u542b\u4e86\u7528\u6236\u7684\u8b8a\u91cf\u3001\u57f7\u884c\u7684 SQL \u8a9e\u53e5\u3001\u6392\u5e8f\u64cd\u4f5c\u7684\u4e2d\u9593\u7d50\u679c\u7b49\u3002PGA \u7684\u5927\u5c0f\u76f4\u63a5\u5f71\u97ff\u5230\u6578\u64da\u5eab\u7684\u6027\u80fd\uff0c\u7279\u5225\u662f\u5728\u8655\u7406\u5927\u91cf\u6578\u64da\u6642\u3002<\/p>\n<h2 id=\"ora-10261-%e9%8c%af%e8%aa%a4%e7%9a%84%e6%88%90%e5%9b%a0-AiFzDnGOUu\">ORA-10261 \u932f\u8aa4\u7684\u6210\u56e0<\/h2>\n<p>ORA-10261 \u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>\u7576 PGA \u7684\u5927\u5c0f\u8d85\u904e\u4e86\u7cfb\u7d71\u8a2d\u5b9a\u7684\u9650\u5236\u3002<\/li>\n<li>\u5728\u57f7\u884c\u67d0\u4e9b\u9700\u8981\u5927\u91cf\u5167\u5b58\u7684\u64cd\u4f5c\u6642\uff0c\u4f8b\u5982\u5927\u898f\u6a21\u7684\u6392\u5e8f\u6216\u54c8\u5e0c\u9023\u63a5\u3002<\/li>\n<li>\u6578\u64da\u5eab\u7684\u914d\u7f6e\u4e0d\u7576\uff0c\u5c0e\u81f4 PGA \u7684\u4f7f\u7528\u4e0d\u5408\u7406\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e8%ad%98%e5%88%a5-ora-10261-%e9%8c%af%e8%aa%a4-AiFzDnGOUu\">\u5982\u4f55\u8b58\u5225 ORA-10261 \u932f\u8aa4<\/h2>\n<p>\u7576\u51fa\u73fe ORA-10261 \u932f\u8aa4\u6642\uff0c\u6578\u64da\u5eab\u6703\u8fd4\u56de\u4e00\u689d\u932f\u8aa4\u4fe1\u606f\uff0c\u901a\u5e38\u6703\u5305\u542b\u4ee5\u4e0b\u5167\u5bb9\uff1a<\/p>\n<pre>\nORA-10261: \u9650\u5236 PGA \u5806\u7684\u5927\u5c0f\n<\/pre>\n<p>\u9019\u610f\u5473\u8457\u7576\u524d\u7684\u64cd\u4f5c\u56e0\u70ba\u8d85\u904e\u4e86 PGA \u7684\u5927\u5c0f\u9650\u5236\u800c\u7121\u6cd5\u5b8c\u6210\u3002\u6b64\u6642\uff0c\u7cfb\u7d71\u7ba1\u7406\u54e1\u9700\u8981\u6aa2\u67e5 PGA \u7684\u914d\u7f6e\u548c\u4f7f\u7528\u60c5\u6cc1\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-AiFzDnGOUu\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u8981\u4fee\u5fa9 ORA-10261 \u932f\u8aa4\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<ol>\n<li><strong>\u6aa2\u67e5 PGA \u7684\u7576\u524d\u914d\u7f6e\uff1a<\/strong>\u4f7f\u7528\u4ee5\u4e0b SQL \u67e5\u8a62\u4f86\u6aa2\u67e5 PGA \u7684\u5927\u5c0f\u548c\u4f7f\u7528\u60c5\u6cc1\uff1a<\/li>\n<pre><code>SELECT name, value FROM v$parameter WHERE name LIKE 'pga_%';<\/code><\/pre>\n<li><strong>\u8abf\u6574 PGA \u7684\u5927\u5c0f\uff1a<\/strong>\u5982\u679c\u767c\u73fe PGA \u7684\u5927\u5c0f\u4e0d\u8db3\uff0c\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b SQL \u8a9e\u53e5\u4f86\u8abf\u6574\uff1a<\/li>\n<pre><code>ALTER SYSTEM SET pga_aggregate_target =  SCOPE=BOTH;<\/code><\/pre>\n<li><strong>\u76e3\u63a7 PGA \u7684\u4f7f\u7528\uff1a<\/strong>\u4f7f\u7528\u4ee5\u4e0b\u67e5\u8a62\u4f86\u76e3\u63a7 PGA \u7684\u4f7f\u7528\u60c5\u6cc1\uff1a<\/li>\n<pre><code>SELECT * FROM v$pgastat;<\/code><\/pre>\n<li><strong>\u512a\u5316 SQL \u67e5\u8a62\uff1a<\/strong>\u6aa2\u67e5\u5c0e\u81f4\u9ad8 PGA \u4f7f\u7528\u7684 SQL \u67e5\u8a62\uff0c\u4e26\u9032\u884c\u512a\u5316\u3002<\/li>\n<\/ol>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86-ora-10261-%e9%8c%af%e8%aa%a4-AiFzDnGOUu\">\u9060\u7a0b\u8655\u7406 ORA-10261 \u932f\u8aa4<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u7cfb\u7d71\u7ba1\u7406\u54e1\u53ef\u80fd\u7121\u6cd5\u76f4\u63a5\u8a2a\u554f\u6578\u64da\u5eab\u4f3a\u670d\u5668\u3002\u6b64\u6642\uff0c\u53ef\u4ee5\u8003\u616e\u4f7f\u7528\u9060\u7a0b\u7ba1\u7406\u5de5\u5177\u4f86\u9032\u884c\u6545\u969c\u6392\u9664\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u9060\u7a0b\u8655\u7406\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528 SQL*Plus\uff1a<\/strong>\u901a\u904e SSH \u9023\u63a5\u5230\u6578\u64da\u5eab\u4f3a\u670d\u5668\uff0c\u4f7f\u7528 SQL*Plus \u57f7\u884c\u4e0a\u8ff0\u67e5\u8a62\u548c\u547d\u4ee4\u3002<\/li>\n<li><strong>\u4f7f\u7528 Oracle Enterprise Manager\uff1a<\/strong>\u9019\u662f\u4e00\u500b\u5716\u5f62\u5316\u7684\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u9060\u7a0b\u76e3\u63a7\u548c\u7ba1\u7406 Oracle \u6578\u64da\u5eab\u3002<\/li>\n<li><strong>\u4f7f\u7528 AWR \u5831\u544a\uff1a<\/strong>\u751f\u6210 AWR \u5831\u544a\u4ee5\u5206\u6790\u6027\u80fd\u554f\u984c\uff0c\u4e26\u627e\u51fa\u9ad8 PGA \u4f7f\u7528\u7684\u6839\u672c\u539f\u56e0\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-AiFzDnGOUu\">\u7e3d\u7d50<\/h2>\n<p>ORA-10261 \u932f\u8aa4\u662f Oracle \u6578\u64da\u5eab\u4e2d\u5e38\u898b\u7684\u554f\u984c\u4e4b\u4e00\uff0c\u4e3b\u8981\u8207 PGA \u5806\u7684\u5927\u5c0f\u9650\u5236\u6709\u95dc\u3002\u901a\u904e\u6aa2\u67e5\u548c\u8abf\u6574 PGA \u7684\u914d\u7f6e\u3001\u512a\u5316 SQL \u67e5\u8a62\u4ee5\u53ca\u4f7f\u7528\u9060\u7a0b\u7ba1\u7406\u5de5\u5177\uff0c\u7cfb\u7d71\u7ba1\u7406\u54e1\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u904b\u884c\u7684\u61c9\u7528\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\u4e5f\u662f\u81f3\u95dc\u91cd\u8981\u7684\uff0c\u9019\u6a23\u53ef\u4ee5\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u6027\u80fd\u548c\u53ef\u7528\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-10261 \u932f\u8aa4\uff0c\u9650\u5236 PGA \u5806\u5927\u5c0f\u7684\u6545\u969c\u4fee\u5fa9\u8207\u9060\u7a0b\u8655\u7406\u6307\u5357\uff0c\u52a9\u60a8\u5feb\u901f\u6062\u5fa9 Oracle \u6578\u64da\u5eab\u6027\u80fd\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-84681","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/84681","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=84681"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/84681\/revisions"}],"predecessor-version":[{"id":84682,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/84681\/revisions\/84682"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=84681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=84681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=84681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}