Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> .oraenv parameter

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: .oraenv parameter
 shikhu  Posted: Oct 19, 2007 03:13:36 AM

 Total Post: 61
 Joined: Jul, 2006






 Hi All,

I have installed Oracle on Linux machine it is working fine but each and every time when I open a session I have to set .oraenv for oracle_sid I have set this parameter in .bash_profile also but it is not working.

I dont want to set it each and every time rather I want to set it permanently

plz. help me out.
Its urgent!!!!!!!!!!!!!

- shikha

 dbavinod
Posted: Oct 19, 2007 05:46:24 AM  

 Total Post: 90
 Joined: Sep, 2006






 
Hello
Have all the Parms in .profile or .bash_profile depends on Platform
Thats it these profiles executes automatically for new session.
export EDITOR
export ORACLE_BASE=/var/oracle/oracle/product/10.2.0/db_1
export ORACLE_HOME=/var/oracle/oracle/product/10.2.0/db_1
export ORACLE_SID=TEST
export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
Regards
Vinod


 Mohammed Taj
Posted: Oct 20, 2007 12:59:13 AM  

 Total Post: 694
 Joined: Jul, 2007






 
As vinod desc ...set your .bash_profile or .profile as user default profile.
and after set all above oracle variable run bash profile like $ ./.bash_profile

so next time whenever you login you have not set any oracle variable.
Regards
Mohammed Taj

 shikhu
Posted: Oct 22, 2007 03:46:34 AM  

 Total Post: 61
 Joined: Jul, 2006






 
Hi,
Its not working I have set all the parameters but again I need to set the .oraenv , I have checked with echoing also it is showing the sid and home.

what to do ?????????

 suni
Posted: Oct 24, 2007 03:01:44 AM  

 Total Post: 11
 Joined: Oct, 2007






 

while switching to user, try to switch as
# su - <oracleuser>
then the .bash_profile of the user gets executed.

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi242
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software