Skip to content

Instantly share code, notes, and snippets.

@iacosta
Last active December 11, 2015 07:28
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/24c2ad44cb8370ca4496 to your computer and use it in GitHub Desktop.
Save iacosta/24c2ad44cb8370ca4496 to your computer and use it in GitHub Desktop.
Script StartUp Fusion Middleware Services (Servidor INB)
# Script StartUp Fusion Middleware Services
# 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/INBDomain
WEB_LOGIC=/u01/app/oracle/Middleware/wlserver_10.3
INSTANCE_HOME=$MW_HOME/asinst_1
export MW_HOME DOMAIN_HOME INSTANCE_HOME WEB_LOGIC
ORAENV_ASK=NO; export ORAENV_ASK
ORACLE_SID=forms; 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
echo "Waiting 60 seconds for OPMN managed components to begin"
COUNTER=0
while [ $COUNTER -lt 60 ]; do
echo -n .
sleep 1
let COUNTER=COUNTER+1
done
echo " "
$INSTANCE_HOME/bin/opmnctl status
echo "Starting up the NodeManager......"
$WEB_LOGIC/server/bin/startNodeManager.sh my.server.edu 5556 &
echo " "
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