其他
ASM 翻译系列第二十六弹:ASM 高级知识 Where is my data
原作者:Bane Radulovic
译者: 邱大龙
审核: 魏兴华
DBGeeK社群联合出品
Tablespace created.
SQL> select f.FILE#, f.NAME "File", t.NAME "Tablespace"
from V$DATAFILE f, V$TABLESPACE t
where t.NAME='T1' and f.TS# = t.TS#;
FILE# File Tablespace
----- ---------------------------------- ----------
6 +DATA/br/datafile/t1.272.797809075 T1
SQL>
tablespace T1;
Table created.
SQL> insert into TAB1 values (1, 'CAT');
1 row created.
SQL> commit;
Commit complete.
ROWID NAME
------------------ ----
AAASxxAAGAAAACHAAA CAT
SQL> select
DBMS_ROWID.ROWID_BLOCK_NUMBER('AAASxxAAGAAAACHAAA')
"Block number" from DUAL;
Block number
------------
135
BLOCK_SIZE
----------
8192
GROUP_NUMBER
------------
1
SQL> select PXN_KFFXP, -- physical extent number
XNUM_KFFXP, -- virtual extent number
DISK_KFFXP, -- disk number
AU_KFFXP -- allocation unit number
from X$KFFXP
where NUMBER_KFFXP=272 -- ASM file 272
AND GROUP_KFFXP=1 -- group number 1
order by 1;
PXN_KFFXP XNUM_KFFXP DISK_KFFXP AU_KFFXP
---------- ---------- ---------- ----------
0 0 0 1175
1 0 3 1170
2 1 3 1175
3 1 2 1179
4 2 1 1175
...
SQL>
NAME='au_size' and GROUP_NUMBER=1;
VALUE
-------
1048576
from V$ASM_DISK
where DISK_NUMBER in (2,3);
DISK_NUMBER NAME
----------- ------------------------------
2 ASMDISK3
3 ASMDISK4
SQL>
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.057577 seconds, 18.2 MB/s
$ ls -l AU1175.dd
-rw-r--r-- 1 grid oinstall 1048576 Oct 27 22:45 AU1175.dd
$
...
0017760 \0 \0 , 001 002 002 301 002 003 C A T 001 006 332 217
0020000
$
点击“原文阅读”,即可获取【Oracle ASM翻译系列】前二十五期翻译文章
↓↓↓