#! /bin/sh # fermeture et demontage de la base $1 sur la machine $2 # ORACLE_SID=$1 HOST=$2 then cat <<FIN >/tmp/$$proc #! /bin/sh # INITIALISATION BASE PATH=\$PATH:/users/local/bin ORACLE_SID=$ORACLE_SID ORAENV_ASK=NO . /users/local/bin/oraenv ORAENV_ASK="" export ORAENV_ASK echo \$ORACLE_SID svrmgrl <<EOOF connect internal; shutdown; exit; EOOF FIN chmod 777 /tmp/$$proc remsh $HOST.cnrm.meteo.fr -l oracle -n "/tmp/$$proc ; rm /tmp/$$proc"