LinuxQuestions.org
Review your favorite Linux distribution.
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-28-2017, 08:44 AM   #1
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Rep: Reputation: 0
.bash_profile for oracle user


Dear all,

I have some difficulties to understand PATH, LD_LIBRARY_PATH and CLASS_PATH. For oracle user above all are required or NOT ?


To set . bash_profile for oracle From Version 4.x to 6.x
Do i need any changes or same configuration ?

PHP Code:
export EDITOR=vi
export ORACLE_HOSTNAME
=AUSUAT
export ORACLE_BASE
=/u01/app/oracle
export ORACLE_HOME
=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH
=
export  LD_LIBRARY_PATH=
export CLASSPATH
Last three lines i am getting confusion.
 
Old 03-28-2017, 09:43 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,821

Rep: Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084
Setting the PATH to empty for any user is a big mistake. It means you won't be able to use simple things like ls and cd as the system won't know where to find them.

These days Oracle ships with a script called oraenv which helps you to set your environment variables, so doing them by hand is often not needed.

As for LD_LIBRARY_PATH and CLASSPATH, these may affect any compilation work you might need to do so unless you know what you are doing I wouldn't be playing around with them.

On the other side of the coing, if you really currently have those settings in your Rhel 4.x version, then it should affect you exactly the same in 6.x
 
  


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
[SOLVED] oracle 11g install - oracle user passwd- Authentication Token Maniperror cdhar Linux - Newbie 3 08-21-2012 09:48 PM
why my alias is effective only after running . /home/oracle/.bash_profile redhatwannabe Linux - General 2 05-14-2009 01:34 AM
login as oracle user but prompt show [root@ablnx oracle] how come? sathyguy Linux - Newbie 12 08-23-2008 02:52 AM
need to change oracle .bash_profile from root user ? shipon_97 Linux - Enterprise 1 08-09-2007 01:27 PM
xhost + as user oracle not working, need to see oracle install GUI enzo250gto Linux - Software 2 02-11-2007 11:27 AM

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

All times are GMT -5. The time now is 05:08 AM.

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