|
原帖由 Yong Huang 于 2010-6-26 04:24 发表
Good. Instead of select count(*), why not select * and see if there's any difference between the two rows? And/or compare with a block dump (just look at the data part of the dump).
If you alter table t move, will the new block be moved to closer to the first one?
Yong Huang
SQL> select count(*) from t;
COUNT(*)
----------
2
SQL> col owner format a5
SQL> col OBJECT_NAME format a15
SQL> col OBJECT_ID format 99
SQL> select owner,object_name,object_id from t;
OWNER OBJECT_NAME OBJECT_ID
----- --------------- ---------
SYS ICOL$ 20
SYS ICOL$ 20
SQL> alter table t move;
表已更改。
SQL> select count(*) from t;
COUNT(*)
----------
2
SQL> select header_file,header_block from dba_segments where segment_name='T';
HEADER_FILE HEADER_BLOCK
----------- ------------
4 138
SQL> alter system dump datafile 4 block 139;
系统已更改。
E75A160 002C0000 5953030E 43490553 FF244C4F [..,...SYS.ICOL$.]
E75A170 0215C102 540503C1 454C4241 056E7807 [.......TABLE.xn.]
E75A180 1C3A0D19 056E7807 1C3A0D19 31303213 [..:..xn...:..201]
E75A190 35302D30 3A35322D 353A3231 37323A37 [0-05-25:12:57:27]
E75A1A0 4C415605 4E014449 4E014E01 2C02C102 [.VALID.N.N.N...,]
E75A1B0 53030E00 49055359 244C4F43 15C102FF [...SYS.ICOL$....]
E75A1C0 0503C102 4C424154 6E780745 3A0D1905 [....TABLE.xn...:]
E75A1D0 6E78071C 3A0D1905 3032131C 302D3031 [..xn...:..2010-0]
E75A1E0 35322D35 3A32313A 323A3735 41560537 [5-25:12:57:27.VA]
E75A1F0 0144494C 014E014E 02C1024E 8B750602 [LID.N.N.N.....u.]
Block header dump: 0x0100008b
Object id on Block? Y
seg/obj: 0x10d41 csc: 0x00.968b73 itc: 3 flg: E typ: 1 - DATA
brn: 0 bdba: 0x1000088 ver: 0x01 opc: 0
inc: 0 exflg: 0
Itl Xid Uba Flag Lck Scn/Fsc
0x01 0x000f.00d.0000072c 0x00000000.0000.00 ---- 0 fsc 0x0000.00000000
0x02 0x0000.000.00000000 0x00000000.0000.00 ---- 0 fsc 0x0000.00000000
0x03 0x0000.000.00000000 0x00000000.0000.00 ---- 0 fsc 0x0000.00000000
bdba: 0x0100008b
data_block_dump,data header at 0xe75827c
===============
tsiz: 0x1f80
hsiz: 0x16
pbl: 0x0e75827c
76543210
flag=--------
ntab=1
nrow=2
frre=-1
fsbo=0x16
fseo=0x1ee6
avsp=0x1ed0
tosp=0x1ed0
0xe:pti[0] nrow=2 offs=0
0x12:pri[0] offs=0x1f33
0x14:pri[1] offs=0x1ee6
block_row_dump:
tab 0, row 0, @0x1f33
tl: 77 fb: --H-FL-- lb: 0x0 cc: 14
col 0: [ 3] 53 59 53
col 1: [ 5] 49 43 4f 4c 24
col 2: *NULL*
col 3: [ 2] c1 15
col 4: [ 2] c1 03
col 5: [ 5] 54 41 42 4c 45
col 6: [ 7] 78 6e 05 19 0d 3a 1c
col 7: [ 7] 78 6e 05 19 0d 3a 1c
col 8: [19] 32 30 31 30 2d 30 35 2d 32 35 3a 31 32 3a 35 37 3a 32 37
col 9: [ 5] 56 41 4c 49 44
col 10: [ 1] 4e
col 11: [ 1] 4e
col 12: [ 1] 4e
col 13: [ 2] c1 02
tab 0, row 1, @0x1ee6
tl: 77 fb: --H-FL-- lb: 0x0 cc: 14
col 0: [ 3] 53 59 53
col 1: [ 5] 49 43 4f 4c 24
col 2: *NULL*
col 3: [ 2] c1 15
col 4: [ 2] c1 03
col 5: [ 5] 54 41 42 4c 45
col 6: [ 7] 78 6e 05 19 0d 3a 1c
col 7: [ 7] 78 6e 05 19 0d 3a 1c
col 8: [19] 32 30 31 30 2d 30 35 2d 32 35 3a 31 32 3a 35 37 3a 32 37
col 9: [ 5] 56 41 4c 49 44
col 10: [ 1] 4e
col 11: [ 1] 4e
col 12: [ 1] 4e
col 13: [ 2] c1 02
end_of_block_dump |
|