- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: .profile setup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 10:57 AM
11-22-2005 10:57 AM
I have a problem ..
- .profile calls a file called cron.profile and sets up ORACLE_SID, ORACLE_HOME.
While I have put echo $ORACLE_SID & echo $ORACLE_HOME at the end of ecript cron.profile, which shows me proper as I turned on set -vx in the script.
But when script finishes executing and I get the shell back, I do not see this variables set..
Any clue on this?
Appreciate responses in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 11:04 AM
11-22-2005 11:04 AM
Re: .profile setup
You need to export the variables. For example:
# export ORACLE_HOME=/apps/oracle/8.1.7
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 11:36 AM
11-22-2005 11:36 AM
Re: .profile setup
Yes you will need to export the variable after assigning the path.
export ORACLE_HOME=/opt/oracle/product/92
export ORACLE_SID=
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 11:42 AM
11-22-2005 11:42 AM
Re: .profile setup
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 12:05 PM
11-22-2005 12:05 PM
Solutione.g.
~/.profile is very different from
. ~/.profile
You want the .profile to become part of the foreground process rather than simply a child process because one of the the fundamental tenets of UNIX is that a child cannot alter the environment of its parent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 12:22 PM
11-22-2005 12:22 PM
Re: .profile setup
. ./somepath/cron.profile
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 02:27 PM
11-24-2005 02:27 PM
Re: .profile setup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 02:30 PM
11-24-2005 02:30 PM