Friday 27 October 2017

OHS 12c Webgate Deployment and configuration with OAM 12c ( 12.2.1.3.0)

OHS 12c Webgate Deployment and configuration with OAM 12c ( 12.2.1.3.0)

  1. Login to oamconsole -> Application Security -> SSO Agents -> create Webgate



  1. Make sure the HTTP 12c Server is configured and installed
Just for the reference if not already installed:

  1. Deployment of Webgate
Since OHS 12c, the OAM Webgate gets shipped along with the OHS installers so no need to install a separate Webgate binary.

Run the following command in-order to deploy the webgate:
Cd /oracle/Middleware/OHS_HOME/webgate/ohs/tools/deployWebGate

./deployWebGateInstance.sh -w /oracle/Middleware/OHS_HOME/user_projects/domains/ohs_domain/config/fmwconfig/components/OHS/instances/OHS_Instance1 -oh /oracle/Middleware/OHS_HOME/




  1. Configure Webgate :
Run the following command:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/oracle/Middleware/OHS_HOME/lib

cd /oracle/Middleware/OHS_HOME/webgate/ohs/tools/setup/InstallTools/

./EditHttpConf -w /oracle/Middleware/OHS_HOME/user_projects/domains/ohs_domain/config/fmwconfig/components/OHS/instances/OHS_Instance1 -oh /oracle/Middleware/OHS_HOME/



  1. Copying the OAM Artefacts to the Webgate :
Copy cwallet.sso and ObAccessClient.xml file from “/oracle/Middleware/Oracle_Home/user_projects/domains/oam_domain1/output/DCCWebgate” to “/oracle/Middleware/OHS_HOME/user_projects/domains/ohs_domain/config/fmwconfig/components/OHS/instances/OHS_Instance1/webgate/config/” location


  1. Restart OHS server instance:

  1. Try to access OHS index.html, the default OAM login page should get displayed
http://<<ohs_hostname>>:7777/index.html

Enter your weblogic credentials for the OAM SSO


Result:

The basic SSO has been configured in between the OHS12c and OAM 12c




Thursday 26 October 2017

OHS 12c (12.2.1.3.0 ) PS3 Installation and Configuration in Collocated Mode

  1. OHS 12c (12.2.1.3.0 ) PS3 Installation and Configuration in Collocated Mode (Managed through WebLogic server):
Oracle Web Tier 12cR2 includes Oracle HTTP Server 12cR2 (along with built-in Oracle WebLogic Server Proxy Plug-In 12cR2).
Download the Installers using the below link:

Download the Infrastructure Installers using the below link:
Installation Document Link:
  1. Installation and configuration of Oracle Fusion Middleware Infrastructure Domain:
Before configuring Oracle HTTP Server (OHS 12c) in a WebLogic Server Domain, create the Oracle Fusion Middleware Infrastructure domain. This installation requires Infrastructure and OHS Installation at the same Oracle Home location.

    1. Unzip the downloaded IDM infrastructure zip, you can find below jar:
      1. fmw_12.2.1.3.0_infrastructure.jar

    1. Unzip the downloaded OHS 12c  installer zip, you can find below jar:
      1. fmw_12.2.1.3.0_ohs_linux64.bin



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











  1. Installing the Oracle HTTP Server Software ( OHS 12c)
Run the command:  ./fmw_12.2.1.3.0_ohs_linux64.bin








Click on Install, The installation of OHS 12c will begin with the below screen:



  1. Starting the Repository Creation Utility (RCU) for FMW Infrastructure
Navigate to the ORACLE_HOME/oracle_common/bin directory.
Start RCU:  ./rcu






Before configuring a Fusion Middleware Infrastructure domain, install the following schemas on a certified database to use them with this Oracle Fusion Middleware release.

  • Metadata Services (MDS)
  • Audit Services (IAU)
  • Audit Services Append (IAU_APPEND)
  • Audit Services Viewer (IAU_VIEWER)
  • Oracle Platform Security Services (OPSS)
  • User Messaging Service (UMS)
  • WebLogic Services (WLS)
  • Service Table (STB)

Select all the schemas as highlighted below:















  1. Configuring Oracle HTTP Server Software ( OHS 12c) in a WebLogic Server Domain

Run the command:  
Cd /oracle/Middleware/OHS_HOME/oracle_common/common/bin/
./config.sh










Since we have not created the Oracle Fusion Middleware Infrastructure domain, we are going to create it by selecting Advanced Configurations, ensure that you select System Components too.













  1. Starting the Servers:
  1. Start the Node Manager:
Cd /oracle/Middleware/OHS_HOME/user_projects/domains/ohs_domain/bin
./startNodeManager.sh


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


  1. Starting the Oracle HTTP Server Instance

Sign in to Fusion Middleware Control:








  1. To start / stop the Oracle HTTP Server instance using WLST command line:

Starting Oracle HTTP Server Instances Using WLST
To start an Oracle HTTP Server instance by using WLST, use the start() command in a WebLogic Server Domain or nmStart() for a standalone domain. The commands are illustrated in the following table.

start('ohs1')
or
nmStart(serverName='ohs1', serverType)


shutdown('OHS_Instance1')
start('OHS_Instance1')


  1. To start / stop the Oracle HTTP Server Instances from the Command Line
To stop Oracle HTTP Server instances from the command line via a script.

Enter the following command:

$DOMAIN_HOME/bin/stopComponent.sh componentName
For example: $DOMAIN_HOME/bin/stopComponent.sh OHS_Instance1

  1. Access the OHS instance: