查询
SELECT tablespace_name, file_name,
round(bytes / (1024 * 1024), 0) total_space
FROM dba_data_files;
新建
表空间名TS_SBD_ZNYJ、表空间文件/home/oracle/tablespace/TS_SBD_ZNYJ.dbf、大小256M
create tablespace TS_SBD_ZNYJ datafile '/home/oracle/tablespace/TS_SBD_ZNYJ.dbf' size 256M;
添加
alter tablespace TS_SBD_ZNYJ add datafile '/home/oracle/tablespace/TS_SBD_ZNYJ01.dbf' size 256M autoextend off;
删除
drop tablespace tablespace_name including contents and datafiles;
网友评论