加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

创建、修改、删除ORACLE表空间

发布时间:2020-12-12 13:47:09 所属栏目:百科 来源:网络整理
导读://创建表空间 create tablespace MyFirstSpace datafile ‘/opt/oracle/app/oracle/product/9.2.0/dbs/MyFirstSpace.ora‘ size 512M AUTOEXTEND ON NEXT 5M MAXSIZE UNLIMITED default storage (initial 128K next 2M pctincrease 0);? SQLcreate tablespac

//创建表空间  create tablespace MyFirstSpace datafile ‘/opt/oracle/app/oracle/product/9.2.0/dbs/MyFirstSpace.ora‘ size 512M AUTOEXTEND ON NEXT 5M MAXSIZE UNLIMITED default storage (initial 128K next 2M pctincrease 0);?    SQL>create tablespace fred?   datafile ‘d:oracleoradataorclfred01.dbf‘?   size 100K reuse;(reuse用于处理已经存在 datafiles)      删除表空间命令:  SQL>drop tablespace INDX including contents;  drop tablespace BLOBS including contents;  drop tablespace BLOBS include contents and datafiles;(删除内容及datafiles)    改变表空间大小命令:SQL> ALTER database DATAFILE ‘INDX.dbf‘ resize 500M;   ALTER TABLESPACE spacename ADD DATAFILE ‘c:orantdatabaseusr02.dbf‘?   DEFAULT STORAGE (INITIAL 4M NEXT 2 M );

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读