- 最后登录
- 2019-7-8
- 在线时间
- 133 小时
- 威望
- 131
- 金钱
- 1368
- 注册时间
- 2011-10-14
- 阅读权限
- 50
- 帖子
- 126
- 精华
- 1
- 积分
- 131
- UID
- 31
|
11#
发表于 2012-12-21 11:41:58
- SQL> column owner format a16
- SQL> column object_name format a36
- SQL> column start_day format a11
- column block_increase format 9999999999
- SQL>
- SQL> select obj.owner, obj.object_name,
- to_char(sn.BEGIN_INTERVAL_TIME,'RRRR-MON-DD') start_day,
- sum(a.db_block_changes_delta) block_increase
- 4 dba_objects objat a,
- from dba_hist_seg_stat a,
- dba_hist_snapshot sn,
- dba_objects obj
- where sn.snap_id = a.snap_id
- 8 and obj.object_id = a.obj#
- and obj.owner not in ('SYS','SYSTEM')
- and obj.object_name=upper('tb_movie_coupon_bak')
- group by obj.owner, obj.object_name,
- to_char(sn.BEGIN_INTERVAL_TIME,'RRRR-MON-DD')
- 13 order by obj.owner, obj.object_name
- 14 /
- OWNER OBJECT_NAME START_DAY BLOCK_INCREASE
- ---------------- ------------------------------------ ----------- --------------
- MOVIE TB_MOVIE_COUPON_BAK 2012-DEC-12 0
- MOVIE TB_MOVIE_COUPON_BAK 2012-DEC-13 16
- MOVIE TB_MOVIE_COUPON_BAK 2012-DEC-14 16
- MOVIE TB_MOVIE_COUPON_BAK 2012-DEC-15 0
- MOVIE TB_MOVIE_COUPON_BAK 2012-DEC-16 0
- MOVIE TB_MOVIE_COUPON_BAK 2012-DEC-17 0
- MOVIE TB_MOVIE_COUPON_BAK 2012-DEC-18 0
- MOVIE TB_MOVIE_COUPON_BAK 2012-DEC-19 32
- MOVIE TB_MOVIE_COUPON_BAK 2012-DEC-20 0
- MOVIE TB_MOVIE_COUPON_BAK 2012-DEC-21 0
- 10 rows selected.
- SQL>
复制代码 |
|