其他
ASM 翻译系列第二十二弹:ASM Internal ASM file number 8
原作者:Bane Radulovic
译者: 郭旭瑞
审核: 魏兴华
DBGeeK社群联合出品
SQL> SELECT d.group_number "Group#",
x.disk_kffxp "Disk#",
x.xnum_kffxp "Extent",
x.au_kffxp "AU",
d.name "Disk name"
FROM x$kffxp x, v$asm_disk_stat d
WHERE x.group_kffxp=d.group_number
and x.disk_kffxp=d.disk_number
and x.number_kffxp=8
ORDER BY 1, 2;
Group# Disk# Extent AU Disk name
------- ------ ------- ------ ------------
1 0 0 51 ASMDISK5
1 0 51 ASMDISK6
2 0 0 41 ASMDISK1
2 0 39 ASMDISK3
3 0 38 ASMDISK4
name "Disk name",
hot_used_mb "Hot (MB)",
cold_used_mb "Cold (MB)"
FROM v$asm_disk_stat
ORDER BY 1;
Group# Disk name Hot (MB) Cold (MB)
------- ------------ ---------- ----------
1 ASMDISK5 0 4187
ASMDISK6 0 4187
2 ASMDISK4 0 1138
ASMDISK2 0 1135
ASMDISK1 0 1139
ASMDISK3 0 1144
kfbh.endian: 1 ; 0x000: 0x01
kfbh.hard: 130 ; 0x001: 0x82
kfbh.type: 26 ; 0x002: KFBTYP_USEDSPC
...
kfdusde[0].used[0].spare: 0 ; 0x000: 0x00000000
kfdusde[0].used[0].hi: 0 ; 0x004: 0x00000000
kfdusde[0].used[0].lo: 4134 ; 0x008: 0x00001026
kfdusde[0].used[1].spare: 0 ; 0x00c: 0x00000000
kfdusde[0].used[1].hi: 0 ; 0x010: 0x00000000
kfdusde[0].used[1].lo: 0 ; 0x014: 0x00000000
kfdusde[1].used[0].spare: 0 ; 0x018: 0x00000000
kfdusde[1].used[0].hi: 0 ; 0x01c: 0x00000000
kfdusde[1].used[0].lo: 4134 ; 0x020: 0x00001026
kfdusde[1].used[1].spare: 0 ; 0x024: 0x00000000
kfdusde[1].used[1].hi: 0 ; 0x028: 0x00000000
kfdusde[1].used[1].lo: 0 ; 0x02c: 0x00000000
kfdusde[2].used[0].spare: 0 ; 0x030: 0x00000000
kfdusde[2].used[0].hi: 0 ; 0x034: 0x00000000
kfdusde[2].used[0].lo: 0 ; 0x038: 0x00000000
kfdusde[2].used[1].spare: 0 ; 0x03c: 0x00000000
kfdusde[2].used[1].hi: 0 ; 0x040: 0x00000000
kfdusde[2].used[1].lo: 0 ; 0x044: 0x00000000
kfbh.endian: 1 ; 0x000: 0x01
kfbh.hard: 130 ; 0x001: 0x82
kfbh.type: 26 ; 0x002: KFBTYP_USEDSPC
...
kfdusde[0].used[0].spare: 0 ; 0x000: 0x00000000
kfdusde[0].used[0].hi: 0 ; 0x004: 0x00000000
kfdusde[0].used[0].lo: 1092 ; 0x008: 0x00000444
kfdusde[0].used[1].spare: 0 ; 0x00c: 0x00000000
kfdusde[0].used[1].hi: 0 ; 0x010: 0x00000000
kfdusde[0].used[1].lo: 0 ; 0x014: 0x00000000
kfdusde[1].used[0].spare: 0 ; 0x018: 0x00000000
kfdusde[1].used[0].hi: 0 ; 0x01c: 0x00000000
kfdusde[1].used[0].lo: 1093 ; 0x020: 0x00000445
kfdusde[1].used[1].spare: 0 ; 0x024: 0x00000000
kfdusde[1].used[1].hi: 0 ; 0x028: 0x00000000
kfdusde[1].used[1].lo: 0 ; 0x02c: 0x00000000
kfdusde[2].used[0].spare: 0 ; 0x030: 0x00000000
kfdusde[2].used[0].hi: 0 ; 0x034: 0x00000000
kfdusde[2].used[0].lo: 1098 ; 0x038: 0x0000044a
kfdusde[2].used[1].spare: 0 ; 0x03c: 0x00000000
kfdusde[2].used[1].hi: 0 ; 0x040: 0x00000000
kfdusde[2].used[1].lo: 0 ; 0x044: 0x00000000
kfdusde[3].used[0].spare: 0 ; 0x048: 0x00000000
kfdusde[3].used[0].hi: 0 ; 0x04c: 0x00000000
kfdusde[3].used[0].lo: 1094 ; 0x050: 0x00000446
kfdusde[3].used[1].spare: 0 ; 0x054: 0x00000000
kfdusde[3].used[1].hi: 0 ; 0x058: 0x00000000
kfdusde[3].used[1].lo: 0 ; 0x05c: 0x00000000
kfdusde[4].used[0].spare: 0 ; 0x060: 0x00000000
kfdusde[4].used[0].hi: 0 ; 0x064: 0x00000000
kfdusde[4].used[0].lo: 0 ; 0x068: 0x00000000
kfdusde[4].used[1].spare: 0 ; 0x06c: 0x00000000
kfdusde[4].used[1].hi: 0 ; 0x070: 0x00000000
kfdusde[4].used[1].lo: 0 ; 0x074: 0x00000000
...
Diskgroup altered.
Tablespace created.
name "Disk name",
hot_used_mb "Hot (MB)",
cold_used_mb "Cold (MB)"
FROM v$asm_disk_stat
ORDER BY 1;
Group# Disk name Hot (MB) Cold (MB)
---------- ------------------------------ ---------- ----------
1 ASMDISK5 0 4187
ASMDISK6 0 4187
2 ASMDISK4 13 1152
ASMDISK2 12 1153
ASMDISK1 13 1152
ASMDISK3 13 1153
+DATA/BR/DATAFILE/EXAMPLE.269.769030517
+DATA/BR/DATAFILE/NOT_IMPORTANT.273.771795255
+DATA/BR/DATAFILE/SYSAUX.257.769030245
+DATA/BR/DATAFILE/SYSTEM.256.769030243
+DATA/BR/DATAFILE/T1_HOT.274.772054033
+DATA/BR/DATAFILE/TRIPLE_C.272.771794469
+DATA/BR/DATAFILE/TRIPLE_M.271.771793293
+DATA/BR/DATAFILE/UNDOTBS1.258.769030245
+DATA/BR/DATAFILE/USERS.259.769030245
Diskgroup altered.
name "Disk name",
hot_used_mb "Hot (MB)",
cold_used_mb "Cold (MB)"
FROM v$asm_disk_stat
ORDER BY 1;
Group# Disk name Hot (MB) Cold (MB)
---------- ------------------------------ ---------- ----------
1 ASMDISK5 0 4187
ASMDISK6 0 4187
2 ASMDISK4 40 1125
ASMDISK2 39 1126
ASMDISK1 39 1126
ASMDISK3 39 1127
郭旭瑞,沃趣科技产品交付部经理,负责QData Cloud高性能数据库云平台、QBackup数据库秒级备份恢复云平台等产品的整体交付管理与技术支持、维保服务工作。个人网站:www.dbalex.com
点击“原文阅读”,即可获取【Oracle ASM翻译系列】前二十一期翻译文章
↓↓↓