HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- startup issue
Operating System - HP-UX
1836636
Members
1630
Online
110102
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
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-25-2007 12:31 PM
04-25-2007 12:31 PM
startup issue
Hi,
I was trying to setup some scripts under the /sbin/init.d .so that the app (oracle) will start automatically. But inorder to run the script the oracle environment variable should be set or the .files should be executed by su - to oracle. How can i do this ,sure so many of you have encountered this and probably have the resolution.Thanks in advance
I was trying to setup some scripts under the /sbin/init.d .so that the app (oracle) will start automatically. But inorder to run the script the oracle environment variable should be set or the .files should be executed by su - to oracle. How can i do this ,sure so many of you have encountered this and probably have the resolution.Thanks in advance
Learning ...
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 12:52 PM
04-25-2007 12:52 PM
Re: startup issue
1. Install the script named oracle in the /sbin/init.d directory.
2. Make symbolic links in 2nd and 3rd run-levels for stopping/starting Oracle:
ln -s /sbin/init.d/oracle /sbin/rc3.d/S900oracle
ln -s /sbin/init.d/oracle /sbin/rc2.d/K100oracle
3. Set variable ORACLE_START_STOP=1 in the /etc/rc.config.d/oracle file
2. Make symbolic links in 2nd and 3rd run-levels for stopping/starting Oracle:
ln -s /sbin/init.d/oracle /sbin/rc3.d/S900oracle
ln -s /sbin/init.d/oracle /sbin/rc2.d/K100oracle
3. Set variable ORACLE_START_STOP=1 in the /etc/rc.config.d/oracle file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 04:39 PM
04-25-2007 04:39 PM
Re: startup issue
hi Navin
please find attached one of the great documents on this issue which i had downloaded from this site a few year ago and which i am still using for training purposes today!
hope this helps!
kind regards
yogeeraj
please find attached one of the great documents on this issue which i had downloaded from this site a few year ago and which i am still using for training purposes today!
hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 04:41 PM
04-25-2007 04:41 PM
Re: startup issue
hi again,
one easy way to get your environment variables correct is code your startup script accordingly. below an extract from one of mines:
...
'start')
# source the system configuration variables
if [ -f /etc/rc.config ] ; then
. /etc/rc.config
else
echo "ERROR: /etc/rc.config defaults file MISSING"
fi
# Check to see if this script is allowed to run...
if [ "$ORACLE_START_STOP" != 1 ]; then
rval=2
else
# Execute the commands to start your subsystem
echo "/u01/app/oracle/product/8.1.7/bin/lsnrctl start "| su - ora817
echo "/u01/app/oracle/product/8.1.7/bin/sqlplus /nolog <
one easy way to get your environment variables correct is code your startup script accordingly. below an extract from one of mines:
...
'start')
# source the system configuration variables
if [ -f /etc/rc.config ] ; then
. /etc/rc.config
else
echo "ERROR: /etc/rc.config defaults file MISSING"
fi
# Check to see if this script is allowed to run...
if [ "$ORACLE_START_STOP" != 1 ]; then
rval=2
else
# Execute the commands to start your subsystem
echo "/u01/app/oracle/product/8.1.7/bin/lsnrctl start "| su - ora817
echo "/u01/app/oracle/product/8.1.7/bin/sqlplus /nolog <
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 2025 Hewlett Packard Enterprise Development LP