correction mineurs
This commit is contained in:
@@ -102,14 +102,14 @@ install -d ${BKP_LOG_DIR}
|
|||||||
#
|
#
|
||||||
# si une autre sauvegarde est en cours, on quitte
|
# si une autre sauvegarde est en cours, on quitte
|
||||||
#
|
#
|
||||||
{RUNNING_RMAN}=$($ORACLE_HOME/bin/sqlplus -S / as sysdba <<EOF
|
RUNNING_RMAN=$($ORACLE_HOME/bin/sqlplus -S / as sysdba <<EOF
|
||||||
set heading off
|
set heading off
|
||||||
set feedback off
|
set feedback off
|
||||||
set echo off
|
set echo off
|
||||||
select count(*) from v\$rman_backup_job_details where STATUS IN ('RUNNING', 'EXECUTING');
|
select count(*) from v\$rman_backup_job_details where STATUS IN ('RUNNING', 'EXECUTING');
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
{RUNNING_RMAN}=$(echo ${RUNNING_RMAN} | sed 's/^\s*//g')
|
RUNNING_RMAN=$(echo ${RUNNING_RMAN} | sed 's/^\s*//g')
|
||||||
|
|
||||||
if [ -n "${RUNNING_RMAN}" ]; then
|
if [ -n "${RUNNING_RMAN}" ]; then
|
||||||
# RUNNING_RMAN n'est pas vide, donc backup RMAN en cours ... on quitte
|
# RUNNING_RMAN n'est pas vide, donc backup RMAN en cours ... on quitte
|
||||||
|
|||||||
Reference in New Issue
Block a user