{"id":85055,"date":"2024-10-17T13:01:20","date_gmt":"2024-10-17T05:01:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/85055\/"},"modified":"2024-10-17T13:01:20","modified_gmt":"2024-10-17T05:01:20","slug":"ora-12915-%e7%84%a1%e6%b3%95%e5%b0%87%e5%ad%97%e5%85%b8%e7%ae%a1%e7%90%86%e7%9a%84%e8%a1%a8%e7%a9%ba%e9%96%93%e6%9b%b4%e6%94%b9%e7%82%ba%e5%8f%af%e8%ae%80%e5%af%ab%e3%80%82oracle-%e5%a0%b1%e9%8c%af","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/85055\/","title":{"rendered":"ORA-12915: \u7121\u6cd5\u5c07\u5b57\u5178\u7ba1\u7406\u7684\u8868\u7a7a\u9593\u66f4\u6539\u70ba\u53ef\u8b80\u5beb\u3002ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-12915-%e7%84%a1%e6%b3%95%e5%b0%87%e5%ad%97%e5%85%b8%e7%ae%a1%e7%90%86%e7%9a%84%e8%a1%a8%e7%a9%ba%e9%96%93%e6%9b%b4%e6%94%b9%e7%82%ba%e5%8f%af%e8%ae%80%e5%af%ab-PYKsyqthyX\">ORA-12915: \u7121\u6cd5\u5c07\u5b57\u5178\u7ba1\u7406\u7684\u8868\u7a7a\u9593\u66f4\u6539\u70ba\u53ef\u8b80\u5beb<\/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-12915\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u51fa\u73fe\u5728\u5617\u8a66\u5c07\u5b57\u5178\u7ba1\u7406\u7684\u8868\u7a7a\u9593\u66f4\u6539\u70ba\u53ef\u8b80\u5beb\u6642\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eORA-12915\u7684\u539f\u56e0\u3001\u5f71\u97ff\u53ca\u5176\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h2 id=\"ora-12915%e7%9a%84%e5%8e%9f%e5%9b%a0-PYKsyqthyX\">ORA-12915\u7684\u539f\u56e0<\/h2>\n<p>ORA-12915\u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662f\u5617\u8a66\u5c07\u4e00\u500b\u5b57\u5178\u7ba1\u7406\u7684\u8868\u7a7a\u9593\uff08Dictionary Managed Tablespace, DMT\uff09\u66f4\u6539\u70ba\u53ef\u8b80\u5beb\u72c0\u614b\u3002\u5b57\u5178\u7ba1\u7406\u7684\u8868\u7a7a\u9593\u662f\u7531Oracle\u6578\u64da\u5b57\u5178\u9032\u884c\u7ba1\u7406\u7684\uff0c\u9019\u610f\u5473\u8457\u5176\u5143\u6578\u64da\u5b58\u5132\u5728\u6578\u64da\u5b57\u5178\u4e2d\uff0c\u800c\u4e0d\u662f\u5728\u8868\u7a7a\u9593\u5167\u90e8\u3002\u9019\u7a2e\u8a2d\u8a08\u4f7f\u5f97DMT\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\u7121\u6cd5\u9032\u884c\u72c0\u614b\u66f4\u6539\u3002<\/p>\n<h3 id=\"%e5%b8%b8%e8%a6%8b%e6%83%85%e6%b3%81-PYKsyqthyX\">\u5e38\u898b\u60c5\u6cc1<\/h3>\n<ul>\n<li>\u5617\u8a66\u5c07\u8868\u7a7a\u9593\u5f9e\u53ea\u8b80\u72c0\u614b\u66f4\u6539\u70ba\u53ef\u8b80\u5beb\u3002<\/li>\n<li>\u5728\u6578\u64da\u5eab\u4e2d\u57f7\u884c\u4e0d\u7576\u7684ALTER TABLESPACE\u547d\u4ee4\u3002<\/li>\n<li>\u8868\u7a7a\u9593\u7684\u5c6c\u6027\u8207\u6578\u64da\u5eab\u7684\u914d\u7f6e\u4e0d\u5339\u914d\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%bd%b1%e9%9f%bf-PYKsyqthyX\">\u5f71\u97ff<\/h2>\n<p>\u7576\u51fa\u73feORA-12915\u932f\u8aa4\u6642\uff0c\u6578\u64da\u5eab\u7684\u6b63\u5e38\u904b\u884c\u53ef\u80fd\u6703\u53d7\u5230\u5f71\u97ff\u3002\u9019\u53ef\u80fd\u5c0e\u81f4\u61c9\u7528\u7a0b\u5e8f\u7121\u6cd5\u8a2a\u554f\u6240\u9700\u7684\u6578\u64da\uff0c\u5f9e\u800c\u5f71\u97ff\u696d\u52d9\u904b\u4f5c\u3002\u6b64\u5916\uff0c\u9019\u500b\u932f\u8aa4\u4e5f\u53ef\u80fd\u6703\u5c0e\u81f4\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u9700\u8981\u82b1\u8cbb\u984d\u5916\u7684\u6642\u9593\u4f86\u6392\u67e5\u548c\u4fee\u5fa9\u554f\u984c\u3002<\/p>\n<h2 id=\"%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9%e6%ad%a5%e9%a9%9f-PYKsyqthyX\">\u6545\u969c\u4fee\u5fa9\u6b65\u9a5f<\/h2>\n<p>\u8981\u89e3\u6c7aORA-12915\u932f\u8aa4\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u6545\u969c\u6392\u9664\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e8%a1%a8%e7%a9%ba%e9%96%93%e5%b1%ac%e6%80%a7-PYKsyqthyX\">1. \u6aa2\u67e5\u8868\u7a7a\u9593\u5c6c\u6027<\/h3>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5\u8868\u7a7a\u9593\u7684\u5c6c\u6027\uff0c\u78ba\u4fdd\u5b83\u662f\u5b57\u5178\u7ba1\u7406\u7684\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0bSQL\u67e5\u8a62\u4f86\u6aa2\u67e5\u8868\u7a7a\u9593\u7684\u5c6c\u6027\uff1a<\/p>\n<pre><code>SELECT tablespace_name, extent_management \nFROM dba_tablespaces \nWHERE tablespace_name = 'YOUR_TABLESPACE_NAME';<\/code><\/pre>\n<p>\u5982\u679c\u8fd4\u56de\u7684\u7d50\u679c\u986f\u793a\u70ba&#8217;DICTIONARY&#8217;\uff0c\u5247\u8868\u793a\u8a72\u8868\u7a7a\u9593\u662f\u5b57\u5178\u7ba1\u7406\u7684\u3002<\/p>\n<h3 id=\"2-%e8%bd%89%e6%8f%9b%e8%a1%a8%e7%a9%ba%e9%96%93%e9%a1%9e%e5%9e%8b-PYKsyqthyX\">2. \u8f49\u63db\u8868\u7a7a\u9593\u985e\u578b<\/h3>\n<p>\u5982\u679c\u9700\u8981\u5c07\u5b57\u5178\u7ba1\u7406\u7684\u8868\u7a7a\u9593\u8f49\u63db\u70ba\u672c\u5730\u7ba1\u7406\u7684\u8868\u7a7a\u9593\uff08Locally Managed Tablespace, LMT\uff09\uff0c\u5247\u9700\u8981\u5275\u5efa\u4e00\u500b\u65b0\u7684\u672c\u5730\u7ba1\u7406\u8868\u7a7a\u9593\uff0c\u7136\u5f8c\u5c07\u6578\u64da\u79fb\u52d5\u5230\u65b0\u8868\u7a7a\u9593\u4e2d\u3002\u4ee5\u4e0b\u662f\u5275\u5efa\u65b0\u8868\u7a7a\u9593\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code>CREATE TABLESPACE new_tablespace \nDATAFILE 'new_tablespace.dbf' \nSIZE 100M \nEXTENT MANAGEMENT LOCAL;<\/code><\/pre>\n<h3 id=\"3-%e7%a7%bb%e5%8b%95%e6%95%b8%e6%93%9a-PYKsyqthyX\">3. \u79fb\u52d5\u6578\u64da<\/h3>\n<p>\u63a5\u4e0b\u4f86\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c07\u6578\u64da\u5f9e\u820a\u8868\u7a7a\u9593\u79fb\u52d5\u5230\u65b0\u8868\u7a7a\u9593\uff1a<\/p>\n<pre><code>ALTER TABLE your_table \nMOVE TABLESPACE new_tablespace;<\/code><\/pre>\n<h3 id=\"4-%e5%88%aa%e9%99%a4%e8%88%8a%e8%a1%a8%e7%a9%ba%e9%96%93-PYKsyqthyX\">4. \u522a\u9664\u820a\u8868\u7a7a\u9593<\/h3>\n<p>\u5728\u78ba\u8a8d\u6578\u64da\u5df2\u6210\u529f\u79fb\u52d5\u5f8c\uff0c\u53ef\u4ee5\u522a\u9664\u820a\u7684\u5b57\u5178\u7ba1\u7406\u8868\u7a7a\u9593\uff1a<\/p>\n<pre><code>DROP TABLESPACE old_tablespace INCLUDING CONTENTS AND DATAFILES;<\/code><\/pre>\n<h2 id=\"%e9%81%a0%e7%a8%8b%e8%99%95%e7%90%86-PYKsyqthyX\">\u9060\u7a0b\u8655\u7406<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u53ef\u80fd\u7121\u6cd5\u76f4\u63a5\u8a2a\u554f\u6578\u64da\u5eab\u9032\u884c\u6545\u969c\u6392\u9664\u3002\u9019\u6642\uff0c\u53ef\u4ee5\u8003\u616e\u4f7f\u7528\u9060\u7a0b\u8655\u7406\u5de5\u5177\u4f86\u5354\u52a9\u89e3\u6c7a\u554f\u984c\u3002\u8a31\u591a\u73fe\u4ee3\u7684\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\u90fd\u63d0\u4f9b\u4e86\u9060\u7a0b\u9023\u63a5\u529f\u80fd\uff0c\u5141\u8a31\u7ba1\u7406\u54e1\u5728\u4e0d\u76f4\u63a5\u8a2a\u554f\u4f3a\u670d\u5668\u7684\u60c5\u6cc1\u4e0b\u9032\u884c\u64cd\u4f5c\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-PYKsyqthyX\">\u7e3d\u7d50<\/h2>\n<p>ORA-12915\u932f\u8aa4\u662fOracle\u6578\u64da\u5eab\u4e2d\u5e38\u898b\u7684\u554f\u984c\u4e4b\u4e00\uff0c\u4e3b\u8981\u7531\u65bc\u5617\u8a66\u5c07\u5b57\u5178\u7ba1\u7406\u7684\u8868\u7a7a\u9593\u66f4\u6539\u70ba\u53ef\u8b80\u5beb\u72c0\u614b\u6240\u5f15\u8d77\u3002\u901a\u904e\u6aa2\u67e5\u8868\u7a7a\u9593\u5c6c\u6027\u3001\u8f49\u63db\u8868\u7a7a\u9593\u985e\u578b\u3001\u79fb\u52d5\u6578\u64da\u4ee5\u53ca\u522a\u9664\u820a\u8868\u7a7a\u9593\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u6c7a\u6b64\u554f\u984c\u3002\u5c0d\u65bc\u9700\u8981\u9060\u7a0b\u8655\u7406\u7684\u60c5\u6cc1\uff0c\u4f7f\u7528\u5408\u9069\u7684\u5de5\u5177\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u6545\u969c\u6392\u9664\u7684\u6548\u7387\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc<em><a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a><\/em>\u548c<em><a href=\"https:\/\/server.hk\">\u96f2\u4f3a\u670d\u5668<\/a><\/em>\u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a ORA-12915 \u932f\u8aa4\uff0c\u7121\u6cd5\u5c07\u5b57\u5178\u7ba1\u7406\u7684\u8868\u7a7a\u9593\u66f4\u6539\u70ba\u53ef\u8b80\u5beb\u7684\u554f\u984c\uff0c\u63d0\u4f9b\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-85055","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/85055","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=85055"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/85055\/revisions"}],"predecessor-version":[{"id":85056,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/85055\/revisions\/85056"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=85055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=85055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=85055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}