# Purpose: Sample .profile for the applmgr user in an Oracle E-Business Suite # environment. # Author: John Piwowar # # This .profile: # 1) Is meant to be sourced at the applmgr user level, not globally. Putting # this stuff in /etc/profile.local is silly, and not recommended. # 2) Assumes that the default profile for your system, is reasonably sane # (i.e. that typical commands can already be found in the default path) # 3) Assumes the use of ksh or bash. ### Stuff that has little to do with Oracle Apps. Value to you may vary. export EDITOR=/usr/bin/vi ###Oracle Apps setup # Initial setup to enable access to Oracle Apps environment. Replace with # correct path to apps environment file on your system. . /u01/app/oracle/product/ebs/apps/apps_st/appl/APPSJPR12_jpr12.env # Preferred number of AD workers for this node export WORKERS=4 export WORKER_RANGE=1-4 #For distributed AD. See adctrl help=y for examples # A few convenient directory shortcuts. Make changes/additions to suit. export CM_LOG=$APPLCSF/$APPLLOG export CM_OUT=$APPLCSF/$APPLOUT export PATCH_BASE=/opt/oracle/stage/patch export EBS_PATCH=$PATCH_BASE/ebs export PATCH_LOG=$APPL_TOP/admin/$TWO_TASK/log export WORKER_LOG=$PATCH_LOG ########## # No need to customize much below this line unless you really want to ########## # Derive the version of Apps running on this server. APPS_RELEASE=`basename $AD_TOP | cut -f1 -d\.` # Add various admin scripts to the PATH. if [ $APPS_RELEASE -eq 12 ] then export PATH=$PATH:$ADMIN_SCRIPTS_HOME elif [ $APPS_RELEASE -eq 11 ] then export PATH=$PATH:$COMMON_TOP/admin/scripts/$CONTEXT_NAME fi # Set up some things for running non-interactive AD utilities export DEFAULTSFILE=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt # adadmin shortcuts alias adadmin_base='adadmin defaultsfile=$DEFAULTSFILE' alias enable_maint='adadmin_base logfile=maint_mode.log menu_option=ENABLE_MAINT_MODE' alias disable_maint='adadmin_base logfile=maint_mode.log menu_option=DISABLE_MAINT_MODE' alias comp_apps='adadmin_base logfile=comp_apps.log menu_option=CMP_INVALID' # adpatch shortcuts alias patch_this='adpatch patchtop=`pwd` driver=`ls u*.drv` logfile=`ls u*.drv` defaultsfile=$DEFAULTSFILE workers=$WORKERS' alias hotpatch_this='patch_this options=hotpatch' # adctrl shortcuts alias adctrl_base='adctrl defaultsfile=$DEFAULTSFILE' alias show_workers='adctrl_base menu_option=SHOW_STATUS' alias start_addist='adctrl_base distributed=y worker_range=$WORKER_RANGE' # shortcuts for other AD utilities alias bounce_apache='adapcctl.sh stop; sleep 10; adapcctl.sh start' if [ $APPS_RELEASE -eq 12 ] then alias bounce_opmn='adopmnctl.sh stopall; sleep 10; adopmnctl.sh startall' fi