Welcome 微信登录

首页 / 数据库 / MySQL / 查看Oracle表空间的使用率

sqlplus / as sysdba>select total.tablespace_name,round(total.MB,2) as Total_MB,round(total.MB-free.MB, 2) as Used_MB,round((1-free.MB/total.MB)*100, 2) as Used_Pct from (select tablespace_name, sum(bytes)/1024/1024 as MB from dba_free_space group by tablespace_name) free,(select tablespace_name, sum(bytes)/1024/1024 as MB from dba_data_files group by tablespace_name) total where free.tablespace_name=total.tablespace_name;TABLESPACE   TOTAL_MB    USED_MB   USED_PCT---------- ---------- ---------- ----------UNDOTBS1          805      33.31       4.14   SYSAUX            340     331.56      97.52BLOBS            1000     194.38      19.44USERS            6984    6916.31      99.03SYSTEM            360     355.25      98.68INDX             1500     428.44      28.56WCAUDIT           500        .06        .01 Linux下MySQL C++连接操作Oracle查询锁表信息并结束进程相关资讯      Oracle教程 
  • Oracle中纯数字的varchar2类型和  (07/29/2015 07:20:43)
  • Oracle教程:Oracle中查看DBLink密  (07/29/2015 07:16:55)
  • [Oracle] SQL*Loader 详细使用教程  (08/11/2013 21:30:36)
  • Oracle教程:Oracle中kill死锁进程  (07/29/2015 07:18:28)
  • Oracle教程:ORA-25153 临时表空间  (07/29/2015 07:13:37)
  • Oracle教程之管理安全和资源  (04/08/2013 11:39:32)
本文评论 查看全部评论 (0)
表情: 姓名: 字数