Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: HP-UX startup scripts

Re: HP-UX startup scripts

From: Eugene Firyago <efiryago_at_bisys.com>
Date: 2000/04/18
Message-ID: <8dhok3$6s8$1@bob.news.rcn.net>#1/1

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:

  1. Log on as root user.
  2. Make shure that /etc/oratab file consists of only one string ended up by :Y (any other ones must be commented by # or ended by :N): ORCL:/home/oracle:Y
  3. Create the following shell script naming oradb and put it in /sbin/init.d directory:
#!/bin/sh
#
# Start/Stop Oracle instance
#

case "$1" in

   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"

esac

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US