查询表的空间;
select tablespace_name, file_id, file_name,
round(bytes/(1024*1024),0) total_space
from dba_data_files order by tablespace_name
增加表空间的容量;
alter tablespace USERS
add datafile 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\USERS04.DBF' size 2G
本文介绍了一种查询Oracle数据库中表空间详细信息的方法,并演示了如何通过SQL语句增加指定表空间的容量。
查询表的空间;
select tablespace_name, file_id, file_name,
round(bytes/(1024*1024),0) total_space
from dba_data_files order by tablespace_name
增加表空间的容量;
alter tablespace USERS
add datafile 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\USERS04.DBF' size 2G
3562
321
1061

被折叠的 条评论
为什么被折叠?