- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- startup programs
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
08-19-2004 04:07 AM
08-19-2004 04:07 AM
startup programs
'start')
su - oracle -c '/wfm/dba/bin/start_system.sh'
;;
'stop')
su - oracle -c '/wfm/dba/bin/shut_system.sh'
;;
Does anyone know why I would be getting this error? Are these scripts not run as root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 04:12 AM
08-19-2004 04:12 AM
Re: startup programs
/usr/bin/su -oracle -c ...
Else make a statement in the beginning that sets the PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 04:12 AM
08-19-2004 04:12 AM
Re: startup programs
Find the full path of su as,
which su / whereis su
/usr/bin/su - oracle -c '/wfm/dba/bin/start_system.sh'
It will do it now :)
Regards
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 04:31 AM
08-19-2004 04:31 AM
Re: startup programs
Try putting in the complete path to su.
Regards,
dl
Alson attached is an HP doc oh how to set these up and test no intrusively.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 07:36 AM
08-19-2004 07:36 AM
Re: startup programs
I' am using such script:
#!/sbin/sh
# Oracle database startup script
# ln -s /sbin/init.d/dbora /sbin/rc2.d/S999dbora
# ln -s /sbin/init.d/dbora /sbin/rc1.d/K108dbora
#
#
ORA_HOME=/u01/app/oracle/product/9.2.0
ORA_OWNER=oracle
PATH=${PATH}:/usr/bin:/usr/sbin:/sbin
if [ ! -f ${ORA_HOME}/bin/dbstart -o ! -d ${ORA_HOME} ]
then
echo "Oracle startup: cannot start"
rval=2
exit $rval
fi
rval=0
case "$1" in
start_msg)
echo "Starting up oracle database";
;;
stop_msg)
echo "Shutting down oracle database";
;;
'start')
# Start the Oracle database:
su - ${ORA_OWNER} -c ${ORA_HOME}/bin/dbstart
su - ${ORA_OWNER} -c "${ORA_HOME}/bin/lsnrctl start"
;;
'stop')
# Stop the Oracle database:
su - ${ORA_OWNER} -c "${ORA_HOME}/bin/lsnrctl stop"
su - ${ORA_OWNER} -c ${ORA_HOME}/bin/dbshut
;;
*)
echo "Usage `basename $0` start | stop !!!\n"
esac
exit $rval
# end of file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 03:48 PM
08-19-2004 03:48 PM
Re: startup programs
IF we are using scripts on startup/shutdown we have to use full path of system commands.
In your script, echo, su ,.. are not in the full path. I hope it will not be executed.
We have to use full path as,
echo=`which echo`
$echo startup script
Else failure will be noted in rc.log file. Check it over there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 06:03 PM
08-19-2004 06:03 PM
Re: startup programs
in my script PATH is set and there is no need
to use full path for commands
It works fine in a lot of my oracle installations.