Hi All,
I upgraded my Linux Machine to
OEL 5.11 from 5.5
>> OEL 5.5 kernal - BEFORE UPGRADE OS VERSION
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 kernal - AFTER UPGRADE OS VERSION
PHP Code:
$ uname -a
Linux AUSDEV 2.6.18-419.0.0.0.1.el5PAE #1 SMP Fri Feb 24 09:20:35 PST 2017 i686 i686 i386 GNU/Linux
>> This is oracle user .bash_profile always i am using
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
~
Wihout any changes of .bash_profile, some commands are NOT worked in 5.11 for oracle user which already worked fine.
$ . .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
PHP Code:
$ vi .bash_profile
..
...
# . oraenv
..
...
Problems are i cannot access sqlplus
$ . .bash_profile
PHP Code:
[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.
1) If i remove oraenv from .bash_profile, why i cannot access db ?
2) can i use above setup for OEL 5.11 also ?
3) My confusions are LD_LIBRARY_PATH and $PATH.
PHP Code:
$ ifconfig
-bash: ifconfig: command not found
Thanks in advance.