{"id":82070,"date":"2024-10-16T18:39:16","date_gmt":"2024-10-16T10:39:16","guid":{"rendered":"https:\/\/server.hk\/cnblog\/82070\/"},"modified":"2024-10-16T18:39:16","modified_gmt":"2024-10-16T10:39:16","slug":"ora-00830-cannot-set-statistics_level-to-basic-with-auto-tune-sga-enabled-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\/82070\/","title":{"rendered":"ORA-00830: cannot set statistics_level to BASIC with auto-tune SGA enabled ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00830-%e7%84%a1%e6%b3%95%e5%9c%a8%e5%95%9f%e7%94%a8%e8%87%aa%e5%8b%95%e8%aa%bf%e6%95%b4sga%e7%9a%84%e6%83%85%e6%b3%81%e4%b8%8b%e5%b0%87statistics_level%e8%a8%ad%e7%bd%ae%e7%82%babasic-GIPuGeBfjl\">ORA-00830: \u7121\u6cd5\u5728\u555f\u7528\u81ea\u52d5\u8abf\u6574SGA\u7684\u60c5\u6cc1\u4e0b\u5c07statistics_level\u8a2d\u7f6e\u70baBASIC<\/h1>\n<p>\u5728Oracle\u6578\u64da\u5eab\u7ba1\u7406\u4e2d\uff0c\u932f\u8aa4\u4ee3\u78bcORA-00830\u901a\u5e38\u51fa\u73fe\u5728\u7528\u6236\u5617\u8a66\u5c07statistics_level\u8a2d\u7f6e\u70baBASIC\u6642\uff0c\u800c\u6b64\u6642\u81ea\u52d5\u8abf\u6574SGA\uff08System Global Area\uff09\u529f\u80fd\u5df2\u7d93\u555f\u7528\u3002\u9019\u500b\u554f\u984c\u53ef\u80fd\u6703\u5c0e\u81f4\u6578\u64da\u5eab\u6027\u80fd\u4e0b\u964d\uff0c\u4e26\u5f71\u97ff\u6574\u9ad4\u7684\u6578\u64da\u8655\u7406\u6548\u7387\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u6b64\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-GIPuGeBfjl\">\u932f\u8aa4\u539f\u56e0<\/h2>\n<p>ORA-00830\u932f\u8aa4\u7684\u6839\u672c\u539f\u56e0\u5728\u65bcOracle\u6578\u64da\u5eab\u7684\u914d\u7f6e\u8a2d\u7f6e\u3002\u7576\u81ea\u52d5\u8abf\u6574SGA\u529f\u80fd\u555f\u7528\u6642\uff0c\u6578\u64da\u5eab\u6703\u81ea\u52d5\u7ba1\u7406SGA\u7684\u5927\u5c0f\u548c\u5167\u90e8\u7d50\u69cb\uff0c\u4ee5\u4fbf\u6700\u4f73\u5316\u6027\u80fd\u3002\u5728\u9019\u7a2e\u60c5\u6cc1\u4e0b\uff0c\u5c07statistics_level\u8a2d\u7f6e\u70baBASIC\u6703\u5c0e\u81f4\u6578\u64da\u5eab\u7121\u6cd5\u7372\u53d6\u5fc5\u8981\u7684\u6027\u80fd\u7d71\u8a08\u6578\u64da\uff0c\u5f9e\u800c\u5f71\u97ff\u81ea\u52d5\u8abf\u6574\u7684\u6548\u679c\u3002<\/p>\n<h2 id=\"statistics_level%e5%8f%83%e6%95%b8-GIPuGeBfjl\">statistics_level\u53c3\u6578<\/h2>\n<p>statistics_level\u53c3\u6578\u7528\u65bc\u63a7\u5236Oracle\u6578\u64da\u5eab\u6536\u96c6\u6027\u80fd\u7d71\u8a08\u6578\u64da\u7684\u8a73\u7d30\u7a0b\u5ea6\u3002\u5b83\u53ef\u4ee5\u8a2d\u7f6e\u70ba\u4ee5\u4e0b\u5e7e\u500b\u503c\uff1a<\/p>\n<ul>\n<li><strong>BASIC<\/strong>: \u50c5\u6536\u96c6\u6700\u57fa\u672c\u7684\u7d71\u8a08\u6578\u64da\u3002<\/li>\n<li><strong>TYPICAL<\/strong>: \u6536\u96c6\u5e38\u7528\u7684\u7d71\u8a08\u6578\u64da\uff0c\u9019\u662f\u9ed8\u8a8d\u8a2d\u7f6e\u3002<\/li>\n<li><strong>ALL<\/strong>: \u6536\u96c6\u6240\u6709\u53ef\u7528\u7684\u7d71\u8a08\u6578\u64da\uff0c\u63d0\u4f9b\u6700\u8a73\u7d30\u7684\u6027\u80fd\u5206\u6790\u3002<\/li>\n<\/ul>\n<p>\u7576statistics_level\u8a2d\u7f6e\u70baBASIC\u6642\uff0c\u6578\u64da\u5eab\u5c07\u4e0d\u6703\u6536\u96c6\u67d0\u4e9b\u6027\u80fd\u6578\u64da\uff0c\u9019\u5c0d\u65bc\u81ea\u52d5\u8abf\u6574SGA\u7684\u529f\u80fd\u4f86\u8aaa\u662f\u4e0d\u53ef\u63a5\u53d7\u7684\u3002<\/p>\n<h2 id=\"%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%a1%88-GIPuGeBfjl\">\u89e3\u6c7a\u65b9\u6848<\/h2>\n<p>\u8981\u89e3\u6c7aORA-00830\u932f\u8aa4\uff0c\u60a8\u9700\u8981\u5c07statistics_level\u8a2d\u7f6e\u70baTYPICAL\u6216ALL\u3002\u4ee5\u4e0b\u662f\u5177\u9ad4\u7684\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f1-%e6%aa%a2%e6%9f%a5%e7%95%b6%e5%89%8d%e7%9a%84statistics_level%e8%a8%ad%e7%bd%ae-GIPuGeBfjl\">\u6b65\u9a5f1: \u6aa2\u67e5\u7576\u524d\u7684statistics_level\u8a2d\u7f6e<\/h3>\n<pre><code>SHOW PARAMETER statistics_level;<\/code><\/pre>\n<h3 id=\"%e6%ad%a5%e9%a9%9f2-%e4%bf%ae%e6%94%b9statistics_level%e8%a8%ad%e7%bd%ae-GIPuGeBfjl\">\u6b65\u9a5f2: \u4fee\u6539statistics_level\u8a2d\u7f6e<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0bSQL\u547d\u4ee4\u5c07statistics_level\u8a2d\u7f6e\u70baTYPICAL\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET statistics_level = 'TYPICAL' SCOPE=BOTH;<\/code><\/pre>\n<h3 id=\"%e6%ad%a5%e9%a9%9f3-%e9%a9%97%e8%ad%89%e4%bf%ae%e6%94%b9-GIPuGeBfjl\">\u6b65\u9a5f3: \u9a57\u8b49\u4fee\u6539<\/h3>\n<p>\u518d\u6b21\u6aa2\u67e5statistics_level\u8a2d\u7f6e\u4ee5\u78ba\u4fdd\u66f4\u6539\u5df2\u6210\u529f\u61c9\u7528\uff1a<\/p>\n<pre><code>SHOW PARAMETER statistics_level;<\/code><\/pre>\n<h2 id=\"%e5%bd%b1%e9%9f%bf%e8%88%87%e5%bb%ba%e8%ad%b0-GIPuGeBfjl\">\u5f71\u97ff\u8207\u5efa\u8b70<\/h2>\n<p>\u5728\u89e3\u6c7aORA-00830\u932f\u8aa4\u5f8c\uff0c\u5efa\u8b70\u5b9a\u671f\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u6027\u80fd\u7d71\u8a08\u6578\u64da\uff0c\u4ee5\u78ba\u4fdd\u81ea\u52d5\u8abf\u6574SGA\u529f\u80fd\u6b63\u5e38\u904b\u884c\u3002\u9019\u4e0d\u50c5\u80fd\u63d0\u9ad8\u6578\u64da\u5eab\u7684\u6027\u80fd\uff0c\u9084\u80fd\u5e6b\u52a9\u7ba1\u7406\u54e1\u53ca\u6642\u767c\u73fe\u6f5b\u5728\u7684\u6027\u80fd\u74f6\u9838\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u5c0d\u65bc\u904b\u884c\u5927\u578b\u61c9\u7528\u7a0b\u5e8f\u6216\u9ad8\u8ca0\u8f09\u74b0\u5883\u7684\u6578\u64da\u5eab\uff0c\u5efa\u8b70\u4f7f\u7528ALL\u8a2d\u7f6e\uff0c\u4ee5\u4fbf\u7372\u53d6\u6700\u8a73\u7d30\u7684\u6027\u80fd\u6578\u64da\uff0c\u5f9e\u800c\u9032\u884c\u66f4\u6df1\u5165\u7684\u6027\u80fd\u5206\u6790\u548c\u512a\u5316\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-GIPuGeBfjl\">\u7e3d\u7d50<\/h2>\n<p>ORA-00830\u932f\u8aa4\u662f\u7531\u65bcstatistics_level\u8a2d\u7f6e\u4e0d\u7576\u800c\u5c0e\u81f4\u7684\uff0c\u7279\u5225\u662f\u5728\u81ea\u52d5\u8abf\u6574SGA\u529f\u80fd\u555f\u7528\u7684\u60c5\u6cc1\u4e0b\u3002\u901a\u904e\u5c07statistics_level\u8a2d\u7f6e\u70baTYPICAL\u6216ALL\uff0c\u53ef\u4ee5\u6709\u6548\u89e3\u6c7a\u6b64\u554f\u984c\uff0c\u4e26\u78ba\u4fdd\u6578\u64da\u5eab\u6027\u80fd\u7684\u6700\u4f73\u5316\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6548\u80fd\u7684\u61c9\u7528\uff0c\u9078\u64c7\u5408\u9069\u7684VPS\u89e3\u6c7a\u65b9\u6848\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u4e86\u89e3\u66f4\u591a\u95dc\u65bc\u6211\u5011\u7684<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u670d\u52d9\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to resolve the ORA-00830 error in Oracle, which prevents setting statistics_level to BASIC with auto-tune SGA enabled. Troubleshooting tips included.<\/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-82070","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82070","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=82070"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82070\/revisions"}],"predecessor-version":[{"id":82071,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82070\/revisions\/82071"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=82070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=82070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=82070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}