Linux Operating System (MOSC)

MOSC Banner

alias referencing command 'echo $ORACLE_SID|tr[A-Z][a-z]' throws an error

edited Nov 9, 2022 10:57PM in Linux Operating System (MOSC) 1 commentAnswered ✓

. bash_profile contents

[oracle@<REMOVED> ~]$ cat .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

  . ~/.bashrc

fi

# User specific environment and startup programs

export EDITOR=vi

export ORACLE_SID

export ORACLE_BASE=/u01/app/oracle

#export ORACLE_HOME=$ORACLE_BASE/product/12.2.0/dbhome_1

export ORACLE_HOME=$ORACLE_BASE/product/19.3.0/dbhome_1

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib

export PATH=/u01/app/oracle/product/19.3.0/dbhome_1/bin:$PATH

export DIAG_TRACE=$ORACLE_BASE/diag/rdbms/'echo $ORACLE_SID|tr[A-Z][a-z]'/${ORACLE_SID}/trace

export ALERT_LOG=$DIAG_TRACE/alert_${ORACLE_SID}.log

alias diag="cd $DIAG_TRACE"

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center