R Using the Oracle Internet Directory VM Template

The Oracle Internet Directory 11.1.1.6.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.6. 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.

R.1 Installing Operating System, Oracle Database, and Oracle Internet Directory

Follow these steps to install the operating system, Oracle Database, and Oracle Internet Directory 11.1.1.5.0 into an Oracle VM environment.

  1. Install the Oracle VM server as described in Oracle VM Server Installation Guide.

  2. 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.

  3. Copy the template files to dom0 /OVS/seed_pool.

  4. 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
    
  5. Change to the directory containing the configuration file vm.cfg.

    cd OVM_EL5U2_X86_64_ORACLE11G_PVM
    
  6. 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.

  7. Start Oracle VM by typing:

    xm create vm.cfg
    
  8. 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.

  9. You are prompted for installation and configuration information. Provide the information to set up the Oracle 11g database.

  10. Log into the host as user root, password ovsroot. Changing the password is recommended.

  11. Oracle Internet Directory is now installed in the home directory /oidhome/app/mwhome.

R.2 Installing Oracle Internet Directory Template with an Existing Oracle VM that has Oracle Database

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.

  1. Download the VM template file oidhome.tgz from http://edelivery.oracle.com.

  2. Copy the file to dom0 /OVS/seed_pool.

  3. 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

  4. Change to the directory containing the configuration file vm.cfg. For example:

    cd OVM_EL5U2_X86_64_ORACLE11G_PVM
    
  5. 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'
    ]
    
  6. Restart the guest OS by typing:

    xm shutdown OVM_EL5U2_X86_64_ORACLE11G_PVM
    xm create vm.cfg
    
  7. Create the /oidhome directory:

    mkdir /oidhome
    
  8. 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
    
  9. Set the owner and group for the /mntPoint/app directory tree:

      chown -R oracle /mntPoint/app
            chgrp -R dba /mntPoint/app
    
  10. Run oidRoot.sh:

    /mntPoint/app/mwhome/Oracle_Idm1/oidRoot.sh
    
  11. Switch to the user oracle:

    su oracle
    
  12. Set the DISPLAY environment variable.

  13. Set the ORACLE_HOME environment variable to: /mntPoint/app/mwhome/Oracle_IDM1

  14. Change to the directory containing config.sh and execute it:

    cd /mntPoint/app/mwhome/Oracle_IDM1/bin
    ./config.sh
    
  15. You are prompted for information. Provide the information to configure the environment.

R.3 Registering Oracle Internet Directory for Oracle Enterprise Manager Fusion Middleware Control and ODSM Management

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

R.4 Using the Oracle Internet Directory OVM image in a Non-OVM Environment

  1. Download the VM template file oidhome.tgz from http://edelivery.oracle.com.

  2. Extract the file, as follows:

    tar xzf oidhome.tgz
    

    This extracts the oidhome.img file under: ./OVM_EL5U2_X86_64_ORACLE11G_PVM

  3. Copy oidhome.img to a directory. For example:

    cp oidhome.img /u01
    
  4. Switch to root user

  5. Create /oidhome.

    mkdir /oidhome
    
  6. Mount the image. For example:

    mount -t ext3 -o loop /u01/oidhome.img /oidhome
    
  7. 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
    
  8. Run oidRoot.sh:

    /oidhome/app/mwhome/Oracle_Idm1/oidRoot.sh
    
  9. Set the DISPLAY environment variable.

  10. Set the ORACLE_HOME environment variable to: /oidhome/app/mwhome/Oracle_IDM1

  11. Install the Oracle database, as described in the Oracle Database Installation Guide for your platform.

  12. Run /oidhome/app/mwhome/Oracle_IDM1/bin/config.sh to configure Oracle Internet Directory.

R.5 Default Values

The template provides the following default values:

Entity Value

Root password

ovsroot

Oracle Database home

/u01/app/oracle/11.1.0/db_1

Oracle Internet Directory home

/oidhome/app/mwhome/Oracle_IDM1

Oracle SID

orcl