How to create startup & shutdown scripts form Oracle forms & reports ?
Startup Script:
cat start_services.sh
export ORACLE_BASE=/u01/oraclefrs
export MW_HOME=$ORACLE_BASE/middleware
export WLS_HOME=$MW_HOME/wlserver
export WL_HOME=$WLS_HOME
export DOMAIN_HOME=$ORACLE_BASE/middleware/user_projects/domains/basenew_domain
export OHS_INST=$DOMAIN_HOME/config/fmwconfig/components/OHS/instances/ohs1
# Start NodeManager
nohup $DOMAIN_HOME/bin/startNodeManager.sh > /dev/null 2>&1 &
sleep 15
# Start WebLogic Domain
nohup $DOMAIN_HOME/bin/startWebLogic.sh > /dev/null 2>&1 &
sleep 60
# Start the managed Servers
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_FORMS > /dev/null 2>&1 &
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_REPORTS > /dev/null 2>&1 &
sleep 15
# Start the web tier.
$DOMAIN_HOME/bin/startComponent.sh ohs1
echo " All services are up and Running.... "
Shutdown Script:
cat stop_services.sh
# Adjust paths and domain name to suit your installation.
export ORACLE_BASE=/u01/oraclefrs
export MW_HOME=$ORACLE_BASE/middleware
export WLS_HOME=$MW_HOME/wlserver
export WL_HOME=$WLS_HOME
export DOMAIN_HOME=$ORACLE_BASE/middleware/user_projects/domains/basenew_domain
export OHS_INST=$DOMAIN_HOME/config/fmwconfig/components/OHS/instances/ohs1
# Stop the web tier.
$DOMAIN_HOME/bin/stopComponent.sh ohs1
# Stop the managed Servers
$DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_FORMS
$DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_REPORTS
# Stop WebLogic Domain
$DOMAIN_HOME/bin/stopWebLogic.sh
# Stop NodeManager
$DOMAIN_HOME/bin/stopNodeManager.sh
export ORACLE_BASE=/u01/oraclefrs
export MW_HOME=$ORACLE_BASE/middleware
export WLS_HOME=$MW_HOME/wlserver
export WL_HOME=$WLS_HOME
export DOMAIN_HOME=$ORACLE_BASE/middleware/user_projects/domains/basenew_domain
export OHS_INST=$DOMAIN_HOME/config/fmwconfig/components/OHS/instances/ohs1
# Stop the web tier.
$DOMAIN_HOME/bin/stopComponent.sh ohs1
# Stop the managed Servers
$DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_FORMS
$DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_REPORTS
# Stop WebLogic Domain
$DOMAIN_HOME/bin/stopWebLogic.sh
# Stop NodeManager
$DOMAIN_HOME/bin/stopNodeManager.sh
No comments:
Post a Comment