Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: HP-UX startup scripts
Given (not exactly what you have): the oracle software owner is unix user naming oracle, $ORACLE_HOME=/home/oracle, and $ORACLE_SID=ORCL you need:
#!/bin/sh # # Start/Stop Oracle instance #
start)
su - oracle -c "lsnrctl start; dbstart" ;; stop) su - oracle -c "dbshut; lsnrctl stop" ;; *) echo "Unknown flag passed to $0." echo "Usage: $0 start|stop"
If you don't wish to start sql*net listener on the server then "lsnrctl
start" substring in the script should be ommited.
Make the script exacutable by
# chmod u+x oradb
4. Create symbolic links as follows:
# cd /sbin/rc2.d # ln -s /sbin/init.d/oradb S99ORACLE # cd /sbin/rc0.d # ln -s /sbin/init.d/oradb K99ORACLE
And your all done. Test it if you have a chance to stop the database and/or the whole system.
Good luck,
Eugene.
Brendan Newport <brendan_at_cathouse.nwnet.co.uk> wrote in message
news:38fb4294.0_at_news2.cluster1.telinco.net...
> Before I re-invent the wheel, and write some scripts that have already
been
> long done...
>
> Has anyone any minimum automatic start-up and shutdown scripts for HP-UX
> 11.0? The technet article I read
> http://technet.oracle.com/support/bboard/content/1050.htm seems to have
been
> authored by someone on drugs.
>
> I don't have access to the HP-UX Installation CD.
>
> Thanx
>
>
> Brendan
>
>
>
>
Received on Tue Apr 18 2000 - 00:00:00 CDT
![]() |
![]() |