- 最后登录
- 2018-11-1
- 在线时间
- 377 小时
- 威望
- 29
- 金钱
- 6866
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 891
- 精华
- 4
- 积分
- 29
- UID
- 1
|
7#
发表于 2014-4-8 16:57:37
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
INSTANCE_NAME
----------------
Parnassus
SQL> alter system flush buffer_cache;
System altered.
SQL> create table maclean (t1 int) tablespace users;
Table created.
SQL> insert into maclean values(1);
1 row created.
SQL> commit;
Commit complete.
SQL> select dbms_rowid.rowid_relative_fno(rowid) file#,dbms_rowid.rowid_block_number(rowid) block# from maclean;
FILE# BLOCK#
---------- ----------
4 136159
SQL> select obj#,dataobj# from obj$ where name='MACLEAN';
OBJ# DATAOBJ#
---------- ----------
79311 79311
SQL> oradebug setmypid
Statement processed.
SQL> oradebug dump buffers 1;
oradebug tracefile_name
BH (0x85ff1c18) file#: 4 rdba: 0x010213dc (4/136156) class: 1 ba: 0x85e82000
set: 5 pool: 3 bsz: 8192 bsi: 0 sflg: 1 pwc: 0,28
dbwrid: 0 obj: 79311 objn: 79311 tsn: 4 afn: 4 hint: f
hash: [0x80f6f9e8,0xfe5ade38] lru: [0x85ff1e30,0x85ff1bd0]
obj-flags: object_ckpt_list
ckptq: [0x85ff1ae8,0x85ff1d48] fileq: [0x85ff1af8,0xfd0e26c0] objq: [0x85ff2dc8,0x85ff1bf8] objaq: [0x85ff2dd8,0x85ff1c08]
st: XCURRENT md: NULL fpin: 'ktspbwh2: ktspfmdb' tch: 2
flags: buffer_dirty redo_since_read
LRBA: [0x44.7998.0] LSCN: [0x0.17b95e] HSCN: [0x0.17b95e] HSUB: [1]
BH (0x85ff2cb8) file#: 4 rdba: 0x010213d9 (4/136153) class: 9 ba: 0x85e9e000
set: 5 pool: 3 bsz: 8192 bsi: 0 sflg: 1 pwc: 0,28
dbwrid: 0 obj: 79311 objn: 79311 tsn: 4 afn: 4 hint: f
hash: [0x80fbdb28,0xfe74c5b8] lru: [0x85ff2ed0,0x85ff2c70]
obj-flags: object_ckpt_list
ckptq: [0x85ff2de8,0x85ff2f18] fileq: [0xfd0e5900,0x85ff2f28] objq: [0xf9a55878,0x85ff1d28] objaq: [0xf9a55858,0x85ff1d38]
st: XCURRENT md: NULL fpin: 'ktspswh4: ktspfsbmb' tch: 2
flags: buffer_dirty redo_since_read
LRBA: [0x44.7981.0] LSCN: [0x0.17b94d] HSCN: [0x0.17b94d] HSUB: [1]
BH (0x85ff1ae8) file#: 4 rdba: 0x010213de (4/136158) class: 1 ba: 0x85e80000
set: 5 pool: 3 bsz: 8192 bsi: 0 sflg: 1 pwc: 0,28
dbwrid: 0 obj: 79311 objn: 79311 tsn: 4 afn: 4 hint: f
hash: [0x80f6f8b8,0xfe84cd38] lru: [0x85ff1d00,0x85ff1970]
obj-flags: object_ckpt_list
ckptq: [0x85ff1888,0x85ff1c18] fileq: [0xfd0e26c0,0x85ff1c28] objq: [0x85ff1d28,0xf9a55878] objaq: [0x85ff1d38,0xf9a55858]
st: XCURRENT md: NULL fpin: 'ktspbwh2: ktspfmdb' tch: 2
flags: buffer_dirty redo_since_read
LRBA: [0x44.7998.0] LSCN: [0x0.17b95e] HSCN: [0x0.17b95e] HSUB: [1]
BH (0x90fe9bd8) file#: 4 rdba: 0x010213db (4/136155) class: 1 ba: 0x90daa000
set: 6 pool: 3 bsz: 8192 bsi: 0 sflg: 1 pwc: 0,15
dbwrid: 0 obj: 79311 objn: 79311 tsn: 4 afn: 4 hint: f
hash: [0x80fbd9f8,0xfe9ee6b8] lru: [0x90fe9df0,0x90fe9b90]
obj-flags: object_ckpt_list
ckptq: [0x90fe9aa8,0x90fea1c8] fileq: [0x90fe9ab8,0xfd100778] objq: [0x90feab28,0x90fe9bb8] objaq: [0x90feab38,0x90fe9bc8]
st: XCURRENT md: NULL fpin: 'ktspbwh2: ktspfmdb' tch: 2
flags: buffer_dirty redo_since_read
LRBA: [0x44.7998.0] LSCN: [0x0.17b95e] HSCN: [0x0.17b95e] HSUB: [1]
BH (0x90feaa18) file#: 4 rdba: 0x010213d8 (4/136152) class: 8 ba: 0x90dc2000
set: 6 pool: 3 bsz: 8192 bsi: 0 sflg: 1 pwc: 0,15
dbwrid: 0 obj: 79311 objn: 79311 tsn: 4 afn: 4 hint: f
hash: [0x80f6fc48,0xfeb8ce38] lru: [0x90fefe20,0x90fea8a0]
obj-flags: object_ckpt_list
ckptq: [0x90fe9e38,0x90fefd38] fileq: [0xfd0fd538,0x90fefd48] objq: [0x90fefe48,0x90fe9ce8] objaq: [0x90fefe58,0x90fe9cf8]
st: XCURRENT md: NULL fpin: 'ktspfwh6: ktspffbmb' tch: 2
flags: buffer_dirty redo_since_read
LRBA: [0x44.7981.0] LSCN: [0x0.17b94e] HSCN: [0x0.17b95e] HSUB: [1]
BH (0x90fe9aa8) file#: 4 rdba: 0x010213dd (4/136157) class: 1 ba: 0x90da8000
set: 6 pool: 3 bsz: 8192 bsi: 0 sflg: 1 pwc: 0,15
dbwrid: 0 obj: 79311 objn: 79311 tsn: 4 afn: 4 hint: f
hash: [0x80fbd8c8,0xfec8d5b8] lru: [0x90fe9cc0,0x90fe90e0]
obj-flags: object_ckpt_list
ckptq: [0x90fe8ff8,0x90fe9bd8] fileq: [0x90fe9008,0x90fe9be8] objq: [0x90fe9ce8,0x90fe9108] objaq: [0x90fe9cf8,0x90fe9118]
st: XCURRENT md: NULL fpin: 'ktspbwh2: ktspfmdb' tch: 2
flags: buffer_dirty redo_since_read
LRBA: [0x44.7998.0] LSCN: [0x0.17b95e] HSCN: [0x0.17b95e] HSUB: [1]
BH (0x90fefd38) file#: 4 rdba: 0x010213da (4/136154) class: 4 ba: 0x90e4e000
set: 6 pool: 3 bsz: 8192 bsi: 0 sflg: 1 pwc: 0,15
dbwrid: 0 obj: 79311 objn: 79311 tsn: 4 afn: 4 hint: f
hash: [0x80f6fb18,0xfee2bd38] lru: [0x90ff0080,0x90feab00]
obj-flags: object_ckpt_list
ckptq: [0x90feaa18,0x90ff00c8] fileq: [0x90feaa28,0x90ff00d8] objq: [0xf9a6e6a0,0x90feab28] objaq: [0xf9a6e680,0x90feab38]
st: XCURRENT md: NULL fpin: 'ktswh03: ktscts' tch: 3
flags: buffer_dirty redo_since_read
LRBA: [0x44.7981.0] LSCN: [0x0.17b94c] HSCN: [0x0.17b95e] HSUB: [1]
BH (0x90fe8ff8) file#: 4 rdba: 0x010213df (4/136159) class: 1 ba: 0x90d96000
set: 6 pool: 3 bsz: 8192 bsi: 0 sflg: 1 pwc: 0,15
dbwrid: 0 obj: 79311 objn: 79311 tsn: 4 afn: 4 hint: f
hash: [0x84fe9db8,0xfef2c4b8] lru: [0x90fe9b90,0x90fe8fb0]
obj-flags: object_ckpt_list
ckptq: [0x90fe8ec8,0x90fe9aa8] fileq: [0xfd100778,0x90fe9ab8] objq: [0x90fe9bb8,0xf9a6e6a0] objaq: [0x90fe9bc8,0xf9a6e680]
st: XCURRENT md: NULL fpin: 'ktspbwh2: ktspfmdb' tch: 2
flags: buffer_dirty redo_since_read
LRBA: [0x44.7998.0] LSCN: [0x0.17b95e] HSCN: [0x0.17b95f] HSUB: [1]
CLASS NUMBER See Note 33434.1
1,'data block',
2,'sort block',
3,'save undo block',
4,'segment header',
5,'save undo header',
6,'free list',
7,'extent map',
8,'1st level bmb',
9,'2nd level bmb',
10,'3rd level bmb',
11,'bitmap block',
12,'bitmap index block',
13,'file header block',
14,'unused',
15,'system undo header',
16,'system undo block',
17,'undo header',
18,'undo block' -- since 10g
class 8 1st level bmb : 136152
class 9 2nd level bmb: 136153
class 4 segment header: 136154
class 1 data block: 136155 136156 136157 136158 136159
这是你看到的8个块
Low HighWater Mark :
Highwater:: 0x010213e0 ext#: 0 blk#: 8 ext size: 8
#blocks in seg. hdr's freelists: 0
#blocks below: 5
mapblk 0x00000000 offset: 0
Level 1 BMB for High HWM block: 0x010213d8
Level 1 BMB for Low HWM block: 0x010213d8
--------------------------------------------------------
Segment Type: 1 nl2: 1 blksz: 8192 fbsz: 0
L2 Array start offset: 0x00001434
First Level 3 BMB: 0x00000000
L2 Hint for inserts: 0x010213d9
Last Level 1 BMB: 0x010213d8
Last Level II BMB: 0x010213d9
Last Level III BMB: 0x00000000
Map Header:: next 0x00000000 #extents: 1 obj#: 79311 flag: 0x10000000
Inc # 0
Extent Map
Highwater:: 0x010213e0 ==》 4/ 136160
L2 Hint for inserts: 0x010213d9 ==> 4/136153 ==>2nd level bmb
|
|