Dear Linux Experts,
I upgraded my LINUX Machine to OEL 5.11 from 5.5
OEL 5.5 details
PHP Code:
# uname -a
Linux AUSDEV-1.COM 2.6.18-194.el5 #1 SMP Mon Mar 29 20:06:41 EDT 2010 i686 i686 i386 GNU/Linux
OEL 5.11 details
PHP Code:
# uname -a
Linux AUSUAT 2.6.18-419.0.0.0.1.el5PAE #1 SMP Fri Feb 24 09:20:35 PST 2017 i686 i686 i386 GNU/Linux
PHP Code:
[root@AUSUAT ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.11 (Tikanga)
PHP Code:
[root@AUSUAT ~]# cat /etc/issue
Oracle Linux Server release 5.11
Kernel \r on an \m
.bash_profile of oracle user
PHP Code:
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
export EDITOR=vi
. oraenv
alias rlsqlplus='rlwrap sqlplus'
alias rlrman='rlwrap rman'
rlsqlplus / as sysdba
$ . .bash_profile
[oracle@AUSUAT ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Tue Mar 28 05:08:05 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to an idle instance.
SQL> exit
Just comment before oraenv
$ vi .bash_profile
..
...
# . oraenv
..
...
Problems are i cannot access sqlplus
$ . .bash_profile
[oracle@AUSUAT ~]$ sqlplus / as sysdba
-bash: sqlplus: command not found
[oracle@AUSUAT ~]$ sqlplus -v
-bash: sqlplus: command not found
[oracle@AUSUAT ~]$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/dbhome_1
I set environment varaible in .bash_profile.
If i remove
oraenv from .bash_profile, why i cannot access db ?