Editing $ su root # vi ~ .bash_profile [I, type, [Esc]:wq!]
When I use
dbca
command as Oracle 11g user I have the following error message:
BASH: DBCA: command not found
and when I checked the bash profile I found the following:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=oracledev-srv.etqint.com; export ORACLE_HOSTNAME
#ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
#ORACLE_BASE=/oracle11gr2/u01/app/oracle; export ORACLE_BASE
#ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
#ORACLE_SID=DB11G; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
PATH=$PATH:$HOME/bin
unset USERNAME
cd $ORACLE_BASE
export PATH
Server information: RedHat Linux 6.3, Oracle installed on the server 11g R2 and 12c.
What I did for investigation:
- check the bash file and found out they are correct
- navigate to bin file and hit
dbca
but still the same error message
- edit the bash file manually in-case I missed something
- reboot the server
And still the same error message.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.