Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Setting Linux Kernel Parameters
"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----------------
# 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
----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