The Oracle Internet Directory 11.1.1.7.0 VM Template is a ready-to-go environment that you can run on Oracle VM Server. It consists of Oracle Database 11.1.0.7 and Oracle Internet Directory 11.1.1.7.0. You download the template, perform a few configuration steps and, within a short time, Oracle Database and Oracle Internet Directory are installed, running, and ready to use. You can also use the template to quickly install Oracle Internet Directory in a non-VM environment.
The template provides default values that might not be appropriate in all environments.
Follow these steps to install the operating system, Oracle Database, and Oracle Internet Directory 11.1.1.7.0 into an Oracle VM environment.
Install the Oracle VM server as described in the Oracle VM documentation for your specific release:
http://www.oracle.com/technetwork/documentation/vm-096300.html
Download the VM template files for Oracle Internet Directory, oidhome.tgz
and OVM_EL5U2_X86_64_ORACLE11G_PVM_1.tgz
, from http://edelivery.oracle.com
.
Copy the template files to dom0 /OVS/seed_pool
.
Change to that directory and extract the files, as follows:
cd /OVS/seed_pool tar xzf OVM_EL5U2_X86_64_ORACLE11G_PVM_1.tgz tar xzf oidhome.tgz
Change to the directory containing the configuration file vm.cfg
.
cd OVM_EL5U2_X86_64_ORACLE11G_PVM
Edit vm.cfg
, setting VCPU, Memory, and network (VIF) values appropriately for this VM. Recommendations for sizing and tuning Oracle Internet Directory are documented in the Oracle Internet Directory chapter in the Oracle Fusion Middleware Performance and Tuning Guide.
Start Oracle VM by typing:
xm create vm.cfg
By default, Oracle VM starts a VNC server on port 5900. From another window, using a VNC client, connect to the host where Oracle VM is running, at port 5900.
You are prompted for installation and configuration information. Provide the information to set up the Oracle 11g database.
Log into the host as user root
, password ovsroot
. Changing the password is recommended.
Oracle Internet Directory is now installed in the home directory /oidhome/app/mwhome
.
Perform the following steps to install the Oracle Internet Directory template with an existing VM that already has the Oracle Database template with Real Application Clusters.
Download the VM template file oidhome.tgz
from http://edelivery.oracle.com
.
Copy the file to dom0 /OVS/seed_pool
.
Change to that directory and extract the file, as follows:
cd /OVS/seed_pool tar xzf oidhome.tgz
This extracts the oidhome.img
file under: /OVS/seed_pool/OVM_EL5U2_X86_64_ORACLE11G_PVM
Change to the directory containing the configuration file vm.cfg
. For example:
cd OVM_EL5U2_X86_64_ORACLE11G_PVM
Edit vm.cfg
, adding oidhome.img
as a disk, as shown in bold:
disk = ['file:/OVS/seed_pool/OVM_EL5U2_X86_64_ORACLE11G_PVM/System.img,xvda,w','file:/OVS/seed_pool/OVM_EL5U2_X86_64_ORACLE11G_PVM/oracle11g_x86_64_asm.img,xvdb,w', 'file:/OVS/seed_pool/OVM_EL5U2_X86_64_ORACLE11G_PVM/oidhome.img,xvdc,w'
]
Restart the guest OS by typing:
xm shutdown OVM_EL5U2_X86_64_ORACLE11G_PVM xm create vm.cfg
Create the /oidhome
directory:
mkdir /oidhome
Mount the Oracle Internet Directory image:
mount -t ext3 /dev/xvdc /oidhome
Note:
If you need to mount to a directory other than /oidhome
, you must relink the Oracle Internet Directory binary by typing:
cd /mntPoint/app/mwhome/ldap/lib
make -f ins_ldap.mk install
Set the owner and group for the /mntPoint/app directory tree:
chown -R oracle /mntPoint/app chgrp -R dba /mntPoint/app
Run oidRoot.sh
:
/mntPoint/app/mwhome/Oracle_Idm1/oidRoot.sh
Switch to the user oracle
:
su oracle
Set the DISPLAY
environment variable.
Set the ORACLE_HOME
environment variable to: /
mntPoint
/app/mwhome/Oracle_IDM1
Change to the directory containing config.sh
and execute it:
cd /mntPoint/app/mwhome/Oracle_IDM1/bin
./config.sh
You are prompted for information. Provide the information to configure the environment.
Download the Oracle WebLogic Server template from http://edelivery.oracle.com
and install it as a separate VM. From the Oracle Internet Directory VM, execute the command:
/mountpoint/app/mwhome/asinst_1/bin/opmnctl registerinstance
Download the VM template file oidhome.tgz
from http://edelivery.oracle.com
.
Extract the file, as follows:
tar xzf oidhome.tgz
This extracts the oidhome.img
file under: ./OVM_EL5U2_X86_64_ORACLE11G_PVM
Copy oidhome.img
to a directory. For example:
cp oidhome.img /u01
Switch to root
user
Create /oidhome
.
mkdir /oidhome
Mount the image. For example:
mount -t ext3 -o loop /u01/oidhome.img /oidhome
Change to the directory /oidhome
and set the owner and group for the /oidhome/app
tree:
cd /oidhome chown -R oracle ./app chgrp -R dba //app
Run oidRoot.sh
:
/oidhome/app/mwhome/Oracle_Idm1/oidRoot.sh
Set the DISPLAY
environment variable.
Set the ORACLE_HOME
environment variable to: /oidhome/app/mwhome/Oracle_IDM1
Install the Oracle database, as described in the Oracle Database Installation Guide for your platform.
Run /oidhome/app/mwhome/Oracle_IDM1/bin/config.sh
to configure Oracle Internet Directory.