October 18, 2010

.bash_profile for Oracle Fusion Middleware 11g

Here is the .bash_profile that we are using for our Oracle Fusion Middleware 11g (specifically Oracle SOA Suite 11g) dev server.

Modify the values in red according to your environment.


# ----------------------------------------
# Set these based on your environment
# ----------------------------------------
export DOMAIN=base_domain
export MW_HOME=/u01/app/middleware/home_11g

# ----------------------------------------
# No need to change these
# ----------------------------------------
export JAVA_HOME=$MW_HOME/jdk160_18
export ORACLE_HOME=$MW_HOME/Oracle_SOA1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export CLASSPATH=$ORACLE_HOME/lib:$MW_HOME/jdk160_18/lib
export TEMP=/tmp
export TMP=/tmp
export OS_PATH=/usr/local/bin:/bin:/usr/bin:/usr/sbin:.
export PATH=$OS_PATH
export MW_PATH=$MW_HOME/user_projects/domains/$DOMAIN:$MW_HOME/user_projects/domains/$DOMAIN/bin:$OFM_HOME/modules/org.apache.ant_1.7.1/bin:$JAVA_HOME/bin:$OS_PATH
export ORA_PATH=$ORACLE_HOME/bin:$JAVA_HOME/bin:$OS_PATH

# ----------------------------------------
# Add your custom aliases here
# ----------------------------------------
alias cdw='export PATH=$MW_PATH'
alias cds='export PATH=$ORA_PATH'

echo ""
echo "----------------------------------------"
echo "ALIASES"
echo "----------------------------------------"
echo "cdw - Set WebLogic path"
echo "cds - Set SOA Suite path"
echo ""
echo "----------------------------------------"
echo "STARTUP (WEBLOGIC ADMIN SERVER)"
echo "----------------------------------------"
echo "$MW_HOME/user_projects/domains/$DOMAIN/startWebLogic.sh"
echo ""
echo "----------------------------------------"
echo "STARTUP (SOA MANAGED SERVER)"
echo "----------------------------------------"
echo "$MW_HOME/user_projects/domains/$DOMAIN/bin/startManagedWebLogic.sh soa_server1"
echo ""

2 comments: