{"id":82134,"date":"2024-10-16T18:41:16","date_gmt":"2024-10-16T10:41:16","guid":{"rendered":"https:\/\/server.hk\/cnblog\/82134\/"},"modified":"2024-10-16T18:41:16","modified_gmt":"2024-10-16T10:41:16","slug":"ora-00838-specified-value-of-memory_target-is-too-small-needs-to-be-at-least-stringm-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\/82134\/","title":{"rendered":"ORA-00838: Specified value of MEMORY_TARGET is too small, needs to be at least stringM ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00838-%e6%8c%87%e5%ae%9a%e7%9a%84-memory_target-%e5%80%bc%e9%81%8e%e5%b0%8f%ef%bc%8c%e8%87%b3%e5%b0%91%e9%9c%80%e8%a6%81-stringm-%e7%9a%84%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e9%81%a0%e7%a8%8b-qKtlabXXYo\">ORA-00838: \u6307\u5b9a\u7684 MEMORY_TARGET \u503c\u904e\u5c0f\uff0c\u81f3\u5c11\u9700\u8981 stringM \u7684\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \u6578\u64da\u5eab\u6642\uff0c\u9047\u5230\u932f\u8aa4\u4ee3\u78bc <code>ORA-00838<\/code> \u662f\u4e00\u500b\u5e38\u898b\u7684\u554f\u984c\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8868\u793a\u7cfb\u7d71\u7684 <code>MEMORY_TARGET<\/code> \u8a2d\u7f6e\u904e\u5c0f\uff0c\u7121\u6cd5\u6eff\u8db3\u6578\u64da\u5eab\u7684\u904b\u884c\u9700\u6c42\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u9019\u500b\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e5%8e%9f%e5%9b%a0%e5%88%86%e6%9e%90-qKtlabXXYo\">\u932f\u8aa4\u539f\u56e0\u5206\u6790<\/h2>\n<p>Oracle \u6578\u64da\u5eab\u4f7f\u7528 <code>MEMORY_TARGET<\/code> \u53c3\u6578\u4f86\u81ea\u52d5\u7ba1\u7406\u5167\u5b58\u7684\u5206\u914d\u3002\u7576\u9019\u500b\u53c3\u6578\u7684\u503c\u8a2d\u7f6e\u5f97\u904e\u5c0f\u6642\uff0c\u6578\u64da\u5eab\u5728\u555f\u52d5\u6216\u904b\u884c\u904e\u7a0b\u4e2d\u53ef\u80fd\u7121\u6cd5\u7372\u5f97\u8db3\u5920\u7684\u5167\u5b58\u8cc7\u6e90\uff0c\u5f9e\u800c\u5c0e\u81f4 <code>ORA-00838<\/code> \u932f\u8aa4\u7684\u51fa\u73fe\u3002\u9019\u500b\u554f\u984c\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>\u6578\u64da\u5eab\u7684\u5de5\u4f5c\u8ca0\u8f09\u589e\u52a0\uff0c\u5c0e\u81f4\u5167\u5b58\u9700\u6c42\u4e0a\u5347\u3002<\/li>\n<li>\u5728\u5347\u7d1a\u6216\u914d\u7f6e\u6578\u64da\u5eab\u6642\uff0c\u672a\u6b63\u78ba\u8a2d\u7f6e <code>MEMORY_TARGET<\/code> \u7684\u503c\u3002<\/li>\n<li>\u7cfb\u7d71\u7684\u7269\u7406\u5167\u5b58\u4e0d\u8db3\uff0c\u7121\u6cd5\u6eff\u8db3\u6578\u64da\u5eab\u7684\u9700\u6c42\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-qKtlabXXYo\">\u5f71\u97ff<\/h2>\n<p>\u7576\u51fa\u73fe <code>ORA-00838<\/code> \u932f\u8aa4\u6642\uff0c\u6578\u64da\u5eab\u5c07\u7121\u6cd5\u6b63\u5e38\u555f\u52d5\u6216\u904b\u884c\uff0c\u9019\u6703\u5f71\u97ff\u5230\u61c9\u7528\u7a0b\u5e8f\u7684\u53ef\u7528\u6027\uff0c\u9032\u800c\u5f71\u97ff\u696d\u52d9\u904b\u4f5c\u3002\u7279\u5225\u662f\u5728\u9ad8\u5cf0\u671f\uff0c\u9019\u7a2e\u60c5\u6cc1\u53ef\u80fd\u5c0e\u81f4\u696d\u52d9\u4e2d\u65b7\uff0c\u9020\u6210\u7d93\u6fdf\u640d\u5931\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-qKtlabXXYo\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u8981\u4fee\u5fa9 <code>ORA-00838<\/code> \u932f\u8aa4\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e7%95%b6%e5%89%8d%e7%9a%84-memory_target-%e8%a8%ad%e7%bd%ae-qKtlabXXYo\">1. \u6aa2\u67e5\u7576\u524d\u7684 MEMORY_TARGET \u8a2d\u7f6e<\/h3>\n<pre><code>SHOW PARAMETER MEMORY_TARGET;<\/code><\/pre>\n<p>\u4f7f\u7528\u4e0a\u8ff0\u547d\u4ee4\u6aa2\u67e5\u7576\u524d\u7684 <code>MEMORY_TARGET<\/code> \u8a2d\u7f6e\uff0c\u4e26\u8a18\u9304\u5176\u503c\u3002<\/p>\n<h3 id=\"2-%e7%a2%ba%e5%ae%9a%e6%89%80%e9%9c%80%e7%9a%84-memory_target-%e5%80%bc-qKtlabXXYo\">2. \u78ba\u5b9a\u6240\u9700\u7684 MEMORY_TARGET \u503c<\/h3>\n<p>\u6839\u64da\u6578\u64da\u5eab\u7684\u5de5\u4f5c\u8ca0\u8f09\u548c\u7cfb\u7d71\u7684\u7269\u7406\u5167\u5b58\uff0c\u78ba\u5b9a\u4e00\u500b\u5408\u9069\u7684 <code>MEMORY_TARGET<\/code> \u503c\u3002\u901a\u5e38\uff0c\u9019\u500b\u503c\u61c9\u8a72\u5927\u65bc\u7576\u524d\u7684\u8a2d\u7f6e\uff0c\u4e26\u4e14\u81f3\u5c11\u8981\u6eff\u8db3\u932f\u8aa4\u4fe1\u606f\u4e2d\u63d0\u5230\u7684\u8981\u6c42\u3002<\/p>\n<h3 id=\"3-%e4%bf%ae%e6%94%b9-memory_target-%e8%a8%ad%e7%bd%ae-qKtlabXXYo\">3. \u4fee\u6539 MEMORY_TARGET \u8a2d\u7f6e<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u4fee\u6539 <code>MEMORY_TARGET<\/code> \u7684\u503c\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET MEMORY_TARGET = new_value SCOPE = SPFILE;<\/code><\/pre>\n<p>\u8acb\u5c07 <code>new_value<\/code> \u66ff\u63db\u70ba\u60a8\u8a08\u7b97\u51fa\u7684\u65b0\u503c\u3002<\/p>\n<h3 id=\"4-%e9%87%8d%e5%95%9f%e6%95%b8%e6%93%9a%e5%ba%ab-qKtlabXXYo\">4. \u91cd\u555f\u6578\u64da\u5eab<\/h3>\n<p>\u4fee\u6539\u8a2d\u7f6e\u5f8c\uff0c\u9700\u8981\u91cd\u555f\u6578\u64da\u5eab\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\uff1a<\/p>\n<pre><code>SHUTDOWN IMMEDIATE;\nSTARTUP;<\/code><\/pre>\n<h3 id=\"5-%e9%a9%97%e8%ad%89%e4%bf%ae%e5%be%a9-qKtlabXXYo\">5. \u9a57\u8b49\u4fee\u5fa9<\/h3>\n<p>\u91cd\u555f\u5f8c\uff0c\u518d\u6b21\u6aa2\u67e5 <code>MEMORY_TARGET<\/code> \u7684\u8a2d\u7f6e\uff0c\u4e26\u78ba\u4fdd\u6578\u64da\u5eab\u80fd\u5920\u6b63\u5e38\u904b\u884c\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-qKtlabXXYo\">\u7e3d\u7d50<\/h2>\n<p>\u5728 Oracle \u6578\u64da\u5eab\u4e2d\uff0c<code>ORA-00838<\/code> \u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc <code>MEMORY_TARGET<\/code> \u8a2d\u7f6e\u904e\u5c0f\u5f15\u8d77\u7684\u3002\u901a\u904e\u6aa2\u67e5\u7576\u524d\u8a2d\u7f6e\u3001\u78ba\u5b9a\u6240\u9700\u503c\u3001\u4fee\u6539\u8a2d\u7f6e\u4e26\u91cd\u555f\u6578\u64da\u5eab\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u9019\u4e00\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u904b\u884c\u7684\u696d\u52d9\u4f86\u8aaa\uff0c\u53ca\u6642\u8655\u7406\u9019\u985e\u932f\u8aa4\u81f3\u95dc\u91cd\u8981\u3002<\/p>\n<p>\u5982\u679c\u60a8\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\u6eff\u8db3\u4e0d\u540c\u696d\u52d9\u9700\u6c42\u3002\u7121\u8ad6\u662f\u6578\u64da\u5eab\u7ba1\u7406\u9084\u662f\u61c9\u7528\u7a0b\u5e8f\u90e8\u7f72\uff0c\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">\u4e91\u670d\u52d9\u5668<\/a> \u90fd\u80fd\u70ba\u60a8\u63d0\u4f9b\u7a69\u5b9a\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fix ORA-00838: MEMORY_TARGET too small error in Oracle. Ensure MEMORY_TARGET is set to at least the specified value for optimal performance.<\/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-82134","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82134","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=82134"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82134\/revisions"}],"predecessor-version":[{"id":82135,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82134\/revisions\/82135"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=82134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=82134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=82134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}