檢視ASM的Extent分佈情況

Jet_Zhang發表於2017-04-12
1、檢視Diskgroup的磁碟使用情況:

  1. SQL> SELECT NAME, TOTAL_MB, FREE_MB FROM V$ASM_DISK WHERE GROUP_NUMBER=1;

  2. NAME TOTAL_MB FREE_MB
  3. ------------------------------ ---------- ----------
  4. ASMDISK1 2097149 2066153
  5. ASMDISK2 2097149 2066147
  6. ASMDISK3 1717762 1692373
  7. ASMDISK4 1717762 1692371

2、檢視磁碟的Extent數量:

  1. SQL> SELECT COUNT(PXN_KFFXP), DISK_KFFXP, GROUP_KFFXP FROM X$KFFXP WHERE
  2.   2 GROUP_KFFXP=1 GROUP BY DISK_KFFXP, GROUP_KFFXP ORDER BY GROUP_KFFXP,
  3.   3 DISK_KFFXP;

  4. COUNT(PXN_KFFXP) DISK_KFFXP GROUP_KFFXP
  5. ---------------- ---------- -----------
  6.            30841 0 1
  7.            30846 1 1
  8.            25261 2 1
  9.            25260 3 1
GROUP_KFFXP為磁碟組號

3、
檢視資料檔案在磁碟上的分佈情況:

  1. SQL> SELECT DISK_KFFXP, COUNT (DISK_KFFXP) EXTENTS FROM X$KFFXP WHERE
  2.   2 GROUP_KFFXP=1 AND NUMBER_KFFXP=322 AND DISK_KFFXP <> 65534 GROUP BY
  3.   3 NUMBER_KFFXP,DISK_KFFXP;

  4. DISK_KFFXP EXTENTS
  5. ---------- ----------
  6.          0 6755
  7.          1 6757
  8.          2 5533
  9.          3 5533
NUMBER_KFFXP為資料檔案的編號,可以從資料檔名中得到


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13885898/viewspace-2137078/,如需轉載,請註明出處,否則將追究法律責任。

相關文章