ASM磁盘组信息查看常用命令

发布时间:2020-04-08 16:54:32 作者:xiaocao13140
来源:网络 阅读:1727

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';


推荐阅读:
  1. 如何迁移OCR和votingdisk到其他asm磁盘组
  2. Oracle RAC 删除ASM磁盘组

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

信息 asm 磁盘组

上一篇:多节点cdn服务器搭建哪个软件好

下一篇:SElinux基础概念

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》