{"id":88220,"date":"2024-10-18T07:35:17","date_gmt":"2024-10-17T23:35:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/88220\/"},"modified":"2024-10-18T07:35:18","modified_gmt":"2024-10-17T23:35:18","slug":"ora-24004-sort_list-%e4%b8%ad%e7%9a%84%e7%84%a1%e6%95%88%e5%88%97%e5%90%8d-string%ef%bc%8c%e6%87%89%e7%82%ba-enq_time-%e6%88%96-priority-oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/88220\/","title":{"rendered":"ORA-24004: SORT_LIST \u4e2d\u7684\u7121\u6548\u5217\u540d string\uff0c\u61c9\u70ba ENQ_TIME \u6216 PRIORITY ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-24004-sort_list-%e4%b8%ad%e7%9a%84%e7%84%a1%e6%95%88%e5%88%97%e5%90%8d-string%ef%bc%8c%e6%87%89%e7%82%ba-enq_time-%e6%88%96-priority-oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-mWJETzBNOp\">ORA-24004: SORT_LIST \u4e2d\u7684\u7121\u6548\u5217\u540d string\uff0c\u61c9\u70ba ENQ_TIME \u6216 PRIORITY ORACLE \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-24004<\/code>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u4f7f\u7528\u6392\u968a\u6a5f\u5236\u6642\uff0c\u7279\u5225\u662f\u5728\u8655\u7406\u6d88\u606f\u968a\u5217\u6216\u8abf\u5ea6\u4efb\u52d9\u6642\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-mWJETzBNOp\">\u932f\u8aa4\u539f\u56e0<\/h2>\n<p><code>ORA-24004<\/code> \u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662f <code>SORT_LIST<\/code> \u4e2d\u5305\u542b\u4e86\u7121\u6548\u7684\u5217\u540d\u3002\u6839\u64da Oracle \u7684\u6587\u6a94\uff0c<code>SORT_LIST<\/code> \u53ea\u80fd\u5305\u542b <code>ENQ_TIME<\/code> \u6216 <code>PRIORITY<\/code> \u9019\u5169\u500b\u5217\u540d\u3002\u5982\u679c\u5728 <code>SORT_LIST<\/code> \u4e2d\u4f7f\u7528\u4e86\u5176\u4ed6\u5217\u540d\uff0c\u5247\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u7684\u767c\u751f\u3002<\/p>\n<h3 id=\"%e7%a4%ba%e4%be%8b-mWJETzBNOp\">\u793a\u4f8b<\/h3>\n<p>\u5047\u8a2d\u60a8\u5728\u5275\u5efa\u4e00\u500b\u6d88\u606f\u968a\u5217\u6642\uff0c\u4f7f\u7528\u4e86\u4ee5\u4e0b SQL \u8a9e\u53e5\uff1a<\/p>\n<pre><code>BEGIN\n  DBMS_AQ.ENQUEUE(\n    queue_name =&gt; 'my_queue',\n    enqueue_options =&gt; DBMS_AQ.ENQUEUE_OPTIONS_T(),\n    message_properties =&gt; DBMS_AQ.MESSAGE_PROPERTIES_T(),\n    payload =&gt; my_payload,\n    msgid =&gt; my_msgid,\n    sort_list =&gt; 'INVALID_COLUMN'\n  );\nEND;<\/code><\/pre>\n<p>\u5728\u9019\u500b\u4f8b\u5b50\u4e2d\uff0c<code>sort_list<\/code> \u4f7f\u7528\u4e86\u7121\u6548\u7684\u5217\u540d <code>INVALID_COLUMN<\/code>\uff0c\u56e0\u6b64\u6703\u5f15\u767c <code>ORA-24004<\/code> \u932f\u8aa4\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-mWJETzBNOp\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u8981\u4fee\u5fa9 <code>ORA-24004<\/code> \u932f\u8aa4\uff0c\u60a8\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<ul>\n<li><strong>\u6aa2\u67e5 SQL \u8a9e\u53e5\uff1a<\/strong>\u9996\u5148\uff0c\u6aa2\u67e5\u5f15\u767c\u932f\u8aa4\u7684 SQL \u8a9e\u53e5\uff0c\u78ba\u4fdd <code>SORT_LIST<\/code> \u4e2d\u53ea\u5305\u542b <code>ENQ_TIME<\/code> \u6216 <code>PRIORITY<\/code>\u3002<\/li>\n<li><strong>\u4fee\u6539\u5217\u540d\uff1a<\/strong>\u5982\u679c\u767c\u73fe\u4f7f\u7528\u4e86\u7121\u6548\u7684\u5217\u540d\uff0c\u8acb\u5c07\u5176\u66ff\u63db\u70ba\u6709\u6548\u7684\u5217\u540d\u3002\u4f8b\u5982\uff1a<\/li>\n<pre><code>sort_list =&gt; 'ENQ_TIME'<\/code><\/pre>\n<li><strong>\u6e2c\u8a66\uff1a<\/strong>\u5728\u4fee\u6539\u5f8c\uff0c\u91cd\u65b0\u57f7\u884c SQL \u8a9e\u53e5\u4ee5\u78ba\u8a8d\u932f\u8aa4\u5df2\u88ab\u4fee\u5fa9\u3002<\/li>\n<\/ul>\n<h3 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86-mWJETzBNOp\">\u9060\u7a0b\u8655\u7406<\/h3>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u9032\u884c\u9060\u7a0b\u8655\u7406\u4f86\u89e3\u6c7a\u6b64\u932f\u8aa4\u3002\u9019\u901a\u5e38\u6d89\u53ca\u5230\u4f7f\u7528\u9060\u7a0b\u9023\u63a5\u4f86\u8a2a\u554f\u6578\u64da\u5eab\uff0c\u4e26\u57f7\u884c\u5fc5\u8981\u7684\u4fee\u5fa9\u6b65\u9a5f\u3002\u78ba\u4fdd\u60a8\u64c1\u6709\u9069\u7576\u7684\u6b0a\u9650\u4f86\u9032\u884c\u9019\u4e9b\u64cd\u4f5c\u3002<\/p>\n<h2 id=\"%e6%9c%80%e4%bd%b3%e5%af%a6%e8%b8%90-mWJETzBNOp\">\u6700\u4f73\u5be6\u8e10<\/h2>\n<p>\u70ba\u4e86\u907f\u514d\u672a\u4f86\u518d\u6b21\u9047\u5230 <code>ORA-24004<\/code> \u932f\u8aa4\uff0c\u5efa\u8b70\u9075\u5faa\u4ee5\u4e0b\u6700\u4f73\u5be6\u8e10\uff1a<\/p>\n<ul>\n<li>\u5728\u7de8\u5beb SQL \u8a9e\u53e5\u6642\uff0c\u59cb\u7d42\u6aa2\u67e5\u5217\u540d\u7684\u6709\u6548\u6027\u3002<\/li>\n<li>\u4f7f\u7528\u7248\u672c\u63a7\u5236\u7cfb\u7d71\u4f86\u8ddf\u8e2a SQL \u8a9e\u53e5\u7684\u8b8a\u66f4\uff0c\u9019\u6a23\u53ef\u4ee5\u8f15\u9b06\u56de\u6eaf\u5230\u4e4b\u524d\u7684\u7248\u672c\u3002<\/li>\n<li>\u5b9a\u671f\u9032\u884c\u6578\u64da\u5eab\u7684\u5065\u5eb7\u6aa2\u67e5\uff0c\u4ee5\u78ba\u4fdd\u6240\u6709\u529f\u80fd\u6b63\u5e38\u904b\u884c\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-mWJETzBNOp\">\u7e3d\u7d50<\/h2>\n<p>\u5728 Oracle \u6578\u64da\u5eab\u4e2d\uff0c<code>ORA-24004<\/code> \u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc <code>SORT_LIST<\/code> \u4e2d\u7684\u7121\u6548\u5217\u540d\u5f15\u8d77\u7684\u3002\u901a\u904e\u6aa2\u67e5\u548c\u4fee\u6b63 SQL \u8a9e\u53e5\u4e2d\u7684\u5217\u540d\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u9075\u5faa\u6700\u4f73\u5be6\u8e10\u5c07\u6709\u52a9\u65bc\u6e1b\u5c11\u672a\u4f86\u51fa\u73fe\u985e\u4f3c\u932f\u8aa4\u7684\u6a5f\u6703\u3002<\/p>\n<p>\u5982\u679c\u60a8\u9700\u8981\u9032\u4e00\u6b65\u7684\u652f\u6301\u6216\u5c0b\u627e\u53ef\u9760\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-24004 \u932f\u8aa4\uff0c\u7121\u6548\u5217\u540d\u554f\u984c\uff0c\u63d0\u4f9b ENQ_TIME \u6216 PRIORITY \u7684\u6b63\u78ba\u7528\u6cd5\uff0c\u652f\u6301\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-88220","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/88220","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=88220"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/88220\/revisions"}],"predecessor-version":[{"id":88221,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/88220\/revisions\/88221"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=88220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=88220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=88220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}