start / stop scripts for Oracle Application Server 10g
++++++++++++++++++++++++++++++++++++++++++++++
There are two oracle homes in an AS 10g(basic setup).
Infrastructure (short: INFRA) and Middle Tier (short: MidTier)

Start Infrastructure Metadata services first

Set the following env variables on infra user profile:

export ORACLE_SID=
export ORACLE_HOME=

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin
export TNS_ADMIN=$ORACLE_HOME/network/admin
export PATH=$PATH:$ORACLE_HOME/dcm/bin


Start script for Infra Services
# Starting Listener
$ORACLE_HOME/bin/lsnrctl start

# Starting up database
sqlplus / as sysdba
startup

### Starting Oracle EM for Db Control (optional)
$ORACLE_HOME/bin/emctl start dbconsole

## Starting Oracle EM for IAS Control (optional)
$ORACLE_HOME/bin/emctl startifdown iasconsole

$opmnctl start

# You may start all the services on a single command
# opmnctl startall (or)
#
You can start required services one by one
$opmnctl startproc ias-component=OID
$opmnctl startproc ias-component=HTTP_Server
$opmnctl startproc process-type=OC4J_SECURITY


Stop script for Infra Services

### Stop OPMN services first ####
# you may use "opmnctl stopall" to stop all the services
# in a single command.

$opmnctl stopproc process-type=OC4J_SECURITY
$opmnctl stopproc ias-component=HTTP_Server
$opmnctl stopproc ias-component=OID
$opmnctl shutdown

#Stopping dbconsole & iasconsole services
$ORACLE_HOME/bin/emctl stop iasconsole
$ORACLE_HOME/bin/emctl stop dbconsole

#Stopping db
sqlplus / as sysdba
shutdown immediate

#Stopping Listener
$ORACLE_HOME/bin/lsnrctl stop


Start Middle Tier services Next

Set env variables on middle tier user profile

export ORACLE_SID=
export ORACLE_HOME=

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export FORMS_PATH=$ORACLE_HOME/forms
export ORA_PATH=$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin
export ORA_PATH=$ORA_PATH:$ORACLE_HOME/dcm/bin
export ORA_PATH=$ORA_PATH:$ORACLE_HOME/perl/bin
export TNS_ADMIN=$ORACLE_HOME/network/admin
export PERL5LIB=$ORACLE_HOME/perl/lib/5.6.1
export PATH=$ORA_PATH:$PATH


Start script for Middle Tier Services

$emctl startifdown iasconsole

# You may start all the services on a single command
# opmnctl startall (or)
#
You can start required services one by one

$opmnctl start

$opmnctl startproc ias-component=HTTP_Server
$opmnctl startproc process-type=OC4J_Portal
$opmnctl startproc process-type=home
$opmnctl startproc process-type=OC4J_BI_Forms
$opmnctl startproc process-type=OC4J_Wireless
$opmnctl startproc ias-component=WebCache
$opmnctl startproc ias-component=Discoverer

Stop script for Middle Tier Services
# You may stop all the services on a single command
# opmnctl stopall (or)
#
You can stop required services one by one

## Stop Discoverer
$opmnctl stopproc ias-component=Discoverer
$opmnctl stopproc ias-component=WebCache
$opmnctl stopproc process-type=OC4J_BI_Forms
$opmnctl stopproc process-type=OC4J_Wireless
$opmnctl stopproc process-type=home
$opmnctl stopproc process-type=OC4J_Portal
$opmnctl stopproc ias-component=HTTP_Server

$emctl stop iasconsole

$opmnctl shutdown


User comments are welcome

No comments:

Post a Comment

Kindly make your valuable and progressive comments here.
Junks will be deleted without notice :-)

 SPACE MANAGEMENT :: 1. Table space usuage: ============== SELECT tablespaces.tablespace_name,          allocated.total_alloc allocated_mb, ...