创建表空间:

create [undo|TEMPORARY]tablespace venn datafile '/opt/oracle/db01/app/oracle/oradata/OSSORCL/venn01.dbf'
size 10M
autoextend on next 100M
maxsize 500M [unlimited]  --最大32G
logging online permanent;  --一直在线
注:
1 、undo : 创建undo表空间
2、 temporary : 创建临时表空间

添加数据文件:

alter tablespace venn add datafile '/opt/oracle/db01/app/oracle/oradata/OSSORCL/venn02.dbf'
size 10M
autoextend on next 100M
maxsize 500M ;

 同时添加多个文件:

alter tablespace venn add datafile '/opt/oracle/db01/app/oracle/oradata/OSSORCL/venn02.dbf'
size 10M
autoextend on next 100M
maxsize 500M,
'/opt/oracle/db01/app/oracle/oradata/OSSORCL/venn02.dbf'
size 10M
autoextend on next 100M
maxsize 500M ;

 

删除表空间:

drop tablespace venn including contents and datafiles;

同时删除内容和数据库文件。

相关文章:

  • 2021-10-11
  • 2021-11-11
  • 2022-12-23
  • 2021-12-14
  • 2021-06-13
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
猜你喜欢
  • 2021-09-11
  • 2021-12-04
  • 2021-08-16
  • 2021-08-01
  • 2021-12-04
相关资源
相似解决方案