dump 分支块:
----- begin tree dump
branch: 0x1031b23 16980771 (0: nrow: 106, level: 2)
branch: 0x10556b0 17127088 (-1: nrow: 414, level: 1)
leaf: 0x1031b24 16980772 (-1: nrow: 363 rrow: 363)
leaf: 0x1031b25 16980773 (0: nrow: 359 rrow: 359)
leaf: 0x1031b26 16980774 (1: nrow: 359 rrow: 359)
对其运用前面所介绍过的dbms_utility里的存储过程获得其文件号和数据块号,并对该数据块进行转储,其内容如下所示。可以
select dbms_utility.data_block_address_file(17127088), dbms_utility.data_block_address_block(17127088) from dual;
SQL> select dbms_utility.data_block_address_file(17127088), dbms_utility.data_block_address_block(17127088) from dual;
DBMS_UTILITY.DATA_BLOCK_ADDRESS_FILE(17127088) DBMS_UTILITY.DATA_BLOCK_ADDRESS_BLOCK(17127088)
---------------------------------------------- -----------------------------------------------
4 349872
select value from v$diag_info where name='Default Trace File';
SQL> alter system dump datafile 4 block 349872;
Branch block dump
=================
header address 140339739789900=0x7fa364568a4c
kdxcolev 1
KDXCOLEV Flags = - - -
kdxcolok 0
kdxcoopc 0x80: opcode=0: iot flags=--- is converted=Y
kdxconco 2
kdxcosdc 0
kdxconro 413
kdxcofbo 854=0x356
kdxcofeo 869=0x365
kdxcoavs 15
kdxbrlmc 16980772=0x1031b24
kdxbrsno 0
kdxbrbksz 8056
kdxbr2urrc 0
row#0[8038] dba: 16980773=0x1031b25
col 0; len 8; (8): 35 30 30 30 30 20 20 20 ---50000
col 1; len 4; (4): 01 04 76 fb
row#1[8021] dba: 16980774=0x1031b26
col 0; len 8; (8): 35 30 30 30 31 20 20 20 -----500001
col 1; len 3; (3): 01 03 86
row#2[8005] dba: 16980775=0x1031b27
col 0; len 8; (8): 35 30 30 30 32 20 20 20 -------500002
col 1; len 2; (2): 01 03
row#3[7987] dba: 16980776=0x1031b28
col 0; len 8; (8): 35 30 30 30 32 20 20 20
col 1; len 4; (4): 01 04 97 d9
row#4[7970] dba: 16980777=0x1031b29
col 0; len 8; (8): 35 30 30 30 33 20 20 20
col 1; len 3; (3): 01 03 a8
row#5[7953] dba: 16980778=0x1031b2a
col 0; len 8; (8): 35 30 30 30 34 20 20 20
col 1; len 3; (3): 01 03 23
row#6[7936] dba: 16980779=0x1031b2b
col 0; len 8; (8): 35 30 30 30 34 20 20 20
col 1; len 3; (3): 01 04 bc
row#7[7919] dba: 16980780=0x1031b2c
col 0; len 8; (8): 35 30 30 30 35 20 20 20
col 1; len 3; (3): 01 04 0f
DECLARE
n VARCHAR2(2000);
BEGIN
DBMS_STATS.convert_raw_value('35', n);
DBMS_OUTPUT.put_line(n);
DBMS_STATS.convert_raw_value('30', n);
DBMS_OUTPUT.put_line(n);
DBMS_STATS.convert_raw_value('30', n);
DBMS_OUTPUT.put_line(n);
DBMS_STATS.convert_raw_value('30', n);
DBMS_OUTPUT.put_line(n);
DBMS_STATS.convert_raw_value('31', n);
DBMS_OUTPUT.put_line(n);
DBMS_STATS.convert_raw_value('20', n);
DBMS_OUTPUT.put_line(n);
DBMS_STATS.convert_raw_value('20', n);
DBMS_OUTPUT.put_line(n);
DBMS_STATS.convert_raw_value('20', n);
DBMS_OUTPUT.put_line(n);
END;