Update monitor_FRA_size.sh
This commit is contained in:
@@ -14,15 +14,13 @@ export ORACLE_HOME ORACLE_SID PATH
|
||||
sqlplus -s / as sysdba <<!
|
||||
col name for a40
|
||||
set pages 0 lines 150
|
||||
set heading off echo off feedback off
|
||||
set heading off echo off feedback off term off
|
||||
spool ${TMPDIR}/chk_${ORACLE_SID}_fra.log
|
||||
select name, space_limit/1024/1024 "Limit(MB)", trunc(SPACE_USED/1024/1024,0) "Used(MB)", SPACE_RECLAIMABLE/1024/1024 "Reclaimable(MB)" from v\$recovery_file_dest;
|
||||
spool off
|
||||
exit
|
||||
!
|
||||
|
||||
exit
|
||||
|
||||
FRA_SIZE=$(tail -1 ${TMPDIR}/chk_${ORACLE_SID}_fra.log | awk '{print $2}')
|
||||
FRA_USED=$(tail -1 ${TMPDIR}/chk_${ORACLE_SID}_fra.log | awk '{print $3}')
|
||||
THRESHOLD=$(echo ${FRA_SIZE} \* 0.1 | bc | awk -F "." '{print $1}')
|
||||
|
||||
Reference in New Issue
Block a user