The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
oracle user and group setting duke0001 UNIX and Linux Applications 1 02-26-2008 12:04 PM
Need help setting up a home solaris private network Kongowea UNIX for Dummies Questions & Answers 1 02-05-2008 09:19 AM
$HOME Not Getting Set for Oracle Scheduler Script at Runtime shew01 Shell Programming and Scripting 4 12-14-2007 04:31 AM
setting up my HOME PC as server rrs UNIX for Advanced & Expert Users 1 02-19-2007 08:04 PM
Hardware dummy trying to set up Unix workstation for Oracle at home for practice! tmanpakdee UNIX for Dummies Questions & Answers 4 12-07-2001 12:04 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-14-2006
Registered User
 

Join Date: Dec 2006
Posts: 119
setting Oracle Home

Hi,

if i set Oracle home in the command line as
export ORACLE_HOME=/usr/oracle/product/9.2.0; and then checking it by
typing echo $ORACLE_HOME,its getting the correct result.But if i try setting the ORACLE_HOME from a shell script by just including the same line as above,it was not working.Could anybody give me a tip regarding this?

With Regards
Dileep
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-14-2006
Registered User
 

Join Date: Jul 2006
Posts: 189
try

ORACLE_HOME=/usr/oracle/product/9.2.0

export ORACLE_HOME
Reply With Quote
  #3 (permalink)  
Old 12-14-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,643
Quote:
Originally Posted by DILEEP410
Hi,

if i set Oracle home in the command line as
export ORACLE_HOME=/usr/oracle/product/9.2.0; and then checking it by
typing echo $ORACLE_HOME,its getting the correct result.But if i try setting the ORACLE_HOME from a shell script by just including the same line as above,it was not working.Could anybody give me a tip regarding this?

With Regards
Dileep
If you want to set the env variable from a shell script, then you need to source that file i.e.
Code:
source myscript.sh
Reply With Quote
  #4 (permalink)  
Old 12-14-2006
Registered User
 

Join Date: Dec 2006
Posts: 119
Quote:
Originally Posted by vino
If you want to set the env variable from a shell script, then you need to source that file i.e.
Code:
source myscript.sh
fine.This seems to be working.Thanks for your comment.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0