{"id":81522,"date":"2024-10-16T16:32:17","date_gmt":"2024-10-16T08:32:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/81522\/"},"modified":"2024-10-16T16:32:17","modified_gmt":"2024-10-16T08:32:17","slug":"ora-00082-memory-size-of-string-is-not-in-valid-set-of-1-2-4stringstringstringstringstring-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\/81522\/","title":{"rendered":"ORA-00082: memory size of string is not in valid set of [1], [2], [4]stringstringstringstringstring ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00082-memory-size-of-string-is-not-in-valid-set-of-1-2-4-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-yKSvPobftH\">ORA-00082: memory size of string is not in valid set of [1], [2], [4] &#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\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\u662fORA-00082\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207\u5167\u5b58\u914d\u7f6e\u6709\u95dc\uff0c\u7279\u5225\u662f\u5728\u57f7\u884c\u67d0\u4e9b\u64cd\u4f5c\u6642\uff0cOracle\u6578\u64da\u5eab\u7121\u6cd5\u8b58\u5225\u6240\u9700\u7684\u5167\u5b58\u5927\u5c0f\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-00082\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u53ca\u5176\u4fee\u5fa9\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"ora-00082%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-yKSvPobftH\">ORA-00082\u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>ORA-00082\u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662fOracle\u6578\u64da\u5eab\u5728\u57f7\u884c\u904e\u7a0b\u4e2d\u9047\u5230\u4e86\u4e0d\u7b26\u5408\u9810\u671f\u7684\u5167\u5b58\u5927\u5c0f\u3002\u9019\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li><strong>\u4e0d\u6b63\u78ba\u7684\u5167\u5b58\u914d\u7f6e\uff1a<\/strong>\u5982\u679c\u6578\u64da\u5eab\u7684\u5167\u5b58\u53c3\u6578\u672a\u6b63\u78ba\u8a2d\u7f6e\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002\u4f8b\u5982\uff0c\u8a2d\u7f6e\u7684\u5167\u5b58\u5927\u5c0f\u8d85\u51fa\u4e86Oracle\u6240\u652f\u6301\u7684\u7bc4\u570d\u3002<\/li>\n<li><strong>\u4e0d\u517c\u5bb9\u7684\u6578\u64da\u5eab\u7248\u672c\uff1a<\/strong>\u67d0\u4e9b\u7248\u672c\u7684Oracle\u6578\u64da\u5eab\u53ef\u80fd\u5c0d\u5167\u5b58\u5927\u5c0f\u6709\u4e0d\u540c\u7684\u8981\u6c42\uff0c\u4f7f\u7528\u4e0d\u517c\u5bb9\u7684\u7248\u672c\u53ef\u80fd\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u8cc7\u6e90\u9650\u5236\uff1a<\/strong>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u64cd\u4f5c\u7cfb\u7d71\u7684\u8cc7\u6e90\u9650\u5236\uff08\u5982ulimit\u8a2d\u7f6e\uff09\u53ef\u80fd\u6703\u5f71\u97ffOracle\u7684\u5167\u5b58\u5206\u914d\u3002<\/li>\n<\/ul>\n<h2 id=\"ora-00082%e9%8c%af%e8%aa%a4%e7%9a%84%e5%bd%b1%e9%9f%bf-yKSvPobftH\">ORA-00082\u932f\u8aa4\u7684\u5f71\u97ff<\/h2>\n<p>\u7576ORA-00082\u932f\u8aa4\u767c\u751f\u6642\uff0c\u6578\u64da\u5eab\u64cd\u4f5c\u5c07\u7121\u6cd5\u7e7c\u7e8c\uff0c\u9019\u53ef\u80fd\u6703\u5c0e\u81f4\u61c9\u7528\u7a0b\u5e8f\u5d29\u6f70\u6216\u7121\u6cd5\u6b63\u5e38\u904b\u884c\u3002\u9019\u5c0d\u65bc\u4f9d\u8cf4\u6578\u64da\u5eab\u7684\u696d\u52d9\u61c9\u7528\u4f86\u8aaa\uff0c\u53ef\u80fd\u6703\u9020\u6210\u91cd\u5927\u7684\u5f71\u97ff\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u696d\u52d9\u4e2d\u65b7\uff1a\u61c9\u7528\u7a0b\u5e8f\u7121\u6cd5\u8a2a\u554f\u6578\u64da\uff0c\u5f71\u97ff\u696d\u52d9\u904b\u4f5c\u3002<\/li>\n<li>\u6578\u64da\u640d\u5931\uff1a\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u672a\u80fd\u6b63\u78ba\u8655\u7406\u7684\u6578\u64da\u53ef\u80fd\u6703\u4e1f\u5931\u3002<\/li>\n<li>\u7528\u6236\u9ad4\u9a57\u4e0b\u964d\uff1a\u7528\u6236\u53ef\u80fd\u6703\u56e0\u70ba\u61c9\u7528\u7a0b\u5e8f\u7684\u6545\u969c\u800c\u611f\u5230\u4e0d\u6eff\u3002<\/li>\n<\/ul>\n<h2 id=\"%e4%bf%ae%e5%be%a9ora-00082%e9%8c%af%e8%aa%a4%e7%9a%84%e6%96%b9%e6%b3%95-yKSvPobftH\">\u4fee\u5fa9ORA-00082\u932f\u8aa4\u7684\u65b9\u6cd5<\/h2>\n<p>\u4fee\u5fa9ORA-00082\u932f\u8aa4\u9700\u8981\u5c0d\u6578\u64da\u5eab\u7684\u5167\u5b58\u914d\u7f6e\u9032\u884c\u8abf\u6574\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u4fee\u5fa9\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e5%85%a7%e5%ad%98%e5%8f%83%e6%95%b8%e8%a8%ad%e7%bd%ae-yKSvPobftH\">1. \u6aa2\u67e5\u5167\u5b58\u53c3\u6578\u8a2d\u7f6e<\/h3>\n<pre><code>SHOW PARAMETER memory;<\/code><\/pre>\n<p>\u4f7f\u7528\u4e0a\u8ff0\u547d\u4ee4\u6aa2\u67e5\u7576\u524d\u7684\u5167\u5b58\u53c3\u6578\u8a2d\u7f6e\uff0c\u78ba\u4fdd\u5b83\u5011\u5728Oracle\u652f\u6301\u7684\u7bc4\u570d\u5167\u3002\u5e38\u898b\u7684\u5167\u5b58\u53c3\u6578\u5305\u62ecSGA\u548cPGA\u7684\u5927\u5c0f\u3002<\/p>\n<h3 id=\"2-%e8%aa%bf%e6%95%b4%e5%85%a7%e5%ad%98%e9%85%8d%e7%bd%ae-yKSvPobftH\">2. \u8abf\u6574\u5167\u5b58\u914d\u7f6e<\/h3>\n<p>\u5982\u679c\u767c\u73fe\u5167\u5b58\u53c3\u6578\u8a2d\u7f6e\u4e0d\u6b63\u78ba\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u8abf\u6574\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET sga_target = '2G';<\/code><\/pre>\n<p>\u6839\u64da\u5be6\u969b\u9700\u6c42\u8abf\u6574\u5167\u5b58\u5927\u5c0f\uff0c\u78ba\u4fdd\u4e0d\u8d85\u904e\u7cfb\u7d71\u7684\u7269\u7406\u5167\u5b58\u9650\u5236\u3002<\/p>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%b5%b1%e7%9a%84%e8%b3%87%e6%ba%90%e9%99%90%e5%88%b6-yKSvPobftH\">3. \u6aa2\u67e5\u64cd\u4f5c\u7cfb\u7d71\u7684\u8cc7\u6e90\u9650\u5236<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5\u64cd\u4f5c\u7cfb\u7d71\u7684\u8cc7\u6e90\u9650\u5236\uff1a<\/p>\n<pre><code>ulimit -a<\/code><\/pre>\n<p>\u78ba\u4fddOracle\u9032\u7a0b\u7684\u5167\u5b58\u9650\u5236\u4e0d\u6703\u5f71\u97ff\u6578\u64da\u5eab\u7684\u904b\u884c\u3002<\/p>\n<h3 id=\"4-%e6%9b%b4%e6%96%b0oracle%e7%89%88%e6%9c%ac-yKSvPobftH\">4. \u66f4\u65b0Oracle\u7248\u672c<\/h3>\n<p>\u5982\u679c\u4f7f\u7528\u7684Oracle\u7248\u672c\u5b58\u5728\u5df2\u77e5\u7684\u5167\u5b58\u554f\u984c\uff0c\u8003\u616e\u5347\u7d1a\u5230\u6700\u65b0\u7248\u672c\u4ee5\u7372\u5f97\u66f4\u597d\u7684\u652f\u6301\u548c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-yKSvPobftH\">\u7e3d\u7d50<\/h2>\n<p>ORA-00082\u932f\u8aa4\u901a\u5e38\u8207\u5167\u5b58\u914d\u7f6e\u6709\u95dc\uff0c\u6b63\u78ba\u7684\u5167\u5b58\u8a2d\u7f6e\u5c0d\u65bcOracle\u6578\u64da\u5eab\u7684\u7a69\u5b9a\u904b\u884c\u81f3\u95dc\u91cd\u8981\u3002\u901a\u904e\u6aa2\u67e5\u548c\u8abf\u6574\u5167\u5b58\u53c3\u6578\u3001\u64cd\u4f5c\u7cfb\u7d71\u8cc7\u6e90\u9650\u5236\u4ee5\u53ca\u66f4\u65b0Oracle\u7248\u672c\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u904b\u884c\u7684\u696d\u52d9\uff0c\u9078\u64c7\u5408\u9069\u7684<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u6216<a href=\"https:\/\/server.hk\">\u96f2\u4f3a\u670d\u5668<\/a>\u89e3\u6c7a\u65b9\u6848\u4e5f\u662f\u4e00\u500b\u660e\u667a\u7684\u9078\u64c7\uff0c\u4ee5\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u9ad8\u53ef\u7528\u6027\u548c\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot ORA-00082: memory size errors in Oracle, ensuring valid memory configurations for optimal database 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-81522","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81522","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=81522"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81522\/revisions"}],"predecessor-version":[{"id":81523,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/81522\/revisions\/81523"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=81522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=81522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=81522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}