{"id":85047,"date":"2024-10-17T12:57:15","date_gmt":"2024-10-17T04:57:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/85047\/"},"modified":"2024-10-17T12:57:15","modified_gmt":"2024-10-17T04:57:15","slug":"ora-12851-parallel_max_servers-%e5%bf%85%e9%a0%88%e5%a4%a7%e6%96%bc%e6%88%96%e7%ad%89%e6%96%bc-parallel_min_servers%ef%bc%8c%e5%ad%97%e7%ac%a6%e4%b8%b2%e3%80%82oracle-%e5%a0%b1%e9%8c%af-%e6%95%85","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/85047\/","title":{"rendered":"ORA-12851: PARALLEL_MAX_SERVERS \u5fc5\u9808\u5927\u65bc\u6216\u7b49\u65bc PARALLEL_MIN_SERVERS\uff0c\u5b57\u7b26\u4e32\u3002ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-12851-parallel_max_servers-%e5%bf%85%e9%a0%88%e5%a4%a7%e6%96%bc%e6%88%96%e7%ad%89%e6%96%bc-parallel_min_servers%ef%bc%8c%e5%ad%97%e7%ac%a6%e4%b8%b2%e3%80%82oracle-%e5%a0%b1%e9%8c%af-%e6%95%85-RGXQOWWKIR\">ORA-12851: PARALLEL_MAX_SERVERS \u5fc5\u9808\u5927\u65bc\u6216\u7b49\u65bc PARALLEL_MIN_SERVERS\uff0c\u5b57\u7b26\u4e32\u3002ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \u6578\u64da\u5eab\u6642\uff0c\u958b\u767c\u8005\u548c\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662f <code>ORA-12851<\/code>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207\u4e26\u884c\u8655\u7406\u7684\u914d\u7f6e\u6709\u95dc\uff0c\u5177\u9ad4\u4f86\u8aaa\u662f <code>PARALLEL_MAX_SERVERS<\/code> \u548c <code>PARALLEL_MIN_SERVERS<\/code> \u4e4b\u9593\u7684\u95dc\u4fc2\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-RGXQOWWKIR\">\u932f\u8aa4\u539f\u56e0<\/h2>\n<p>\u7576 Oracle \u6578\u64da\u5eab\u7684 <code>PARALLEL_MAX_SERVERS<\/code> \u8a2d\u7f6e\u5c0f\u65bc <code>PARALLEL_MIN_SERVERS<\/code> \u6642\uff0c\u5c31\u6703\u51fa\u73fe <code>ORA-12851<\/code> \u932f\u8aa4\u3002\u9019\u5169\u500b\u53c3\u6578\u7684\u5b9a\u7fa9\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>PARALLEL_MIN_SERVERS<\/strong>: \u9019\u662f Oracle \u5728\u555f\u52d5\u6642\u9700\u8981\u7684\u6700\u5c0f\u4e26\u884c\u4f3a\u670d\u5668\u6578\u91cf\u3002<\/li>\n<li><strong>PARALLEL_MAX_SERVERS<\/strong>: \u9019\u662f Oracle \u53ef\u4ee5\u4f7f\u7528\u7684\u6700\u5927\u4e26\u884c\u4f3a\u670d\u5668\u6578\u91cf\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c <code>PARALLEL_MIN_SERVERS<\/code> \u7684\u503c\u5927\u65bc <code>PARALLEL_MAX_SERVERS<\/code>\uff0c\u90a3\u9ebc Oracle \u5c07\u7121\u6cd5\u5206\u914d\u8db3\u5920\u7684\u8cc7\u6e90\u4f86\u6eff\u8db3\u4e26\u884c\u8655\u7406\u7684\u9700\u6c42\uff0c\u5f9e\u800c\u5c0e\u81f4\u932f\u8aa4\u7684\u767c\u751f\u3002<\/p>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-RGXQOWWKIR\">\u5f71\u97ff<\/h2>\n<p>\u9019\u500b\u932f\u8aa4\u6703\u5f71\u97ff\u5230\u6578\u64da\u5eab\u7684\u6027\u80fd\uff0c\u7279\u5225\u662f\u5728\u57f7\u884c\u9700\u8981\u5927\u91cf\u8a08\u7b97\u7684\u67e5\u8a62\u6642\u3002\u7576\u4e26\u884c\u8655\u7406\u7121\u6cd5\u6b63\u5e38\u904b\u884c\u6642\uff0c\u67e5\u8a62\u7684\u57f7\u884c\u6642\u9593\u53ef\u80fd\u6703\u986f\u8457\u589e\u52a0\uff0c\u5f9e\u800c\u5f71\u97ff\u6574\u9ad4\u7684\u696d\u52d9\u904b\u4f5c\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-RGXQOWWKIR\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u8981\u4fee\u5fa9 <code>ORA-12851<\/code> \u932f\u8aa4\uff0c\u60a8\u9700\u8981\u6aa2\u67e5\u4e26\u8abf\u6574 <code>PARALLEL_MAX_SERVERS<\/code> \u548c <code>PARALLEL_MIN_SERVERS<\/code> \u7684\u8a2d\u7f6e\u3002\u4ee5\u4e0b\u662f\u5177\u9ad4\u7684\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e7%95%b6%e5%89%8d%e8%a8%ad%e7%bd%ae-RGXQOWWKIR\">1. \u6aa2\u67e5\u7576\u524d\u8a2d\u7f6e<\/h3>\n<pre><code>SHOW PARAMETER PARALLEL;<\/code><\/pre>\n<p>\u4f7f\u7528\u4e0a\u8ff0\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u7576\u524d\u7684\u4e26\u884c\u53c3\u6578\u8a2d\u7f6e\u3002\u60a8\u9700\u8981\u7279\u5225\u6ce8\u610f <code>PARALLEL_MIN_SERVERS<\/code> \u548c <code>PARALLEL_MAX_SERVERS<\/code> \u7684\u503c\u3002<\/p>\n<h3 id=\"2-%e8%aa%bf%e6%95%b4%e5%8f%83%e6%95%b8-RGXQOWWKIR\">2. \u8abf\u6574\u53c3\u6578<\/h3>\n<p>\u5982\u679c\u767c\u73fe <code>PARALLEL_MIN_SERVERS<\/code> \u5927\u65bc <code>PARALLEL_MAX_SERVERS<\/code>\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u8abf\u6574\u9019\u4e9b\u53c3\u6578\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET PARALLEL_MIN_SERVERS = n SCOPE=BOTH;<\/code><\/pre>\n<pre><code>ALTER SYSTEM SET PARALLEL_MAX_SERVERS = m SCOPE=BOTH;<\/code><\/pre>\n<p>\u5728\u4e0a\u8ff0\u547d\u4ee4\u4e2d\uff0c<code>n<\/code> \u548c <code>m<\/code> \u5206\u5225\u662f\u60a8\u5e0c\u671b\u8a2d\u7f6e\u7684\u6700\u5c0f\u548c\u6700\u5927\u4e26\u884c\u4f3a\u670d\u5668\u6578\u91cf\u3002\u78ba\u4fdd <code>m<\/code> \u5927\u65bc\u6216\u7b49\u65bc <code>n<\/code>\u3002<\/p>\n<h3 id=\"3-%e9%87%8d%e5%95%9f%e6%95%b8%e6%93%9a%e5%ba%ab-RGXQOWWKIR\">3. \u91cd\u555f\u6578\u64da\u5eab<\/h3>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u91cd\u555f\u6578\u64da\u5eab\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u5b8c\u6210\uff1a<\/p>\n<pre><code>SHUTDOWN IMMEDIATE;<\/code><\/pre>\n<pre><code>STARTUP;<\/code><\/pre>\n<h2 id=\"%e7%b5%90%e8%ab%96-RGXQOWWKIR\">\u7d50\u8ad6<\/h2>\n<p>\u5728 Oracle \u6578\u64da\u5eab\u4e2d\uff0c<code>ORA-12851<\/code> \u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc\u4e26\u884c\u4f3a\u670d\u5668\u7684\u914d\u7f6e\u4e0d\u7576\u5f15\u8d77\u7684\u3002\u901a\u904e\u6aa2\u67e5\u548c\u8abf\u6574 <code>PARALLEL_MIN_SERVERS<\/code> \u548c <code>PARALLEL_MAX_SERVERS<\/code> \u7684\u8a2d\u7f6e\uff0c\u60a8\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u9019\u500b\u554f\u984c\uff0c\u5f9e\u800c\u63d0\u9ad8\u6578\u64da\u5eab\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u3002<\/p>\n<p>\u5982\u9700\u9032\u4e00\u6b65\u4e86\u89e3\u6709\u95dc <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u548c\u5176\u4ed6\u4f3a\u670d\u5668\u89e3\u6c7a\u65b9\u6848\u7684\u4fe1\u606f\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-12851 \u932f\u8aa4\uff1a\u78ba\u4fdd PARALLEL_MAX_SERVERS \u5927\u65bc\u6216\u7b49\u65bc PARALLEL_MIN_SERVERS\uff0c\u4e26\u9032\u884c\u6709\u6548\u7684\u9060\u7a0b\u6545\u969c\u4fee\u5fa9\u3002<\/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-85047","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/85047","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=85047"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/85047\/revisions"}],"predecessor-version":[{"id":85048,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/85047\/revisions\/85048"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=85047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=85047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=85047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}