亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3487 | 回復: 3
打印 上一主題 下一主題

Oracle里段頭的類型 [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2011-02-14 13:11 |只看該作者 |倒序瀏覽

首先什么是段頭?

The segment header is the header block of the first extent of a segment. In Free List Managed (FLM) segments the header block is always the first block of a segment. In Automatic Segment Space Managed (ASSM) segments, the bitmap blocks always appear before the header block within the first extent of the segment.

The segment header contains information on the extents allocated to the segment and free space within the segment.

接著我們來看oracle里段頭的具體類型:

0x01
undo segment header

0x0b
data file header

0x0c
data segment header with FLG blocks

0x0e
unlimited undo segment header

0x0f
unlimited save undo segment header

0x10
unlimited data segment header

0x11
unlimited data segment header with FLG blocks

0x12
extent map block

0x17
bitmapped segment header

0x1d
bitmapped file space header

0x20
first level bitmap block

0x21
second level bitmap block

0x22
third level bitmap block

0x23
Pagetable segment header block

0x24
Pagetable extent map block

0x25
System Managed Undo Extent Map Block

然后我們來看一個ASSM的實例:

SQL> create tablespace testlmt datafile '/dras20/astca/testlmt01.dbf' size 10M extent management local uniform size 1m segment space management auto;

Tablespace created

SQL> create table testlmttb tablespace testlmt as select * from dba_objects;

Table created

SQL> select extent_id,file_id,block_id,bytes from dba_extents where segment_name='TESTLMTTB';


EXTENT_ID
FILE_ID
BLOCK_ID
BYTES

---------- ---------- ---------- ----------


0
138

9
1048576


1
138
137
1048576


2
138
265
1048576


3
138
393
1048576

1、datafile header,即段頭類型為0x0b

BBED> set file 138


FILE#
138

BBED> set block 1


BLOCK#
1

BBED> dump


File: /dras20/astca/testlmt01.dbf (138)


Block: 1
Offsets:
0 to
511
Dba:0x22800001

------------------------------------------------------------------------

0b020000 22800001 00000000 00000104 4bbb0000 09200000 08000000 df7fd2dd


41535443 41000000 000102df 00000500 00002000 008a0003 00000000 00000000


......省略顯示部分內容


00000000 00000000 00000000 00000059 00075445 53544c4d 54000000 00000000


<32 bytes per line>

2、bitmapped file space header,即段頭類型為0x1d

BBED> set block 2


BLOCK#
2

BBED> dump


File: /dras20/astca/testlmt01.dbf (138)


Block: 2
Offsets:
0 to
511

Dba:0x22800002

------------------------------------------------------------------------

1d020000 22800002 aa35c791 00080204 8a370000 0000008a 00000080 00000500


00000001 00000000 00000000 00000007 00000488 00000004 00000005 00000000


......省略顯示部分內容


00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


<32 bytes per line>

3、ASSM里的first level bitmap block,即L1 BMB,段頭類型為0x20

BBED> set block 9


BLOCK#
9

BBED> dump


File: /dras20/astca/testlmt01.dbf (138)


Block: 9

Offsets:
0 to
511
Dba:0x22800009

------------------------------------------------------------------------

20020000 22800009 aa35c793 00080304 8ef60000 00000000 00000000 00000000


00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

......省略顯示部分內容


00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


<32 bytes per line>

這里Block 137、138、265266393、394也是L1 BMB。

4、ASSM里的second level bitmap block,即L2 BMB,段頭類型為0x21

BBED> set block 11


BLOCK#
11

BBED> dump


File: /dras20/astca/testlmt01.dbf (138)


Block: 11
Offsets:
0 to
511
Dba:0x2280000b

------------------------------------------------------------------------

21020000 2280000b aa35c793 00080804 a63a0000 00000000 00000000 00000000


00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


......省略顯示部分內容


00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


<32 bytes per line>

論壇徽章:
0
2 [報告]
發(fā)表于 2011-02-14 13:12 |只看該作者

5ASSM里的Pagetable segment header block,即大家從dba_segmentsselect出來的ASSM下的"段頭",段頭類型為0x23

SQL> select HEADER_FILE,HEADER_BLOCK from dba_segments where segment_name='TESTLMTTB';

HEADER_FILE HEADER_BLOCK

----------- ------------


138
12

BBED> set block 12


BLOCK#
12

BBED> dump


File: /dras20/astca/testlmt01.dbf (138)


Block: 12
Offsets:
0 to
511
Dba:0x2280000c

------------------------------------------------------------------------

23020000 2280000c aa35c797 00080104 c59e0000 00000000 00000000 00000000


00000000 00000004 00000200 0a9c0000 00000003 0000004b 00000080 228001d4


......省略顯示部分內容


00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


<32 bytes per line>

最后我們來看一個MSSM的實例:

因為是9i,所以system表空間就是MSSM。

6unlimited undo segment header,其實就是系統(tǒng)回滾段的段頭,段頭類型為0x0e

SQL> select HEADER_FILE,HEADER_BLOCK from dba_segments where segment_name='SYSTEM';

HEADER_FILE HEADER_BLOCK

----------- ------------


1
9

BBED> set file 1


FILE#
1

BBED> set block 9


BLOCK#
9

BBED> dump


File: /dras11/oradata/astca/system01.dbf (1)


Block: 9
Offsets:
0 to
511
Dba:0x00400009

------------------------------------------------------------------------

0e020000 00400009 aa340432 00080104 cc3f0000 00000000 00000000 00000000


00000000 00000006 0000002f 10200000 00000001 00000006 00000008 00400017


......省略顯示部分內容


00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


<32 bytes per line>

7MSSM里的unlimited data segment header,即大家從dba_segmentsselect出來的MSSM下的"段頭",段頭類型為0x10

SQL> select HEADER_FILE,HEADER_BLOCK from dba_segments where segment_name='OBJ$';

HEADER_FILE HEADER_BLOCK

----------- ------------


1
121

BBED> set file 1


FILE#
1

BBED> set block 121


BLOCK#
121

BBED> map /v


File: /dras11/oradata/astca/system01.dbf (1)


Block: 121
Dba:0x00400079

------------------------------------------------------------


Unlimited Data Segment Header


struct kcbh, 20 bytes
@0


ub1 type_kcbh

@0


......省略顯示部分內容


ub2 spare3_kcbh
@18


struct ktech, 72 bytes
@20


ub4 spare1_ktech
@20


......省略顯示部分內容


ub4 flag_ktech

@88


struct ktemh, 16 bytes
@92


ub4 count_ktemh
@92


ub4 next_ktemh
@96


ub4 obj_ktemh
@100


ub4 flag_ktemh
@104


struct ktetb[19], 152 bytes
@108


ub4 ktetbdba
@108


ub4 ktetbnbk
@112

......省略顯示部分內容


ub4 tailchk

@8188

BBED> set offset 96


OFFSET
96

BBED> dump


File: /dras11/oradata/astca/system01.dbf (1)


Block: 121
Offsets:
96 to
607
Dba:0x00400079

------------------------------------------------------------------------


00000000 00000012 40000000 0040007a 00000007 00401169 00000008 004011f9


00000008 00401309 00000008 00401661 00000008 00402049 00000008 00403191


......省略顯示部分內容


00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


<32 bytes per line>

BBED> set offset 0


OFFSET
0

BBED> dump


File: /dras11/oradata/astca/system01.dbf (1)


Block: 121
Offsets:
0 to
511
Dba:0x00400079

------------------------------------------------------------------------

10020000 00400079 aa2de25f 00080104 e69d0000 00000000 00000000 00000000


00000000 00000013 000001ff 10200000 00000012 00000014 00000080 0040d91d


......省略顯示部分內容


00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


<32 bytes per line>

論壇徽章:
59
2015七夕節(jié)徽章
日期:2015-08-24 11:17:25ChinaUnix專家徽章
日期:2015-07-20 09:19:30每周論壇發(fā)貼之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38榮譽版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年紀念徽章
日期:2015-07-20 11:05:27IT運維版塊每日發(fā)帖之星
日期:2015-07-20 11:05:34操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-07-20 11:05:36程序設計版塊每日發(fā)帖之星
日期:2015-07-20 11:05:40數(shù)據(jù)庫技術版塊每日發(fā)帖之星
日期:2015-07-20 11:05:432015年辭舊歲徽章
日期:2015-07-20 11:05:44
3 [報告]
發(fā)表于 2011-02-14 13:40 |只看該作者
都在搞高興的內容(此處略掉60字)

論壇徽章:
0
4 [報告]
發(fā)表于 2011-02-14 14:01 |只看該作者
http://dbsnake.com/2009/09/oracle-seg-hdr-type.html
看原文吧    轉的有些亂
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP