{"id":90398,"date":"2024-10-18T14:52:22","date_gmt":"2024-10-18T06:52:22","guid":{"rendered":"https:\/\/server.hk\/cnblog\/90398\/"},"modified":"2024-10-18T14:52:22","modified_gmt":"2024-10-18T06:52:22","slug":"ora-27431-chain-string-string-has-a-user-managed-rule-set-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\/90398\/","title":{"rendered":"ORA-27431: chain string.string has a user-managed rule set ORACLE\u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-27431-chain-string-string-has-a-user-managed-rule-set-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-rETZQSBfIW\">ORA-27431: chain string.string has a user-managed rule set 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\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662fORA-27431\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207Oracle\u7684\u4f5c\u696d\u6392\u7a0b\u5668\uff08Scheduler\uff09\u6709\u95dc\uff0c\u7279\u5225\u662f\u7576\u7528\u6236\u81ea\u5b9a\u7fa9\u7684\u898f\u5247\u96c6\uff08user-managed rule set\uff09\u8207\u4f5c\u696d\u93c8\uff08job chain\uff09\u4e4b\u9593\u5b58\u5728\u885d\u7a81\u6642\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-27431\u7684\u6210\u56e0\u3001\u5f71\u97ff\u53ca\u5176\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h2 id=\"ora-27431%e7%9a%84%e6%88%90%e5%9b%a0-rETZQSBfIW\">ORA-27431\u7684\u6210\u56e0<\/h2>\n<p>ORA-27431\u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662f\u7528\u6236\u7ba1\u7406\u7684\u898f\u5247\u96c6\u8207\u4f5c\u696d\u93c8\u7684\u914d\u7f6e\u4e0d\u4e00\u81f4\u3002\u5177\u9ad4\u4f86\u8aaa\uff0c\u7576\u7528\u6236\u5617\u8a66\u555f\u52d5\u4e00\u500b\u4f5c\u696d\u93c8\uff0c\u800c\u8a72\u93c8\u6240\u4f9d\u8cf4\u7684\u898f\u5247\u96c6\u5df2\u88ab\u7528\u6236\u624b\u52d5\u4fee\u6539\u6216\u522a\u9664\u6642\uff0c\u5c31\u6703\u51fa\u73fe\u6b64\u932f\u8aa4\u3002\u9019\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>\u7528\u6236\u5728\u672a\u6b63\u78ba\u66f4\u65b0\u4f5c\u696d\u93c8\u7684\u60c5\u6cc1\u4e0b\uff0c\u5c0d\u898f\u5247\u96c6\u9032\u884c\u4e86\u66f4\u6539\u3002<\/li>\n<li>\u4f5c\u696d\u93c8\u7684\u4f9d\u8cf4\u95dc\u4fc2\u672a\u6b63\u78ba\u8a2d\u7f6e\uff0c\u5c0e\u81f4\u7121\u6cd5\u627e\u5230\u6240\u9700\u7684\u898f\u5247\u96c6\u3002<\/li>\n<li>\u7528\u6236\u5728\u4e0d\u540c\u7684\u6578\u64da\u5eab\u5be6\u4f8b\u4e2d\u9032\u884c\u4e86\u4e0d\u4e00\u81f4\u7684\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-rETZQSBfIW\">\u5f71\u97ff<\/h2>\n<p>\u7576ORA-27431\u932f\u8aa4\u767c\u751f\u6642\uff0c\u5c07\u6703\u5f71\u97ff\u5230\u4f5c\u696d\u93c8\u7684\u57f7\u884c\uff0c\u9019\u53ef\u80fd\u5c0e\u81f4\u8a08\u5283\u4efb\u52d9\u7121\u6cd5\u6309\u6642\u57f7\u884c\uff0c\u9032\u800c\u5f71\u97ff\u5230\u696d\u52d9\u6d41\u7a0b\u7684\u6b63\u5e38\u904b\u884c\u3002\u7279\u5225\u662f\u5728\u9700\u8981\u5b9a\u671f\u57f7\u884c\u7684\u6578\u64da\u8655\u7406\u6216\u5831\u544a\u751f\u6210\u4efb\u52d9\u4e2d\uff0c\u9019\u7a2e\u932f\u8aa4\u53ef\u80fd\u6703\u9020\u6210\u6578\u64da\u5ef6\u9072\u6216\u4e1f\u5931\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-rETZQSBfIW\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u8981\u89e3\u6c7aORA-27431\u932f\u8aa4\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u6545\u969c\u6392\u9664\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e4%bd%9c%e6%a5%ad%e9%8f%88%e5%92%8c%e8%a6%8f%e5%89%87%e9%9b%86%e7%9a%84%e9%85%8d%e7%bd%ae-rETZQSBfIW\">1. \u6aa2\u67e5\u4f5c\u696d\u93c8\u548c\u898f\u5247\u96c6\u7684\u914d\u7f6e<\/h3>\n<p>\u9996\u5148\uff0c\u4f7f\u7528\u4ee5\u4e0bSQL\u67e5\u8a62\u4f86\u6aa2\u67e5\u4f5c\u696d\u93c8\u7684\u914d\u7f6e\uff1a<\/p>\n<pre><code>SELECT * FROM DBA_SCHEDULER_JOB_CHAINS WHERE CHAIN_NAME = 'your_chain_name';<\/code><\/pre>\n<p>\u63a5\u8457\uff0c\u6aa2\u67e5\u8207\u8a72\u4f5c\u696d\u93c8\u76f8\u95dc\u7684\u898f\u5247\u96c6\uff1a<\/p>\n<pre><code>SELECT * FROM DBA_SCHEDULER_RULE_SETS WHERE RULE_SET_NAME = 'your_rule_set_name';<\/code><\/pre>\n<h3 id=\"2-%e7%a2%ba%e8%aa%8d%e8%a6%8f%e5%89%87%e9%9b%86%e7%9a%84%e5%ad%98%e5%9c%a8%e6%80%a7-rETZQSBfIW\">2. \u78ba\u8a8d\u898f\u5247\u96c6\u7684\u5b58\u5728\u6027<\/h3>\n<p>\u78ba\u4fdd\u6240\u9700\u7684\u898f\u5247\u96c6\u4ecd\u7136\u5b58\u5728\u3002\u5982\u679c\u898f\u5247\u96c6\u5df2\u88ab\u522a\u9664\uff0c\u5247\u9700\u8981\u91cd\u65b0\u5275\u5efa\u5b83\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u8a9e\u53e5\u4f86\u5275\u5efa\u898f\u5247\u96c6\uff1a<\/p>\n<pre><code>BEGIN\n    DBMS_SCHEDULER.CREATE_RULE_SET(\n        rule_set_name =&gt; 'your_rule_set_name',\n        rule_set_type =&gt; 'user-managed',\n        comments =&gt; 'Your comments here'\n    );\nEND;<\/code><\/pre>\n<h3 id=\"3-%e6%9b%b4%e6%96%b0%e4%bd%9c%e6%a5%ad%e9%8f%88%e7%9a%84%e4%be%9d%e8%b3%b4%e9%97%9c%e4%bf%82-rETZQSBfIW\">3. \u66f4\u65b0\u4f5c\u696d\u93c8\u7684\u4f9d\u8cf4\u95dc\u4fc2<\/h3>\n<p>\u5982\u679c\u898f\u5247\u96c6\u5df2\u7d93\u5b58\u5728\uff0c\u4f46\u4f5c\u696d\u93c8\u4ecd\u7136\u7121\u6cd5\u6b63\u5e38\u904b\u884c\uff0c\u5247\u9700\u8981\u66f4\u65b0\u4f5c\u696d\u93c8\u7684\u4f9d\u8cf4\u95dc\u4fc2\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u8a9e\u53e5\u4f86\u66f4\u65b0\u4f5c\u696d\u93c8\uff1a<\/p>\n<pre><code>BEGIN\n    DBMS_SCHEDULER.SET_CHAIN_RULE_SET(\n        chain_name =&gt; 'your_chain_name',\n        rule_set_name =&gt; 'your_rule_set_name'\n    );\nEND;<\/code><\/pre>\n<h3 id=\"4-%e6%b8%ac%e8%a9%a6%e4%bd%9c%e6%a5%ad%e9%8f%88-rETZQSBfIW\">4. \u6e2c\u8a66\u4f5c\u696d\u93c8<\/h3>\n<p>\u5728\u5b8c\u6210\u4e0a\u8ff0\u6b65\u9a5f\u5f8c\uff0c\u91cd\u65b0\u555f\u52d5\u4f5c\u696d\u93c8\u4ee5\u78ba\u8a8d\u554f\u984c\u662f\u5426\u5df2\u89e3\u6c7a\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u8a9e\u53e5\u4f86\u555f\u52d5\u4f5c\u696d\u93c8\uff1a<\/p>\n<pre><code>BEGIN\n    DBMS_SCHEDULER.START_CHAIN('your_chain_name');\nEND;<\/code><\/pre>\n<h2 id=\"%e7%b5%90%e8%ab%96-rETZQSBfIW\">\u7d50\u8ad6<\/h2>\n<p>ORA-27431\u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc\u7528\u6236\u7ba1\u7406\u7684\u898f\u5247\u96c6\u8207\u4f5c\u696d\u93c8\u4e4b\u9593\u7684\u4e0d\u4e00\u81f4\u6027\u5f15\u8d77\u7684\u3002\u901a\u904e\u4ed4\u7d30\u6aa2\u67e5\u548c\u66f4\u65b0\u4f5c\u696d\u93c8\u53ca\u5176\u4f9d\u8cf4\u7684\u898f\u5247\u96c6\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u4f7f\u7528Oracle\u6578\u64da\u5eab\u7684\u4f01\u696d\u4f86\u8aaa\uff0c\u53ca\u6642\u8655\u7406\u9019\u985e\u932f\u8aa4\u662f\u78ba\u4fdd\u696d\u52d9\u6d41\u7a0b\u9806\u5229\u904b\u884c\u7684\u95dc\u9375\u3002<\/p>\n<p>\u5982\u9700\u9032\u4e00\u6b65\u4e86\u89e3\u5982\u4f55\u512a\u5316\u60a8\u7684\u6578\u64da\u5eab\u74b0\u5883\uff0c\u60a8\u53ef\u4ee5\u8003\u616e\u4f7f\u7528\u6211\u5011\u7684<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u89e3\u6c7a\u65b9\u6848\uff0c\u9019\u5c07\u70ba\u60a8\u7684\u696d\u52d9\u63d0\u4f9b\u7a69\u5b9a\u548c\u9ad8\u6548\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to troubleshoot ORA-27431: chain string.string has a user-managed rule set in Oracle. Find effective solutions for remote handling and error resolution.<\/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-90398","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90398","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=90398"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90398\/revisions"}],"predecessor-version":[{"id":90399,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/90398\/revisions\/90399"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=90398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=90398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=90398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}