Script to Check Disk group Freespace & Mount Status

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
SQL Script

set pages 1000 lines 120
col NAME for a16
select GROUP_NUMBER DG#, name, ALLOCATION_UNIT_SIZE AU_SZ, STATE,
TYPE, TOTAL_MB, FREE_MB, OFFLINE_DISKS from v$asm_diskgroup; 

Sample Output

SQL> set pages 40000 lines 120
col NAME for a15
select GROUP_NUMBER DG#, name, ALLOCATION_UNIT_SIZE AU_SZ, STATE,
TYPE, TOTAL_MB, FREE_MB, OFFLINE_DISKS from v$asm_diskgroup; 

       DG# NAME                 AU_SZ STATE       TYPE     TOTAL_MB    FREE_MB OFFLINE_DISKS
---------- --------------- ---------- ----------- ------ ---------- ---------- -------------
         1 DATA               4194304 CONNECTED   HIGH    254091264  195057868             0
         2 INDEX              4194304 MOUNTED     NORMAL    4845120    4723180             0
         3 RECO               4194304 CONNECTED   HIGH    380954112  341118252             0

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer