{"id":82203,"date":"2024-10-16T18:46:16","date_gmt":"2024-10-16T10:46:16","guid":{"rendered":"https:\/\/server.hk\/cnblog\/82203\/"},"modified":"2024-10-16T18:46:16","modified_gmt":"2024-10-16T10:46:16","slug":"ora-00850-pga_aggregate_target-string-cannot-be-set-to-more-than-memory_max_target-string-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\/82203\/","title":{"rendered":"ORA-00850: PGA_AGGREGATE_TARGET string cannot be set to more than MEMORY_MAX_TARGET string. ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00850-pga_aggregate_target-%e5%ad%97%e4%b8%b2%e4%b8%8d%e8%83%bd%e8%a8%ad%e7%bd%ae%e7%82%ba%e8%b6%85%e9%81%8e-memory_max_target-%e5%ad%97%e4%b8%b2%e7%9a%84%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-JKwISeWuGB\">ORA-00850: PGA_AGGREGATE_TARGET \u5b57\u4e32\u4e0d\u80fd\u8a2d\u7f6e\u70ba\u8d85\u904e MEMORY_MAX_TARGET \u5b57\u4e32\u7684\u6545\u969c\u4fee\u5fa9<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \u6578\u64da\u5eab\u6642\uff0c\u9047\u5230\u932f\u8aa4\u4ee3\u78bc <code>ORA-00850<\/code> \u662f\u4e00\u500b\u5e38\u898b\u7684\u554f\u984c\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u5617\u8a66\u8a2d\u7f6e <code>PGA_AGGREGATE_TARGET<\/code> \u53c3\u6578\u6642\uff0c\u7576\u5176\u503c\u8d85\u904e\u4e86 <code>MEMORY_MAX_TARGET<\/code> \u7684\u9650\u5236\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u9019\u500b\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e5%8e%9f%e5%9b%a0%e5%88%86%e6%9e%90-JKwISeWuGB\">\u932f\u8aa4\u539f\u56e0\u5206\u6790<\/h2>\n<p>Oracle \u6578\u64da\u5eab\u7684 <code>PGA_AGGREGATE_TARGET<\/code> \u53c3\u6578\u7528\u65bc\u63a7\u5236\u7a0b\u5e8f\u5168\u5c40\u5340\uff08PGA\uff09\u7684\u5927\u5c0f\uff0c\u9019\u662f\u7528\u65bc\u5b58\u5132\u7528\u6236\u6703\u8a71\u7684\u79c1\u6709\u6578\u64da\u548c\u63a7\u5236\u4fe1\u606f\u7684\u5167\u5b58\u5340\u57df\u3002\u53e6\u4e00\u65b9\u9762\uff0c<code>MEMORY_MAX_TARGET<\/code> \u53c3\u6578\u5247\u5b9a\u7fa9\u4e86\u6578\u64da\u5eab\u53ef\u4ee5\u4f7f\u7528\u7684\u6700\u5927\u5167\u5b58\u91cf\u3002<\/p>\n<p>\u7576 <code>PGA_AGGREGATE_TARGET<\/code> \u7684\u8a2d\u7f6e\u8d85\u904e <code>MEMORY_MAX_TARGET<\/code> \u6642\uff0cOracle \u6578\u64da\u5eab\u5c07\u7121\u6cd5\u5206\u914d\u6240\u9700\u7684\u5167\u5b58\uff0c\u5f9e\u800c\u5f15\u767c <code>ORA-00850<\/code> \u932f\u8aa4\u3002\u9019\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>\u6578\u64da\u5eab\u7684\u5167\u5b58\u914d\u7f6e\u4e0d\u7576\u3002<\/li>\n<li>\u5728\u5347\u7d1a\u6216\u8abf\u6574\u5167\u5b58\u53c3\u6578\u6642\uff0c\u672a\u6b63\u78ba\u8003\u616e\u5230\u5404\u500b\u53c3\u6578\u4e4b\u9593\u7684\u4f9d\u8cf4\u95dc\u4fc2\u3002<\/li>\n<li>\u7cfb\u7d71\u8cc7\u6e90\u4e0d\u8db3\uff0c\u5c0e\u81f4\u7121\u6cd5\u6eff\u8db3\u65b0\u7684\u5167\u5b58\u9700\u6c42\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-JKwISeWuGB\">\u5f71\u97ff<\/h2>\n<p>\u9019\u500b\u932f\u8aa4\u6703\u5c0e\u81f4\u6578\u64da\u5eab\u7121\u6cd5\u6b63\u5e38\u904b\u884c\uff0c\u5f71\u97ff\u5230\u61c9\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u53ef\u7528\u6027\u3002\u7279\u5225\u662f\u5728\u9ad8\u8ca0\u8f09\u7684\u74b0\u5883\u4e2d\uff0c\u9019\u53ef\u80fd\u6703\u5c0e\u81f4\u7528\u6236\u7121\u6cd5\u8a2a\u554f\u6578\u64da\u5eab\uff0c\u5f9e\u800c\u5f71\u97ff\u696d\u52d9\u904b\u4f5c\u3002<\/p>\n<h2 id=\"%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%a1%88-JKwISeWuGB\">\u89e3\u6c7a\u65b9\u6848<\/h2>\n<p>\u8981\u89e3\u6c7a <code>ORA-00850<\/code> \u932f\u8aa4\uff0c\u53ef\u4ee5\u63a1\u53d6\u4ee5\u4e0b\u5e7e\u500b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e7%95%b6%e5%89%8d%e5%85%a7%e5%ad%98%e8%a8%ad%e7%bd%ae-JKwISeWuGB\">1. \u6aa2\u67e5\u7576\u524d\u5167\u5b58\u8a2d\u7f6e<\/h3>\n<pre><code>SHOW PARAMETER MEMORY_MAX_TARGET;\nSHOW PARAMETER PGA_AGGREGATE_TARGET;<\/code><\/pre>\n<p>\u9996\u5148\uff0c\u4f7f\u7528\u4e0a\u8ff0\u547d\u4ee4\u6aa2\u67e5\u7576\u524d\u7684 <code>MEMORY_MAX_TARGET<\/code> \u548c <code>PGA_AGGREGATE_TARGET<\/code> \u7684\u503c\u3002\u78ba\u4fdd <code>PGA_AGGREGATE_TARGET<\/code> \u7684\u503c\u4e0d\u8d85\u904e <code>MEMORY_MAX_TARGET<\/code>\u3002<\/p>\n<h3 id=\"2-%e8%aa%bf%e6%95%b4-pga_aggregate_target-JKwISeWuGB\">2. \u8abf\u6574 PGA_AGGREGATE_TARGET<\/h3>\n<p>\u5982\u679c <code>PGA_AGGREGATE_TARGET<\/code> \u7684\u503c\u8d85\u904e\u4e86 <code>MEMORY_MAX_TARGET<\/code>\uff0c\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u8abf\u6574\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET PGA_AGGREGATE_TARGET =  SCOPE=BOTH;<\/code><\/pre>\n<p>\u8acb\u78ba\u4fdd\u65b0\u503c\u5c0f\u65bc\u6216\u7b49\u65bc <code>MEMORY_MAX_TARGET<\/code> \u7684\u503c\u3002<\/p>\n<h3 id=\"3-%e8%aa%bf%e6%95%b4-memory_max_target-JKwISeWuGB\">3. \u8abf\u6574 MEMORY_MAX_TARGET<\/h3>\n<p>\u5982\u679c\u9700\u8981\u589e\u52a0 <code>PGA_AGGREGATE_TARGET<\/code> \u7684\u503c\uff0c\u53ef\u4ee5\u8003\u616e\u8abf\u6574 <code>MEMORY_MAX_TARGET<\/code>\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u5be6\u73fe\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET MEMORY_MAX_TARGET =  SCOPE=SPFILE;<\/code><\/pre>\n<p>\u8acb\u6ce8\u610f\uff0c\u9019\u9700\u8981\u91cd\u555f\u6578\u64da\u5eab\u624d\u80fd\u751f\u6548\u3002<\/p>\n<h3 id=\"4-%e7%9b%a3%e6%8e%a7%e5%85%a7%e5%ad%98%e4%bd%bf%e7%94%a8%e6%83%85%e6%b3%81-JKwISeWuGB\">4. \u76e3\u63a7\u5167\u5b58\u4f7f\u7528\u60c5\u6cc1<\/h3>\n<p>\u5728\u9032\u884c\u4efb\u4f55\u8abf\u6574\u5f8c\uff0c\u5efa\u8b70\u5b9a\u671f\u76e3\u63a7\u5167\u5b58\u4f7f\u7528\u60c5\u6cc1\uff0c\u4ee5\u78ba\u4fdd\u7cfb\u7d71\u904b\u884c\u7a69\u5b9a\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u67e5\u770b\u5167\u5b58\u4f7f\u7528\u60c5\u6cc1\uff1a<\/p>\n<pre><code>SELECT * FROM V$SGA;\nSELECT * FROM V$PGA_TARGET_ADVICE;<\/code><\/pre>\n<h2 id=\"%e7%b8%bd%e7%b5%90-JKwISeWuGB\">\u7e3d\u7d50<\/h2>\n<p>\u5728 Oracle \u6578\u64da\u5eab\u4e2d\uff0c<code>ORA-00850<\/code> \u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc <code>PGA_AGGREGATE_TARGET<\/code> \u7684\u8a2d\u7f6e\u8d85\u904e\u4e86 <code>MEMORY_MAX_TARGET<\/code>\u3002\u901a\u904e\u6aa2\u67e5\u548c\u8abf\u6574\u9019\u4e9b\u53c3\u6578\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u9019\u4e00\u554f\u984c\uff0c\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u7a69\u5b9a\u904b\u884c\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6548\u80fd\u7684\u61c9\u7528\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u670d\u52d9\u4e5f\u662f\u81f3\u95dc\u91cd\u8981\u7684\uff0c\u9019\u6a23\u53ef\u4ee5\u63d0\u4f9b\u66f4\u597d\u7684\u8cc7\u6e90\u914d\u7f6e\u548c\u6027\u80fd\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to resolve ORA-00850: PGA_AGGREGATE_TARGET cannot exceed MEMORY_MAX_TARGET in Oracle. Troubleshooting tips for effective remote handling.<\/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-82203","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82203","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=82203"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82203\/revisions"}],"predecessor-version":[{"id":82204,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82203\/revisions\/82204"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=82203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=82203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=82203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}