LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2017, 09:17 AM   #1
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Rep: Reputation: 0
Do i need any changes after upgrade of LINUX machine ?


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
-bashsqlpluscommand not found

[oracle@AUSUAT ~]$ sqlplus -v
-bashsqlpluscommand 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
-bashifconfigcommand not found 
Thanks in advance.

Last edited by Joy Stick; 03-27-2017 at 03:08 PM.
 
Old 03-27-2017, 02:51 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
dupe reported
 
Old 03-27-2017, 03:09 PM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,788
Blog Entries: 13

Rep: Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831
The duplicate is actually a newer question and this thread is the original question. Any members who have insight into the OP's problem, please offer your answers in this thread, the other one has been closed.

@Joy Stick:

You cite certain commands which are no longer working after your upgrade. Perhaps you should cite which commands they are and see also if you have those commands (binaries) on your system. For running commands, the PATH variable matters. The LD_LIBRARY_PATH is a reference for other things, but the actual PATH variable is what controls how to find binary executable files.
 
Old 03-27-2017, 03:23 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 3,995

Rep: Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218
Should PATH contain $ORACLE_HOME or $ORACLE_HOME/bin?
 
Old 03-27-2017, 03:29 PM   #5
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0
Hi,

My straight questions are if we upgrade linux machines from one version to another ,
Without any changes , can we proceed ?


My confusions are , on OEL 5.5 everything was fine but problems are in 5.11.
After upgrade to 5.11, problems are coming for oracle user.

Problems are described above
 
Old 03-27-2017, 03:33 PM   #6
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0
Hi,

I am seeing lots of examples.
As a experienced person, can you suggest me where can i make changes in .bash_profile for oracle user ?

Thanks.
 
Old 03-27-2017, 08:04 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,378

Rep: Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469
Post the contents of the oraenv file.

The dot in the command . oraenv is the source or dot operator. It reads and executes the commands in the oraenv file. I assume that the path for sqlplus is added in that file but it could change the existing path. There is nothing sacred about the path environment and you can change it as desired in your .bash_profile.

Code:
export PATH=$ORACLE_HOME/bin:$PATH:/sbin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgrade/downgrade Debian machine anurag020 Linux - Newbie 6 03-04-2016 12:57 AM
almost painless machine upgrade unclejed613 Slackware 3 06-15-2013 12:33 PM
[SOLVED] Slackpkg upgrade-all hosed my machine Dornith Slackware 16 08-10-2012 01:38 AM
Using upgraded machine nearby to upgrade a machine? kedar.mhaswade Linux - General 1 11-09-2009 12:16 AM
How do i upgrade apache websever in linux machine Harish_f Linux - General 2 06-17-2002 04:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration