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: Setting Linux Kernel Parameters

Re: Setting Linux Kernel Parameters

From: Antti Järvinen <costello_at_iki.fi>
Date: 02 Apr 2002 15:32:01 +0300
Message-ID: <m3it7ai8n2.fsf@muikku.baana.suomi.net>


"Howard J. Rogers" <dba_at_hjrdba.com> writes:
> How bad is it from a thoroughbred Linux user's perspective if I just edit
> rc.config, and bung the lines 'cd /proc/sys/kernel' and 'echo 250 32000 128
> 100 > sem' right at the top?

Depending on your linux distribution the rc.config might not be the best place. If you're not going to create /etc/rc.d/init.d/oracle
and symlinks
/etc/rc.d/rc3.d/S99oracle -> /etc/rc.d/init.d/oracle /etc/rc.d/rc5.d/S99oracle -> /etc/rc.d/init.d/oracle (again depending on your distribution; this example is from red hat) the "correct" place for local startup commands might be at /etc/rc.d/rc.local
but here's an example how the /etc/rc.d/init.d/oracle might look like (oracle database owner user account here is "oracle8"):

-------snip----snap----------------

#!/bin/sh
ORACLE_HOME=/the/oracle/home/dir
case "$1" in
  start)
        # insert after this comment necessary kernel parameter stuff or
        # whatever you want to be run at startup
        /sbin/su - oracle8 -c $ORACLE_HOME/bin/lsnrctl start >> /tmp/orastartup.log 2>&1
        /sbin/su - oracle8 -c $ORACLE_HOME/bin/dbstart >> /tmp/orastartup.log 2>&1
        ;;
  stop)
        /sbin/su - oracle8 -c $ORACLE_HOME/bin/lsnrctl stop >> /tmp/orastartup.log 2>&1
        /sbin/su - oracle8 -c $ORACLE_HOME/bin/dbshut >> /tmp/orastartup.log 2>&1 
        ;;
  *)
        echo Usage: $0 'start|stop'
        exit 1

esac
exit
----snip---snap--------------------

-- 
Antti Järvinen, costello_at_iki.fi
            "concerto for two faggots and orchestra" 
Received on Tue Apr 02 2002 - 06:32:01 CST

Original text of this message

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