Thursday 5 October 2017

OID 12c / 12.2.1.3.0 ( PS3) Installation in Collocated Mode

  1. OID 12c / 12.2.1.3.0 ( PS3) Installation :


There are following ways to install the OID 12 c :

  • Standalone Mode:
It has no Weblogic, ADF, ODSM and just has Oracle Internet Directory. In this mode OID must be managed via only command line and not GUI interface ODSM 12.2.1.3.


  • Collocated Mode:
If Weblogic, ADF, ODSM and OID both need to be installed, then it is called as Collocated Mode.  In this case install Oracle Fusion Middleware Infrastructure 12c (12.2.1.3.0) first, followed by the Oracle Internet directory 12c (12.2.1.3.0).


Both Infrastructure and OID must be installed in the same Oracle Home.


Reference:
Installing the Oracle Internet Directory Software


In this blog we are going to install/configure OID in the Collocated Mode.


  1. Download the OID 12c installers using below link:


  1. Make sure your operating system, DB , JDK ( Above jdk1.8.0_131) are present as per the OID 12c Certification matrix:


System Requirements (including Database):
https://docs.oracle.com/html/E82037_01/toc.htm


  1. This installation in Collocated Mode requires installation of FMW Infrastructure. Unzip the downloaded installers zip , you can find below mentioned jars/.bin:
  • fmw_12.2.1.3.0_infrastructure.jar
  • fmw_12.2.1.3.0_oid_linux64.bin




  1. Install Oracle Fusion Middleware Infrastructure 12.2.1.3.0
Run the command :  java -jar fmw_12.2.1.3.0_infrastructure.jar




Click on Next:


Select skip auto update and click on Next


Enter Oracle Home Path and click on Next:




Click on Install




Click on Next:


Click on Finish:




  1. Install Oracle Internet Directory (OID 12c) in Collocated Mode:
Run the following command where the OID installer is present:
./fmw_12.2.1.3.0_oid_linux64.bin






Provide the Oracle Home value as same as provided during Infrastructure Installation and click on “Next”


Here the steps are for Collocated Mode, so I am selecting Collocated option


Select JDK and click on Next:




Click on Install:






  1. Running RCU
The RCU utility is located at the below path:


/app/Middleware/Oracle_Home/oracle_common/bin
./rcu
At Step 1, click on Next :


Click on Next,


Enter the DB Credentials and login as SYS AS SYSDBA and click on Next:


Click on OK


Enter the Prefix name as ‘IDM’ and click on Next






Click on Next:









  1. WebLogic Domain Configuration:
Start the Configuration Wizard to begin configuring a domain.
To start the Configuration Wizard:
Change to the following directory:
<ORACLE_HOME>/oracle_common/common/bin


Cd /oracle/Middleware/Oracle_Home/oracle_common/common/bin
./config.sh


Click on Next:





Click on Next:




Enter Weblogic Credentials and Click on Next:


Click on Next:




Click on Next:


Click on Next:


Click on Create:




Click on Finish:



  1. Performing the Initial Oracle Internet Directory (OID ) Setup:


The OID instances gets started during the installation process. The Weblogic server and Node Manager need to be started to perform the initial OID setup


  1. Start the OID Weblogic Admin Server :
./startWeblogic.sh


  1. Start Node Manager
To start Node Manager, use the startNodeManager script:
• (UNIX) EXISTING_DOMAIN_HOME/bin/startNodeManager.sh


  1. Run WLST command to connect to Admin Server
Run the following command from the location $ORACLE_HOME/oracle_common/common/bin to launch the WLST tool:
./wlst.sh


  1. Since we are running Collocated Oracle Internet Directory configuration, connect to the Administration Server using the following command:
connect('Admin_username','Admin_password','t3://Admin_host:Admin_port’)


ie: connect('weblogic','welcome1','t3://soa-training.oracle.com:7001')


  1. Run the following command from the location /base_domain/serverConfig to perform the initial setup of OID:
oid_setup(orcladminPassword='password',odsPassword='password',realmDN='dc=us,dc=oracle,dc=com')
ie: oid_setup(orcladminPassword='welcome1',odsPassword='welcome1',realmDN='dc=oidlab,dc=oracle,dc=com')




The above command may take couple of minutes depending upon your system performance. The above command can be run multiple times if you face any run time issue.
       The command oid_setup() performs the following operations:
• Sets the password for cn=orcladmin user.
• Creates the oid1 instance. The following parameters are set by default when oid_setup is run:
– instanceName = 'oid1'
– host = 'hostname of the current machine'
– port = '3060'
– machine = 'oidhost1'
This gets created automatically when you run config.sh.
– sslPort = '3131'
• Starts the OID server for oid1 instance.
• Creates the realm.


  1. Access the ODSM Console:
In OID 12c , The port of ODSM is same as Admin server port, so following URL can be used to access the ODSM Console:






The OID 12c is ready to use in Collocated mode

12 comments:

  1. Hi
    thanks for your good manual
    I do all you said,but when I login to EM there is no OID section for control OID instances
    according to oracle official docs OID can be control through EM
    I will be thankful if you answer me

    ReplyDelete
    Replies
    1. Because in advanced configuration you have not selected anything.

      Delete
    2. @abhishek.. I am facing same issue. I dont any option to control OID in weblogic console.

      Could you please help me where I went wrong.

      Delete
  2. Hello Abhishek,

    This is great. Really thankful for your share.
    Could you please share the next part of this integration. I mean Installing and configuring Oracle Access Manager.. Etc.

    Thanks,
    Govind

    ReplyDelete
  3. Refer my other blogs on 12c, you will get more details about OAM and OHS

    ReplyDelete
  4. @abhishek Is it possible to install oracle access manager and OID under single fusion middleware.

    ReplyDelete
  5. It was not supported prior to 12c version . However, I have not checked on 12c . Request you to kindly check and keep us informed as well .. thanks

    ReplyDelete
  6. Hi Abhishek, I am facing following issue while hitting oid_config commands.

    wls:/oid_domain/serverConfig/> oid_setup(orcladminPassword='test',odsPassword='test',realmDN='dc=us,dc=koushik,dc=com')
    Location changed to edit custom tree. This is a writable tree with No root.
    For more help, use help('editCustom')

    Starting an edit session ...
    Started edit session, be sure to save and activate your changes once you are done.
    Traceback (innermost last):
    File "", line 1, in ?
    File "/opt/apps/ssoclone/product/64bit/fmw_infra/oid/plugins/wlst/oid-wlst-dependencies.jar!/wlstScriptDir/OidCustomCommands.py", line 14, in oid_setup
    File "/opt/apps/ssoclone/product/64bit/fmw_infra/oid/plugins/wlst/oid-wlst-dependencies.jar/wlstScriptDir/oid_handler.py", line 274, in oid_doSetup
    File "/opt/apps/ssoclone/product/64bit/fmw_infra/wlserver/modules/com.oracle.weblogic.management.scripting.jar/weblogic/management/scripting/utils/modules/wlstModule.py", line 38, in invoke
    File "/tmp/wlst_module11134632175722454250.py", line 753, in wlstInvoke
    File "/tmp/wlst_module37462869576492218605.py", line 240, in raiseWLSTException
    WLSTException: Error occurred while performing invoke : Creation of wallets failed for domain "/opt/apps/ssoclone/product/64bit/fmw_infra/user_projects/domains/oid_domain"
    Use dumpStack() to view the full stacktrace :
    wls:/oid_domain/editCustom/oracle.oid.mbeans/oracle.oid.mbeans:type=OIDSystemComponent,name=OIDComponentManager>
    wls:/oid_domain/editCustom/oracle.oid.mbeans/oracle.oid.mbeans:type=OIDSystemComponent,name=OIDComponentManager>
    wls:/oid_domain/editCustom/oracle.oid.mbeans/oracle.oid.mbeans:type=OIDSystemComponent,name=OIDComponentManager>
    wls:/oid_domain/editCustom/oracle.oid.mbeans/oracle.oid.mbeans:type=OIDSystemComponent,name=OIDComponentManager>
    wls:/oid_domain/editCustom/oracle.oid.mbeans/oracle.oid.mbeans:type=OIDSystemComponent,name=OIDComponentManager> exit


    Any idea why this is happening.

    ReplyDelete
    Replies
    1. I found the answer.. Its due to environment variables set.. We arent supposed to set any until everything is complete

      Delete
    2. I have the same issue. Can you kindly explain more details what you did to resolve this please?

      Delete
    3. I have the same issue. Can you kindly explain more details what you did to resolve this please?

      Delete
  7. @Abhishek after this configuration, i want to setup multimaster replication ..but i am unable to see OID management in EM console ..any suggestion how to configure?

    ReplyDelete