#!/bin/sh#start mutli oralce instance#create by zwy#date 2017-10-25port_cnt=`ss -lnp|grep 1521|wc -l`if (( $port_cnt < 1 ));then{ lsnrctl start & port_cnt=`ss -lnp|grep 1521|wc -l` while (( $port_cnt < 1 )) do { echo 'ora lsnrctl is not running' lsnrctl start & port_cnt=`ss -lnp|grep 1521|wc -l` } done echo 'ora lsnrctl is running'}else{ echo 'ora lsnrctl is running'}ficd $ORACLE_HOMEfor sid in yzdk WANYZDKdoexport ORACLE_SID=$sidecho $ORACLE_SIDsqlplus /nolog <<EOFconn /as sysdbastartupquitEOFsleep 10echo $sid is startingdone
原文链接:https://www.f2er.com/oracle/207032.html