Update export_datapump_alldb.sh

exclusion de +ASM et +APX
This commit is contained in:
Yacine31
2024-07-23 15:34:51 +02:00
parent d494d0725c
commit 9b2f0ceaa7

View File

@@ -1,14 +1,14 @@
#!/bin/sh #!/bin/sh
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# ORACLE DATABASE : EXPDP ALL DB RMAN # ORACLE DATABASE : EXPDP ALL DB
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Historique : # Historique :
# 21/04/2023 : YAO - Creation : export datapump de toutes les bases ouvertes # 21/04/2023 : YOU - Creation : export datapump de toutes les bases ouvertes
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# toutes les bases ouvertes sont sauvegardées par le script RMAN # toutes les bases ouvertes sont sauvegardées par le expdp
for i in $(ps -ef | grep pmon | grep -v grep | cut -d_ -f3) for i in $(ps -ef | grep pmon | grep -v grep | cut -d_ -f3 | egrep -v '+ASM|+APX)
do do
sh /home/oracle/scripts/export_datapump.sh $i sh /home/oracle/scripts/export_datapump.sh $i
done done