- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- create automatic script and run by oracle user
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
05-03-2006 04:58 PM
05-03-2006 04:58 PM
I would like to create automatic startup script but that script should be run by oracle.
Please assist me how to this so it will start automatically once we reboot the server.
I attached the script so you will have an idea.
Thanks in advance.
Adriatico
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 05:45 PM
05-03-2006 05:45 PM
Re: create automatic script and run by oracle user
Put the following in the first line of your script,
su - oracle
save the script & move it to "/sbin/init.d" directory,
For Ex:
# mv /tmp/script /sbin/init.d/oracle
Link the script to "/sbin/rc3.d" , to start the script in run level 3. The naming convention should be Sxxx<script name>.
For Ex:
# cd /sbin/rc3.d
# ln -s /sbin/init.d/oracle S987oracle
If you any script to halt, put the same in "/sbin/rc2.d" and start the name with "K"
Regds,
Saravanan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 05:47 PM
05-03-2006 05:47 PM
SolutionCreate a script in /sbin/init.d/oraclestart which contains
su - oracle -c "startscript"
Then execute the following
cd /sbin/rc2.d
ln -s /sbin/init.d/oraclestart S999oraclestart
You script will be executed when you reboot the server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 05:47 PM
05-03-2006 05:47 PM
Re: create automatic script and run by oracle user
instance:/oracle_path:Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 12:29 PM
05-04-2006 12:29 PM
Re: create automatic script and run by oracle user
Please check procedure below if it will work also as automatic shutdown script by following "Luk Vandenbussche" reply as startup script.
procedure:
cd /sbin/rc2.d
ln -s /sbin/init.d/oraclestart K999oraclestart
Thanks.
Adriactico