#!/bin/ksh
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
# 61haes_r714 src/43haes/usr/sbin/cluster/sa/oracle/scripts/stopias904infra.sh 1.3 
#  
# Licensed Materials - Property of IBM 
#  
# COPYRIGHT International Business Machines Corp. 2005 
# All Rights Reserved 
#  
# US Government Users Restricted Rights - Use, duplication or 
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 
#  
# IBM_PROLOG_END_TAG 
# "@(#)48   1.3   src/43haes/usr/sbin/cluster/sa/oracle/scripts/stopias904infra.sh, hacmp.assist.oracle, 61haes_r714 4/15/05 14:09:29"

export ORACLE_HOME=/ora_cmd00fs
export ORACLE_SID=iasdb
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$ORACLE_HOME/dcm/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

echo "Stoping iAS Infrastructure Processes..."
echo opmnctl stopall
opmnctl stopall
echo

echo "Stoping EM..."
echo emctl stop em
emctl stop em
echo

echo "Stoping Oracle Server Listener..."
echo lsnrctl stop
lsnrctl stop
echo 

echo "Stoping Oracle Server..."
sqlplus "/ as sysdba"  << !
shutdown abort
quit
!
echo
