{"id":82136,"date":"2024-10-16T18:42:17","date_gmt":"2024-10-16T10:42:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/82136\/"},"modified":"2024-10-16T18:42:18","modified_gmt":"2024-10-16T10:42:18","slug":"ora-00840-pga_aggregate_target-cannot-be-modified-to-the-specified-value-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","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/82136\/","title":{"rendered":"ORA-00840: PGA_AGGREGATE_TARGET cannot be modified to the specified value ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00840-pga_aggregate_target-%e4%b8%8d%e8%83%bd%e8%a2%ab%e4%bf%ae%e6%94%b9%e7%82%ba%e6%8c%87%e5%ae%9a%e7%9a%84%e5%80%bc-oracle%e5%a0%b1%e9%8c%af%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e9%81%a0-vZaIdURKVO\">ORA-00840: PGA_AGGREGATE_TARGET \u4e0d\u80fd\u88ab\u4fee\u6539\u70ba\u6307\u5b9a\u7684\u503c &#8211; ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528Oracle\u6578\u64da\u5eab\u7684\u904e\u7a0b\u4e2d\uff0c\u9047\u5230\u932f\u8aa4\u4ee3\u78bc <code>ORA-00840<\/code> \u662f\u4e00\u500b\u76f8\u5c0d\u5e38\u898b\u7684\u554f\u984c\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8868\u793a\u7cfb\u7d71\u7121\u6cd5\u5c07 <code>PGA_AGGREGATE_TARGET<\/code> \u53c3\u6578\u4fee\u6539\u70ba\u6307\u5b9a\u7684\u503c\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u9019\u4e00\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af-pga_aggregate_target%ef%bc%9f-vZaIdURKVO\">\u4ec0\u9ebc\u662f PGA_AGGREGATE_TARGET\uff1f<\/h2>\n<p><code>PGA_AGGREGATE_TARGET<\/code> \u662fOracle\u6578\u64da\u5eab\u4e2d\u7684\u4e00\u500b\u521d\u59cb\u5316\u53c3\u6578\uff0c\u7528\u65bc\u8a2d\u5b9a\u7a0b\u5e8f\u5168\u5c40\u5340\uff08PGA\uff09\u7684\u76ee\u6a19\u5927\u5c0f\u3002PGA \u662f\u4e00\u500b\u5167\u5b58\u5340\u57df\uff0c\u5c08\u9580\u7528\u65bc\u5b58\u5132\u7528\u6236\u6703\u8a71\u7684\u6578\u64da\u548c\u63a7\u5236\u4fe1\u606f\u3002\u9019\u500b\u53c3\u6578\u7684\u8a2d\u7f6e\u5c0d\u65bc\u6578\u64da\u5eab\u7684\u6027\u80fd\u81f3\u95dc\u91cd\u8981\uff0c\u56e0\u70ba\u5b83\u5f71\u97ff\u5230\u5167\u5b58\u7684\u5206\u914d\u548c\u4f7f\u7528\u6548\u7387\u3002<\/p>\n<h2 id=\"ora-00840-%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-vZaIdURKVO\">ORA-00840 \u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>\u7576\u4f60\u5617\u8a66\u4fee\u6539 <code>PGA_AGGREGATE_TARGET<\/code> \u7684\u503c\u6642\uff0c\u53ef\u80fd\u6703\u9047\u5230 <code>ORA-00840<\/code> \u932f\u8aa4\u3002\u9019\u901a\u5e38\u662f\u7531\u65bc\u4ee5\u4e0b\u5e7e\u500b\u539f\u56e0\uff1a<\/p>\n<ul>\n<li><strong>\u5167\u5b58\u4e0d\u8db3\uff1a<\/strong>\u5982\u679c\u7cfb\u7d71\u7684\u53ef\u7528\u5167\u5b58\u4e0d\u8db3\u4ee5\u652f\u6301\u65b0\u7684 <code>PGA_AGGREGATE_TARGET<\/code> \u503c\uff0c\u5247\u6703\u51fa\u73fe\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u4e0d\u6b63\u78ba\u7684\u503c\uff1a<\/strong>\u5982\u679c\u6307\u5b9a\u7684\u503c\u8d85\u904e\u4e86\u7cfb\u7d71\u7684\u6700\u5927\u9650\u5236\uff0c\u5247\u6703\u5c0e\u81f4\u932f\u8aa4\u3002<\/li>\n<li><strong>\u53c3\u6578\u8a2d\u7f6e\u885d\u7a81\uff1a<\/strong>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u5176\u4ed6\u5167\u5b58\u76f8\u95dc\u7684\u53c3\u6578\uff08\u5982 <code>SGA_TARGET<\/code>\uff09\u7684\u8a2d\u7f6e\u53ef\u80fd\u6703\u5f71\u97ff <code>PGA_AGGREGATE_TARGET<\/code> \u7684\u4fee\u6539\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e4%bf%ae%e5%be%a9-ora-00840-%e9%8c%af%e8%aa%a4-vZaIdURKVO\">\u5982\u4f55\u4fee\u5fa9 ORA-00840 \u932f\u8aa4<\/h2>\n<p>\u4fee\u5fa9 <code>ORA-00840<\/code> \u932f\u8aa4\u7684\u904e\u7a0b\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u5e7e\u500b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e7%95%b6%e5%89%8d%e7%9a%84-pga-%e8%a8%ad%e7%bd%ae-vZaIdURKVO\">1. \u6aa2\u67e5\u7576\u524d\u7684 PGA \u8a2d\u7f6e<\/h3>\n<pre><code>SHOW PARAMETER PGA_AGGREGATE_TARGET;<\/code><\/pre>\n<p>\u9996\u5148\uff0c\u4f7f\u7528\u4e0a\u8ff0\u547d\u4ee4\u6aa2\u67e5\u7576\u524d\u7684 <code>PGA_AGGREGATE_TARGET<\/code> \u8a2d\u7f6e\uff0c\u4e26\u78ba\u4fdd\u4f60\u4e86\u89e3\u7576\u524d\u7684\u5167\u5b58\u4f7f\u7528\u60c5\u6cc1\u3002<\/p>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5%e7%b3%bb%e7%b5%b1%e5%85%a7%e5%ad%98-vZaIdURKVO\">2. \u6aa2\u67e5\u7cfb\u7d71\u5167\u5b58<\/h3>\n<p>\u4f7f\u7528\u64cd\u4f5c\u7cfb\u7d71\u7684\u5de5\u5177\uff08\u5982 <code>top<\/code> \u6216 <code>free<\/code> \u547d\u4ee4\uff09\u6aa2\u67e5\u7cfb\u7d71\u7684\u53ef\u7528\u5167\u5b58\u3002\u5982\u679c\u5167\u5b58\u4e0d\u8db3\uff0c\u8003\u616e\u91cb\u653e\u4e00\u4e9b\u8cc7\u6e90\u6216\u589e\u52a0\u7269\u7406\u5167\u5b58\u3002<\/p>\n<h3 id=\"3-%e8%aa%bf%e6%95%b4-pga_aggregate_target-%e7%9a%84%e5%80%bc-vZaIdURKVO\">3. \u8abf\u6574 PGA_AGGREGATE_TARGET \u7684\u503c<\/h3>\n<p>\u5982\u679c\u78ba\u5b9a\u7cfb\u7d71\u6709\u8db3\u5920\u7684\u5167\u5b58\uff0c\u53ef\u4ee5\u5617\u8a66\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u4fee\u6539 <code>PGA_AGGREGATE_TARGET<\/code> \u7684\u503c\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET PGA_AGGREGATE_TARGET = \u65b0\u7684\u503c SCOPE=BOTH;<\/code><\/pre>\n<p>\u8acb\u78ba\u4fdd\u65b0\u7684\u503c\u5728\u7cfb\u7d71\u7684\u6700\u5927\u9650\u5236\u7bc4\u570d\u5167\u3002<\/p>\n<h3 id=\"4-%e6%aa%a2%e6%9f%a5%e5%85%b6%e4%bb%96%e5%85%a7%e5%ad%98%e5%8f%83%e6%95%b8-vZaIdURKVO\">4. \u6aa2\u67e5\u5176\u4ed6\u5167\u5b58\u53c3\u6578<\/h3>\n<p>\u5982\u679c\u554f\u984c\u4ecd\u7136\u5b58\u5728\uff0c\u6aa2\u67e5\u5176\u4ed6\u76f8\u95dc\u7684\u5167\u5b58\u53c3\u6578\uff0c\u5982 <code>SGA_TARGET<\/code> \u548c <code>MEMORY_TARGET<\/code>\uff0c\u78ba\u4fdd\u5b83\u5011\u7684\u8a2d\u7f6e\u4e0d\u6703\u5f71\u97ff <code>PGA_AGGREGATE_TARGET<\/code> \u7684\u4fee\u6539\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-vZaIdURKVO\">\u7e3d\u7d50<\/h2>\n<p>\u5728Oracle\u6578\u64da\u5eab\u4e2d\uff0c<code>ORA-00840<\/code> \u932f\u8aa4\u901a\u5e38\u8207 <code>PGA_AGGREGATE_TARGET<\/code> \u53c3\u6578\u7684\u8a2d\u7f6e\u6709\u95dc\u3002\u901a\u904e\u6aa2\u67e5\u7576\u524d\u7684\u8a2d\u7f6e\u3001\u7cfb\u7d71\u5167\u5b58\u4ee5\u53ca\u5176\u4ed6\u76f8\u95dc\u53c3\u6578\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u9019\u4e00\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6548\u904b\u884c\u7684\u6578\u64da\u5eab\u74b0\u5883\uff0c\u5408\u7406\u914d\u7f6e\u5167\u5b58\u53c3\u6578\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002<\/p>\n<p>\u5982\u679c\u60a8\u5728\u5c0b\u627e\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u5e6b\u52a9\u60a8\u512a\u5316\u6578\u64da\u5eab\u6027\u80fd\uff0c\u78ba\u4fdd\u696d\u52d9\u904b\u884c\u9806\u5229\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot and resolve the ORA-00840 error in Oracle related to PGA_AGGREGATE_TARGET modifications. Expert remote assistance available.<\/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-82136","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82136","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=82136"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82136\/revisions"}],"predecessor-version":[{"id":82137,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82136\/revisions\/82137"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=82136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=82136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=82136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}