GreenLake Administration
Operating System - HP-UX
1846637
Members
2320
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
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
10-13-2006 03:09 AM
10-13-2006 03:09 AM
Query
I have JBOSS installed on my server. The server has two environments test and develop and there is a single instance of JBOSS on the server. At a given time I need to start the JBOSS for either environments. ( Just one needs to be up ).For starting the JBOSS or pointing the JBOSS to one of the environments I need to make a change to a file called oracle.xml in which I change the Oracle SID according to the environments.
Can I make a script which automatically changes the SID to point to the repsective environments. The sample file is attached herewith.
The oracle SID is given like this in the file :
jdbc:oracle:thin:@172.200.80.73:1522:SID1
I just need to make a change to SID1 to point it another oracle SID.
Can I do it through a script.
Can I make a script which automatically changes the SID to point to the repsective environments. The sample file is attached herewith.
The oracle SID is given like this in the file :
I just need to make a change to SID1 to point it another oracle SID.
Can I do it through a script.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2006 03:12 AM
10-13-2006 03:12 AM
Re: Query
The file is in the following path :
$JBOSS_HOME/server/default/deploy/oracle-ds.xml
$JBOSS_HOME/server/default/deploy/oracle-ds.xml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2006 03:25 AM
10-13-2006 03:25 AM
Re: Query
to things come to mind:
use sed to make a change in the existing file, or, you could have 2 different files (possibly w/ an extension of "test" and "prod"?) and make a symbolic link between the original file name and the one w/ the correct contents for your instance?
There probably a bunch of others, like echoing the appropriate contents into the file based on condition, cating file mentioned above to existing file and so on
use sed to make a change in the existing file, or, you could have 2 different files (possibly w/ an extension of "test" and "prod"?) and make a symbolic link between the original file name and the one w/ the correct contents for your instance?
There probably a bunch of others, like echoing the appropriate contents into the file based on condition, cating file mentioned above to existing file and so on
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