zt528
1.查看所有表空间使用情况

select b.file_id 文件ID号,
b.tablespace_name 表空间名,
b.bytes/1024/1024||\'M\'字节数,
(b.bytes-sum(nvl(a.bytes,0)))/1024/1024||\'M\' 已使用,
sum(nvl(a.bytes,0))/1024/1024||\'M\' 剩余空间,
100 - sum(nvl(a.bytes,0))/(b.bytes)*100 占用百分比
from dba_free_space a,dba_data_files b where a.file_id=b.file_id group by b.tablespace_name,b.file_id,b.bytes order by b.file_id; 2.查看用户默认的表空间. select username,default_tablespace from dba_users; 3.查看要扩展的表空间使用的数据文件路径与名字 select * from dba_data_files where tablespace_name like \'USERS%\';

 

分类:

技术点:

相关文章:

  • 2021-08-02
  • 2022-03-01
  • 2021-11-19
  • 2021-11-19
  • 2021-11-18
  • 2021-12-23
  • 2021-11-19
  • 2022-12-23
猜你喜欢
  • 2021-11-19
  • 2021-11-19
  • 2022-03-03
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案