{"id":92454,"date":"2024-10-19T05:44:16","date_gmt":"2024-10-18T21:44:16","guid":{"rendered":"https:\/\/server.hk\/cnblog\/92454\/"},"modified":"2024-10-19T05:44:17","modified_gmt":"2024-10-18T21:44:17","slug":"ora-39925-%e8%a1%a8%e7%a9%ba%e9%96%93-string-%e4%b8%ad%e7%9a%84-lob-%e6%ae%b5-string-string-%e6%8c%87%e5%90%91%e8%a1%a8%e7%a9%ba%e9%96%93-string-%e4%b8%ad%e7%9a%84%e8%a1%a8-string-string%e3%80%82-ora","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/92454\/","title":{"rendered":"ORA-39925: \u8868\u7a7a\u9593 string \u4e2d\u7684 LOB \u6bb5 string.string \u6307\u5411\u8868\u7a7a\u9593 string \u4e2d\u7684\u8868 string.string\u3002 ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-39925-%e8%a1%a8%e7%a9%ba%e9%96%93-string-%e4%b8%ad%e7%9a%84-lob-%e6%ae%b5-string-string-%e6%8c%87%e5%90%91%e8%a1%a8%e7%a9%ba%e9%96%93-string-%e4%b8%ad%e7%9a%84%e8%a1%a8-string-string-%e7%9a%84-GUtJhowKMQ\">ORA-39925: \u8868\u7a7a\u9593 string \u4e2d\u7684 LOB \u6bb5 string.string \u6307\u5411\u8868\u7a7a\u9593 string \u4e2d\u7684\u8868 string.string \u7684\u6545\u969c\u4fee\u5fa9<\/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-39925<\/code>\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207\u5927\u578b\u5c0d\u8c61\uff08LOB\uff09\u6bb5\u7684\u7ba1\u7406\u6709\u95dc\uff0c\u7279\u5225\u662f\u5728\u8868\u7a7a\u9593\u7684\u914d\u7f6e\u548c\u4f7f\u7528\u4e0a\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u9019\u500b\u932f\u8aa4\u7684\u6210\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u4fee\u5fa9\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e6%a6%82%e8%bf%b0-GUtJhowKMQ\">\u932f\u8aa4\u6982\u8ff0<\/h2>\n<p>\u932f\u8aa4\u4fe1\u606f <code>ORA-39925<\/code> \u8868\u793a\u5728\u67d0\u500b\u8868\u7a7a\u9593\u4e2d\uff0cLOB \u6bb5\u6307\u5411\u4e86\u53e6\u4e00\u500b\u8868\u7a7a\u9593\u4e2d\u7684\u8868\u3002\u9019\u901a\u5e38\u767c\u751f\u5728\u6578\u64da\u5eab\u7684\u7d50\u69cb\u4e0d\u4e00\u81f4\u6216\u914d\u7f6e\u4e0d\u7576\u7684\u60c5\u6cc1\u4e0b\u3002LOB\uff08Large Object\uff09\u6578\u64da\u985e\u578b\u7528\u65bc\u5b58\u5132\u5927\u91cf\u6578\u64da\uff0c\u5982\u5716\u7247\u3001\u8996\u983b\u6216\u6587\u672c\uff0c\u9019\u4e9b\u6578\u64da\u901a\u5e38\u9700\u8981\u7279\u5225\u7684\u7ba1\u7406\u548c\u914d\u7f6e\u3002<\/p>\n<h2 id=\"%e9%8c%af%e8%aa%a4%e6%88%90%e5%9b%a0-GUtJhowKMQ\">\u932f\u8aa4\u6210\u56e0<\/h2>\n<ul>\n<li><strong>\u8868\u7a7a\u9593\u914d\u7f6e\u4e0d\u7576\uff1a<\/strong>\u7576 LOB \u6bb5\u548c\u5176\u5c0d\u61c9\u7684\u8868\u4e0d\u5728\u540c\u4e00\u8868\u7a7a\u9593\u4e2d\u6642\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u6b64\u932f\u8aa4\u3002<\/li>\n<li><strong>\u6578\u64da\u5eab\u9077\u79fb\u6216\u5347\u7d1a\uff1a<\/strong>\u5728\u9032\u884c\u6578\u64da\u5eab\u7684\u9077\u79fb\u6216\u5347\u7d1a\u904e\u7a0b\u4e2d\uff0c\u8868\u7a7a\u9593\u7684\u7d50\u69cb\u53ef\u80fd\u6703\u767c\u751f\u8b8a\u5316\uff0c\u5c0e\u81f4\u6307\u5411\u932f\u8aa4\u3002<\/li>\n<li><strong>\u4e0d\u6b63\u78ba\u7684 DDL \u64cd\u4f5c\uff1a<\/strong>\u5728\u57f7\u884c\u6578\u64da\u5b9a\u7fa9\u8a9e\u8a00\uff08DDL\uff09\u64cd\u4f5c\u6642\uff0c\u82e5\u672a\u6b63\u78ba\u6307\u5b9a\u8868\u7a7a\u9593\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4 LOB \u6bb5\u7684\u6307\u5411\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%95%85%e9%9a%9c%e5%bd%b1%e9%9f%bf-GUtJhowKMQ\">\u6545\u969c\u5f71\u97ff<\/h2>\n<p>\u7576\u51fa\u73fe <code>ORA-39925<\/code> \u932f\u8aa4\u6642\uff0c\u6578\u64da\u5eab\u7684\u6b63\u5e38\u904b\u884c\u6703\u53d7\u5230\u5f71\u97ff\u3002\u5177\u9ad4\u5f71\u97ff\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u7121\u6cd5\u63d2\u5165\u6216\u66f4\u65b0\u5305\u542b LOB \u7684\u8868\u3002<\/li>\n<li>\u67e5\u8a62\u64cd\u4f5c\u53ef\u80fd\u6703\u5931\u6557\uff0c\u5c0e\u81f4\u61c9\u7528\u7a0b\u5e8f\u7121\u6cd5\u6b63\u5e38\u904b\u884c\u3002<\/li>\n<li>\u6578\u64da\u5b8c\u6574\u6027\u53ef\u80fd\u53d7\u5230\u5a01\u8105\uff0c\u56e0\u70ba LOB \u6bb5\u7684\u6307\u5411\u4e0d\u6b63\u78ba\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-GUtJhowKMQ\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u4fee\u5fa9 <code>ORA-39925<\/code> \u932f\u8aa4\u7684\u904e\u7a0b\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u5e7e\u500b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e7%a2%ba%e8%aa%8d%e8%a1%a8%e7%a9%ba%e9%96%93%e9%85%8d%e7%bd%ae-GUtJhowKMQ\">1. \u78ba\u8a8d\u8868\u7a7a\u9593\u914d\u7f6e<\/h3>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5 LOB \u6bb5\u548c\u5176\u5c0d\u61c9\u8868\u7684\u8868\u7a7a\u9593\u914d\u7f6e\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b SQL \u67e5\u8a62\u4f86\u6aa2\u67e5\uff1a<\/p>\n<pre><code>SELECT segment_name, tablespace_name \nFROM dba_segments \nWHERE segment_type = 'LOBSEGMENT' \nAND segment_name = 'your_lob_segment_name';<\/code><\/pre>\n<h3 id=\"2-%e8%aa%bf%e6%95%b4%e8%a1%a8%e7%a9%ba%e9%96%93-GUtJhowKMQ\">2. \u8abf\u6574\u8868\u7a7a\u9593<\/h3>\n<p>\u5982\u679c\u767c\u73fe LOB \u6bb5\u548c\u8868\u4e0d\u5728\u540c\u4e00\u8868\u7a7a\u9593\u4e2d\uff0c\u53ef\u4ee5\u8003\u616e\u5c07 LOB \u6bb5\u79fb\u52d5\u5230\u6b63\u78ba\u7684\u8868\u7a7a\u9593\u3002\u4f7f\u7528\u4ee5\u4e0b SQL \u8a9e\u53e5\u4f86\u79fb\u52d5 LOB \u6bb5\uff1a<\/p>\n<pre><code>ALTER TABLE your_table_name \nMOVE LOB (your_lob_column_name) \nSTORE AS (TABLESPACE your_correct_tablespace_name);<\/code><\/pre>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e5%ae%8c%e6%95%b4%e6%80%a7-GUtJhowKMQ\">3. \u6aa2\u67e5\u6578\u64da\u5b8c\u6574\u6027<\/h3>\n<p>\u5728\u4fee\u5fa9\u904e\u7a0b\u4e2d\uff0c\u52d9\u5fc5\u6aa2\u67e5\u6578\u64da\u7684\u5b8c\u6574\u6027\uff0c\u78ba\u4fdd\u6240\u6709\u6307\u5411\u90fd\u6b63\u78ba\u7121\u8aa4\u3002\u53ef\u4ee5\u4f7f\u7528\u6578\u64da\u5eab\u7684\u5b8c\u6574\u6027\u6aa2\u67e5\u5de5\u5177\u4f86\u9032\u884c\u9019\u4e00\u6b65\u3002<\/p>\n<h3 id=\"4-%e6%b8%ac%e8%a9%a6%e5%92%8c%e9%a9%97%e8%ad%89-GUtJhowKMQ\">4. \u6e2c\u8a66\u548c\u9a57\u8b49<\/h3>\n<p>\u5b8c\u6210\u4fee\u5fa9\u5f8c\uff0c\u9032\u884c\u6e2c\u8a66\u4ee5\u78ba\u4fdd\u554f\u984c\u5df2\u89e3\u6c7a\u3002\u57f7\u884c\u63d2\u5165\u3001\u66f4\u65b0\u548c\u67e5\u8a62\u64cd\u4f5c\uff0c\u78ba\u8a8d\u4e0d\u518d\u51fa\u73fe <code>ORA-39925<\/code> \u932f\u8aa4\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-GUtJhowKMQ\">\u7d50\u8ad6<\/h2>\n<p>\u5728 Oracle \u6578\u64da\u5eab\u4e2d\uff0c<code>ORA-39925<\/code> \u932f\u8aa4\u53ef\u80fd\u6703\u5c0d\u6578\u64da\u5eab\u7684\u6b63\u5e38\u904b\u884c\u9020\u6210\u5f71\u97ff\u3002\u901a\u904e\u6b63\u78ba\u7684\u8868\u7a7a\u9593\u914d\u7f6e\u548c\u9069\u7576\u7684\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f\uff0c\u53ef\u4ee5\u6709\u6548\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6548\u7a69\u5b9a\u7684\u6578\u64da\u5eab\u74b0\u5883\u7684\u7528\u6236\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u670d\u52d9\u5c07\u6709\u52a9\u65bc\u63d0\u5347\u6578\u64da\u5eab\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-39925 \u932f\u8aa4\uff0c\u4fee\u5fa9\u8868\u7a7a\u9593\u4e2d LOB \u6bb5\u8207\u8868\u7684\u6307\u5411\u554f\u984c\uff0c\u63d0\u4f9b\u6709\u6548\u7684\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-92454","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/92454","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=92454"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/92454\/revisions"}],"predecessor-version":[{"id":92455,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/92454\/revisions\/92455"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=92454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=92454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=92454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}