#!/bin/sh # # $Header: restartodiserver.sh 13-sep-01.16:09:38 xshi Exp $ # # restartodiserver.sh # # Copyright (c) Oracle Corporation 2001. All Rights Reserved. # # NAME # restartodiserver.sh - This script restarts odisrv server # # DESCRIPTION # usage: restartodiserver.sh # # # connectString: Connect String of the database # # instanceNo : Instance number of the server to start. This should be a # number whose value MUST be > 0 and <= 1000. # # Note: Please make sure that environment variable $ORACLE_HOME is set, before # running this script. # # This script has been written for the default configurations. User needs # to edit it as per his requirements. # # NOTES # # # MODIFIED (MM/DD/YY) # xshi 09/13/01 - odi server # xshi 09/13/01 - Creation # if [ $# -eq 3 ] then sleeptime=0 else sleeptime=$3 fi LOGFILE=/tmp/odi$$.log $ORACLE_HOME/bin/oidctl connect=$1 server=ODISRV instance=$2 restart >> $LOGFILE 2>&1 sleep $sleeptime exit 0