DSEE 7 on RHEL 6 Install Notes

Just a few notes following an install of 64-bit Directory Server Enterprise Edition (DSEE) 7 (actually Oracle DSEE 11g 11.1.1.5.0) on Red Hat Enterprise Linux (RHEL) 6.2 x86_64.

The install was done on a pretty lean RHEL 6 image, and so was lacking a lot of the stuff I usually take for granted: like all the 32-bit versions of core libraries as well as the development packages for same. It was also missing the OpenLDAP client utilities. Enough to make you want to go out to the range and pile up some brass.

In the end I learned two important lessons:

1. To install DSEE on RHEL 6 you really want the latest zip distribution from Oracle Technology Network. At this writing that’s 11.1.1.5.0.

2. You’ll need both the 64-bit and 32-bit versions of the following libraries:

compat-libstdc++-33-3.23-69.el6
libstdc++-4.4.6-3.el6
libstdc++-devel-4.4.6-3.el6

3. Also make sure you’ve got the openldap-clients package installed. Makes life much easier.

4. Make sure the limits in /etc/security/limits and kernel parameters in /etc/sysctl.conf are set to something reasonable — in other words less restrictive than the defaults.

5. When creating my directory instances I always located them directly under $DSHOME (e.g. /opt/sun/dsee7) and usually follow the following naming convention:

slapd-[short hostname]-[type]

for example, “/opt/sun/dsee7/slapd-myhost-user”.

6. Check out my DSEE Cheat Sheet for how to create and initialize instances as well as perform various post installation configuration tasks.

Here’s a simple init script for DSEE 7 on RHEL 6:

#!/bin/bash
# Sun DSEE init script
# /etc/rc.d/init.d/dsee
#
# chkconfig: 345 98 29
# description: Starts/Stops Sun DSEE
#
DSHOME=/opt/sun/dsee7
LD_LIBRARY_PATH=$DSHOME/lib:$LD_LIBRARY_PATH
PROG_PATH=$DSHOME/bin
SERVER=`hostname --short`
INST1=$DSHOME/slapd-$SERVER-1
DSUSER=sunds

case $1 in
start)
    $PROG_PATH/dsadm start $INST1
       ;;
stop)
    $PROG_PATH/dsadm stop $INST1
       ;;
restart)
    $PROG_PATH/dsadm restart $INST1
       ;;
status)
    $PROG_PATH/dsadm info $INST1
       ;;
*)
    echo "Usage: $0 { start | stop | restart | status}"
        ;;
esac

Final Note: As I was doing this I kept thinking “if only there was a zip distribution for 389 Directory …”