zoukankan      html  css  js  c++  java
  • dump 分支块

    dump 分支块:
    
    header address 140329769740876=0x7fa11213aa4c
    kdxcolev 2
    KDXCOLEV Flags = - - -
    kdxcolok 0
    kdxcoopc 0x80: opcode=0: iot flags=--- is converted=Y
    kdxconco 2
    kdxcosdc 1
    kdxconro 7
    kdxcofbo 42=0x2a
    kdxcofeo 7989=0x1f35
    kdxcoavs 7947
    kdxbrlmc 16983209=0x10324a9
    kdxbrsno 4
    kdxbrbksz 8056
    kdxbr2urrc 0
    row#0[8009] dba: 16994288=0x1034ff0
    
    其中的kdxcolev表示索引层级号,这里由于我们转储的是根节点,所以其层级号为2。
    
    branch: 0x103161b 16979483 (0: nrow: 8, level: 2)	
    	  
    row#0[8009] dba: 16994288=0x1034ff0
    col 0; len 4; (4):  c3 06 2f 36
    col 1; TERM
    row#1[8029] dba: 16990264=0x1034038
    col 0; len 3; (3):  c3 06 5a
    col 1; TERM
    row#2[7999] dba: 16994256=0x1034fd0
    col 0; len 4; (4):  c3 07 23 21
    col 1; TERM
    row#3[8047] dba: 16983213=0x10324ad
    col 0; len 3; (3):  c3 07 4f
    col 1; TERM
    row#4[7989] dba: 16995386=0x103543a
    col 0; len 4; (4):  c3 08 1d 0c
    col 1; TERM
    row#5[8038] dba: 16987041=0x10333a1
    col 0; len 3; (3):  c3 08 4f
    col 1; TERM
    row#6[8019] dba: 16992010=0x103470a
    col 0; len 4; (4):  c3 09 1f 46
    col 1; TERM
    ----- end of branch block dump -----
    End dump data blocks tsn: 4 file#: 4 minblk 202267 maxblk 202267
    
    
    接下来,我们从根节点中随便找一个分支节点
    
    row#0[8009] dba: 16994288=0x1034ff0
    col 0; len 4; (4):  c3 06 2f 36
    col 1; TERM
    
    select dbms_utility.data_block_address_file(16994288), dbms_utility.data_block_address_block(16994288) from dual;
    
    SQL> select dbms_utility.data_block_address_file(16994288), dbms_utility.data_block_address_block(16994288) from dual;
    
    DBMS_UTILITY.DATA_BLOCK_ADDRESS_FILE(16994288) DBMS_UTILITY.DATA_BLOCK_ADDRESS_BLOCK(16994288)
    ---------------------------------------------- -----------------------------------------------
    					     4						217072
    						 
    
    对其运用前面所介绍过的dbms_utility里的存储过程获得其文件号和数据块号,并对该数据块进行转储,其内容如下所示。可以
    
    SQL> alter system dump datafile 4 block 217072;
    
    select value from v$diag_info where name='Default Trace File';
    
    
    Branch block dump
    =================
    header address 140436935371340=0x7fba05a56a4c
    kdxcolev 1
    KDXCOLEV Flags = - - -
    kdxcolok 1
    kdxcoopc 0x81: opcode=1: iot flags=--- is converted=Y
    kdxconco 2
    kdxcosdc 1
    kdxconro 378
    kdxcofbo 784=0x310
    kdxcofeo 3713=0xe81
    kdxcoavs 2929
    kdxbrlmc 16982257=0x10320f1
    kdxbrsno 310
    kdxbrbksz 8056 
    kdxbr2urrc 4
    row#0[4835] dba: 16990452=0x10340f4
    col 0; len 4; (4):  c3 06 2f 45  ---54689
    col 1; len 3; (3):  01 03 31
    row#1[4640] dba: 16995572=0x10354f4 
    col 0; len 4; (4):  c3 06 2f 4d   --54676
    col 1; len 3; (3):  01 03 2b
    row#2[4848] dba: 16984999=0x1032ba7
    col 0; len 4; (4):  c3 06 2f 55
    col 1; TERM
    row#3[4858] dba: 16990413=0x10340cd
    col 0; len 4; (4):  c3 06 2f 64
    col 1; len 3; (3):  01 03 31
    row#4[3726] dba: 17000201=0x1036709
    col 0; len 4; (4):  c3 06 30 08
    col 1; len 3; (3):  01 03 31
    row#5[4871] dba: 16979575=0x1031677
    col 0; len 4; (4):  c3 06 30 10
    col 1; TERM
    row#6[4881] dba: 16990417=0x10340d1
    col 0; len 4; (4):  c3 06 30 1f
    col 1; len 3; (3):  01 03 31
    row#7[3778] dba: 16999945=0x1036609
    col 0; len 4; (4):  c3 06 30 27
    col 1; len 3; (3):  01 03 2b
    row#8[4894] dba: 16984778=0x1032aca
    col 0; len 4; (4):  c3 06 30 2f
    col 1; TERM
    
    
  • 相关阅读:
    spoj LCS2
    spoj SUBLEX
    spoj NSUBSTR
    bzoj 2882: 工艺【SAM】
    poj 3294 Life Forms【SA+二分】
    poj 3415 Common Substrings【SA+单调栈】
    poj 2774 Long Long Message【SA】
    poj 2406 Power Strings【kmp】
    poj 1743 Musical Theme【二分+SA】
    hdu 3622 Bomb Game【二分+2-SAT+tarjan】
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348394.html
Copyright © 2011-2022 走看看