Get a list of diskroups – bash shell
diskgroups=$(sqlplus -s -L / as sysdba << EOF
set pages 0 feedback off
select listagg (name, ' ') within group (order by name) from v\$asm_diskgroup;
EOF
)
asmcmd web page – Sachin’s DBA Blog
Get a list of diskroups – bash shell
diskgroups=$(sqlplus -s -L / as sysdba << EOF
set pages 0 feedback off
select listagg (name, ' ') within group (order by name) from v\$asm_diskgroup;
EOF
)
asmcmd web page – Sachin’s DBA Blog