Entradas

Mostrando entradas de noviembre, 2013

[ORACLE] ASM script dfdg

# ------------------------------------------------------------------------------ # FUNCTION #   Displays ASM diskgroup information, space usage. Displays usage by DISKS. #   Displays ongoing operations and list of files on diskgroup. # NOTES #   Developed for 11g Oracle Version. The entry must be in the /etc/oratab #   for ASM instance # # ------------------------------------------------------------------------------ TMP1=`grep -E '^\+' /etc/oratab` if [ -z $TMP1 ]; then   echo "Please check /etc/oratab file, there is no entry for ASM instance."   exit 1 fi ORACLE_HOME=`echo ${TMP1//\:/ } | awk {'print $2'}` ORACLE_SID=`echo ${TMP1//\:/ } | awk {'print $1'}` cd $ORACLE_HOME/bin dispinfo () {  echo "Use -d key to display usage by disks"  echo "Use -o key to display asm operations in progress (disk rebalancing)"  echo "Use -r key to display min, max and avergage free megabytes by diskgroups"  echo "Use -f  to list files