Create backup_rman_all_db.sh
This commit is contained in:
13
backup_rman_all_db.sh
Normal file
13
backup_rman_all_db.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
#------------------------------------------------------------------------------
|
||||
# ORACLE DATABASE : BACKUP ALL B
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# sauvegarde de touts les bases ouvertes (en mode archivelog)
|
||||
|
||||
export SCRIPTS_DIR=/home/oracle/scripts
|
||||
|
||||
for b in $(ps -ef | grep pmon | grep -v grep | cut -d_ -f3 | sort)
|
||||
do
|
||||
${SCRIPTS_DIR}/backup_rman.sh -s $b -t DB
|
||||
done
|
||||
Reference in New Issue
Block a user