ITPub博客

首页 > 应用开发 > IT综合 > create tablespace

create tablespace

原创 IT综合 作者:liang573728 时间:2019-03-17 17:21:06 0 删除 编辑
1 create tablespace Bill. --创建永远久表空间
datafile '/u01/tablespace/bill.dbf' size 3M
uniform size 128K
segment space management auto;
[@more@]1 create temporary tablespace billtmp ----创建临时表空间
2 tempfile '/u01/tablespace/billtmp.dbf' size 10M
3 extent management local
4* uniform size 128k
SQL> /
Tablespace created.
SQL> create undo tablespace billundo -----创建UNDO表空间
2 datafile '/u01/tablespace/billundo.dbf' size 10M
3 extent management local
4 /
Tablespace created.
2 alter tablespace bill ----增加表空间的数据文件
add datafile '/u01/tablespace/bill2.dbf'
size 1M;
alter database -----修改表空间的数据文件
datafile '/u01/tablespace/bill.dbf'
resize 3M;
alter database ----设置自动扩展表空间
datafile '/u01/tablespace/bill.dbf'
autoextend on next 1M maxsize 20M;
3 1* drop tablespace bill2 including contents and datafiles ----删除表空间,其中contents , datafiles 可选
SQL> /
Tablespace dropped.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/640706/viewspace-1047888/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2005-10-15

  • 博文量
    152
  • 访问量
    138348