#!/bin/bash hostname uptime echo ===== arret Oracle ===== echo ----- ps oracle ------ ps -ef | grep listener | grep -v grep ps -ef | grep smon | grep -v grep echo ----- uptime uptime echo ----- stop database su -l ora102 -l /exploit/scripts/stop_oracle.sh
echo ===== arret Mysql====== echo ----- ps mysqld ------ ps -ef | grep mysqld | grep -v grep echo ----- uptime uptime echo ----- stop database /exploit/scripts/my_stop_database.sh echo ----- tempo 600 sleep 600
echo ----- check process oracle ps -ef | grep listener | grep -v grep ps -ef | grep smon | grep -v grep
echo ----- check process mysql ps -ef | grep mysqld | grep -v grep
echo ----- halt halt