#!/bin/ksh
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
# 61haes_r714 src/43haes/usr/sbin/cluster/sa/oracle/scripts/startias904infra.sh 1.4 
#  
# 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 
# "@(#)47   1.4   src/43haes/usr/sbin/cluster/sa/oracle/scripts/startias904infra.sh, hacmp.assist.oracle, 61haes_r714 6/16/05 22:41:14"

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

#emctl requires that the display variable is not null
if [[ -z ${DISPLAY} ]]; then
        export DISPLAY="0:0"
fi

echo "Starting Oracle Server..."
sqlplus "/ as sysdba"  << !
startup
quit
!
echo

echo "Starting Oracle Server Listener..."
echo lsnrctl start
lsnrctl start
echo 

echo "Starting EM..."
echo emctl start em
emctl start em
echo

echo "Starting iAS Infrastructure Processes..."
echo opmnctl startall
opmnctl startall
echo
