#! /bin/ksh
#
#	Copyright 06/23/00 Sun Microsystems, Inc.  All Rights Reserved.
#
#ident "@(#)oracle_shutdown.sho   1.2     00/06/23 SMI"
#
# oracle_shutdown - shut down Oracle instance
# 

if [ $# -lt 1 ] ; then
  	logerr "${prog}.4100" \
		"usage: $argv0 mode"
  	exit 2
fi

/usr/bin/priocntl -s -c TS -i pid $$

LD_LIBRARY_PATH=${ORACLE_HOME}/lib;
export LD_LIBRARY_PATH;
$SQLDBA << EOF
connect internal
shutdown $1
EOF
