码迷,mamicode.com
首页 > 其他好文 > 详细

根据表空间名称查询文件位置

时间:2018-01-29 11:50:06      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:ble   sele   tab   物理   text   ace   dba   post   位置   

select
  b.file_name 物理文件名,
  b.tablespace_name 表空间,
  b.bytes/1024/1024 大小M,
  (b.bytes-sum(nvl(a.bytes,0)))/1024/1024 已使用M,
  substr((b.bytes-sum(nvl(a.bytes,0)))/(b.bytes)*100,1,5) 利用率
  from dba_free_space a,dba_data_files b
  where a.file_id=b.file_id
  group by b.tablespace_name,b.file_name,b.bytes
  order by b.tablespace_name

根据表空间名称查询文件位置

标签:ble   sele   tab   物理   text   ace   dba   post   位置   

原文地址:https://www.cnblogs.com/zhjx0521/p/8375898.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!