6 Replies Latest reply: Feb 13, 2014 10:08 PM by Aryacool RSS

    Bash profile error in new session

    Aryacool

      Hi,

       

        My database version- 11gr2

        Linux- OEL 5 update 8

       

          For some testing purpose i have configured 11g on vmware. When i am giving sqlplus or netca or dbca in new terminal that i opened it's throwing error(bash:command not found i.e. its not getting bin path), if i execute .bash_profile or . oraenv then those commands are working in that terminal. if again i am opening new terminal same thing. Can any body help me out on this.

       

      Regards,

      Arya

        • 1. Re: Bash profile error in new session
          sb92075

          post results from OS command below

           

          env | sort

           

          I suspect that PATH variable suffers from error of omission.

          • 2. Re: Bash profile error in new session
            Osama_Mustafa

            Post Bash_Profile ?

            • 3. Re: Bash profile error in new session
              Aryacool

              hi,

              [oracle@node5 ~]$ env | sort

              _=/bin/env

              COLORTERM=gnome-terminal

              CVS_RSH=ssh

              DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-EFOXLWVyBm,guid=961b2fe909cb2b18d07a930052f6204c

              DESKTOP_SESSION=default

              DESKTOP_STARTUP_ID=

              DISPLAY=:0.0

              G_BROKEN_FILENAMES=1

              GDMSESSION=default

              GDM_XSERVER_LOCATION=local

              GNOME_DESKTOP_SESSION_ID=Default

              GNOME_KEYRING_SOCKET=/tmp/keyring-8HnZ7T/socket

              GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2

              HISTSIZE=1000

              HOME=/home/oracle

              HOSTNAME=node5.arya.com

              INPUTRC=/etc/inputrc

              KDEDIR=/usr

              KDE_IS_PRELINKED=1

              KDE_NO_IPV6=1

              LANG=en_US.UTF-8

              LD_LIBRARY_PATH=/oraeng/app/oracle/product/11.2.0/db_1/lib

              LESSOPEN=|/usr/bin/lesspipe.sh %s

              LOGNAME=oracle

              LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:

              MAIL=/var/spool/mail/oracle

              ORACLE_BASE=/oraeng/app/oracle

              ORACLE_HOME=/oraeng/app/oracle/product/11.2.0/db_1

              ORACLE_SID=orcl

              PATH=/usr/sbin:/oraeng/app/oracle/product/11.2.0/db_1/bin:/usr/sbin:/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/bin:/oraeng/app/oracle/product/11.2.0/db_1/bin:/home/oracle/bin

              PWD=/home/oracle

              QTDIR=/usr/lib64/qt-3.3

              QTINC=/usr/lib64/qt-3.3/include

              QTLIB=/usr/lib64/qt-3.3/lib

              SESSION_MANAGER=local/node5.arya.com:/tmp/.ICE-unix/4520

              SHELL=/bin/bash

              SHLVL=2

              SSH_AGENT_PID=4559

              SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass

              SSH_AUTH_SOCK=/tmp/ssh-PsrzFO4520/agent.4520

              TERM=xterm

              TNS_ADMIN=/oraeng/app/oracle/product/11.2.0/db_1/network/admin

              USERNAME=oracle

              USER=oracle

              WINDOWID=24125612

              XAUTHORITY=/tmp/.gdmN12WAX

              XMODIFIERS=@im=none

               

              Regards,

              Arya

              • 4. Re: Bash profile error in new session
                Aryacool

                hi

                 

                vi .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_HOME/bin:$PATH

                export PATH=/usr/sbin:$PATH

                export ORACLE_BASE=/oraeng/app/oracle

                export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

                export ORACLE_SID=orcl

                export TNS_ADMIN=$ORACLE_HOME/network/admin

                 

                Regards,

                Arya

                • 5. Re: Bash profile error in new session
                  sybrand_b

                  Seems .bash_profile is simply not executed in any subsequent terminal window.

                  Anyhow, this question has zero, zilch, nada, nothing to do with Oracle RDBMS, so doesn't belong here.

                  Please consider to avoid cluttering up this forum with off-topic posts.

                   

                  Thank you.

                   

                  -----------

                  Sybrand Bakker

                  Senior Oracle DBA

                  • 6. Re: Bash profile error in new session
                    Aryacool

                    ok i will not post linux related issues here.Thanks for your reply.

                     

                    Regards,

                    Arya