GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- change path
Operating System - HP-UX
1846838
Members
8278
Online
110256
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
04-02-2007 02:17 PM
04-02-2007 02:17 PM
I have a database is running at the path /ora_app , now I would like to move it to another path /app/ora physically but keep the path logically , that means there is no need to change the hard-code program , the user can use the old path to do the same thing after movement, is setup a link ( ln -s ) a good method ? except use link , is there other better method ? thx
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2007 02:36 PM
04-02-2007 02:36 PM
Solution
Sure, you can move the stuff below /ora_app to /app/ora; rmdir /ora_app; ln -s /app/ora /ora_app
- Is there a mountpoint involved?
- Will the data move to a new device?
- Don't use -f on the rmdir nor ln... you want this to fail if you get it wrong
- Applications tend not to hardcode something like /ora_app. That is often hidden behind some envoronment variable like $ORA_APP or $APP_DIR or such.
Switch to the app user and issue: env | grep ora_app
To keep sanity as you move forward it may be desireable NOT to have the softlink, but fix (all) environment variables in play.
The softlink is the easy solution but may cause grievance over time.
Cheers,
Hein.
- Is there a mountpoint involved?
- Will the data move to a new device?
- Don't use -f on the rmdir nor ln... you want this to fail if you get it wrong
- Applications tend not to hardcode something like /ora_app. That is often hidden behind some envoronment variable like $ORA_APP or $APP_DIR or such.
Switch to the app user and issue: env | grep ora_app
To keep sanity as you move forward it may be desireable NOT to have the softlink, but fix (all) environment variables in play.
The softlink is the easy solution but may cause grievance over time.
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2007 02:58 PM
04-02-2007 02:58 PM
Re: change path
If the developers hard-coded pathnames into the application then go find a baseball bat and hardcode them. Normally there should be environment variables or a configuration file that sets all of this up so that it can be easily changed. Your soft links will work but make sure that they are well-documented and consider having to do a restore from backup because it would be very easy to miss the symbolic links.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2007 04:01 PM
04-02-2007 04:01 PM
Re: change path
Hi,
unless you redo a fresh installation of the oracle software (+ some minor adjustments - requires downtime), there is no other way than creating a soft link of the directory.
This should not be a problem but do make sure that it is properly documented.
hope this helps too!
kind regards
yogeeraj
unless you redo a fresh installation of the oracle software (+ some minor adjustments - requires downtime), there is no other way than creating a soft link of the directory.
This should not be a problem but do make sure that it is properly documented.
hope this helps too!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP