{"id":5001,"date":"2024-11-14T12:24:15","date_gmt":"2024-11-14T04:24:15","guid":{"rendered":"https:\/\/fwq.ai\/blog\/5001\/"},"modified":"2024-11-14T12:24:15","modified_gmt":"2024-11-14T04:24:15","slug":"oracle%e6%80%8e%e4%b9%88%e5%88%9b%e5%bb%ba%e8%a1%a8%e7%a9%ba%e9%97%b4","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/5001\/","title":{"rendered":"oracle\u600e\u4e48\u521b\u5efa\u8868\u7a7a\u95f4"},"content":{"rendered":"<blockquote><p>\n  oracle \u8868\u7a7a\u95f4\u662f\u6570\u636e\u5e93\u4e2d\u7528\u4e8e\u5b58\u50a8\u6570\u636e\u7684\u903b\u8f91\u5b58\u50a8\u533a\u57df\u3002\u521b\u5efa\u8868\u7a7a\u95f4\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002\u4f7f\u7528 create tablespace \u8bed\u53e5\u521b\u5efa\u8868\u7a7a\u95f4\uff0c\u6307\u5b9a\u6570\u636e\u6587\u4ef6\u8def\u5f84\u548c\u5927\u5c0f\u3002\u53ef\u9009\uff1a\u914d\u7f6e\u8868\u7a7a\u95f4\u9009\u9879\uff0c\u5982\u521d\u59cb\u5927\u5c0f\u3001\u81ea\u52a8\u6269\u5c55\u589e\u91cf\u548c\u533a\u6bb5\u9650\u5236\u3002\u4f7f\u7528 select \u8bed\u53e5\u786e\u8ba4\u8868\u7a7a\u95f4\u5df2\u6210\u529f\u521b\u5efa\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/21\/2024052109512066330.jpg\" class=\"aligncenter\" title=\"oracle\u600e\u4e48\u521b\u5efa\u8868\u7a7a\u95f4\u63d2\u56fe\" alt=\"oracle\u600e\u4e48\u521b\u5efa\u8868\u7a7a\u95f4\u63d2\u56fe\" \/><\/p>\n<p><strong>\u521b\u5efa Oracle \u8868\u7a7a\u95f4<\/strong><\/p>\n<p>\u8868\u7a7a\u95f4\u662f Oracle \u6570\u636e\u5e93\u4e2d\u903b\u8f91\u4e0a\u8fde\u7eed\u7684\u5b58\u50a8\u7a7a\u95f4\uff0c\u7528\u4e8e\u5b58\u50a8\u6570\u636e\u548c\u7d22\u5f15\u3002\u4ee5\u4e0b\u6b65\u9aa4\u8bf4\u660e\u4e86\u5982\u4f55\u521b\u5efa Oracle \u8868\u7a7a\u95f4\uff1a<\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u8fde\u63a5\u5230\u6570\u636e\u5e93<\/strong><\/p>\n<p>\u4f7f\u7528 Oracle SQL Developer\u3001SQL*Plus \u6216\u4efb\u4f55\u5176\u4ed6 Oracle \u8fde\u63a5\u5de5\u5177\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002<\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a\u521b\u5efa\u8868\u7a7a\u95f4<\/strong><\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b SQL \u8bed\u53e5\u521b\u5efa\u8868\u7a7a\u95f4\uff1a<\/p>\n<pre>CREATE TABLESPACE &lt;\u8868\u7a7a\u95f4\u540d\u79f0&gt; \nDATAFILE '&lt;\u6570\u636e\u6587\u4ef6\u8def\u5f84\u548c\u540d\u79f0&gt;' \nSIZE &lt;\u6570\u636e\u6587\u4ef6\u5927\u5c0f&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u6b65\u9aa4 3\uff1a\u6307\u5b9a\u9009\u9879\uff08\u53ef\u9009\uff09<\/strong><\/p>\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u9009\u9879\u8fdb\u4e00\u6b65\u914d\u7f6e\u8868\u7a7a\u95f4\uff1a<\/p>\n<ul>\n<li> <strong>INITIAL_SIZE\uff1a<\/strong>\u8bbe\u7f6e\u8868\u7a7a\u95f4\u7684\u521d\u59cb\u5927\u5c0f\u3002<\/li>\n<li> <strong>NEXT_SIZE\uff1a<\/strong>\u8bbe\u7f6e\u81ea\u52a8\u6269\u5c55\u6570\u636e\u6587\u4ef6\u65f6\u7684\u5927\u5c0f\u589e\u91cf\u3002<\/li>\n<li> <strong>MIN_EXTENTS\uff1a<\/strong>\u8bbe\u7f6e\u8868\u7a7a\u95f4\u53ef\u4ee5\u62e5\u6709\u7684\u6700\u5c0f\u533a\u6bb5\u6570\u3002<\/li>\n<li> <strong>MAX_EXTENTS\uff1a<\/strong>\u8bbe\u7f6e\u8868\u7a7a\u95f4\u53ef\u4ee5\u62e5\u6709\u7684\u6700\u5927\u533a\u6bb5\u6570\u3002<\/li>\n<li> <strong>PCT_INCREASE\uff1a<\/strong>\u8bbe\u7f6e\u81ea\u52a8\u6269\u5c55\u6570\u636e\u6587\u4ef6\u65f6\u5927\u5c0f\u589e\u52a0\u7684\u767e\u5206\u6bd4\u3002<\/li>\n<\/ul>\n<p><strong>\u4f8b\u5982\uff1a<\/strong><\/p>\n<pre>CREATE TABLESPACE ts_data\nDATAFILE '\/u01\/oradata\/ts_data01.dbf' SIZE 1000M\nINITIAL_SIZE 500M \nNEXT_SIZE 100M\nMIN_EXTENTS 1\nMAX_EXTENTS UNLIMITED\nPCT_INCREASE 20<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u6b65\u9aa4 4\uff1a\u786e\u8ba4\u521b\u5efa<\/strong><\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b SQL \u8bed\u53e5\u786e\u8ba4\u8868\u7a7a\u95f4\u662f\u5426\u521b\u5efa\u6210\u529f\uff1a<\/p>\n<pre>SELECT * FROM DBA_TABLESPACES WHERE TABLESPACE_NAME = '&lt;\u8868\u7a7a\u95f4\u540d\u79f0&gt;';<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u793a\u4f8b\u8f93\u51fa\uff1a<\/strong><\/p>\n<pre>TABLESPACE_NAME                TOTAL_BYTES        FREE_BYTES        ALLOCATED_BYTES\n------------------------------------------------------------------------------------\nTS_DATA                        1073741824        1073741824        0<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u8868\u660e\u540d\u4e3a TS_DATA \u7684\u8868\u7a7a\u95f4\u5df2\u521b\u5efa\uff0c\u5176\u5927\u5c0f\u4e3a 1GB\uff0c\u5e76\u4e14\u5168\u90e8\u53ef\u7528\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u521b\u5efa\u8868\u7a7a\u95f4\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>oracle \u8868\u7a7a\u95f4\u662f\u6570\u636e\u5e93\u4e2d\u7528\u4e8e\u5b58\u50a8\u6570\u636e\u7684\u903b\u8f91\u5b58\u50a8\u533a\u57df\u3002\u521b\u5efa\u8868\u7a7a\u95f4\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002\u4f7f\u7528 create tablespace \u8bed\u53e5\u521b\u5efa\u8868\u7a7a\u95f4\uff0c\u6307\u5b9a\u6570\u636e\u6587\u4ef6\u8def\u5f84\u548c\u5927\u5c0f\u3002\u53ef\u9009\uff1a\u914d\u7f6e\u8868\u7a7a\u95f4\u9009\u9879\uff0c\u5982\u521d\u59cb\u5927\u5c0f\u3001\u81ea\u52a8\u6269\u5c55\u589e\u91cf\u548c\u533a\u6bb5\u9650\u5236\u3002\u4f7f\u7528 select \u8bed\u53e5\u786e\u8ba4\u8868\u7a7a\u95f4\u5df2\u6210\u529f\u521b\u5efa\u3002 \u521b\u5efa Oracle \u8868\u7a7a\u95f4 \u8868\u7a7a\u95f4\u662f Oracle \u6570\u636e\u5e93\u4e2d\u903b\u8f91\u4e0a\u8fde\u7eed\u7684\u5b58\u50a8\u7a7a\u95f4\uff0c\u7528\u4e8e\u5b58\u50a8\u6570\u636e\u548c\u7d22\u5f15\u3002\u4ee5\u4e0b\u6b65\u9aa4\u8bf4\u660e\u4e86\u5982\u4f55\u521b\u5efa Oracle \u8868\u7a7a\u95f4\uff1a \u6b65\u9aa4 1\uff1a\u8fde\u63a5\u5230\u6570\u636e\u5e93 \u4f7f\u7528 Oracle SQL Developer\u3001SQL*Plus \u6216\u4efb\u4f55\u5176\u4ed6 Oracle \u8fde\u63a5\u5de5\u5177\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002 \u6b65\u9aa4 2\uff1a\u521b\u5efa\u8868\u7a7a\u95f4 \u4f7f\u7528\u4ee5\u4e0b SQL \u8bed\u53e5\u521b\u5efa\u8868\u7a7a\u95f4\uff1a CREATE TABLESPACE &lt;\u8868\u7a7a\u95f4\u540d\u79f0&gt; DATAFILE &#8216;&lt;\u6570\u636e\u6587\u4ef6\u8def\u5f84\u548c\u540d\u79f0&gt;&#8217; SIZE &lt;\u6570\u636e\u6587\u4ef6\u5927\u5c0f&gt; \u767b\u5f55\u540e\u590d\u5236 \u6b65\u9aa4 3\uff1a\u6307\u5b9a\u9009\u9879\uff08\u53ef\u9009\uff09 \u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u9009\u9879\u8fdb\u4e00\u6b65\u914d\u7f6e\u8868\u7a7a\u95f4\uff1a INITIAL_SIZE\uff1a\u8bbe\u7f6e\u8868\u7a7a\u95f4\u7684\u521d\u59cb\u5927\u5c0f\u3002 NEXT_SIZE\uff1a\u8bbe\u7f6e\u81ea\u52a8\u6269\u5c55\u6570\u636e\u6587\u4ef6\u65f6\u7684\u5927\u5c0f\u589e\u91cf\u3002 MIN_EXTENTS\uff1a\u8bbe\u7f6e\u8868\u7a7a\u95f4\u53ef\u4ee5\u62e5\u6709\u7684\u6700\u5c0f\u533a\u6bb5\u6570\u3002 MAX_EXTENTS\uff1a\u8bbe\u7f6e\u8868\u7a7a\u95f4\u53ef\u4ee5\u62e5\u6709\u7684\u6700\u5927\u533a\u6bb5\u6570\u3002 PCT_INCREASE\uff1a\u8bbe\u7f6e\u81ea\u52a8\u6269\u5c55\u6570\u636e\u6587\u4ef6\u65f6\u5927\u5c0f\u589e\u52a0\u7684\u767e\u5206\u6bd4\u3002 \u4f8b\u5982\uff1a CREATE TABLESPACE ts_data DATAFILE &#8216;\/u01\/oradata\/ts_data01.dbf&#8217; SIZE 1000M INITIAL_SIZE 500M [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-5001","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=5001"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5001\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=5001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=5001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=5001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}