[oracle@PTUD ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
# Oracle Settings
export TMP=/tmp
export ORACLE_HOSTNAME=PTUD
export ORACLE_UNQNAME=ptud
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=ptud
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1
export ORACLE_OMS=$ORACLE_BASE/em/oms
export ORACLE_OMS_AGENT=$ORACLE_BASE/em_agent/core/12.1.0.4.0
PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
alias cdob='cd $ORACLE_BASE'
alias cdoh='cd $ORACLE_HOME'
alias tns='cd $ORACLE_HOME/network/admin'
alias envo='env | grep ORACLE'
alias cdo='cd $ORACLE_OMS'
alias cdoa='cd $ORACLE_OMS_AGENT'
umask 022
envo
Start Enterprise Manager Cloud Control:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
# Oracle Settings
export TMP=/tmp
export ORACLE_HOSTNAME=PTUD
export ORACLE_UNQNAME=ptud
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=ptud
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1
export ORACLE_OMS=$ORACLE_BASE/em/oms
export ORACLE_OMS_AGENT=$ORACLE_BASE/em_agent/core/12.1.0.4.0
PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
alias cdob='cd $ORACLE_BASE'
alias cdoh='cd $ORACLE_HOME'
alias tns='cd $ORACLE_HOME/network/admin'
alias envo='env | grep ORACLE'
alias cdo='cd $ORACLE_OMS'
alias cdoa='cd $ORACLE_OMS_AGENT'
umask 022
envo
Start Enterprise Manager Cloud Control:
$ORACLE_HOME/bin/dbstart $ORACLE_HOME $OMS_HOME/bin/emctl start oms $AGENT_HOME/bin/emctl start agent
Shutdown Enterprise Manager Cloud Control:
$OMS_HOME/bin/emctl stop oms -all $AGENT_HOME/bin/emctl stop agent $ORACLE_HOME/bin/dbshut $ORACLE_HOME
It is great!
ReplyDelete