Update monitor_FRA_size.sh

This commit is contained in:
Yacine31
2022-03-18 20:03:39 +01:00
parent 876e0f68c0
commit 61193713dd

View File

@@ -15,11 +15,12 @@ sqlplus -s / as sysdba <<!
col name for a40 col name for a40
set pages 100 lines 150 set pages 100 lines 150
set heading off echo off feedback off set heading off echo off feedback off
spool ${TMPDIR}/chk_${ORACLE_SID}_fra.log -- 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; 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 -- spool off
exit exit
! !
> ${TMPDIR}/chk_${ORACLE_SID}_fra.log
exit exit