UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 6th, 2005, 09:06 AM
kalyanraj's Avatar
kalyanraj kalyanraj is offline
8 Miles
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: India
Posts: 305 kalyanraj User rank is Sergeant Major (2000 - 5000 Reputation Level)kalyanraj User rank is Sergeant Major (2000 - 5000 Reputation Level)kalyanraj User rank is Sergeant Major (2000 - 5000 Reputation Level)kalyanraj User rank is Sergeant Major (2000 - 5000 Reputation Level)kalyanraj User rank is Sergeant Major (2000 - 5000 Reputation Level)kalyanraj User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 3 h 26 m 5 sec
Reputation Power: 51
setting path in local.profile file

hi all,

can anybody help me out in this..

I installed Oracle on HP-UX and i want sql to be loaded from any directory when i type "sqlplus"

i set the path in PATH variable as

PATH=/usr/oracle/bin:$PATH
export PATH

ORACLE_HOME=/usr/oracle
export ORACLE_HOME

and sqlplus is working fine. but when iam closing the console and opening again sqlplus is not working.

how to set the path in local.profile file so that i dont need to change the path again and again.. i did the same in local.profile file, but it is not working?

help me out

Thanks,
Kalyan

Reply With Quote
  #2  
Old July 7th, 2005, 11:01 AM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,308 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 55 m 17 sec
Reputation Power: 48
When you execute .profile, is it during login?

What you are really saying is that the envrionment variables, like ORACLE_HOME, are not being found.

Put this:
Code:
PATH=/usr/oracle/bin:$PATH
export PATH

ORACLE_HOME=/usr/oracle
export ORACLE_HOME


inside the .profile that lives in your login directory. Assuming you use the ksh shell.
If you do not know what shell you use, this:
Code:
kalyanr:*:356:104:Kalyan Raj:/home/kalyanr:/usr/bin/ksh

is a simulated record for you in /etc/passwd
This user has the Korn shell -- /usr/bin/ksh

The file you change is different for bash and csh and tcsh

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > setting path in local.profile file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway