3 Replies Latest reply: Feb 13, 2013 10:52 AM by 990153 RSS

    Error on .bash_profile _ oracle 11g preparing to install

    990153
      Dears,

      I am preparing to install grid oracle 11g , In the envirment varaible on the oracle user on the .bash_profile I got the below error, please help me to solve it :

      ERROR:
      ./.bash_profile
      ': not a valid identifier export: `TMPDIR
      : command not foundne 19:
      ': not a valid identifier export: `ORACLE_HOSTNAME
      ': not a valid identifier export: `ORACLE_UNQNAME
      ': not a valid identifier export: `ORACLE_BASE
      ': not a valid identifier export: `GRID_HOME
      ': not a valid identifier export: `DB_HOME
      ': not a valid identifier export: `ORACLE_HOME
      ': not a valid identifier export: `ORACLE_SID
      ': not a valid identifier export: `ORACLE_TERM
      ': not a valid identifier export: `BASE_PATH
      ': not a valid identifier export: `PATH
      : command not foundne 30:
      ': not a valid identifier export: `LD_LIBRARY_PATH
      : command not foundne 33:
      ./.bash_profile: line 46: syntax error: unexpected end of file


      The file .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
      TMP=/tmp

      export TMP

      TMPDIR=$TMP

      export TMPDIR

      ORACLE_HOSTNAME=ol6-112-rac1.localdomain; export ORACLE_HOSTNAME
      ORACLE_UNQNAME=RAC; export ORACLE_UNQNAME
      ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
      GRID_HOME=/u01/app/11.2/grid; export GRID_HOME
      DB_HOME=$ORACLE_BASE/product/11.2/db_1; export DB_HOME
      ORACLE_HOME=$DB_HOME; export ORACLE_HOME
      ORACLE_SID=RAC1; export ORACLE_SID
      ORACLE_TERM=xterm; export ORACLE_TERM
      BASE_PATH=/usr/sbin:$PATH; export BASE_PATH
      PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH

      LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
      CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

      if [ $USER = "oracle" ]; then
      if [ $SHELL = "/bin/ksh" ]; then
      ulimit -p 16384
      ulimit -n 65536
      else
      ulimit -u 16384 -n 65536
      fi
      fi


      alias grid_env='. /home/oracle/grid_env'
      alias db_env='. /home/oracle/db_env'


      Note: I check all directories and all are correct and availabe on the server ( oracle linux server 6.3).

      Appretiate your help .

      Regards
      Salman
        • 1. Re: Error on .bash_profile _ oracle 11g preparing to install
          sb92075
          post results from following OS commands

          id
          env | sort
          • 2. Re: Error on .bash_profile _ oracle 11g preparing to install
            990153
            ID :
            uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),0(root),54322(dba) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
            • 3. Re: Error on .bash_profile _ oracle 11g preparing to install
              990153
              env|sort :
              CLASSPATH=/u01/app/oracle/product/11.2/db_1/JRE:/u01/app/oracle/product/11.2/db_1/jlib:/u01/app/oracle/product/11.2/db_1/rdbms/jlib
              COLORTERM=gnome-terminal
              CVS_RSH=ssh
              DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-c4FSmIcAqV,guid=60fd11073a66582b07812e990000005f
              DESKTOP_SESSION=gnome
              DISPLAY=:0.0
              G_BROKEN_FILENAMES=1
              GDM_KEYBOARD_LAYOUT=us
              GDM_LANG=en_US.UTF-8
              GDMSESSION=gnome
              GNOME_DESKTOP_SESSION_ID=this-is-deprecated
              GNOME_KEYRING_PID=2231
              GNOME_KEYRING_SOCKET=/tmp/keyring-Dgx3GS/socket
              GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
              HISTCONTROL=ignoredups
              HISTSIZE=1000
              HOME=/home/oracle
              HOSTNAME=ol6-112-rac1.localdomain
              LANG=en_US.UTF-8
              LESSOPEN=|/usr/bin/lesspipe.sh %s
              LOGNAME=oracle
              LS_COLORS=rs=0:di=0.... (long words )
              MAIL=/var/spool/mail/oracle
              ORBIT_SOCKETDIR=/tmp/orbit-oracle
              PATH=/u01/app/oracle/product/11.2/db_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
              PWD=/home/oracle/Desktop
              QTDIR=/usr/lib64/qt-3.3
              QTINC=/usr/lib64/qt-3.3/include
              QTLIB=/usr/lib64/qt-3.3/lib
              SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2241,unix/unix:/tmp/.ICE-unix/2241
              SHELL=/bin/bash
              SHLVL=2
              SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
              SSH_AUTH_SOCK=/tmp/keyring-Dgx3GS/socket.ssh
              TERM=xterm
              TMP=/tmp
              USERNAME=oracle
              USER=oracle
              _=/usr/bin/env
              WINDOWID=48234500
              WINDOWPATH=1
              XAUTHORITY=/var/run/gdm/auth-for-oracle-Se0hQ1/database
              XDG_SESSION_COOKIE=06a46f0a02fd92da98077e5a00000088-1360773632.745291-1559061973