查询oracle表空间增长情况
2013-12-06 10:30
274 查看
查询命令: select a.name, b.*
from v$tablespace a,
(select tablespace_id,
trunc(to_date(rtime, 'mm/dd/yyyy hh24:mi:ss')) datetime,
max(tablespace_usedsize * 8 / 1024) used_size
from dba_hist_tbspc_space_usage
where trunc(to_date(rtime, 'mm/dd/yyyy hh24:mi:ss')) >
trunc(sysdate - 30)
group by tablespace_id,
trunc(to_date(rtime, 'mm/dd/yyyy hh24:mi:ss'))
order by tablespace_id,
trunc(to_date(rtime, 'mm/dd/yyyy hh24:mi:ss'))) b
where a.ts# = b.tablespace_id 查询效果图:
from v$tablespace a,
(select tablespace_id,
trunc(to_date(rtime, 'mm/dd/yyyy hh24:mi:ss')) datetime,
max(tablespace_usedsize * 8 / 1024) used_size
from dba_hist_tbspc_space_usage
where trunc(to_date(rtime, 'mm/dd/yyyy hh24:mi:ss')) >
trunc(sysdate - 30)
group by tablespace_id,
trunc(to_date(rtime, 'mm/dd/yyyy hh24:mi:ss'))
order by tablespace_id,
trunc(to_date(rtime, 'mm/dd/yyyy hh24:mi:ss'))) b
where a.ts# = b.tablespace_id 查询效果图:
相关文章推荐
- oracle表空间使用情况查询sql以及图形化修改表空间
- 查询oracle表空间使用情况
- Oracle表空间的使用情况查询
- 查询Oracle表空间使用情况
- oracle表空间大小、使用情况查询
- oracle表空间大小、使用情况查询
- Oracle表空间使用情况查询
- oracle表空间使用情况查询
- oracle表空间使用情况查询
- Oracle表空间使用情况查询
- 查询Oracle表空间使用情况
- Sql Server 如何获取指定一行数据?在没有自动增长列的情况下
- 同一个jsp页面实现增删改查,查询时遇到困难以及定时器遇到的情况
- 查询Oracle数据库中各对象占用空间情况
- 通过备份记录获取数据库的增长情况
- hql查询语句 内存中的情况,fetch迫切查询关键字
- 查询数据排名情况SQL
- 分析查询语句使用索引的情况
- Oracle查询永久表空间使用情况
- Oracle使用like时要注意空条件的情况,请尽量使用以下语句(对含逗号或特定符号的查询)