col group_name FOR a10 col quota_name FOR a20 col FILE_GROUP FOR a120 col NAME FOR a10 SELECT G.NAME ??????????AS GROUP_NAME, ???????Q.NAME ??????????AS QUOTA_NAME, ???????Q.USED_QUOTA_MB, ???????Q.QUOTA_LIMIT_MB, ???????F.FILE_GROUP ??FROM V$ASM_DISKGROUP G ??LEFT JOIN V$ASM_QUOTAGROUP Q ????ON G.GROUP_NUMBER = Q.GROUP_NUMBER ??LEFT JOIN (SELECT QUOTAGROUP_NUMBER, ????????????????????LISTAGG(PROPERTY, '|') WITHIN GROUP(ORDER BY PROPERTY) AS FILE_GROUP ???????????????FROM (SELECT ('NAME=>' || NAME || ';' || 'DB_NAME=>' || ????????????????????????????NVL(CLIENT_NAME, 'no_db') || ';' || ????????????????????????????'USED_QUOTA_MB=>' || USED_QUOTA_MB) AS PROPERTY, ????????????????????????????QUOTAGROUP_NUMBER ???????????????????????FROM V$ASM_FILEGROUP) ??????????????GROUP BY QUOTAGROUP_NUMBER) F ON F.QUOTAGROUP_NUMBER = Q.QUOTAGROUP_NUMBER order by group_name; |