rasti.hil@hilandco.com +41 79 367-9677

Friday, 29 April 2011

Start Stop Script Oracle Fusion Middleware

Start
#!/bin/bash
# Applicationserver Infrastructure start
#vi $DOMAIN_HOME/servers/AdminServer/security/boot.properties
#username=weblogic
#password=
#vi $DOMAIN_HOME/servers/wls_ods1/security/boot.properties
#username=weblogic
#password=



MW_HOME=/oracle/product/FM;export MW_HOME
DOMAIN_HOME=$MW_HOME/user_projects/domains/IDMDomain;export DOMAIN_HOME
INSTANCE_HOME=$MW_HOME/oid11inst;export INSTANCE_HOME
WL_HOME=$MW_HOME/wlserver_10.3;export WL_HOME
ORACLE_HOME=$MW_HOME/oid11;export ORACLE_HOME
ORACLE_INSTANCE=$INSTANCE_HOME;export ORACLE_INSTANCE
ADMIN_SERVER=t3://localhost:7001;export ADMIN_SERVER

$INSTANCE_HOME/bin/opmnctl startall

nohup $WL_HOME/server/bin/startNodeManager.sh >/dev/null 2>/dev/null &
nohup $DOMAIN_HOME/bin/startWebLogic.sh >/dev/null 2>/dev/null &
sleep 30
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh wls_ods1 $ADMIN_SERVER >/dev/null 2>/dev/null &
#sleep 120

# Applicationserver SSO start
#


ORACLE_SID=sso;export ORACLE_SID
ORAENV_ASK=NO;export ORAENV_ASK
. oraenv
$ORACLE_HOME/opmn/bin/opmnctl startall
emctl start iasconsole



# Applicationserver Middletier start
#
#vi $DOMAIN_HOME/servers/AdminServer/security/boot.properties
#username=weblogic
#password=
#vi $DOMAIN_HOME/servers/WLS_PORTAL/security/boot.properties
#username=weblogic
#password=
#vi $DOMAIN_HOME/servers/WLS_FORMS/security/boot.properties
#username=weblogic
#password=
#vi $DOMAIN_HOME/servers/WLS_REPORTS/security/boot.properties
#username=weblogic
#password=
#vi $DOMAIN_HOME/servers/WLS_DISCO/security/boot.properties
#username=weblogic
#password=

MW_HOME=/oracle/product/FM;export MW_HOME
DOMAIN_HOME=$MW_HOME/user_projects/domains/PFRDDomain;export DOMAIN_HOME
INSTANCE_HOME=$MW_HOME/pfrdinst_1;export INSTANCE_HOME
WL_HOME=$MW_HOME/wlserver_10.3;export WL_HOME
ORACLE_HOME=$MW_HOME/pfrd_1;export ORACLE_HOME
ORACLE_INSTANCE=$INSTANCE_HOME;export ORACLE_INSTANCE
ADMIN_SERVER=t3://localhost:7002;export ADMIN_SERVER
$INSTANCE_HOME/bin/opmnctl startall


nohup $DOMAIN_HOME/bin/startWebLogic.sh >/dev/null 2>/dev/null &

sleep 30
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_PORTAL $ADMIN_SERVER >/dev/null 2>/dev/null &
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_FORMS $ADMIN_SERVER >/dev/null 2>/dev/null &
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_REPORTS $ADMIN_SERVER >/dev/null 2>/dev/null &
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh WLS_DISCO $ADMIN_SERVER >/dev/null 2>/dev/null &
#sleep 120






#Start Agent
#
ORACLE_SID=A11;export ORACLE_SID
ORAENV_ASK=NO;export ORAENV_ASK
. oraenv
emctl start agent
unset ORAENV_ASK

stop
#!/bin/bash

# Applicationserver Middletier stop
#

MW_HOME=/oracle/product/FM;export MW_HOME
DOMAIN_HOME=$MW_HOME/user_projects/domains/PFRDDomain;export DOMAIN_HOME
INSTANCE_HOME=$MW_HOME/pfrdinst_1;export INSTANCE_HOME
WL_HOME=$MW_HOME/wlserver_10.3;export WL_HOME
ORACLE_HOME=$MW_HOME/pfrd_1;export ORACLE_HOME
ORACLE_INSTANCE=$INSTANCE_HOME;export ORACLE_INSTANCE
ADMIN_SERVER=t3://localhost:7002;export ADMIN_SERVER
$INSTANCE_HOME/bin/opmnctl stopall

$DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_PORTAL $ADMIN_SERVER
#$DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_PORTAL $ADMIN_SERVER
$DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_FORMS $ADMIN_SERVER
$DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_REPORTS $ADMIN_SERVER
$DOMAIN_HOME/bin/stopManagedWebLogic.sh WLS_DISCO $ADMIN_SERVER

$DOMAIN_HOME/bin/stopWebLogic.sh
#sleep 120

ORACLE_SID=sso;export ORACLE_SID
ORAENV_ASK=NO;export ORAENV_ASK
. oraenv
$ORACLE_HOME/opmn/bin/opmnctl stopall
emctl stop iasconsole

# Applicationserver Infrastructure stop
#
MW_HOME=/oracle/product/FM;export MW_HOME
DOMAIN_HOME=$MW_HOME/user_projects/domains/IDMDomain;export DOMAIN_HOME
INSTANCE_HOME=$MW_HOME/oid11inst;export INSTANCE_HOME
WL_HOME=$MW_HOME/wlserver_10.3;export WL_HOME
ORACLE_HOME=$MW_HOME/oid11;export ORACLE_HOME
ORACLE_INSTANCE=$INSTANCE_HOME;export ORACLE_INSTANCE
ADMIN_SERVER=t3://localhost:7001;export ADMIN_SERVER

$INSTANCE_HOME/bin/opmnctl stopall

$DOMAIN_HOME/bin/stopManagedWebLogic.sh wls_ods1 $ADMIN_SERVER
$DOMAIN_HOME/bin/stopWebLogic.sh
#sleep 120

killall startNodeManager.sh


#Stop Agent
#
ORACLE_SID=A11;export ORACLE_SID
ORAENV_ASK=NO;export ORAENV_ASK
. oraenv
emctl stop agent
unset ORAENV_ASK