Friday, January 22, 2010

Ubuntu 9.10 + Oracle 11gR2

First prereqs:

sudo apt-get install build-essential libaio1 libaio-dev lesstif2 lesstif2-dev libc6-i386 libc6-dev-i386 gawk ksh libmotif3 alien libtool lsb-rpm lib32stdc++6 lib32z1 ia32-libs sysstat rlwrap unixodbc unixodbc-dev elfutils rpm x11-utils ksh libxp6

wget http://ftp3.nrc.ca/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-18_amd64.deb
dpkg -i libstdc++5_3.3.6-18_amd64.deb

Into /etc/sysctl.conf:
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_default = 1048576
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576

Into /etc/security/limits.conf
oracle soft nproc 2048
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

and the other usual stuff.

When you get the nnfyboot error:

export LD_LIBRARY_PATH=$ORACLE_HOME/lib
ln ­s /usr/bin/basename /bin/basename
ln ­s $ORACLE_HOME/lib/libclient10.a $ORACLE_HOME/lib/libagtsh.a
$ORACLE_HOME/bin/genagtsh $ORACLE_HOME/lib/libagtsh.so 1.0

and then retry.

Sunday, January 17, 2010

TODO

Today's aim is to reduce items off the TODO list.
Now repotting the plants. Next, bike's battery...

SMBC rules the world... Probably...

Holy Cow!


Wednesday, January 13, 2010

Snow

Since the new year's day I've been mostly working from home. Before that I was sick for 2 weeks. I am still sick but not as bad. Soldiering on now. Concentrate concentrate...

Monday, January 11, 2010

Bandwidth throttling with Macs

To prevent Serkan to leech all of the bandwidth and cause problems for the rest:

sudo su -
# ipfw pipe 1 config bw 200kbit/s
# ipfw add pipe 1 dst-port http
# ipfw add pipe 1 dst-port https
# ipfw add pipe 1 src-port http
# ipfw add pipe 1 src-port htps

And it appears to work...

For other services check /etc/services:

Nicked from this useful listing. I don't know much about BSD compared to Linux.