Oracle 的一些命令
-- 删除表,名称
truncate table table_name;
-- 扩展表空间
alter tablespace ADAPTER add datafile 'D:\TABLESPACE\TABLE.DBF' size 10m autoextend on next 100m maxsize 32767m;
-- oracle 查看表空间大小
select b.tablespace_name as "表空间",
b.file_id,
b.file_name as "物理文件名",
cast(b.maxbytes / 1024 / 1024 / 1024 as number(18, 2)) as "总大小G",
cast(b.bytes / 1024 / 1024 / 1024 as number(18, 2)) as "已使用G",
cast((b.maxbytes - b.bytes) / 1024 / 1024 / 1024 as number(18, 2)) as "剩余G"
from dba_data_files b
order by b.tablespace_name, b.file_name;