{"id":87400,"date":"2024-10-18T00:44:29","date_gmt":"2024-10-17T16:44:29","guid":{"rendered":"https:\/\/server.hk\/cnblog\/87400\/"},"modified":"2024-10-18T00:44:29","modified_gmt":"2024-10-17T16:44:29","slug":"ora-18176-ftdy0017-%e8%bc%95%e5%be%ae%e4%b8%8d%e9%81%b8%e6%93%87%e5%8c%85%e5%90%ab-stringexclude-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\/87400\/","title":{"rendered":"ORA-18176: FTDY0017 \u8f15\u5fae\u4e0d\u9078\u64c7\u5305\u542b StringExclude ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-18176-ftdy0017-%e8%bc%95%e5%be%ae%e4%b8%8d%e9%81%b8%e6%93%87%e5%8c%85%e5%90%ab-stringexclude-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-xKiHfZcbAY\">ORA-18176: FTDY0017 \u8f15\u5fae\u4e0d\u9078\u64c7\u5305\u542b StringExclude 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 <code>ORA-18176<\/code>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207\u6578\u64da\u5eab\u7684\u67e5\u8a62\u6216\u6578\u64da\u8655\u7406\u6709\u95dc\uff0c\u7279\u5225\u662f\u5728\u4f7f\u7528\u67d0\u4e9b\u7279\u5b9a\u7684\u9078\u9805\u6642\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e <code>ORA-18176: FTDY0017 \u8f15\u5fae\u4e0d\u9078\u64c7\u5305\u542b StringExclude<\/code> \u7684\u539f\u56e0\u53ca\u5176\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e5%8e%9f%e5%9b%a0%e5%88%86%e6%9e%90-xKiHfZcbAY\">\u932f\u8aa4\u539f\u56e0\u5206\u6790<\/h2>\n<p>\u7576\u4f60\u5728 Oracle \u6578\u64da\u5eab\u4e2d\u57f7\u884c\u67e5\u8a62\u6642\uff0c\u53ef\u80fd\u6703\u9047\u5230 <code>ORA-18176<\/code> \u932f\u8aa4\u3002\u9019\u901a\u5e38\u662f\u56e0\u70ba\u5728\u67e5\u8a62\u4e2d\u4f7f\u7528\u4e86\u4e0d\u6b63\u78ba\u7684\u9078\u9805\u6216\u53c3\u6578\u3002\u5177\u9ad4\u4f86\u8aaa\uff0c<code>StringExclude<\/code> \u662f\u4e00\u500b\u7528\u65bc\u904e\u6ffe\u6578\u64da\u7684\u9078\u9805\uff0c\u7576\u5b83\u672a\u6b63\u78ba\u914d\u7f6e\u6216\u4f7f\u7528\u6642\uff0c\u5c31\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/p>\n<ul>\n<li><strong>\u67e5\u8a62\u8a9e\u6cd5\u932f\u8aa4\uff1a<\/strong>\u5982\u679c\u67e5\u8a62\u7684\u8a9e\u6cd5\u4e0d\u6b63\u78ba\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4 Oracle \u7121\u6cd5\u6b63\u78ba\u89e3\u6790 <code>StringExclude<\/code> \u7684\u53c3\u6578\u3002<\/li>\n<li><strong>\u6578\u64da\u985e\u578b\u4e0d\u5339\u914d\uff1a<\/strong>\u5728\u4f7f\u7528 <code>StringExclude<\/code> \u6642\uff0c\u78ba\u4fdd\u6240\u4f7f\u7528\u7684\u6578\u64da\u985e\u578b\u8207\u6578\u64da\u5eab\u4e2d\u7684\u985e\u578b\u76f8\u7b26\u3002<\/li>\n<li><strong>\u7f3a\u5c11\u5fc5\u8981\u7684\u53c3\u6578\uff1a<\/strong>\u67d0\u4e9b\u67e5\u8a62\u53ef\u80fd\u9700\u8981\u984d\u5916\u7684\u53c3\u6578\u4f86\u6b63\u78ba\u57f7\u884c\uff0c\u7f3a\u5c11\u9019\u4e9b\u53c3\u6578\u6703\u5c0e\u81f4\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-xKiHfZcbAY\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u7576\u9047\u5230 <code>ORA-18176<\/code> \u932f\u8aa4\u6642\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u6545\u969c\u6392\u9664\u548c\u4fee\u5fa9\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e6%9f%a5%e8%a9%a2%e8%aa%9e%e6%b3%95-xKiHfZcbAY\">1. \u6aa2\u67e5\u67e5\u8a62\u8a9e\u6cd5<\/h3>\n<p>\u9996\u5148\uff0c\u4ed4\u7d30\u6aa2\u67e5\u4f60\u7684 SQL \u67e5\u8a62\u8a9e\u6cd5\u3002\u78ba\u4fdd\u6240\u6709\u7684\u95dc\u9375\u5b57\u548c\u53c3\u6578\u90fd\u6b63\u78ba\u7121\u8aa4\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code>SELECT * FROM your_table WHERE your_column NOT IN (SELECT your_value FROM another_table WHERE condition);<\/code><\/pre>\n<h3 id=\"2-%e7%a2%ba%e8%aa%8d%e6%95%b8%e6%93%9a%e9%a1%9e%e5%9e%8b-xKiHfZcbAY\">2. \u78ba\u8a8d\u6578\u64da\u985e\u578b<\/h3>\n<p>\u6aa2\u67e5 <code>StringExclude<\/code> \u4e2d\u7684\u6578\u64da\u985e\u578b\u662f\u5426\u8207\u6578\u64da\u5eab\u4e2d\u7684\u985e\u578b\u76f8\u7b26\u3002\u5982\u679c\u4e0d\u5339\u914d\uff0c\u5247\u9700\u8981\u9032\u884c\u985e\u578b\u8f49\u63db\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code>SELECT * FROM your_table WHERE your_column NOT IN (SELECT CAST(your_value AS VARCHAR2(100)) FROM another_table WHERE condition);<\/code><\/pre>\n<h3 id=\"3-%e6%b7%bb%e5%8a%a0%e5%bf%85%e8%a6%81%e7%9a%84%e5%8f%83%e6%95%b8-xKiHfZcbAY\">3. \u6dfb\u52a0\u5fc5\u8981\u7684\u53c3\u6578<\/h3>\n<p>\u5982\u679c\u67e5\u8a62\u9700\u8981\u984d\u5916\u7684\u53c3\u6578\uff0c\u8acb\u78ba\u4fdd\u9019\u4e9b\u53c3\u6578\u5df2\u6b63\u78ba\u6dfb\u52a0\u3002\u4f8b\u5982\uff0c\u4f7f\u7528 <code>AND<\/code> \u6216 <code>OR<\/code> \u4f86\u64f4\u5c55\u67e5\u8a62\u689d\u4ef6\u3002<\/p>\n<h3 id=\"4-%e6%b8%ac%e8%a9%a6%e6%9f%a5%e8%a9%a2-xKiHfZcbAY\">4. \u6e2c\u8a66\u67e5\u8a62<\/h3>\n<p>\u5728\u4fee\u6b63\u67e5\u8a62\u5f8c\uff0c\u9032\u884c\u6e2c\u8a66\u4ee5\u78ba\u4fdd\u554f\u984c\u5df2\u89e3\u6c7a\u3002\u53ef\u4ee5\u4f7f\u7528 <code>EXPLAIN PLAN<\/code> \u4f86\u67e5\u770b\u67e5\u8a62\u7684\u57f7\u884c\u8a08\u5283\uff0c\u5e6b\u52a9\u8b58\u5225\u6f5b\u5728\u7684\u6027\u80fd\u554f\u984c\u3002<\/p>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86%e5%bb%ba%e8%ad%b0-xKiHfZcbAY\">\u9060\u7a0b\u8655\u7406\u5efa\u8b70<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u9060\u7a0b\u8655\u7406\u4f86\u89e3\u6c7a <code>ORA-18176<\/code> \u932f\u8aa4\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u65b9\u5f0f\u9032\u884c\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528\u9060\u7a0b\u684c\u9762\u5de5\u5177\uff1a<\/strong>\u5982 TeamViewer \u6216 AnyDesk\uff0c\u8b93\u5c08\u696d\u4eba\u54e1\u9060\u7a0b\u8a2a\u554f\u4f60\u7684\u7cfb\u7d71\u9032\u884c\u6545\u969c\u6392\u9664\u3002<\/li>\n<li><strong>\u5171\u4eab\u5c4f\u5e55\uff1a<\/strong>\u901a\u904e\u8996\u983b\u6703\u8b70\u5de5\u5177\u5171\u4eab\u5c4f\u5e55\uff0c\u8b93\u6280\u8853\u652f\u6301\u4eba\u54e1\u80fd\u5920\u5be6\u6642\u67e5\u770b\u554f\u984c\u3002<\/li>\n<li><strong>\u8a18\u9304\u932f\u8aa4\u65e5\u8a8c\uff1a<\/strong>\u5728\u9032\u884c\u9060\u7a0b\u8655\u7406\u6642\uff0c\u8a18\u9304\u6240\u6709\u932f\u8aa4\u65e5\u8a8c\u548c\u64cd\u4f5c\u6b65\u9a5f\uff0c\u4ee5\u4fbf\u5f8c\u7e8c\u5206\u6790\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-xKiHfZcbAY\">\u7e3d\u7d50<\/h2>\n<p>\u9047\u5230 <code>ORA-18176: FTDY0017 \u8f15\u5fae\u4e0d\u9078\u64c7\u5305\u542b StringExclude<\/code> \u932f\u8aa4\u6642\uff0c\u901a\u904e\u6aa2\u67e5\u67e5\u8a62\u8a9e\u6cd5\u3001\u78ba\u8a8d\u6578\u64da\u985e\u578b\u3001\u6dfb\u52a0\u5fc5\u8981\u7684\u53c3\u6578\u4ee5\u53ca\u9032\u884c\u6e2c\u8a66\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u554f\u984c\u3002\u5982\u679c\u9700\u8981\u9032\u4e00\u6b65\u7684\u5e6b\u52a9\uff0c\u8003\u616e\u4f7f\u7528\u9060\u7a0b\u8655\u7406\u5de5\u5177\u4f86\u7372\u53d6\u5c08\u696d\u652f\u6301\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u7684\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u6216 <a href=\"https:\/\/server.hk\">\u4e91\u670d\u52a1\u5668<\/a> \u670d\u52d9\u5c07\u662f\u660e\u667a\u7684\u9078\u64c7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-18176: FTDY0017 \u932f\u8aa4\uff0c\u8f15\u5fae\u4e0d\u9078\u64c7\u5305\u542b StringExclude \u7684 Oracle \u6545\u969c\u4fee\u5fa9\u8207\u9060\u7a0b\u8655\u7406\u6307\u5357\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-87400","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87400","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=87400"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87400\/revisions"}],"predecessor-version":[{"id":87401,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/87400\/revisions\/87401"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=87400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=87400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=87400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}