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

Home -> Community -> Usenet -> c.d.o.server -> Re: oracle start up script on solaris

Re: oracle start up script on solaris

From: <mgogala_at_rocketmail.com>
Date: Tue, 12 Jan 1999 16:57:21 GMT
Message-ID: <77futg$50n$1@nnrp1.dejanews.com>


In article <77fms9$tau$1_at_nnrp1.dejanews.com>,   arahman_at_iimage.com wrote:
> I am having trouble getting a start up script running under the /etc/rc2.d
> directory that will start oracle
> and lsnrctl for the database on boot.
>
> the start up script executes the /$ORACLE_HOME/dbstart, and
> /$ORACLE_HOME/lsnrctl start commands.
>
> During boot, oracle attempts to start but gives back the message that their
> are insufficient priveleges.
>
> The owner of the resources is a user called oracle in a group called dba.
>
> The permissions on the directories for oracle home are rwxrwxr-x for
> (owner-group-other).
>
> Since the machine boots as root, i would like the database to start on boot.
>
> All comments are welcomed, i need details.
>
> Thanks in advance.
>
> Warmest regards,
>
> A. Rahman
> Net Admin
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>

#!/bin/sh
case $1 in
start)

       su - oracle -c "lsnrctl start;dbstart"
       su - oracle -c 'svrmgrl command="@your_local_admin_dir/localstart.sql"'
       ;;
stop)
       su - oracle -c "dbshut"
       ;;
*)
       echo "USAGE:oracle {start|stop}"
       ;;

esac
<<EOF>>
Mladen Gogala

-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Tue Jan 12 1999 - 10:57:21 CST

Original text of this message

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