{"id":89402,"date":"2024-10-18T11:37:16","date_gmt":"2024-10-18T03:37:16","guid":{"rendered":"https:\/\/server.hk\/cnblog\/89402\/"},"modified":"2024-10-18T11:37:17","modified_gmt":"2024-10-18T03:37:17","slug":"ora-25953-%e9%80%a3%e6%8e%a5%e7%b4%a2%e5%bc%95%e4%b8%8d%e8%83%bd%e6%98%af%e5%87%bd%e6%95%b8%e7%b4%a2%e5%bc%95-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","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/89402\/","title":{"rendered":"ORA-25953: \u9023\u63a5\u7d22\u5f15\u4e0d\u80fd\u662f\u51fd\u6578\u7d22\u5f15 ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-25953-%e9%80%a3%e6%8e%a5%e7%b4%a2%e5%bc%95%e4%b8%8d%e8%83%bd%e6%98%af%e5%87%bd%e6%95%b8%e7%b4%a2%e5%bc%95-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-GFVghQtWkQ\">ORA-25953: \u9023\u63a5\u7d22\u5f15\u4e0d\u80fd\u662f\u51fd\u6578\u7d22\u5f15 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-25953<\/code>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u5617\u8a66\u5275\u5efa\u6216\u4f7f\u7528\u9023\u63a5\u7d22\u5f15\u6642\uff0c\u4e26\u4e14\u8a72\u7d22\u5f15\u662f\u57fa\u65bc\u51fd\u6578\u7d22\u5f15\u7684\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=\"ora-25953-%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-GFVghQtWkQ\">ORA-25953 \u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>\u7576\u4f60\u5728 Oracle \u6578\u64da\u5eab\u4e2d\u5275\u5efa\u4e00\u500b\u9023\u63a5\u7d22\u5f15\u6642\uff0c\u7cfb\u7d71\u8981\u6c42\u8a72\u7d22\u5f15\u5fc5\u9808\u662f\u57fa\u65bc\u5217\u7684\uff0c\u800c\u4e0d\u662f\u57fa\u65bc\u51fd\u6578\u7684\u3002\u9019\u662f\u56e0\u70ba\u9023\u63a5\u7d22\u5f15\u7684\u8a2d\u8a08\u76ee\u7684\u662f\u70ba\u4e86\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\uff0c\u800c\u51fd\u6578\u7d22\u5f15\u5247\u662f\u7528\u65bc\u7279\u5b9a\u7684\u8a08\u7b97\u6216\u8f49\u63db\u3002\u7576\u4f60\u5617\u8a66\u5c07\u51fd\u6578\u7d22\u5f15\u7528\u4f5c\u9023\u63a5\u7d22\u5f15\u6642\uff0cOracle \u6703\u8fd4\u56de <code>ORA-25953<\/code> \u932f\u8aa4\u3002<\/p>\n<h3 id=\"%e7%a4%ba%e4%be%8b-GFVghQtWkQ\">\u793a\u4f8b<\/h3>\n<p>\u5047\u8a2d\u4f60\u6709\u4ee5\u4e0b\u7684\u8868\u7d50\u69cb\uff1a<\/p>\n<pre><code>CREATE TABLE employees (\n    employee_id NUMBER,\n    first_name VARCHAR2(50),\n    last_name VARCHAR2(50),\n    salary NUMBER\n);\n<\/code><\/pre>\n<p>\u5982\u679c\u4f60\u5617\u8a66\u5275\u5efa\u4e00\u500b\u57fa\u65bc\u51fd\u6578\u7684\u9023\u63a5\u7d22\u5f15\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre><code>CREATE INDEX emp_index ON employees (UPPER(first_name));\n<\/code><\/pre>\n<p>\u9019\u5c07\u5c0e\u81f4 <code>ORA-25953<\/code> \u932f\u8aa4\uff0c\u56e0\u70ba\u4f60\u4e0d\u80fd\u5c07\u51fd\u6578\u7d22\u5f15\u7528\u65bc\u9023\u63a5\u7d22\u5f15\u3002<\/p>\n<h2 id=\"%e5%a6%82%e4%bd%95%e4%bf%ae%e5%be%a9-ora-25953-%e9%8c%af%e8%aa%a4-GFVghQtWkQ\">\u5982\u4f55\u4fee\u5fa9 ORA-25953 \u932f\u8aa4<\/h2>\n<p>\u8981\u4fee\u5fa9\u9019\u500b\u932f\u8aa4\uff0c\u9996\u5148\u9700\u8981\u78ba\u4fdd\u4f60\u5275\u5efa\u7684\u7d22\u5f15\u662f\u57fa\u65bc\u8868\u4e2d\u7684\u5217\uff0c\u800c\u4e0d\u662f\u51fd\u6578\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6b65\u9a5f\u4f86\u89e3\u6c7a\u9019\u500b\u554f\u984c\uff1a<\/p>\n<ul>\n<li><strong>\u6aa2\u67e5\u7d22\u5f15\u5b9a\u7fa9\uff1a<\/strong>\u78ba\u4fdd\u4f60\u5275\u5efa\u7684\u7d22\u5f15\u662f\u57fa\u65bc\u5217\u7684\uff0c\u800c\u4e0d\u662f\u51fd\u6578\u7684\u3002<\/li>\n<li><strong>\u91cd\u65b0\u8a2d\u8a08\u7d22\u5f15\uff1a<\/strong>\u5982\u679c\u9700\u8981\u4f7f\u7528\u51fd\u6578\uff0c\u8003\u616e\u5c07\u51fd\u6578\u7d22\u5f15\u8207\u5176\u4ed6\u67e5\u8a62\u7d50\u5408\u4f7f\u7528\uff0c\u800c\u4e0d\u662f\u4f5c\u70ba\u9023\u63a5\u7d22\u5f15\u3002<\/li>\n<li><strong>\u4f7f\u7528\u666e\u901a\u7d22\u5f15\uff1a<\/strong>\u5982\u679c\u4f60\u7684\u67e5\u8a62\u4e0d\u9700\u8981\u51fd\u6578\u8655\u7406\uff0c\u5247\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u666e\u901a\u7d22\u5f15\u3002<\/li>\n<\/ul>\n<h3 id=\"%e7%a4%ba%e4%be%8b%e4%bf%ae%e5%be%a9-GFVghQtWkQ\">\u793a\u4f8b\u4fee\u5fa9<\/h3>\n<p>\u4ee5\u4e0b\u662f\u4e00\u500b\u6b63\u78ba\u7684\u7d22\u5f15\u5275\u5efa\u793a\u4f8b\uff1a<\/p>\n<pre><code>CREATE INDEX emp_index ON employees (first_name);\n<\/code><\/pre>\n<p>\u9019\u6a23\u7684\u7d22\u5f15\u5c07\u4e0d\u6703\u5f15\u767c <code>ORA-25953<\/code> \u932f\u8aa4\uff0c\u4e26\u4e14\u80fd\u5920\u6709\u6548\u5730\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\u3002<\/p>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86-ora-25953-%e9%8c%af%e8%aa%a4-GFVghQtWkQ\">\u9060\u7a0b\u8655\u7406 ORA-25953 \u932f\u8aa4<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u53ef\u80fd\u9700\u8981\u9060\u7a0b\u8655\u7406\u6b64\u932f\u8aa4\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<ul>\n<li><strong>\u9060\u7a0b\u9023\u63a5\u5230\u6578\u64da\u5eab\uff1a<\/strong>\u4f7f\u7528 SQL*Plus \u6216\u5176\u4ed6\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\u9023\u63a5\u5230 Oracle \u6578\u64da\u5eab\u3002<\/li>\n<li><strong>\u6aa2\u67e5\u7576\u524d\u7d22\u5f15\uff1a<\/strong>\u4f7f\u7528\u67e5\u8a62\u6aa2\u67e5\u7576\u524d\u7684\u7d22\u5f15\u5b9a\u7fa9\uff0c\u78ba\u4fdd\u5b83\u5011\u7b26\u5408\u8981\u6c42\u3002<\/li>\n<li><strong>\u4fee\u6539\u6216\u522a\u9664\u932f\u8aa4\u7684\u7d22\u5f15\uff1a<\/strong>\u6839\u64da\u9700\u8981\u4fee\u6539\u6216\u522a\u9664\u5f15\u767c\u932f\u8aa4\u7684\u7d22\u5f15\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-GFVghQtWkQ\">\u7e3d\u7d50<\/h2>\n<p>\u5728 Oracle \u6578\u64da\u5eab\u4e2d\uff0c<code>ORA-25953<\/code> \u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc\u5617\u8a66\u5c07\u51fd\u6578\u7d22\u5f15\u7528\u4f5c\u9023\u63a5\u7d22\u5f15\u6240\u5f15\u8d77\u7684\u3002\u901a\u904e\u6aa2\u67e5\u7d22\u5f15\u5b9a\u7fa9\u4e26\u78ba\u4fdd\u4f7f\u7528\u6b63\u78ba\u7684\u7d22\u5f15\u985e\u578b\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u9060\u7a0b\u8655\u7406\u7684\u60c5\u6cc1\uff0c\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u53ef\u4ee5\u901a\u904e\u9060\u7a0b\u9023\u63a5\u9032\u884c\u5fc5\u8981\u7684\u4fee\u6539\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u9ad8\u6548\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\u4ee5\u6eff\u8db3\u60a8\u7684\u9700\u6c42\uff0c\u7121\u8ad6\u662f\u6578\u64da\u5eab\u7ba1\u7406\u9084\u662f\u5176\u4ed6\u61c9\u7528\u7a0b\u5e8f\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-25953 \u932f\u8aa4\uff0c\u4e86\u89e3\u9023\u63a5\u7d22\u5f15\u8207\u51fd\u6578\u7d22\u5f15\u7684\u9650\u5236\uff0c\u63d0\u4f9b\u6709\u6548\u7684\u6545\u969c\u4fee\u5fa9\u8207\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-89402","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/89402","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=89402"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/89402\/revisions"}],"predecessor-version":[{"id":89403,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/89402\/revisions\/89403"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=89402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=89402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=89402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}