From 601a7b1dbd142b261a2b00de789b52b88506bb54 Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Fri, 26 Nov 2021 06:47:19 +0100 Subject: [PATCH] Update FRA_usage.sh --- FRA_usage.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FRA_usage.sh b/FRA_usage.sh index ea348bc..a6e9267 100644 --- a/FRA_usage.sh +++ b/FRA_usage.sh @@ -50,13 +50,15 @@ then echo "\$ORACLE_SID not set and no INSTANCE Supplied on the command line." exit 1 fi + +test_instance || { echo "Instance ${ORACLE_SID} not started !!"; exit 1 ; } + # Set up the environment export ORACLE_SID export ORAENV_ASK=NO . oraenv -s >/dev/null -test_instance || { echo "Instance ${ORACLE_SID} not started !!"; exit 1 ; } SIZE=`${ORACLE_HOME}/bin/sqlplus -s / as sysdba <