Monday, September 10, 2012

Installing Oracle Access Manager 11.1.1.5.0


This documentation serves as a guide for installation of OAM 11g

OS: Red Hat Enterprise Linux 5.5

1. Download binaries at Oracle Identity and Access Management (11.1.1.5.0) http://www.oracle.com/technetwork/middleware/id-mgmt/oid-11g-161194.html  
ofm_iam_generic_11.1.1.5.0_disk1_1of1.zip






2. Create a service account or a user id which is going to be use for administration of OAM. In my case, I am using appadmin.

3. su as root and install the necessary pre-requisite for the application. 
 
yum install <package name>
·         binutils-2.17.50.0.6
·         compat-libstdc++-33-3.2.3
·         compat-libstdc++-33-3.2.3 (32 bit)
·         elfutils-libelf-0.125
·         elfutils-libelf-devel-0.125
·         gcc-4.1.2
·         gcc-c++-4.1.2
·         glibc-2.5-24
·         glibc-2.5-24 (32 bit)
·         glibc-common-2.5
·         glibc-devel-2.5
·         glibc-devel-2.5 (32 bit)
·         glibc-headers-2.5
·         ksh-20060214
·         libaio-0.3.106
·         libaio-0.3.106 (32 bit)
·         libaio-devel-0.3.106
·         libaio-devel-0.3.106 (32 bit)
·         libgcc-4.1.2
·         libgcc-4.1.2 (32 bit)
·         libstdc++-4.1.2
·         libstdc++-4.1.2 (32 bit)
·         libstdc++-devel 4.1.2
·         make-3.81
·         numactl-devel-0.9.8.x86_64
·         sysstat-7.0.2
·         unixODBC-2.2.11 (32-bit)
·         unixODBC-devel-2.2.11 (64-bit)
·         unixODBC-2.2.11 (64-bit)


Make sure the gcc-java packages are not installed.  Remove any packages related to gcc java.

4. Set Kernel Parameter

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

vi /etc/sysctl.conf 
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

Enter the following command to change the current values of the kernel parameters: 

     # /sbin/sysctl–p

Review the output from this command to verify that the values are correct. If the values are incorrect, edit the /etc/sysctl.conf file, then enter this command again.

5. Set Resource Limits for appadmin


Update the resource limits in the /etc/security/limits.conf configuration file for the installation owner. For example, add the following lines to the/etc/security/limits.conf file:
appadmin soft    nproc   2047
appadmin hard    nproc   16384
appadmin soft    nofile  1024
appadmin hard    nofile  65536
appadmin soft    stack   10240

6. Install JDK 1.6  as root

     # cd /opt/app/binaries
     # ./jdk-6u25-linux-x64.bin
     # mv jdk1.6.0_25 /opt/
     # ln -s /opt/jdk1.6.0_25/bin/java /usr/bin/java
     # java –version    (to confirm the install) 
    
       java version "1.6.0_25"
       Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
       Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)  

     # Set up JAVA_HOME on “appadmin” .bash_profile

7. Install VNC -- VNC is used to display an X windows session running on another computer. Unlike a remote X connection, the xserver is running on the remote computer, not on your local workstation. Your workstation ( Linux or Windows ) is only displaying a copy of the display ( real or virtual ) that is running on the remote machine.

Follow online documentation:
http://gofedora.com/how-to-configure-vnc-server/

1. Install VNC Server on linux thru yum
      # yum install vnc-server
   Note: Also make sure the following packages are installed.
            # yum install xsetroot
            # yum install xterm
            # yum install twm

2. download vnc viewer to your windows local server
3.   ssh to linux box
# ps -ef |grep vnc

When the service is running properly, it should return w/ 
# appadmin 12191     1  1 14:50 pts/0    00:00:00 Xvnc :1 -desktop cer-lx-authu01:1 (appadmin) -httpd /usr/share/vnc/classes -auth /home/appadmin/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /home/appadmin/.vnc/passwd -rfbport 5901 -pn
Process id reflects host name and port its running at.
4.  If the process is not running, start vnc 
# vncserver
Will prompt w/ password to use. Start the service w/ the service account you want to install the service from.
        
5.  Launch viewer point it to the server:port
example: <server_host_name>:5902

8. Install Weblogic 10g. Please refer to the previous post as a guide on how to install weblogic application server. On this example, I am use /opt/app/middleware/wls_home as my weblogic root install.


9. Load Database Schema.

This is needed so the OAM will have a database schema set up. You need to have an Oracle db and user access to be able to do this step. Work with your DBA's to create the user access.

Info provided by DBA:

Userid :  <userid>
Password: <password>

OIMU=(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = <hostname>)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = orau2)(PORT = 1521)) (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = <service_name> )))

Note: OAM_APP needs sysdba privileges


A.  Copy rcuHome/ to your local machine c:\rcuHome
B.  Double click on c:\rcuHome\BIN\rcu.bat > in a windows machine.

Next  >  Create

Note: there seems to be a problem creating the db w/ rcu tool while all the oracle rac service is up. So have the dba stopped all the service but one.
Create a new prefix.

Choose the following:
   Identity Management
         Oracle Identity Manager
         Oracle Access Manager

It will automatically select the other db that are pre-requisite. Technically, if you are not planning on installing identity manager, you do not need to create a schema for it. You can uncheck Oracle Identity Manager.
    
Prompt w/ password

Next 
Next
Next
Creating database…   <INGORE ORA-01450 AND COUPLE OTHER WARNINGS>

 10. Installing OAM


A.  Launch the vnc viewer on your desktop. You will be prompt for password

B.  Drop the binaries to “/opt/app/binaries/ofm_iam_generic_11.1.1.5.0_disk1_1of1.zip”
> unzip ofm_iam_generic_11.1.1.5.0_disk1_1of1.zip
> cd /opt/app/binaries/Disk1/
        > ./runInstaller –ignoreSysPrereqs
        >  Provide the jdk location: /opt/app/jdk1.6.0_25. It will then pop out a installation dialog
 Next
Next





Select "Skip Software updates"


Next



Install



Next



Finish

Pop-up dialog box to run oracleRoot.sh script as root.


root # /opt/app/middleware/OAM_home/oracleRoot.sh

11.  Install OAM to 2nd node. Redo step #10. (Optional: Only for cluster setup)


 
12. Configure OAM

You must run the config.sh to create the domain to run OAM server.

#/opt/app/middleware/OAM_home/common/bin
#./config.sh




Next


Next



Next



Next



Next


Select "OAM Infrastructure" first then select "Configure Selected schema.." click next.



Fill up the highlighted section according to your environment. 



Make sure the test is successful.



Select "Administration Server" and "Managed Servers, Clusters and Machines"



Make sure all the highlighted section are accurate.  Keep this data in mind because this will be use for Admin Console access.



Add the managed server name on each node. If you are setting up one node, you only have to put in one managed server.



Enter cluster name. You can leave the rest as is unless you want to change default settings.



Add the 2 managed server to your cluster by toggling on the arrow. 



Click on Unix Machine tab and add 2 machines. A machine typically correspond to a server host. So if you have 2 physical servers, then you would add 2 machines. Name them whatever you want, here I name them same as their hostname.



Toggle on the arrow to place the servers to the appropriate machine. Its pretty self explanatory.

Review the configuration summary, click create to complete.
 


Done.


13. Move domain files to 2nd node. (Optional:Only for cluster setup)

Login to the first node where you did the configuration on Step #12
 # cd /opt/app/middleware/oracle_common/common/bin
 # ./pack.sh -domain=/opt/app/middleware/projects/domains/uatoam_domain/ -template=/home/appadmin/oam11gtemplate.jar -template_name="oam11g" -managed=true


- copy the jar file to the 2nd node.
- unpack the jar file. 

Login to the 2nd node and unpack the jar file

#  cd /opt/app/middleware/oracle_common/common/bin

# ./unpack.sh -domain=/opt/app/middleware/projects/domains/uatoam_domain/ -template=/home/appadmin/oam_11g_template.jar -app_dir=/opt/app/middleware/projects/domains/uatoam_domain


 
Installation is complete. Refer to the next section on how to start and access OAM.





3 comments:

  1. Ecorptrainings.com provides ORACLE OAM in hyderabad with best faculties on real time projects. We give the best online trainingamong the ORACLE OAM in Hyderabad.
    Classroom Training in Hyderabad India

    ReplyDelete
  2. Hi,

    Appreciate if you could comment on the following Issue...... Thanks!

    While configuring domain for IDM 11.1.1.6.0, I am facing this issue during
    the configuration progress druing the run of $ORACLE_HOMR/bin/config.sh

    geting this Bootstraps Domain configuration Failed. Error
    Iam trying to Configure OID Domain after Installing IDM 11.1.1.6
    software. But the config.sh wizard is getting failed at the Domain
    creation.

    The steps that i 've followed are:

    created 11.2.0.3 database on database server and populated the metadata w/RCU

    Installed sun jdk1.6 on the server

    Installed Weblogic 10.3.6 on server

    Installed IDM 11.1.1.6 Without creating & configuring OID domain on server

    And run config.sh under $ORACLE_HOME/bin, but installer was stuck in the
    “create domain” step, and the below error message could be observed in
    the installer’s log:

    2013-07-04T08:40:42.815+05:30] [as] [ERROR] [] [oracle.as.install.engine.modules.presentation] [tid: 11] [ecid: 0000Jybe2o61zWWzLwePOA1HpETX000002,0] Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=186647296)(ERR=12514)(ERROR_STACK=(ERROR=(CODE=12514)(EMFI=4))))[[

    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=186647296)(ERR=12514)(ERROR_STACK=(ERROR=(CODE=12514)(EMFI=4))))
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)

    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:345)

    And

    progress in calculate progress2

    java.lang.NullPointerExceptionat oracle.as.install.engine.modules.util.fileutils.INIFileReaderUtilities.parseFile(INIFileReaderUtilities.java:185)
    at oracle.as.install.engine.modules.util.fileutils.INIFileReaderUtilities.(INIFileReaderUtilities.java:86)

    at oracle.as.install.engine.modules.util.fileutils.INIFileReaderUtilities.(INIFileReaderUtilities.java:99)
    at oracle.as.idm.install.config.BootstrapConfigManager.doExecute(BootstrapConfigManager.java:850)
    at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)

    Please suggest what could be the Issue,

    Thanks

    Priya

    ReplyDelete
  3. Hello Priya, Would you please try running the create domain from /common/bin/config.sh? Also you want to make sure the rcu version match exactly the version for OIM which is 11.1.1.6

    ReplyDelete