Tuesday, October 28, 2014

Start OID OAM SSO components integrated with EBS

Below are the sequence of steps to Start all the OID, Weblogic, OAM, SSO components that are integrated with Oracle EBS environment that is enabled with SSO Single Sign On.

Based on the components (OID DB, WLS, OAM, EBS Access Gate, etc) to be started, below envionment variables should be set accordingly.
[fmwuser@myserver ~]$ more oid_java.env
export JAVA_HOME=/u09/oracle/mw/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
export PATH=$JAVA_HOME/bin:$PATH

[fmwuser@myserver ~]$ more ohs.env
export ORACLE_HOME=/u09/oracle/mwohs/ohs
export ORACLE_INSTANCE=$ORACLE_HOME/instances/instance1
export PATH=$ORACLE_INSTANCE/bin:$PATH

[fmwuser@myserver ~]$ more oid.env
export MW_HOME=/u09/oracle/mw
export WL_HOME=$MW_HOME/wlserver_10.3
export ORACLE_HOME=$MW_HOME/idm
export DOMAIN_HOME=$MW_HOME/user_projects/domains/IDMDomain
export JAVA_HOME=$MW_HOME/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
export ORACLE_INSTANCE=$MW_HOME/asinst_1
export PATH=$ORACLE_HOME/bin:$ORACLE_INSTANCE/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/ldap/bin:$PATH:.

[fmwuser@myserver ~]$ more oam.env
export MW_HOME=/u09/oracle/mwoam
export WL_HOME=$MW_HOME/wlserver_10.3
export ORACLE_HOME=$MW_HOME/iam
export DOMAIN_HOME=$MW_HOME/user_projects/domains/IAMDomain
export JAVA_HOME=$MW_HOME/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$JAVA_HOME/bin:$PATH:/u09/oracle/mwoam/modules/org.apache.ant_1.7.1/bin:.

1. start OID database and listener

[fmwuser@myserver ~]$ su - oracle
Password:
[oracle@myserver ~]$ echo $ORACLE_HOME
/u09/oracle/db/11.2.0
[oracle@myserver ~]$ echo $ORACLE_SID
iamdb
[oracle@myserver ~]$ lsnrctl start
[oracle@myserver ~]$ sqlplus / as sysdba
SQL> STARTUP;

2. Start node manager for IDMDomain

export JAVA_OPTIONS=-DDomainRegistrationEnabled=true
export MW_HOME=/u09/oracle/mw
cd /u09/oracle/mw/wlserver_10.3/server/bin/
nohup ./startNodeManager.sh &

3. START NODE MANAGER FOR IAMDomain
export JAVA_OPTIONS=-DDomainRegistrationEnabled=true
export MW_HOME=/u09/oracle/mwoam
cd /u09/oracle/mwoam/wlserver_10.3/server/bin/
nohup ./startNodeManager.sh &

4. START IDMDomain ADMIN SERVER
Note: boot.properties file is located here /u09/oracle/mw/user_projects/domains/IDMDomain/servers/AdminServer/security/boot.properties
. oid.env

cd /u09/oracle/mw/user_projects/domains/IDMDomain/bin/
nohup ./startWebLogic.sh &

URL to Verify:
http://myserver.mydomain:7031/console

5. START IAMDomain ADMIN SERVER
. oam.env
cd /u09/oracle/mwoam/user_projects/domains/IAMDomain/bin/
nohup ./startWebLogic.sh &

URL to Verify
http://myserver.mydomain:7021/console

6. START OID
su - fmwidm
. oid.env
cd $ORACLE_INSTANCE/bin
cd /u09/oracle/mw/asinst_1/bin
./opmnctl startall
./opmnctl status -l

Processes in Instance: asinst_1
---------------------------------+--------------------+---------+----------+------------+----------+-----------+------
ias-component                    | process-type       |     pid | status   |        uid |  memused |    uptime | ports
---------------------------------+--------------------+---------+----------+------------+----------+-----------+------
oid1                             | oidldapd          |    6715 | Alive    | 2002744560 |   842172 |   0:00:34 | N/A
oid1                             | oidldapd          |    6688 | Alive    | 2002744559 |   354132 |   0:00:35 | N/A
oid1                             | oidmon           |    6643 | Alive    | 2002744558 |   297820 |   0:00:37 | LDAPS:3091,LDAP:3090
EMAGENT                 | EMAGENT    |    6642 | Alive    | 2002744557 |    63900 |   0:00:37 | N/A


7. START IDMDomain MANAGED SERVERS (wls_ods1)

. oid.env
cd /u09/oracle/mw/user_projects/domains/IDMDomain/bin/
nohup ./startManagedWebLogic.sh wls_ods1 &

URL to Verify:
http://myserver.mydomain:7031/console

Troubleshoot: If the above command doesn't start the managed server then it can be started from the console itself.

Enter username to boot WebLogic server:Error: Failed to get value from Standard Input
Enter password to boot WebLogic server:
<May 12, 2014 3:14:17 PM GST> <Warning> <DeploymentService> <BEA-290014> <Invalid user name or password.>
<May 12, 2014 3:14:18 PM GST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 >
<May 12, 2014 3:14:19 PM GST> <Error> <Configuration Management> <BEA-150035> <An attempt was made to download the configuration for the server wls_ods1 by the user  with an invalid password.>
<May 12, 2014 3:14:19 PM GST> <Error> <Configuration Management> <BEA-150021> <The admin server failed to authenticate the identity of the user  starting the managed server. The reason for the error is . 


If you get above error then started wls_ods1 from console.
http://myserver.mydomain:7031/console

8. START IAMDomain MANAGED SERVERS (oam_server1 & eag_server1)
. oam.env
cd $DOMAIN_HOME/bin
cd /u09/oracle/mwoam/user_projects/domains/IAMDomain/bin
nohup ./startManagedWebLogic.sh oam_server1 &
nohup ./startManagedWebLogic.sh eag_server1 &

9. START ORACLE HTTP SERVER OHS
. ohs.env
cd $ORACLE_INSTANCE/bin
./opmnctl startall
./opmnctl status -l

NOTE: Now if you access the EBS login page it will be redirected to the OAM Login page where Active Directory username/password should be entered to login to the EBS application. And ofcourse this login will work only if the EBS environment is integrated with OAM using the steps mentioned in my previous article "Steps to integrate Oracle EBS R12 with OAM 11g SSO": http://samiora.blogspot.ae/2014/02/steps-to-integrate-oracle-ebs-r12-with.html


For any questions and clarifications, please email me on samiora@gmail.com