Oracle 表及表空间(一)

Oracle  表空间

一个数据库可以有多个表空间,一个表空间里可以有多个表。表空间就是存多个表的物理空间;可以指定表空间的大小位置等。
创建表空间:

     create tablespace ts1 datafile 'C: ablespace s1.dbf' size 50M;
自动扩展大小:

     create tablespace ts2 datafile 'C: ablespace s2.dbf' size 50M autoextend on next 10M;
设置最大空间:

     create tablespace ts3 datafile 'C: ablespace s3.dbf' size 50M autoextend on next 10M maxsize 1024M;
更改用户默认表空间:

     alter database default tablespace ts1;
表空间改名:

     alter tablespace ts1 rename to tss1;
删除表空间:

     drop tablespace ts2 including contents and datafiles;

Oracle  虚拟表 dual

Dual 表是 sys 用户下的一张虚表;提供一些运算和日期操作时候用到;
    select 2*3 from dual;

原文地址:https://www.cnblogs.com/hefeisf/p/4978223.html