HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Automation Script
Operating System - HP-UX
1827474
Members
1845
Online
109965
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
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
03-21-2001 09:08 AM
03-21-2001 09:08 AM
I have an EMC Symmetrix that holds the databases for my two servers. Through the use of the BCV disks on the Symmetrix I have been performing cold backups on a weekly basis. I have automated the process of synchronizing the disks with a symmetrix disk group and would like to further automate the process of bringing down the database and splitting the BCV disks. I have a script that will bring down the database instances and the listener in Oracle7?s path. Another that starts the synchronization and a third that "watches" the synchronization process and pages me when the process is complete, these run as root. My question is this, I usually bring down the database as Oracle7 and perform the BCV split as root, not sure if this is necessary but that is how I've always done it. I would like to do this all as root but I?m not sure that is wise. If Oracle7 should bring down the database, I would like to create a script that would start the synchronization process as root, when the sync is complete su to Oracle7 and bring down the database, test to insure the database processes are stopped, split the bcv as root, su back to Oracle7 and bring up the database processes. Has anyone had any experience with something as convoluted as this?
Administrators make better brewers
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2001 09:25 AM
03-21-2001 09:25 AM
Solution
Yeah this is similiar to some of the things I've setup before. All you really need to do is alter the parts of your script that bring down and bring up the database. Make sure that the part that brings down and up the database are separate shell scripts. I'll call them:
/usr/local/bin/down_database.sh
/usr/local/bin/up_database.sh
In your scripts where you call these just change the call to something like this.
su - oracle -c /usr/local/bin/down_database.sh
su - oracle -c /usr/local/bin/up_database.sh
This causes a login as oracle and executes that command. Should work out nicely for you.
/usr/local/bin/down_database.sh
/usr/local/bin/up_database.sh
In your scripts where you call these just change the call to something like this.
su - oracle -c /usr/local/bin/down_database.sh
su - oracle -c /usr/local/bin/up_database.sh
This causes a login as oracle and executes that command. Should work out nicely for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 01:04 PM
03-22-2001 01:04 PM
Re: Automation Script
I agree. We have the same type of scripts for our sybase database here. Our root program has a line in it for sybase work:
/bin/su -c sybase "${SYBHOME/in...2>/dev/null "
/bin/su -c sybase "${SYBHOME/in...2>/dev/null "
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP