#!/bin/bash hostname echo ===== start Oracle ===== echo ----- start database su -l ora102 -l /exploit/scripts/start_oracle.sh echo ----- ps oracle ------ ps -ef | grep lsnr | grep -v grep ps -ef | grep smon | grep -v grep
echo ===== start Mysql====== echo ----- ps mysqld ------ ps -ef | grep mysqld | grep -v grep echo ----- uptime uptime echo ----- start database /exploit/scripts/my_start_database.sh
echo ----- check process mysql ps -ef | grep mysqld | grep -v grep