1
2
I'm trying to install Oracle 10g on to OS X Lion. I have previous achieved this on Snow Leopard with the following tutorial.
The issue I'm having is that the ulimit settings in the oracle/.bash_profile
cannot be modified.
I have the following in the bash_profile:
export DISPLAY=:0.0
export ORACLE_BASE=$HOME
umask 022
# must match `sysctl kern.maxprocperuid`
ulimit -Hu 512
ulimit -Su 512
# must match `sysctl kern.maxfilesperproc`
ulimit -Hn 10240
ulimit -Sn 10240
Upon applying the bash_profile settings . ~/.bash_profile
I get the following error:
-bash: ulimit: max user processes: cannot be modify limit: Invalid argument
This then results in $ sqlplus / as sysdba
not functioning correctly with a Segmentation fault: 11
The output of $ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 10240
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 512
virtual memory (kbytes, -v) unlimited
If any one knows how I can apply these ulimit settings to the oracle user I have created to allow me to install sqlplus and therefore create a db, that would be great.
AFAIK there's no way to install it yet. – Sathyajith Bhat – 2011-07-21T17:06:47.187
@sathya any explanation as to why? – Cellze – 2011-07-22T08:43:05.170
from what I've read Lion brings in soem changes which breaks things - like setting up of ulimit – Sathyajith Bhat – 2011-07-22T10:24:26.520
@sathya do you have the links, wouldn't mind reading up on that – Cellze – 2011-07-22T16:40:29.750
ye, have a look at this thread http://news.ycombinator.com/item?id=2785278
– Sathyajith Bhat – 2011-07-22T16:51:40.600Just an update on this. I have found that the subtle differences found in oracle versions between Mac OS X and Linux has now pushed me to install a VM to mirror a production server setup as close as possible. – Cellze – 2012-02-29T16:45:24.070