ASM磁碟組資訊查看常用命令

來源:互聯網
上載者:User

ASM磁碟組資訊查看常用命令

1.1          擷取磁碟組管理資訊
1.1.1        查看磁碟路徑
SQL> selectname, path, group_number from v$asm_disk_stat ;


1.1.2        查看磁碟組資訊
SQL> selectstate,name,type,total_mb, free_mb from v$asm_diskgroup_stat ;


磁碟組狀態為Mounted說明磁碟組狀態正常;

磁碟組的total_mb,free_mb為非0說明可以讀取磁碟資訊,擷取磁碟大小。

1.1.3        查看磁碟組操作
select * fromv$asm_operation

OPERA STATPOWER ACTUAL SOFAR EST_WORK EST_RATE EST_MINUTES

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

1 REBAL WAIT11 0 0 0 0 0

1 DSCV WAIT 110 0 0 0 0

(timepasses…………..)

OPERA STATPOWER ACTUAL SOFAR EST_WORK EST_RATE EST_MINUTES

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

1 REBAL REAP11 2 25 219 485 0

1.1.4        查看磁碟組屬性
查詢V$ASM_ATTRIBUTE視圖查看磁碟組屬性

SQL> SELECT dg.name AS diskgroup,SUBSTR(a.name,1,18) AS name,

SUBSTR(a.value,1,24) AS value, read_only FROM V$ASM_DISKGROUP_STAT dg,

V$ASM_ATTRIBUTE a WHERE dg.name = 'DATA'

AND dg.group_number = a.group_number;


1.1.5        查看磁碟組相容屬性
SQL> SELECT name,COMPATIBILITY,DATABASE_COMPATIBILITY FROM V$ASM_DISKGROUP_STAT;


1.1.6        查看磁碟狀態
SQL> SELECT SUBSTR(d.name,1,16) AS asmdisk,d.mount_status,HEADER_STATUS, d.state,

dg.name AS diskgroup FROM V$ASM_DISKGROUP_STAT  dg, V$ASM_DISK_STAT d

WHERE dg.group_number = d.group_number;


 

1.1.7        查看磁碟用戶端資訊
SQL> SELECT dg.name AS diskgroup,SUBSTR(c.instance_name,1,12) AS instance,

SUBSTR(c.db_name,1,12) AS dbname,SUBSTR(c.SOFTWARE_VERSION,1,12) AS software,

SUBSTR(c.COMPATIBLE_VERSION,1,12) AS compatible

FROM V$ASM_DISKGROUP_STAT  dg, V$ASM_CLIENT c

WHERE dg.group_number = c.group_number;


1.1.8        查看磁碟存取控制使用者資訊
SQL> SELECT dg.name AS diskgroup, u.group_number,u.user_number, u.os_id, u.os_name

FROM V$ASM_DISKGROUP_STAT  dg, V$ASM_USER u

WHERE dg.group_number = u.group_number AND dg.name ='DATA';


1.1.9        查看磁碟存取控制組資訊
SQL> SELECT dg.name AS diskgroup, ug.group_number,ug.owner_number, u.os_name,

ug.usergroup_number, ug.name FROM V$ASM_DISKGROUP_STAT dg, V$ASM_USER u, V$ASM_USERGROUP ug

WHERE dg.group_number = ug.group_number AND dg.name ='DATA'

AND ug.owner_number = u.user_number;


1.1.10  查看智能資料分布資訊
SQL> SELECT dg.name AS diskgroup, f.file_number, f.primary_region,f.mirror_region, f.hot_reads,f.hot_writes, f.cold_reads, f.cold_writes

FROM V$ASM_DISKGROUP_STAT  dg, V$ASM_FILE f

WHERE dg.group_number = f.group_number and dg.name ='DATA';

如何修改ASM的sys密碼

如何將ASM中的資料檔案複製到作業系統中

Oracle 11g RAC ASM磁碟全部丟失後的恢複

Oracle 11g從入門到精通 PDF+光碟片原始碼

RHEL6 ASM方式安裝Oracle 11g R2

Oracle 10g 手工建立ASM資料庫

Ubuntu 12.04(amd64)安裝完Oracle 11gR2後各種問題解決方案

如何修改Oracle 10g ASM的sys密碼

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.