create tablespace oms datafile 'D:\app\fff\oradata\orcl\OMS01.dbf' size 800m;
alter tablespace oms add datafile 'c:\APP\ADMINISTRATOR\ORADATA\ORCL\OMS03.dbf' size 800m;
alter tablespace oms add datafile 'c:\APP\ADMINISTRATOR\ORADATA\ORCL\OMS04.dbf' size 800m;
alter tablespace oms add datafile 'c:\APP\ADMINISTRATOR\ORADATA\ORCL\OMS05.dbf' size 800m;
alter tablespace oms add datafile 'D:\app\fff\oradata\orcl\OMS01.dbf' size 800m;
查看表空间使用情况:
SELECT A.TABLESPACE_NAME,A.BYTES /1024/1024 TOTAL,B.BYTES /1024/1024 USED, C.BYTES /1024/1024 FREE ,
(B.BYTES*100)/A.BYTES "% USED",(C.BYTES*100)/A.BYTES "% FREE"
FROM SYS.SM$TS_AVAIL A,SYS.SM$TS_USED B,SYS.SM$TS_FREE C
WHERE A.TABLESPACE_NAME=B.TABLESPACE_NAME AND A.TABLESPACE_NAME=C.TABLESPACE_NAME;
oracle建用户如果不指定表空间,将指向用户表空间。