Dec 27 15

Installing and Configuring Oracle Unified Directory 11g

Tamim Khan

Oracle Unified Directory can be managed by using the command line or by using the graphical Oracle Directory Services Manager (ODSM) interface. ODSM relies on Oracle WebLogic Server and on the Oracle Application Development Framework, so, if you plan to use ODSM you must install these components.

This section describes how to obtain and install Oracle Unified Directory, Oracle WebLogic Server, and the Oracle Application Development Framework. The ODSM bits are installed when you install Oracle Unified Directory but ODSM must be configured when you have installed Oracle WebLogic Server and the Oracle Application Development Framework.

1. DOWNLOAD INSTALLATION MEDIA

Download URL of Oracle Unified Directory:

http://www.oracle.com/technetwork/middleware/id-mgmt/downloads/oid-11gr2-2104316.html

image001

Download URL of Application Development Framework (ADF): Oracle Application Development Framework 11g Release 1 (11.1.1.9.0)
http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html

image002

2.    PREPARE ENVIRONMENT FOR INSTALLATION

You must provide Oracle Unified Directory with information about the location of the Java installation that should be used by setting the JAVA_HOME environment variable. The setup will not work if the JAVA_HOME environment variable is not set, or does not point to the root of a valid (at least Java 1.7) installation.

2.1    Configuring Kernel Parameters

Using any text editor, create or edit the /etc/sysctl.conf file, and add following lines.

fs.aio-max-nr = 1048576
fs.file-max = 6815744
#kernel.shmall = 2097152
#kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586

2.2    Software Requirements Check for OUD, IAM Suit, SOA

Operating system certification

Oracle-7,redhat-7,redhat-6,oracle-6,oracle-5.6,enterprise-5.4,enterprise-4,enterprise-5,redhat-5.4,redhat-4,redhat-5,SuSE-10,SuSE-11

Recommended operating system packages

binutils-2.20.51.0.2-5.11.el6-x86_64
compat-libcap1-1.10-1-x86_64
compat-libstdc++-33-3.2.3-69.el6-x86_64
compat-libstdc++-33-3.2.3-69.el6-i686
libgcc-4.4.4-13.el6-i686
libgcc-4.4.4-13.el6-x86_64
libstdc++-4.4.4-13.el6-x86_64
libstdc++-4.4.4-13.el6-i686
libstdc++-devel-4.4.4-13.el6-x86_64
sysstat-9.0.4-11.el6-x86_64
gcc-4.4.4-13.el6-x86_64
gcc-c++-4.4.4-13.el6-x86_64
glibc-2.12-1.7.el6-i686
glibc-2.12-1.7.el6-x86_64
glibc-devel-2.12-1.7.el6-x86_64
glibc-devel-2.12-1.7.el6
libaio-0.3.107-10.el6-x86_64
libaio-devel-0.3.107-10.el6-x86_64

2.3    Create new groups and Oracle User

Create User in Linux Box

echo "Adding group/user for oracle"
groupadd -g 601 oracle
groupadd -g 602 oinstall
useradd -c "Middleware Software Owner " -d /oracle -g 601 -m -s /bin/bash -u 601 oracle

To change password use the following command
passwd oracle

If the oracle user exists usermod -g oinstall -G dba,oper oracle

2.4    Creating Required Directories and Change the Owner Ship

Enter the following command to display information about all mounted file

# df -h
# mkdir -p /mount_point/app/
# chown -R oracle:oinstall /mount_point/app/
# chmod -R 775 /mount_point/app/

For example:
mkdir -p /oracle/Middleware/
chown -R oracle:oinstall /oracle/Middleware/
chmod -R 775 /oracle/Middleware/

2.5    Environment Settings for OUD

#Host
export ORACLE_HOSTNAME=iamr2ps3.tigeritbd.com

#WebLogic
export APP_SERVER=weblogic
export MW_HOME=/oracle/Middleware
export WL_HOME=$MW_HOME/wlserver_10.3
export WLS_HOME=$WL_HOME/server
export ANT_HOME=$MW_HOME/modules/org.apache.ant_1.7.1
export DOMAIN_HOME=$MW_HOME/user_projects/domains/IAMAccessDomain

#Java
export JAVA_VENDOR=ORACLE-JDK
export JAVA_HOME=/usr/java/jdk1.7.0_79

#Oracle Unified Directory instance 
export INSTANCE_NAME=oud-instance1
export OUD_HOME=$MW_HOME/oud_home
export OUD_ORACLE_HOME=$MW_HOME/oud_home
export OUD_INSTANCE=$MW_HOME/oud-instance1/OUD/

#PATH for JDK and JRE
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH

3.    START INSTALLATION PROCESS

3.1    Install of JDK7

Make sure that execute permissions are set
Run this command as a root user: rpm -ivh jdk-7u79-linux-x64.rpm
image003

Checking Java version using java –version and which java is using.

image004

3.2    Install WebLogic Server 11g R1

You must install Oracle WebLogic Server as the same user who installed Oracle Unified Directory.

#java -jar wls1036_generic.jar
 Extracting 0%...........................................100%

Welcome
image005

Choose Middleware Home Directoty: In our case we are using /oracle/Middlarare
image006

Register for Security Updates: Click on check box and yes, then clink next.
image007

Register for Security Updates: Click on Check box and then Continue

image008

Choose Install Type: Choose Typical

image009

JDK Selection: If environment settings and installation of JDK is ok then local JDK selected automatically. If you have multiple JDK then select which JDK you want to use for Weblogic.

image010

Choose Product Installation Directories:

image011

Installation Summery:

image012

Installation Progress:

image013

Installation Complete: Uncheck Run Quickstart

image014

3.3    Install Oracle Unified Directory 11g (11.1.2.3.0)

Start the Oracle Universal Installer by running the runInstaller script from Disk1, specifying the location of a valid Java installation, before that unzip the ofm_oud_generic_11.1.2.3.0_disk1_1of1.zip

$./runInstaller -jreloc $JAVA_HOME

Welcome screen:
image015

Install Software Updates:  Select Skip Software Updates and Click Next.

image016

Prerequisites Check:  Monitor the prerequisites checking. If there is an issue, an error or warning message is displayed. Investigate the issue and resolve it. After resolving the issue, click Retry to restart the prerequisite checks.

image017

Specify Installation Location:
OUD Base Location Home:  This directory will house any Oracle Unified Directory instances that are configured at a later stage.
Oracle Home Directory: The Installer uses the name you enter in this field to create the Oracle Home directory under the location you enter in the OUD Base Location field. The Installer installs the files (such as binaries and libraries) required to host Oracle Unified Directory in the Oracle Home directory. The Oracle Home directory is commonly referred to as ORACLE_HOME.
image018

Installation Summary : Click Save to save the installation response file, which contains your responses to the Installer prompts and fields. You can use this response file to perform silent installations. Click Install. The Installation Progress screen is displayed.

image019

Note – The installation response file is not saved by default-you must click Save to retain it.

Installation Progress:
image020

Installation Complete:

image021

3.4    Installing Oracle ADF for Oracle WebLogic Server

Oracle Directory Services Manager is a J2EE application that runs inside an Oracle WebLogic Server container and relies on certain libraries that are not installed with the Oracle Unified Directory software. These libraries are provided in the Oracle Application Development Framework. If you plan to manage Oracle Unified Directory with ODSM, you must therefore install the Oracle Application Development Framework.

Welcome screen:
image022

Install Software Updates:

image023

Prerequsite Check:

image024

Installation Location:

image025

Application Server:

image026

Installation Summary:

image027

Installation Progress:

image028

Installation Complete:

image029

4.    SETTING UP THE DIRECTORY SERVER BY USING GUI INTERFACE

Set Up the Directory Server Using the GUI
1.    Ensure that your JAVA_HOME environment variable is set to a supported JVM installation (at least Java 1.7).
2.    Run the oud-setup command from /oracle/Middleware/oud_home to configure the directory server installation.
3.    The default instance directory name is asinst_1, with subsequent instances on the same server named asinst_2, asinst_3, and so on. To specify a different instance name, set the INSTANCE_NAME environment variable before you run the setup, for example:
export INSTANCE_NAME=oud-instance1
4.    On the Welcome panel, click Next. Go to $OUD_HOME then run following command.
$sh oud-setup
image030

Welcome:

image031

Server Settings: On the Server Settings panel, enter the following information: Click on Configure button for LDAP Secure Access, also provide password for Directory Manager Account.

image032

Security Operations: Select Enable SSL and Enable StartTLS for LDAP.

image033

Topology Options: Select this will be a stand-alone server. Click Next to Continue.

image034

Directory Data Directory Base DN. Enter the base DN for your directory. The default Base DN is dc=example,dc=com.

image035

Oracle Component Integration: Select No specific integration then click next

image036

Server Tuning:

image037

Review:  Select Start Server when Configuration has completed to start the server after the directory server has been configured. On Windows systems, select Start Server as a Windows service, if desired

image038

Progress:

image039

Finished: 

image040

Click Close.

Test whether the directory server has been set up and started successfully by searching an entry in the directory. For example:
Go to instance-dir/oud/bin/ then run following command.

cd $OUD_INSTANCE/bin
$ ldapsearch -h localhost -p 1389 \
-D "cn=directory manager" -w Tigerit1 -b "dc=oud,dc=tigeritbd,dc=com" "(objectclass=*)"

image041

5.    START STOP ORACLE UNIFIED DIRECTORY

•    To start run script form $OUD_INSTANCE/bin/start-ds
•    To stop run script form $OUD_INSTANCE/bin/stop-ds

Oracle Documentation: http://docs.oracle.com/cd/E52734_01/oud/index.html