A SERVICE OF

logo

BMC Software, Inc., Confidential and Proprietary Information
4-18 PATROL
®
Database Administration Installation Guide
Creating a Startup File (All Platforms Except for AIX)
Step 1 Create a startup file (similar to the following example in which the
startup file is named
patroldb). This startup file example is valid for all
platforms with the exception of AIX.
#!/bin/ksh
#This is the job directory
export BMC_LOCAL=/usr/bmc/jobs
# This is the default directory
export BMC_HOME=/usr/bmc/PDBAdmin/
os
/
v.r
# This is the port value
export BMC_PORT=1313
# This is the language directory
export ML_ROOT=/usr/bmc/PDBAdmin/
os
/
v.r
# This specifies the language used by the server
export ML_LANG=en_US.iso88591
case $1 in
start)
# This is the default directory for oraenv
PATH=$PATH:/usr/local/bin
# Set the Oracle environment
. oraenv <<!
DATABASE_NAME
!
# Start the Database Administration server
$BMC_HOME/patroldb start
;;
stop)
# Stop the Database Administration server
$BMC_HOME/patroldb stop
;;
esac
Step 2 Add a link to the startup directory.