Skip to content

Instantly share code, notes, and snippets.

@iacosta
Created January 18, 2013 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iacosta/e77f3957586af585b358 to your computer and use it in GitHub Desktop.
Save iacosta/e77f3957586af585b358 to your computer and use it in GitHub Desktop.
# Modified version of Oracle Doc ID 1060855.1
# created by Ivan Acosta
MW_HOME=/u01/app/oracle/Middleware
DOMAIN_HOME=$MW_HOME/user_projects/domains/SSBDomain
INSTANCE_HOME=$MW_HOME/asinst_1
export MW_HOME DOMAIN_HOME INSTANCE_HOME
ORAENV_ASK=NO; export ORAENV_ASK
ORACLE_SID=ssb; export ORACLE_SID
. /usr/local/bin/oraenv
unset ORAENV_ASK
#
# The following files need to exist in order to startup automatically
# $DOMAIN_HOME/servers/AdminServer/security/boot.properties
# $DOMAIN_HOME/servers/WLS_FORMS/security/boot.properties
# $DOMAIN_HOME/servers/WLS_REPORTS/security/boot.properties
# Each file must contain:
# username=weblogic
# password= <= This password is automatically obfuscated the next time the Weblogic Server is started up
#
echo "Starting up the AdminServer ..."
# Note although we redirect stdout and stderr to /dev/null they are redirected to the AdminServer.log
nohup $DOMAIN_HOME/startWebLogic.sh >/dev/null 2>/dev/null &
#
# Wait for some seconds to make sure the AdminServer is listening before we attempt
# to start up WLS_FORMS,WLS_REPORTS, etc. which need to connect to it in order to
# EM to be able to "see" these instances
#
echo "Waiting 180 seconds for AdminServer to begin"
COUNTER=0
while [ $COUNTER -lt 180 ]; do
echo -n .
sleep 1
let COUNTER=COUNTER+1
done
echo " "
#echo "Starting up WLS_FORMS ..."
#nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_FORMS "t3://localhost:7001/" >/dev/null 2>/dev/null &
#echo "Starting up WLS_REPORTS ..."
#nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_REPORTS "t3://localhost:7001/" >/dev/null 2>/dev/null &
#echo "Waiting 60 seconds for forms and reports to begin"
# COUNTER=0
# while [ $COUNTER -lt 60 ]; do
# echo -n .
# sleep 1
# let COUNTER=COUNTER+1
# done
echo " "
echo "Starting up the OPMN managed components ..."
#$INSTANCE_HOME/bin/opmnctl startall
# $INSTANCE_HOME/bin/opmnctl startproc ias-component=ReportsServer_ssb8test_asinst_1
echo "starting OPMN"
$INSTANCE_HOME/bin/opmnctl start
echo "wait 30 seconds before starting individual components"
COUNTER=0
while [ $COUNTER -lt 30 ]; do
echo -n .
sleep 1
let COUNTER=COUNTER+1
done
echo "starting emagent_asinst_1"
$INSTANCE_HOME/bin/opmnctl startproc ias-component=emagent_asinst_1
sleep 5
echo "starting webcache1"
$INSTANCE_HOME/bin/opmnctl startproc ias-component=webcache1
sleep 5
echo "starting webcache1"
#$INSTANCE_HOME/bin/opmnctl startproc ias-component=webcache1
#sleep 5
echo "starting ohs1"
$INSTANCE_HOME/bin/opmnctl startproc ias-component=ohs1
sleep 5
$INSTANCE_HOME/bin/opmnctl status
echo "Allow about 10 minutes more for all services on the middle tier to start"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment