- 最后登录
- 2012-6-12
- 在线时间
- 2 小时
- 威望
- 3
- 金钱
- 40
- 注册时间
- 2012-5-4
- 阅读权限
- 10
- 帖子
- 5
- 精华
- 0
- 积分
- 3
- UID
- 412
|
3#
发表于 2012-5-23 15:48:25
一号库
=========================
variable total_blocks number
variable total_bytes number
variable unused_blocks number
variable unused_bytes number
variable last_used_extent_file_id number
variable last_used_extent_block_id number
variable last_used_block number
execute dbms_space.unused_space ('GENE_ERS','T_KADEN_KAISUU','TABLE',:total_blocks,:total_bytes,:unused_blocks,:unused_bytes,:last_used_extent_file_id,:last_used_extent_block_id,:last_used_block)
GN_ERS
GN_ERS_P
GN_ERS_S
GN_ERSP
SQL> print
TOTAL_BLOCKS
------------
102656
TOTAL_BYTES
-----------
840957952
UNUSED_BLOCKS
-------------
0
UNUSED_BYTES
------------
0
LAST_USED_EXTENT_FILE_ID
------------------------
4
LAST_USED_EXTENT_BLOCK_ID
-------------------------
154129
LAST_USED_BLOCK
---------------
1024
SQL> execute dbms_space.unused_space ('GENE_ERS','PK_KADEN_KAISUU','INDEX',:tota
l_blocks,:total_bytes,:unused_blocks,:unused_bytes,:last_used_extent_file_id,:la
st_used_extent_block_id,:last_used_block)
SQL>
SQL> print
TOTAL_BLOCKS
------------
45312
TOTAL_BYTES
-----------
371195904
UNUSED_BLOCKS
-------------
0
UNUSED_BYTES
------------
0
LAST_USED_EXTENT_FILE_ID
------------------------
4
LAST_USED_EXTENT_BLOCK_ID
-------------------------
152081
LAST_USED_BLOCK
---------------
1024
===================== |
|