{"id":82132,"date":"2024-10-16T18:40:18","date_gmt":"2024-10-16T10:40:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/82132\/"},"modified":"2024-10-16T18:40:18","modified_gmt":"2024-10-16T10:40:18","slug":"ora-00837-specified-value-of-memory_target-greater-than-memory_max_target-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\/82132\/","title":{"rendered":"ORA-00837: Specified value of MEMORY_TARGET greater than MEMORY_MAX_TARGET ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00837-%e6%8c%87%e5%ae%9a%e7%9a%84-memory_target-%e5%80%bc%e5%a4%a7%e6%96%bc-memory_max_target-%e7%9a%84%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-UeWuKenRpz\">ORA-00837: \u6307\u5b9a\u7684 MEMORY_TARGET \u503c\u5927\u65bc MEMORY_MAX_TARGET \u7684\u6545\u969c\u4fee\u5fa9<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \u6578\u64da\u5eab\u6642\uff0c\u60a8\u53ef\u80fd\u6703\u9047\u5230\u932f\u8aa4\u4ee3\u78bc <code>ORA-00837<\/code>\uff0c\u9019\u8868\u793a\u60a8\u6307\u5b9a\u7684 <code>MEMORY_TARGET<\/code> \u503c\u8d85\u904e\u4e86 <code>MEMORY_MAX_TARGET<\/code> \u7684\u9650\u5236\u3002\u9019\u500b\u554f\u984c\u901a\u5e38\u767c\u751f\u5728\u914d\u7f6e\u81ea\u52d5\u5167\u5b58\u7ba1\u7406\uff08Automatic Memory Management, AMM\uff09\u6642\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u6b64\u932f\u8aa4\u7684\u539f\u56e0\u53ca\u5176\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e5%8e%9f%e5%9b%a0-UeWuKenRpz\">\u932f\u8aa4\u539f\u56e0<\/h2>\n<p>Oracle \u6578\u64da\u5eab\u7684\u5167\u5b58\u7ba1\u7406\u662f\u5176\u6027\u80fd\u7684\u95dc\u9375\u7d44\u6210\u90e8\u5206\u3002<code>MEMORY_TARGET<\/code> \u662f Oracle \u7528\u65bc\u81ea\u52d5\u5167\u5b58\u7ba1\u7406\u7684\u7e3d\u5167\u5b58\u91cf\uff0c\u800c <code>MEMORY_MAX_TARGET<\/code> \u5247\u662f\u7cfb\u7d71\u5141\u8a31\u7684\u6700\u5927\u5167\u5b58\u91cf\u3002\u5982\u679c\u60a8\u5728\u521d\u59cb\u5316\u53c3\u6578\u4e2d\u8a2d\u7f6e\u7684 <code>MEMORY_TARGET<\/code> \u503c\u8d85\u904e\u4e86 <code>MEMORY_MAX_TARGET<\/code>\uff0c\u5247\u6703\u5c0e\u81f4 <code>ORA-00837<\/code> \u932f\u8aa4\u3002<\/p>\n<h3 id=\"%e7%a4%ba%e4%be%8b-UeWuKenRpz\">\u793a\u4f8b<\/h3>\n<p>\u5047\u8a2d\u60a8\u5728 <code>init.ora<\/code> \u6587\u4ef6\u4e2d\u8a2d\u7f6e\u4e86\u4ee5\u4e0b\u53c3\u6578\uff1a<\/p>\n<pre><code>MEMORY_TARGET=4G\nMEMORY_MAX_TARGET=3G\n<\/code><\/pre>\n<p>\u5728\u9019\u7a2e\u60c5\u6cc1\u4e0b\uff0c\u7576\u60a8\u555f\u52d5\u6578\u64da\u5eab\u6642\uff0c\u5c07\u6703\u51fa\u73fe <code>ORA-00837<\/code> \u932f\u8aa4\uff0c\u56e0\u70ba <code>MEMORY_TARGET<\/code> \u7684\u503c\uff084G\uff09\u5927\u65bc <code>MEMORY_MAX_TARGET<\/code> \u7684\u503c\uff083G\uff09\u3002<\/p>\n<h2 id=\"%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%a1%88-UeWuKenRpz\">\u89e3\u6c7a\u65b9\u6848<\/h2>\n<p>\u8981\u4fee\u5fa9\u6b64\u932f\u8aa4\uff0c\u60a8\u9700\u8981\u78ba\u4fdd <code>MEMORY_TARGET<\/code> \u7684\u503c\u4e0d\u8d85\u904e <code>MEMORY_MAX_TARGET<\/code>\u3002\u4ee5\u4e0b\u662f\u5e7e\u7a2e\u89e3\u6c7a\u65b9\u6848\uff1a<\/p>\n<ul>\n<li><strong>\u8abf\u6574 MEMORY_TARGET \u503c\uff1a<\/strong>\u5c07 <code>MEMORY_TARGET<\/code> \u7684\u503c\u8a2d\u7f6e\u70ba\u5c0f\u65bc\u6216\u7b49\u65bc <code>MEMORY_MAX_TARGET<\/code> \u7684\u503c\u3002<\/li>\n<li><strong>\u589e\u52a0 MEMORY_MAX_TARGET \u503c\uff1a<\/strong>\u5982\u679c\u60a8\u5e0c\u671b\u4f7f\u7528\u66f4\u9ad8\u7684 <code>MEMORY_TARGET<\/code> \u503c\uff0c\u5247\u9700\u8981\u589e\u52a0 <code>MEMORY_MAX_TARGET<\/code> \u7684\u503c\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b SQL \u547d\u4ee4\u4f86\u5be6\u73fe\uff1a<\/li>\n<\/ul>\n<pre><code>ALTER SYSTEM SET MEMORY_MAX_TARGET=4G SCOPE=SPFILE;\n<\/code><\/pre>\n<p>\u5728\u57f7\u884c\u4e0a\u8ff0\u547d\u4ee4\u5f8c\uff0c\u60a8\u9700\u8981\u91cd\u65b0\u555f\u52d5\u6578\u64da\u5eab\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f%e7%a4%ba%e7%af%84-UeWuKenRpz\">\u6b65\u9a5f\u793a\u7bc4<\/h3>\n<p>\u4ee5\u4e0b\u662f\u4fee\u5fa9 <code>ORA-00837<\/code> \u932f\u8aa4\u7684\u5177\u9ad4\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li>\u6aa2\u67e5\u7576\u524d\u7684\u5167\u5b58\u8a2d\u7f6e\uff1a<\/li>\n<pre><code>SHOW PARAMETER MEMORY_TARGET;\nSHOW PARAMETER MEMORY_MAX_TARGET;\n<\/code><\/pre>\n<li>\u6839\u64da\u9700\u8981\u8abf\u6574\u53c3\u6578\uff1a<\/li>\n<pre><code>ALTER SYSTEM SET MEMORY_MAX_TARGET=4G SCOPE=SPFILE;\nALTER SYSTEM SET MEMORY_TARGET=4G SCOPE=SPFILE;\n<\/code><\/pre>\n<li>\u91cd\u65b0\u555f\u52d5\u6578\u64da\u5eab\uff1a<\/li>\n<pre><code>SHUTDOWN IMMEDIATE;\nSTARTUP;\n<\/code><\/pre>\n<\/ol>\n<h2 id=\"%e7%b8%bd%e7%b5%90-UeWuKenRpz\">\u7e3d\u7d50<\/h2>\n<p>\u5728 Oracle \u6578\u64da\u5eab\u4e2d\uff0c<code>ORA-00837<\/code> \u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc <code>MEMORY_TARGET<\/code> \u7684\u8a2d\u7f6e\u8d85\u904e\u4e86 <code>MEMORY_MAX_TARGET<\/code>\u3002\u901a\u904e\u8abf\u6574\u9019\u4e9b\u53c3\u6578\uff0c\u60a8\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u4e86\u89e3\u5167\u5b58\u7ba1\u7406\u7684\u57fa\u672c\u539f\u5247\u5c0d\u65bc\u7dad\u8b77\u6578\u64da\u5eab\u7684\u6027\u80fd\u81f3\u95dc\u91cd\u8981\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u9ad8\u6548\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\u8f15\u9b06\u7ba1\u7406\u60a8\u7684\u6578\u64da\u5eab\u548c\u61c9\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fix ORA-00837: MEMORY_TARGET exceeds MEMORY_MAX_TARGET in Oracle. Learn troubleshooting steps for effective remote resolution of this error.<\/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-82132","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82132","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=82132"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82132\/revisions"}],"predecessor-version":[{"id":82133,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82132\/revisions\/82133"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=82132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=82132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=82132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}