{"id":82207,"date":"2024-10-16T18:48:14","date_gmt":"2024-10-16T10:48:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/82207\/"},"modified":"2024-10-16T18:48:14","modified_gmt":"2024-10-16T10:48:14","slug":"ora-00972-identifier-is-too-long-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\/82207\/","title":{"rendered":"ORA-00972: identifier is too long ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-00972-identifier-is-too-long-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-OamDPWcgMN\">ORA-00972: identifier is too long ORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528Oracle\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\u662fORA-00972\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8868\u793a\u8b58\u5225\u7b26\uff08\u5982\u8868\u540d\u3001\u5217\u540d\u6216\u5176\u4ed6\u5c0d\u8c61\u540d\uff09\u904e\u9577\uff0c\u8d85\u51fa\u4e86Oracle\u7684\u9650\u5236\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-00972\u932f\u8aa4\u7684\u539f\u56e0\u3001\u89e3\u6c7a\u65b9\u6848\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u9060\u7a0b\u8655\u7406\u3002<\/p>\n<h2 id=\"ora-00972%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-OamDPWcgMN\">ORA-00972\u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>ORA-00972\u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662f\u8b58\u5225\u7b26\u7684\u9577\u5ea6\u8d85\u904e\u4e86Oracle\u6578\u64da\u5eab\u7684\u6700\u5927\u9650\u5236\u3002\u6839\u64daOracle\u7684\u5b98\u65b9\u6587\u6a94\uff0c\u8b58\u5225\u7b26\u7684\u6700\u5927\u9577\u5ea6\u70ba30\u500b\u5b57\u7b26\u3002\u9019\u610f\u5473\u8457\u5982\u679c\u60a8\u5617\u8a66\u5275\u5efa\u4e00\u500b\u8868\u6216\u5217\uff0c\u4e26\u4e14\u5176\u540d\u7a31\u8d85\u904e30\u500b\u5b57\u7b26\uff0c\u5247\u6703\u5f15\u767c\u6b64\u932f\u8aa4\u3002<\/p>\n<ul>\n<li>\u4f8b\u5982\uff0c\u4ee5\u4e0bSQL\u8a9e\u53e5\u5c07\u5c0e\u81f4ORA-00972\u932f\u8aa4\uff1a<\/li>\n<\/ul>\n<pre><code>CREATE TABLE my_very_long_table_name_that_exceeds_the_limit (\n    id NUMBER,\n    name VARCHAR2(50)\n);<\/code><\/pre>\n<p>\u5728\u9019\u500b\u4f8b\u5b50\u4e2d\uff0c\u8868\u540d\u201cmy_very_long_table_name_that_exceeds_the_limit\u201d\u8d85\u904e\u4e8630\u500b\u5b57\u7b26\uff0c\u56e0\u6b64\u6703\u5f15\u767c\u932f\u8aa4\u3002<\/p>\n<h2 id=\"%e8%a7%a3%e6%b1%baora-00972%e9%8c%af%e8%aa%a4%e7%9a%84%e6%96%b9%e6%b3%95-OamDPWcgMN\">\u89e3\u6c7aORA-00972\u932f\u8aa4\u7684\u65b9\u6cd5<\/h2>\n<p>\u8981\u89e3\u6c7aORA-00972\u932f\u8aa4\uff0c\u60a8\u9700\u8981\u78ba\u4fdd\u6240\u6709\u8b58\u5225\u7b26\u90fd\u572830\u500b\u5b57\u7b26\u4ee5\u5167\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5177\u9ad4\u7684\u89e3\u6c7a\u65b9\u6848\uff1a<\/p>\n<ul>\n<li><strong>\u7e2e\u77ed\u8b58\u5225\u7b26\uff1a<\/strong>\u5c07\u8868\u540d\u3001\u5217\u540d\u6216\u5176\u4ed6\u5c0d\u8c61\u540d\u7e2e\u77ed\u523030\u500b\u5b57\u7b26\u4ee5\u5167\u3002<\/li>\n<li><strong>\u4f7f\u7528\u7c21\u7a31\uff1a<\/strong>\u5982\u679c\u53ef\u80fd\uff0c\u4f7f\u7528\u7c21\u7a31\u6216\u7e2e\u5beb\u4f86\u8868\u793a\u9577\u540d\u7a31\u3002<\/li>\n<li><strong>\u91cd\u547d\u540d\u5c0d\u8c61\uff1a<\/strong>\u5982\u679c\u5df2\u7d93\u5b58\u5728\u7684\u5c0d\u8c61\u540d\u7a31\u904e\u9577\uff0c\u53ef\u4ee5\u8003\u616e\u91cd\u547d\u540d\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5c07\u4e0a\u9762\u7684SQL\u8a9e\u53e5\u4fee\u6539\u70ba\uff1a<\/p>\n<pre><code>CREATE TABLE my_table (\n    id NUMBER,\n    name VARCHAR2(50)\n);<\/code><\/pre>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86ora-00972%e9%8c%af%e8%aa%a4-OamDPWcgMN\">\u9060\u7a0b\u8655\u7406ORA-00972\u932f\u8aa4<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u60a8\u53ef\u80fd\u7121\u6cd5\u76f4\u63a5\u8a2a\u554f\u6578\u64da\u5eab\u4f86\u9032\u884c\u4fee\u6539\uff0c\u9019\u6642\u5019\u53ef\u4ee5\u8003\u616e\u9060\u7a0b\u8655\u7406\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6b65\u9a5f\u4f86\u9032\u884c\u9060\u7a0b\u6545\u969c\u6392\u9664\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528SQL*Plus\u6216\u5176\u4ed6\u5ba2\u6236\u7aef\u5de5\u5177\uff1a<\/strong>\u901a\u904e\u9060\u7a0b\u9023\u63a5\u5230\u6578\u64da\u5eab\uff0c\u4f7f\u7528SQL*Plus\u6216\u5176\u4ed6\u5ba2\u6236\u7aef\u5de5\u5177\u57f7\u884cSQL\u8a9e\u53e5\u3002<\/li>\n<li><strong>\u6aa2\u67e5\u932f\u8aa4\u65e5\u8a8c\uff1a<\/strong>\u67e5\u770b\u6578\u64da\u5eab\u7684\u932f\u8aa4\u65e5\u8a8c\uff0c\u4ee5\u7372\u53d6\u66f4\u591a\u6709\u95dc\u932f\u8aa4\u7684\u8a73\u7d30\u4fe1\u606f\u3002<\/li>\n<li><strong>\u8207\u958b\u767c\u5718\u968a\u5354\u4f5c\uff1a<\/strong>\u5982\u679c\u60a8\u7121\u6cd5\u89e3\u6c7a\u554f\u984c\uff0c\u8acb\u8207\u958b\u767c\u5718\u968a\u6216\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u5354\u4f5c\uff0c\u5c0b\u627e\u89e3\u6c7a\u65b9\u6848\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-OamDPWcgMN\">\u7e3d\u7d50<\/h2>\n<p>ORA-00972: identifier is too long\u662f\u4e00\u500b\u5e38\u898b\u7684Oracle\u932f\u8aa4\uff0c\u901a\u5e38\u7531\u65bc\u8b58\u5225\u7b26\u8d85\u904e30\u500b\u5b57\u7b26\u800c\u5f15\u767c\u3002\u901a\u904e\u7e2e\u77ed\u8b58\u5225\u7b26\u3001\u4f7f\u7528\u7c21\u7a31\u6216\u91cd\u547d\u540d\u5c0d\u8c61\uff0c\u53ef\u4ee5\u6709\u6548\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5728\u7121\u6cd5\u76f4\u63a5\u8a2a\u554f\u6578\u64da\u5eab\u7684\u60c5\u6cc1\u4e0b\uff0c\u9060\u7a0b\u8655\u7406\u4e5f\u662f\u4e00\u7a2e\u53ef\u884c\u7684\u89e3\u6c7a\u65b9\u6848\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u7684\u6578\u64da\u5eab\u670d\u52d9\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>\u53ef\u4ee5\u70ba\u60a8\u7684\u696d\u52d9\u63d0\u4f9b\u652f\u6301\uff0c\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u6b63\u5e38\u904b\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7aORA-00972\u932f\u8aa4\uff0c\u8b58\u5225\u7b26\u865f\u904e\u9577\u7684\u554f\u984c\uff0c\u63d0\u4f9bORACLE\u5831\u932f\u6545\u969c\u4fee\u5fa9\u7684\u9060\u7a0b\u8655\u7406\u65b9\u6848\uff0c\u52a9\u60a8\u5feb\u901f\u6062\u5fa9\u7cfb\u7d71\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-82207","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82207","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=82207"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82207\/revisions"}],"predecessor-version":[{"id":82208,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/82207\/revisions\/82208"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=82207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=82207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=82207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}