Go Back   The UNIX and Linux Forums > Operating Systems > Solaris
.
google site



Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-14-2006
Registered User
 

Join Date: Jan 2006
Posts: 71
set enviroment variable..

Hello...

I was wondering can anyone explain me how to set up enviroment variable to be permanent...

I tryed with setenv but my solaris does not have this command...

then I did:

export ORACLE_SID=base1
export ORACLE_BASE=/home
export ORACLE_HOME=$ORACLE_BASE/oracle/8.1.6

and by doing this I can start my sqlplus...but as soon as I break telnet connection to my solaris..and start it over again...I am losing these variables..

I have to set them again and sqlplus works..

can U help me with this..
Sponsored Links
  #2 (permalink)  
Old 08-14-2006
Registered User
 

Join Date: Aug 2006
Posts: 69
Put them into .profile of your home directory!!
  #3 (permalink)  
Old 08-17-2006
spoodie's Avatar
Registered User
 

Join Date: Apr 2006
Posts: 14
The reason you don't have setenv is because that's a function of the csh environment and you're probably using ksh or bash (you can find out by typing "echo $SHELL").

The above will solve your problem.
  #4 (permalink)  
Old 08-20-2006
nathan nathan is offline VIP Member  
Supporter
 

Join Date: Jul 2006
Posts: 165
Check which shell you are using by echo $SHELL as described above. If you are using bash, you will need to place them in your .bashrc file. If sh or ksh, then your .profile as described above. If you are using csh or tcsh, you will need to edit your .login file. But from the output above, I don't think you are using csh or tcsh.
  #5 (permalink)  
Old 08-21-2006
Registered User
 

Join Date: Aug 2006
Posts: 10
Hi,

I too am facing this problem of setting the environment variables permanently. i'm using sh as my shell and I looked for .profile directory in my root filesystem but did not see any directory named like that. What directory am I supposed to be looking at ???

Thanks
rohit
  #6 (permalink)  
Old 08-21-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,360
.profile is a file in the home directory of the user. If it does not exist you can simply crete it. However .profile is used only by bourne derivative shells so it you are using csh/tcsh then you should use .cshrc.
Sponsored Links
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Enviroment Differences script(s) JoeShmoe Shell Programming and Scripting 2 10-25-2006 09:57 AM
Enviroment variables... B14speedfreak UNIX for Dummies Questions & Answers 2 06-26-2006 07:15 AM
Accessing remote machine via an enviroment variable ElCaito UNIX for Dummies Questions & Answers 4 02-14-2006 09:04 PM
newbie problem with enviroment alien12 UNIX for Dummies Questions & Answers 1 02-10-2006 11:54 AM
Help! - How do I compile C++ in UNIX Enviroment? Kahuashi UNIX for Dummies Questions & Answers 3 06-01-2002 02:34 AM



All times are GMT -4. The time now is 08:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0