Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: oracle start up script on solaris
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}" ;;
-----------== 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
![]() |
![]() |