[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

start / stop scripts for Oracle Application Server 10g



 
    
start / stop scripts for Oracle Application Server 10g
------------------------------------------------------

=======================
Infrastructure Metadata
=======================

[oradb@instant oradb]$ cat bin/start-10gdb.bash 
#!/bin/bash

unset CLASSPATH

export ORACLE_SID=db
export ORACLE_HOME=/oracle/10g/db

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin

$ORACLE_HOME/bin/lsnrctl start

SQLDBA="$ORACLE_HOME/bin/sqlplus /nolog"

$SQLDBA <<EOF
connect / as sysdba
startup
EOF

## Starting Oracle Enterprise Manager 10g Database Control
$ORACLE_HOME/bin/emctl start dbconsole


[oradb@instant oradb]$ cat bin/stop-10gdb.bash 
#!/bin/bash

unset CLASSPATH

export ORACLE_SID=db
export ORACLE_HOME=/oracle/10g/db

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin

# run as root to shutdown Cluster Synchronization Services (CSS) daemon
# /etc/rc.d/init.d/init.cssd stop

# stop iSQL*Plus
# $ORACLE_HOME/bin/isqlplusctl stop

# During the installation of Oracle 10g, OUI offered two Database Management Options:
# 
# If you selected "Database Control for Database Management", then the Oracle Enterprise Manager Database Control (Database Control) can be shutdown with the following command which stops both the agent and the Oracle Containers for Java (OC4J) management service:
# 
$ORACLE_HOME/bin/emctl stop dbconsole
#
# If you selected "Grid Control for Database Management" which is used for full "Grid Control" installations, then the Oracle Management Agent (standalone agent) for the Oracle Enterprise Manager Grid Control (Grid Control) can be stopped with the following command:
# $ORACLE_HOME/bin/emctl stop agent
# $ORACLE_HOME/bin/emctl stop dbconsole

SQLDBA="$ORACLE_HOME/bin/sqlplus /nolog"

$SQLDBA <<EOF
connect / as sysdba
shutdown immediate
EOF

$ORACLE_HOME/bin/lsnrctl stop


[orainf@instant orainf]$ cat bin/start-10gas.bash 
#!/bin/bash

unset CLASSPATH

export ORACLE_SID=db
export ORACLE_HOME=/oracle/10g/inf

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin

$ORACLE_HOME/opmn/bin/opmnctl start

# tail -f $ORACLE_HOME/ldap/log/oidmon.log &
$ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=OID

$ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=HTTP_Server
$ORACLE_HOME/opmn/bin/opmnctl startproc process-type=OC4J_SECURITY

$ORACLE_HOME/bin/emctl startifdown iasconsole


[orainf@instant orainf]$ cat bin/stop-10gas.bash 
#!/bin/bash

unset CLASSPATH

export ORACLE_SID=db
export ORACLE_HOME=/oracle/10g/inf

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin

$ORACLE_HOME/opmn/bin/opmnctl stopproc process-type=OC4J_SECURITY
$ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=HTTP_Server

# tail -f $ORACLE_HOME/ldap/log/oidmon.log &
$ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=OID

$ORACLE_HOME/bin/emctl stop iasconsole

$ORACLE_HOME/opmn/bin/opmnctl shutdown


================
Application Tier
================

[oraapp@decaf oraapp]$ cat bin/start-10gas.bash 
#!/bin/bash

unset CLASSPATH

export ORACLE_SID=db
export ORACLE_HOME=/oracle/10g/app

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin

$ORACLE_HOME/opmn/bin/opmnctl start
## after you modify opmn.xml file
# $ORACLE_HOME/opmn/bin/opmnctl reload

$ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=HTTP_Server
$ORACLE_HOME/opmn/bin/opmnctl startproc process-type=OC4J_Portal
$ORACLE_HOME/opmn/bin/opmnctl startproc process-type=home
$ORACLE_HOME/opmn/bin/opmnctl startproc process-type=OC4J_BI_Forms
$ORACLE_HOME/opmn/bin/opmnctl startproc process-type=OC4J_Wireless

$ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=WebCache

$ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=Discoverer

$ORACLE_HOME/bin/emctl startifdown iasconsole


[oraapp@decaf oraapp]$ cat bin/stop-10gas.bash 
#!/bin/bash

unset CLASSPATH

export ORACLE_SID=db
export ORACLE_HOME=/oracle/10g/app

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin

## Stop Discoverer
$ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=Discoverer

## Stop WebCache
$ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=WebCache

$ORACLE_HOME/opmn/bin/opmnctl stopproc process-type=OC4J_BI_Forms
$ORACLE_HOME/opmn/bin/opmnctl stopproc process-type=OC4J_Wireless
$ORACLE_HOME/opmn/bin/opmnctl stopproc process-type=home
$ORACLE_HOME/opmn/bin/opmnctl stopproc process-type=OC4J_Portal

$ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=HTTP_Server

$ORACLE_HOME/bin/emctl stop iasconsole

$ORACLE_HOME/opmn/bin/opmnctl shutdown
# $ORACLE_HOME/opmn/bin/opmnctl stopall


Google