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:
Download URL of Application Development Framework (ADF): Oracle Application Development Framework 11g Release 1 (22.214.171.124.0)
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
Recommended operating system packages
binutils-126.96.36.199.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
Checking Java version using java –version and which java is using.
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%
Register for Security Updates: Click on Check box and then Continue
Choose Install Type: Choose Typical
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.
Choose Product Installation Directories:
Installation Complete: Uncheck Run Quickstart
3.3 Install Oracle Unified Directory 11g (188.8.131.52.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_184.108.40.206.0_disk1_1of1.zip
$./runInstaller -jreloc $JAVA_HOME
Install Software Updates: Select Skip Software Updates and Click Next.
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.
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.
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.
Note – The installation response file is not saved by default-you must click Save to retain it.
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.
Install Software Updates:
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:
4. On the Welcome panel, click Next. Go to $OUD_HOME then run following command.
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.
Security Operations: Select Enable SSL and Enable StartTLS for LDAP.
Topology Options: Select this will be a stand-alone server. Click Next to Continue.
Directory Data Directory Base DN. Enter the base DN for your directory. The default Base DN is dc=example,dc=com.
Oracle Component Integration: Select No specific integration then click next
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
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=*)"
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