{"id":88118,"date":"2024-10-18T06:44:20","date_gmt":"2024-10-17T22:44:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/88118\/"},"modified":"2024-10-18T06:44:21","modified_gmt":"2024-10-17T22:44:21","slug":"ora-23423-%e4%bd%9c%e6%a5%ad%e7%b7%a8%e8%99%9f-string-%e4%b8%8d%e6%98%af%e6%ad%a3%e6%95%b8-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\/88118\/","title":{"rendered":"ORA-23423: \u4f5c\u696d\u7de8\u865f string \u4e0d\u662f\u6b63\u6578 ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-23423-%e4%bd%9c%e6%a5%ad%e7%b7%a8%e8%99%9f-string-%e4%b8%8d%e6%98%af%e6%ad%a3%e6%95%b8-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-nnjSqqBRWJ\">ORA-23423: \u4f5c\u696d\u7de8\u865f string \u4e0d\u662f\u6b63\u6578 ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \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\u662f <strong>ORA-23423<\/strong>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8868\u793a\u4f5c\u696d\u7de8\u865f\u4e0d\u662f\u6b63\u6578\uff0c\u9019\u53ef\u80fd\u6703\u5c0e\u81f4\u6578\u64da\u5eab\u64cd\u4f5c\u7684\u5931\u6557\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u6b64\u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u4fee\u5fa9\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"ora-23423-%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-nnjSqqBRWJ\">ORA-23423 \u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>ORA-23423 \u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u4f7f\u7528 Oracle \u7684\u6392\u7a0b\u4f5c\u696d\u6642\u3002\u7576\u7528\u6236\u5617\u8a66\u57f7\u884c\u4e00\u500b\u4f5c\u696d\uff0c\u4f46\u63d0\u4f9b\u7684\u4f5c\u696d\u7de8\u865f\uff08job number\uff09\u4e0d\u662f\u6b63\u6578\u6642\uff0c\u5c31\u6703\u51fa\u73fe\u6b64\u932f\u8aa4\u3002\u9019\u53ef\u80fd\u662f\u7531\u65bc\u4ee5\u4e0b\u5e7e\u500b\u539f\u56e0\u9020\u6210\u7684\uff1a<\/p>\n<ul>\n<li><strong>\u932f\u8aa4\u7684\u4f5c\u696d\u7de8\u865f\uff1a<\/strong>\u7528\u6236\u53ef\u80fd\u5728\u57f7\u884c\u4f5c\u696d\u6642\u8f38\u5165\u4e86\u932f\u8aa4\u7684\u4f5c\u696d\u7de8\u865f\uff0c\u5c0e\u81f4\u7cfb\u7d71\u7121\u6cd5\u8b58\u5225\u3002<\/li>\n<li><strong>\u4f5c\u696d\u672a\u6b63\u78ba\u5275\u5efa\uff1a<\/strong>\u5982\u679c\u4f5c\u696d\u5728\u5275\u5efa\u904e\u7a0b\u4e2d\u51fa\u73fe\u554f\u984c\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u4f5c\u696d\u7de8\u865f\u7121\u6cd5\u6b63\u78ba\u751f\u6210\u3002<\/li>\n<li><strong>\u6578\u64da\u5eab\u640d\u58de\uff1a<\/strong>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u6578\u64da\u5eab\u7684\u5167\u90e8\u7d50\u69cb\u640d\u58de\u4e5f\u53ef\u80fd\u5c0e\u81f4\u4f5c\u696d\u7de8\u865f\u51fa\u73fe\u7570\u5e38\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-nnjSqqBRWJ\">\u5f71\u97ff<\/h2>\n<p>\u7576\u51fa\u73fe ORA-23423 \u932f\u8aa4\u6642\uff0c\u76f8\u95dc\u7684\u6578\u64da\u5eab\u64cd\u4f5c\u5c07\u7121\u6cd5\u7e7c\u7e8c\uff0c\u9019\u53ef\u80fd\u6703\u5f71\u97ff\u5230\u61c9\u7528\u7a0b\u5e8f\u7684\u6b63\u5e38\u904b\u884c\u3002\u7279\u5225\u662f\u5728\u9700\u8981\u5b9a\u671f\u57f7\u884c\u7684\u4efb\u52d9\uff08\u5982\u6578\u64da\u5099\u4efd\u3001\u5831\u544a\u751f\u6210\u7b49\uff09\u4e2d\uff0c\u9019\u500b\u932f\u8aa4\u53ef\u80fd\u6703\u5c0e\u81f4\u6578\u64da\u4e1f\u5931\u6216\u696d\u52d9\u4e2d\u65b7\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-nnjSqqBRWJ\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u4fee\u5fa9 ORA-23423 \u932f\u8aa4\u7684\u904e\u7a0b\u53ef\u4ee5\u5206\u70ba\u5e7e\u500b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e7%a2%ba%e8%aa%8d%e4%bd%9c%e6%a5%ad%e7%b7%a8%e8%99%9f-nnjSqqBRWJ\">1. \u78ba\u8a8d\u4f5c\u696d\u7de8\u865f<\/h3>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5\u60a8\u6240\u4f7f\u7528\u7684\u4f5c\u696d\u7de8\u865f\u662f\u5426\u6b63\u78ba\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b SQL \u67e5\u8a62\u4f86\u67e5\u770b\u7576\u524d\u7684\u4f5c\u696d\u5217\u8868\uff1a<\/p>\n<pre><code>SELECT job, what FROM user_jobs;<\/code><\/pre>\n<p>\u78ba\u4fdd\u60a8\u6240\u4f7f\u7528\u7684\u4f5c\u696d\u7de8\u865f\u5728\u5217\u8868\u4e2d\u5b58\u5728\uff0c\u4e26\u4e14\u662f\u6b63\u6578\u3002<\/p>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5%e4%bd%9c%e6%a5%ad%e7%8b%80%e6%85%8b-nnjSqqBRWJ\">2. \u6aa2\u67e5\u4f5c\u696d\u72c0\u614b<\/h3>\n<p>\u5982\u679c\u4f5c\u696d\u7de8\u865f\u6b63\u78ba\uff0c\u63a5\u4e0b\u4f86\u9700\u8981\u6aa2\u67e5\u4f5c\u696d\u7684\u72c0\u614b\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u67e5\u8a62\u4f86\u6aa2\u67e5\u4f5c\u696d\u7684\u72c0\u614b\uff1a<\/p>\n<pre><code>SELECT job, state FROM user_jobs WHERE job = &lt;your_job_number&gt;;<\/code><\/pre>\n<p>\u5982\u679c\u4f5c\u696d\u7684\u72c0\u614b\u986f\u793a\u70ba\u7121\u6548\u6216\u5931\u6557\uff0c\u5247\u9700\u8981\u91cd\u65b0\u5275\u5efa\u8a72\u4f5c\u696d\u3002<\/p>\n<h3 id=\"3-%e9%87%8d%e6%96%b0%e5%89%b5%e5%bb%ba%e4%bd%9c%e6%a5%ad-nnjSqqBRWJ\">3. \u91cd\u65b0\u5275\u5efa\u4f5c\u696d<\/h3>\n<p>\u5982\u679c\u767c\u73fe\u4f5c\u696d\u7121\u6cd5\u6b63\u5e38\u904b\u884c\uff0c\u53ef\u4ee5\u8003\u616e\u522a\u9664\u4e26\u91cd\u65b0\u5275\u5efa\u8a72\u4f5c\u696d\u3002\u4f7f\u7528\u4ee5\u4e0b SQL \u8a9e\u53e5\u522a\u9664\u4f5c\u696d\uff1a<\/p>\n<pre><code>BEGIN\n    DBMS_JOB.REMOVE(&lt;your_job_number&gt;);\nEND;<\/code><\/pre>\n<p>\u7136\u5f8c\uff0c\u4f7f\u7528\u9069\u7576\u7684\u53c3\u6578\u91cd\u65b0\u5275\u5efa\u4f5c\u696d\uff1a<\/p>\n<pre><code>DECLARE\n    job_no NUMBER;\nBEGIN\n    DBMS_JOB.SUBMIT(job_no, 'your_procedure;', SYSDATE);\n    COMMIT;\nEND;<\/code><\/pre>\n<h3 id=\"4-%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e5%ba%ab%e5%ae%8c%e6%95%b4%e6%80%a7-nnjSqqBRWJ\">4. \u6aa2\u67e5\u6578\u64da\u5eab\u5b8c\u6574\u6027<\/h3>\n<p>\u5982\u679c\u4ee5\u4e0a\u6b65\u9a5f\u7121\u6cd5\u89e3\u6c7a\u554f\u984c\uff0c\u5efa\u8b70\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u5b8c\u6574\u6027\u3002\u53ef\u4ee5\u4f7f\u7528 Oracle \u63d0\u4f9b\u7684\u5de5\u5177\u9032\u884c\u6578\u64da\u5eab\u6aa2\u67e5\u548c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-nnjSqqBRWJ\">\u7d50\u8ad6<\/h2>\n<p>ORA-23423 \u932f\u8aa4\u96d6\u7136\u770b\u4f3c\u7c21\u55ae\uff0c\u4f46\u5982\u679c\u4e0d\u53ca\u6642\u8655\u7406\uff0c\u53ef\u80fd\u6703\u5c0d\u696d\u52d9\u904b\u4f5c\u9020\u6210\u5f71\u97ff\u3002\u901a\u904e\u78ba\u8a8d\u4f5c\u696d\u7de8\u865f\u3001\u6aa2\u67e5\u4f5c\u696d\u72c0\u614b\u3001\u91cd\u65b0\u5275\u5efa\u4f5c\u696d\u4ee5\u53ca\u6aa2\u67e5\u6578\u64da\u5eab\u5b8c\u6574\u6027\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u904b\u884c\u7684\u61c9\u7528\u7a0b\u5e8f\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u670d\u52d9\u4e5f\u662f\u78ba\u4fdd\u6578\u64da\u5eab\u7a69\u5b9a\u904b\u884c\u7684\u91cd\u8981\u56e0\u7d20\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-23423 \u932f\u8aa4\uff1a\u4f5c\u696d\u7de8\u865f string \u4e0d\u662f\u6b63\u6578\u7684\u554f\u984c\uff0c\u63d0\u4f9b\u6709\u6548\u7684\u6545\u969c\u4fee\u5fa9\u548c\u9060\u7a0b\u8655\u7406\u65b9\u6848\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-88118","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/88118","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=88118"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/88118\/revisions"}],"predecessor-version":[{"id":88119,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/88118\/revisions\/88119"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=88118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=88118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=88118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}