Oracle® Collaboration Suite High Availability Configuration Release 2 (9.0.4) for UNIX and Linux Part Number B15612-01 |
|
|
View PDF |
This appendix provides scripts for starting up and shutting down Oracle Collaboration Suite components. These scripts are specific to the Solaris operating system. You may need to modify these scripts before using them on other platforms.
This appendix contains the following sections:
Section B.1, "Starting Up and Shutting Down Oracle Collaboration Suite Components"
Section B.4, "Oracle9iAS Single Sign-On and Oracle Delegated Administration Services Components"
Section B.5, "Information Storage Oracle Real Application Clusters Instances"
Section B.6, "Oracle Calendar Server and Oracle Files Domain Controller"
The order of startup of Oracle Collaboration Suite components is as follows:
Start the Infrastructure.
Start the Oracle9iAS Single Sign-On server and Oracle Delegated Administration Services.
Start the Information Storage listener and database.
Start the Oracle Calendar Server and Oracle Files Domain Controller.
Start the Middle Tier nodes.
To shut down the Oracle Collaboration Suite system, shut down the components in the reverse order of startup.
For each component, set up the appropriate environment variables, such as:
ORACLE_HOME
ORACLE_SID
PATH
LD_LIBRARY_PATH
SHLIB_PATH
(on HP-UX only)In addition, for the Infrastructure, Oracle Calendar Server, and Oracle Files Domain Controller, the following environment variables must be set:
LD_PRELOAD
LHOSTNAME
When you change shells, for example from a regular user to root,
LD_PRELOAD
is not exported to the child. Therefore, whenever you run the su
command, set up the environment by sourcing the right file.
The examples in this appendix are based on the use of ksh.
This section contains scripts for starting up and shutting down the Infrastructure components.
Note: The following script contains a password and must be protected. |
Startup
#!/bin/ksh
# If this is the initial startup following a cold failover, then
# supply the parameter "failover" when running this script
# For example startup failover
typeset -i fover=0
export ORACLE_HOME=/ocsinfra/app/oracle/product/infra/904
hostname=`hostname`
[[ $1 == "failover" ]] && fover=1
lsnrctl start
sqlplus "/ as sysdba" << !
startup
!
oidmon start
oidctl server=oidldapd configset=0 instance=1 start
sleep 15
# These steps are dependent on the osso.conf file being saved to
# osso.conf.hostname following the initial reregistration
# These are only necessary following a failover
# If the osso.conf was not saved, then use the reregister script
# from the 9iAS Infrastructure Improved Availability document.
if (($fover ))
then
echo "Starting for the first time after failover..."
echo "Will reset iAS password and copy the right osso.conf file"
sleep 5
resetiASpasswd.sh "cn=orcladmin" welcome1 welcome1 $ORACLE_HOME
cp -p $ORACLE_HOME/Apache/Apache/conf/osso/osso.hostname \
$ORACLE_HOME/Apache/Apache/conf/osso/osso.conf
else
echo "No need to reset password and replace osso.conf file"
fi
$ORACLE_HOME/opmn/bin/opmnctl start
$ORACLE_HOME/opmn/bin/opmnctl startproc type=ohs
$ORACLE_HOME/opmn/bin/opmnctl startproc type=custom gid=dcm-daemon
$ORACLE_HOME/opmn/bin/opmnctl startproc type=oc4j gid=OC4J_DAS1
Shutdown
#!/bin/ksh # # Filename : stopall.sh # $ORACLE_HOME/opmn/bin/opmnctl stopall oidctl server=oidldapd configset=0 instance=1 stop sleep 15 # Increase this sleep if Oracle Internet Directory does not stop in 15 seconds oidmon stop sqlplus "/ as sysdba" <<! shutdown immediate ! lsnrctl stop echo "Check if anything is running..." ps -ef | grep -i ocsinfraSSO Server Middle Tiers
Startup
$ORACLE_HOME/opmn/bin/opmnctl start $ORACLE_HOME/opmn/bin/opmnctl startproc type=ohs
Shutdown
$ORACLE_HOME/opmn/bin/opmnctl stopproc type=ohs $ORACLE_HOME/opmn/bin/opmnctl stopall
This section contains scripts for starting up and shutting down the Oracle9iAS Single Sign-On and Oracle Delegated Administration Services components.
Startup
#!/bin/ksh $ORACLE_HOME/opmn/bin/opmnctl start $ORACLE_HOME/opmn/bin/opmnctl startproc type=ohs
Shutdown
#!/bin/ksh $ORACLE_HOME/opmn/bin/opmnctl stopall
This section contains scripts for starting up and shutting down the Information Storage Oracle Real Application Clusters instances.
Startup
#!/bin/ksh lsnrctl start sqlplus "/ as sysdba" <<! startup !
Shutdown
#!/bin/ksh sqlplus "/ as sysdba" <<! shutdown immediate ! lsnrctl stop
This section contains scripts for starting up and shutting down the Oracle Calendar Server and Oracle Files Domain Controller components.
The scripts given in this section must be run as root.
When you run the ifsctl stop
command in the shutdown script, it shuts down all Oracle Files processes on all nodes, including the Middle Tiers. If you want the Middle Tier Oracle Files processes to keep running, then you must manually shut down the Oracle Files Domain Controller.
Note: The following script contains a password and must be protected. |
Startup
#!/bin/ksh # # Filename : startall.sh # Run this script as root with environment set # # If this is the initial startup following a cold failover, then # supply the parameter "failover" when running this script # For example, startup failover typeset -i fover=0 [[ $1 == "failover" ]] && fover=1 su - calendar << ! . /home/calendar/calendar.env if (($fover )) then echo "Starting for the first time after failover..." echo "Will reset iAS password" resetiASpasswd.sh "cn=orcladmin" welcome1 $ORACLE_HOME fi # echo "Starting calendar server .." $ORACLE_HOME/ocal/bin/unistart ! LD_PRELOAD=libloghost.so.1;export LD_PRELOAD $ORACLE_HOME/ifs/files/bin/ifsctl start << EOPASSWD ifs EOPASSWD echo "Check if anything is running..." ps -ef | grep -i calendar
Shutdown
#!/bin/ksh # # Filename : stopall.sh # Run this script as root with environment set # su - calendar << ! echo "Stopping calendar server .." $ORACLE_HOME/ocal/bin/unistop -y ! LD_PRELOAD=libloghost.so.1;export LD_PRELOAD # This will shut down all Oracle Files processes on all nodes # To only stop the Oracle Files Domain Controller # kill the Oracle Files Domain Controller process manually $ORACLE_HOME/ifs/files/bin/ifsctl stop << EOPASSWD ifs EOPASSWD echo "Check if anything is running..." ps -ef | grep -i calendar
This section contains scripts for starting up and shutting down the Oracle Collaboration Suite Middle Tiers. These scripts must be run as root.
Startup
#!/bin/ksh nohup $ORACLE_HOME/bin/tnslsnr LISTENER_ES -group gid -user uid & $ORACLE_HOME/ifs/files/bin/ifsctl start <<EOPASSWD <ifs schema password> EOPASSWD # gid and uid are the group id and user id of the owner of the Middle Tier # software. In this example, ocsmid, and dba are the owner and group, respectively. su - ocsmid <<! . /home/ocsmid/ocsmid.env echo "Starting webcache .." webcachectl start echo "Starting opmn managed processes .." $ORACLE_HOME/opmn/bin/opmnctl startall echo "Starting em processes .." oesctl startup ocsmt1.oracle.com:um_system:smtp_in oesctl startup ocsmt1.oracle.com:um_system:smtp_out oesctl startup ocsmt1.oracle.com:um_system:imap oesctl startup ocsmt1.oracle.com:um_system:gc oesctl startup ocsmt1.oracle.com:um_system:list oesctl startup ocsmt1.oracle.com:um_system:pop oesctl startup ocsmt1.oracle.com:um_system:nntp_in oesctl startup ocsmt1.oracle.com:um_system:nntp_out oesctl startup ocsmt1.oracle.com:um_system:vs !
Shutdown
#!/bin/ksh # This script is run as root. Will su to the Middle tier owner and shutdown the # components su - ocsmid << ! . /home/ocsmid/ocsmid.env oesctl shutdown ocsmt1.oracle.com:um_system:smtp_in oesctl shutdown ocsmt1.oracle.com:um_system:smtp_out oesctl shutdown ocsmt1.oracle.com:um_system:imap oesctl shutdown ocsmt1.oracle.com:um_system:gc oesctl shutdown ocsmt1.oracle.com:um_system:list oesctl shutdown ocsmt1.oracle.com:um_system:pop oesctl shutdown ocsmt1.oracle.com:um_system:nntp_in oesctl shutdown ocsmt1.oracle.com:um_system:nntp_out oesctl shutdown ocsmt1.oracle.com:um_system:vs echo "Starting webcache .." webcachectl start echo "Starting opmn managed processes .." $ORACLE_HOME/opmn/bin/opmnctl stopall lsnrctl stop LISTENER_ES ! $ORACLE_HOME/ifs/files/bin/ifsctl stop <<EOPASSWD <ifs schema password> EOPASSWD