ITPub博客

首页 > 数据库 > Oracle > Oracle 检查表空间使用情况

Oracle 检查表空间使用情况

Oracle 作者:xypincle 时间:2017-04-12 17:12:17 0 删除 编辑

  1. select f.tablespace_name,
  2.        a.total "total (M)",
  3.        f.free "free (M)",
  4.        round((f.free / a.total) * 100) "% Free"
  5.   from (select tablespace_name, sum(bytes / (1024 * 1024)) total
  6.           from dba_data_files
  7.          group by tablespace_name) a,
  8.        (select tablespace_name, round(sum(bytes / (1024 * 1024))) free
  9.           from dba_free_space
  10.          group by tablespace_name) f
  11.  where a.tablespace_name = f.tablespace_name(+)
  12.  order by "% Free";

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28878983/viewspace-2137115/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-05-11

  • 博文量
    208
  • 访问量
    212338