From 0f5c75077cd7e7cde97c42f23646400fc9aa0836 Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Fri, 22 Dec 2023 19:37:07 +0100 Subject: [PATCH] Update backup_archive_fnct_FRA.sh --- backup_archive_fnct_FRA.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/backup_archive_fnct_FRA.sh b/backup_archive_fnct_FRA.sh index fbb1399..705228f 100644 --- a/backup_archive_fnct_FRA.sh +++ b/backup_archive_fnct_FRA.sh @@ -31,5 +31,13 @@ fra_usage=$(sqlplus -s '/ as sysdba' << EOF EOF ) -echo ${fra_usage} | egrep -o "[0-9]*" +pct_fra_used=$(echo ${fra_usage} | egrep -o "[0-9]*") + +if [ ${pct_fra_used} gt 85 ] +then + echo ${pct_fra_used} : backup des archivelog necessaire +else + echo ${pct_fra_used} : backup des archivelog NON necessaire +fi +