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 XE - override prereq checks when installing rpm on linux AS 4.0

Re: Oracle XE - override prereq checks when installing rpm on linux AS 4.0

From: Maxim Demenko <mdemenko_at_gmail.com>
Date: Sat, 05 Nov 2005 22:08:16 +0100
Message-ID: <dkj701$t6p$04$1@news.t-online.com>


Steven Kondolf schrieb:
> I have a small home-based Linux server running Redhat AS 4.0 that I
> want to install Oracle XE on via the rpm downloaded from otn. During
> the install via the rpm I'm told that I only have 250 megs of ram on
> my machine and XE wants 256 minimum so the install aborts.
>
> Does anyone know if there's a way to bypass the pre-req check? I know
> this can be done when installing Oracle via OUI but wasn't sure about
> an rpm. I tried the --force option on the rpm command but that didn't
> help.
>
> Thanks for any help given.

The memory check is done in PREINSTALL script, to skip the pre/post install script execution you should run not with --force but with --noscripts. Of course, the scripts do alot useful stuff, which you should execute manually in that case, you could theoretically rebuild this rpm and modify the according script, but it seems to me a very dirty hack ( and too much work as well ;-) You can instead have a look, how memory check is done and fake then only this particular check:

cat << \EOF > function
function cat {
if [[ "$*" = "/proc/meminfo" ]]
then
/bin/cat /proc/meminfo|awk '{if (/^MemTotal/) $2+=100000;print $0}' else
/bin/cat "$*"
fi
}
EOF
. ./function
export -f cat

I reduced the memory of my virtual machine to 240 Mb and was able to install rpm on this way. Don't forget after install to unset cat

Best regards

Maxim Received on Sat Nov 05 2005 - 15:08:16 CST

Original text of this message

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