Tuesday, December 24, 2013

OIAM : Environment Setup

Environment Setup (OIAM) for 11g R2ps1:


1. Database Installation
2. Run RCU
3. Jrockit
4. Weblogic Server
5. SOA Installation
6. OIAM Installation
7. Weblogic Domain Creation
8. OIAM Configuration

*************************************************************

1. Database Installation



Copy the Database setup into the desktop.

Set the Host file name: "/etc/hosts”
127.0.0.1       localhost.localdomain  localhost

192.168.x.xx   oiamserver


Run the comand

# yum install oracle-rdbms-server-11gR2-preinstall

# yum update

# groupadd -g 501 oinstall
# groupadd -g 502 dba
# groupadd -g 503 oper
# groupadd -g 504 asmadmin
# groupadd -g 506 asmdba
# groupadd -g 505 asmoper
 
# useradd -u 502 -g oinstall -G dba,asmdba,oper oracle

It will install all the required prerecruities.

Set the Password  for oracle
# passwd oracle

 
Login as the oracle user and add the following lines at the end of the ".bash_profile" file.(we can do this step after Jrockit Installation also)

TMP=/tmp; export TMP

TMPDIR=$TMP; export TMPDIR



ORACLE_HOSTNAME=oiamserver; export ORACLE_HOSTNAME

ORACLE_UNQNAME=orcl; export ORACLE_UNQNAME

ORACLE_BASE=/home/oracle/app/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME

ORACLE_SID=orcl; export ORACLE_SID

JAVA_HOME=/home/oracle/jrockit-jdk1.6.0_37-R28.2.5-4.1.0; export JAVA_HOME



PATH=/usr/sbin:$PATH; export PATH

PATH=$JAVA_HOME/bin:$ORACLE_HOME/bin:$PATH; export PATH



LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
 
 
Install DB using Installer from setup file:
 
./runInstaller
 
-    Select Default to UNICODE when second screen of Installer appear.
-    Install any other using yum install unixODBC-* and ignore 386.
-    Next &gt.
-    (If it is giving issue to on finish than you need to install using root user one RPM. 
rpm –ivh pdksh-5.2.14-30.x86_64.rpm --nodeps)
 
NOTE-(Optional) in PASSWORD MANAGEMENT section... as per DBA advice uncheck all.
-Run two scripts(which will be present by default in the location, Second last screen of the setup) as per the instruction. 
-Done

Restart machine
 

  
 
2. Jrockit 
 
./jrockit-jdk1.6.0_37-R28.2.5-4.1.0-linux-x64
 
Note- If any issue, please check the file permissions.
 
Restart machine
 
 
 
 
3. Run RCU
 
To start RCU RUN , Database should be UP & RUNNING. with ORACLE user
-------Steps to start DB--------
Go to /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin
./lsnrctl (Start the listener)
lsnrctl> start

./sqlplus (Start Sqlplus)
SQL> sys as sysdba
SQL> startup

--------------------------------
 
rpm -ivh libXtst-xx.el6.i686.rpm
 
https://blogs.oracle.com/ecmarch/entry/how_to_run_rcu_on
 
SQL> alter system set open_cursors=3000 scope=both sid='*';
 
System altered.
 
SQL> alter system set processes=3000 scope=spfile sid='*';
 
System altered.
 
restart
 
--------------
1.  Unzip the file.
2.  rcuHome > rcu > bin > ./rcu
3.  (Done)
 
Restart machine
 
 
 

4. Weblogic Server Installation
 
Ø  Java –jar ./wls1036_generic.jar
 
Restart machine
 
 
 
 

5. SOA Installation
 
Unzip the both zip files (V29672-01_1of2.zip , V29672-01_2of2.zip) and run the installer
 
After successfully installation of SOA, apply some (4) patches
1.  p16385074_111160_Generic(1st)(Remember inside this patch there are two patches oapatch[SOA] and sa_opatch[Jdeveloper]. Please install oapatch only for OIAM setup. For any help please find README.txt inside patch )
2.  p13973356_111160_Generic(2nd)
3.  p14196234_111160_Generic(3rd)
4.  p16366204_111160_Generic(4th)

Run 
1         export ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_SOA1
2         export PATH=/home/oracle/Oracle/Middleware/Oracle_SOA1/OPatch:$PATH
 
Unzip all the patches. Enter into the patch folder.
 
Apply the patches:

opatch lsinventory (to just check that how many patches applied)
opatch apply (Apply the patch)
 
Restart machine 
 
 

 
6. OIAM Installation
 
Unzip both the zip file and put it into one folder.
 
Disk1 > ./runInstaller (Run it)
(Ignore if any error coming)
 
After OIAM Installation apply the patches:
 
1.  p16513008_111210_Generic(1st) 
2.  p16472592_111160_Generic(2nd) (Remember inside this patch there are two patches oapatch[SOA] and sa_opatch[Jdeveloper]. Please install oapatch only for OIAM setup. For any help please find README.txt inside patch )
3.  p16400771_111160_Generic(3rd)
 
 
Apply Patch p16513008_111210_Generic (1st)    
           1.  export ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_IDM1
           2.  export PATH=/home/oracle/Oracle/Middleware/Oracle_IDM1/OPatch:$PATH

        Unzip all the patches. Enter into the patch folder.
 
        Apply the patches:

        opatch lsinventory (to just check & Verify applied patches)
        opatch apply (Apply the patch)
 
 
 
Apply Patch p16472592_111160_Generic (2nd)    
           1.  export ORACLE_HOME=/home/oracle/Oracle/Middleware/ oracle_common
           2.  export PATH=/home/oracle/Oracle/Middleware/ oracle_common/OPatch:$PATH
        Unzip all the patches. Enter into the patch folder.
 
        Apply the patches:
 
        opatch lsinventory (to just check & Verify applied patches)
        opatch apply (Apply the patch)
 
 
Apply Patch p16400771_111160_Generic (3rd)   
           1. export ORACLE_HOME=/home/oracle/Oracle/Middleware/ oracle_common
           2.  export PATH=/home/oracle/Oracle/Middleware/ oracle_common/OPatch:$PATH
        Unzip all the patches. Enter into the patch folder.
 
        Apply the patches:
 
        opatch lsinventory (to just check & Verify applied patches)
        opatch apply (Apply the patch)
 
Restart machine
 
 
 

7. Weblogic Server DOMAIN CREATION 
 
Start the Oracle DB:
 
Goto : /home/oracle/app/oracle/product/11.1.2/db_1/bin
 
        ./lsnrctl
        Start
        Exit
 
        ./sqlplus
        User Name: sys as sysdba
        Password: welcome1
        Sql> startup
        Database UP & Running
 
Goto : /home/oracle/Oracle/Middleware/wlserver_10.3/common/bin
 
Run : ./Config.sh (Create New Domain)
 
 
Follow the Instruction.(Shuttle all the machine under the Admin server during this process.). Done. Restart the Machine
 
 
 
 
8. Additional Config
 
DB should be UP & Running.
 
Goto : /home/oracle
 
Run : /home/oracle/Oracle/Middleware/oracle_common/common/bin/wlst.sh /home/oracle/Oracle/Middleware/Oracle_IDM1/common/tools/configureSecurityStore.py -d /home/oracle/Oracle/Middleware/user_projects/domains/oim_domain -c IAM -p welcome1 -m create
 
Successful message.
 
Note- Where oim_domain is the OIAM domain name & welcome1 is the DB Password.
 
1.  Start WebLogic Server
2.  Start soa_server1 Managed Server.
 
 
Goto : /home/oracle/Oracle/Middleware/Oracle_IDM1/bin
Run : ./Config.sh
 
        On First Screen NEXT
        On Second Screen Select ALL(OIM Server, Design Console&Remote Manager)
        On Third Screen
               Connect String : localhost:1521:orcl
               OIM User Name  :       DEV_OIM
               OIM Password   :       welcome1
               MDS User Name  :       DEV_MDS
               MDS Password   :       welcome1
               NEXT
        On Fourth Screen
               WLS Admin URL  :       t3://localhost:7001
               User Name      :       weblogic
               Pasword        :       welcome1
        On Fifth Screen
               OIM Admin Passsword    :       Welcome1
               Deselect ENABLE LDAP SYNC
        On Sixth Screen
               OIM Server Host Name   :       oiamserver
               OIM Server port        :       14000
        On Seventh Screen
               Leave all detail as it is
        Configure > Done
 
 
        Start oim_server1 Manager Server
 
  
 
9. Test the Environment
 
OIM Environment Test :

http://192.168.x.xx:14000/identity  (OIM for User)
 
http://192.168.x.xx:14000/sysadmin  (OIM for Admin)
 
User- xelsysadm
Password- Welcome1
 
OAM Environment Test : 
http://192.168.x.xx:7001/oamconsole
 
userId- weblogic
Password- welcome1
 
INSTALLATION DONE….. Congratulations
 
 
-------------------------------------------------------------------------


Optional : Installation & Configure the Design Console(Local Windows)
 
Installation:
 
Extract both zip (V37472-01_1of2.zip , V37472-01_2of2.zip) files for OIM Setup into one folder.
Disk1 > Install > select ur platform and install it.
Done.
NOTE- We can install the design console (for OIAM) in any machine only you need to provide the details of the servers.
 
Configuration:
 
Goto : C:\Oracle\MiddlewareWLS\Oracle_IDM1\bin
Install/run- Double click on Config
 
        On Second Screen Select only OIM Design Console
        On Second Screen
               OIM Host Name- 192.168.x.xx
               OIM Post- 14000
        Configure & Done.
 
 
File Names-
Jroskit- jrockit-jdk1.6.0_37-R28.2.5-4.1.0-linux-x64
OIAM- V37472-01_1of2.zip & V37472-01_2of2.zip
RCU- V37476-01.zip
RPM-     compat-libstdc++-33-3.2.3-69.el6.i686
                glibc-2.12-1.7.el6.i686
                libstdc++-4.4.4-13.el6.i686
                pdksh-5.2.14-30.x86_64
SOA- V29672-01_1of2.zip & V29672-01_2of2.zip
WLS- wls1036_generic