- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: srvctl command does it down the package?
Operating System - HP-UX
1752509
Members
5133
Online
108788
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
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
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
08-21-2006 03:23 PM
08-21-2006 03:23 PM
srvctl command does it down the package?
Hi all.
I have hpux11.11 install with oracle9iDB,rac and backup raw disk env.
I need to down the db and list before backup start by execute command srvctl stop -p prod.
When backup end will issue command srvctl start -p prod. My question is
1) Will the oracle package down when we issue this command?
2) will the package down if we reboot the server?
Thanks
Fauziah Mahdan
I have hpux11.11 install with oracle9iDB,rac and backup raw disk env.
I need to down the db and list before backup start by execute command srvctl stop -p prod.
When backup end will issue command srvctl start -p prod. My question is
1) Will the oracle package down when we issue this command?
2) will the package down if we reboot the server?
Thanks
Fauziah Mahdan
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 05:08 PM
08-21-2006 05:08 PM
Re: srvctl command does it down the package?
Shalom Fauziah,
Answers:1 To be sure you need to test it. after issuing svrctl start -p issue echo $?
If the reply is a zero then it probably worked. For the sake of throoughness, identify the server process and check its status with a ps -ef |grep
2
Probably not without further intervention by the systems administrator.
You must first create a start/stop script in /sbin/init.d
Generally I make and modify a copy of /sbin/init.d/template as /sbin/init.d/oracle
Then you must issue in the script the correct command to start/stop oracle. This should be su - oracle -c "database commaned"
This switches to the oracle user, or whatever non-root user owns the oracle binaries. It must not be root. It then uses that user environment and starts or stops the database.
ln -s /sbin/init.d/oracle /sbin/rc3.d/S900oracle
ln -s /sbin/init.d/oracle /sbin/rc2.d/K100oracle
Creates soft links for automatic start and stop of the database to the script you just created.
Plan some debugging if you can't borrow the script from a working server.
The thing to remember about start/stop scripts is they are run without environment. The need PATH, they need everyting handled by the script author. Kind of like babies.
SEP
Answers:1 To be sure you need to test it. after issuing svrctl start -p issue echo $?
If the reply is a zero then it probably worked. For the sake of throoughness, identify the server process and check its status with a ps -ef |grep
2
Probably not without further intervention by the systems administrator.
You must first create a start/stop script in /sbin/init.d
Generally I make and modify a copy of /sbin/init.d/template as /sbin/init.d/oracle
Then you must issue in the script the correct command to start/stop oracle. This should be su - oracle -c "database commaned"
This switches to the oracle user, or whatever non-root user owns the oracle binaries. It must not be root. It then uses that user environment and starts or stops the database.
ln -s /sbin/init.d/oracle /sbin/rc3.d/S900oracle
ln -s /sbin/init.d/oracle /sbin/rc2.d/K100oracle
Creates soft links for automatic start and stop of the database to the script you just created.
Plan some debugging if you can't borrow the script from a working server.
The thing to remember about start/stop scripts is they are run without environment. The need PATH, they need everyting handled by the script author. Kind of like babies.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP