首页 > 代码库 > Oracle查看表空间,创建表空间

Oracle查看表空间,创建表空间

查看表空间:

SELECT tablespace_name, file_id, file_name, round(bytes / (1024 * 1024), 0) total_space FROM dba_data_files ORDER BY tablespace_name; 

  

创建表空间:

create tablespace geoglobe logging datafile ‘/u01/app/oracle/oradata/data/geoglobe.dbf‘ size 1024m autoextend on next 512m maxsize 20480m extent management local;

  

删除表空间及文件:

drop tablespace GEOGLOBE including contents and datafiles;

  

Oracle查看表空间,创建表空间