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 01:04 PM
Need help setting up a home solaris private network Kongowea UNIX for Dummies Questions & Answers 1 02-05-2008 10:19 AM
$HOME Not Getting Set for Oracle Scheduler Script at Runtime shew01 Shell Programming and Scripting 4 12-14-2007 05:31 AM
setting up my HOME PC as server rrs UNIX for Advanced & Expert Users 1 02-19-2007 09: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 01:04 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-14-2006
Registered User
 

Join Date: Dec 2006
Posts: 131
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  
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  
Old 12-14-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,693
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  
Old 12-14-2006
Registered User
 

Join Date: Dec 2006
Posts: 131
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 The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:09 PM.


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

Content Relevant URLs by vBSEO 3.2.0