Pular para o conteúdo principal

Configure Webcenter 11g with OAM 11g and Webgate - Part1




Pre-Requiste:
  1. Install OAM 11.1.1.7
  2. Install OHS 11.1.1.7
  3. Install WebGate 11.1.1.7

Setup: 
  1. Configure Webgate Agent for OHS
  2. Register Webgate Agent to OAM

1. Configure Webgate Agent for OHS
 Execute the following command to copy the required bits of agent from the Webgate_Home directory to the Webgate Instance location

/u01/oracle/Middleware/Oracle_OAMWebGate1/webgate/ohs/tools/deployWebGate/deployWebGateInstance.sh -w /u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1 -oh /u01/oracle/Middleware/Oracle_OAMWebGate1


Ensure that the LD_LIBRARY_PATH variable contains <Oracle_Home_for_Oracle_HTTP_Server>/lib:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/u01/oracle/Middleware/Oracle_WT1/lib

Execute the following command to copy the apache_webgate.template from the Webgate_Home directory to the Webgate Instance location:

/u01/oracle/Middleware/Oracle_OAMWebGate1/webgate/ohs/tools/setup/InstallTools/EditHttpConf -w  /u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1 -oh  /u01/oracle/Middleware/Oracle_OAMWebGate1

 After that, the following line will be added to the httpd.conf

/u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1/httpd.conf
include  "/u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1/webgate.conf"


2. Register Webgate Agent to OAM
   

 Setting Up the RREG Tool
   cd /u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client
   tar -xvzf RREG.ta


Create a file named 
/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/input/WebCenterOAM11gRequest.xml 

and put the following:

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
NAME: OAM11GRequest_short.xml - Template for OAM 11G Agent Registration Request file
(Shorter version - Only mandatory values - Default values will be used for all other fields)
DESCRIPTION: Modify with specific values and pass file as input to the tool.
-->
<OAM11GRegRequest>
    <serverAddress>http://oam-host.domain.com:7001</serverAddress>
    <hostIdentifier>identifier_portal_webcenter</hostIdentifier>
    <agentName>agent_portal_webcenter</agentName>
    <logOutUrls>
        <url>/oamsso/logout.html</url>
    </logOutUrls>
    <protectedResourcesList>
        <resource>/webcenter/adfAuthentication</resource>
        <resource>/webcenter/content</resource>
        <resource>/webcenter/content/.../*</resource>
        <resource>/integration/worklistapp</resource>
        <resource>/integration/worklistapp/.../*</resource>
        <resource>/workflow/sdpmessagingsca-ui-worklist/faces/adf.task-flow</resource>
        <resource>/workflow/WebCenterWorklistDetail/faces/adf.task-flow</resource>
        <resource>/workflow/sdpmessagingsca-ui-worklist</resource>
        <resource>/workflow/sdpmessagingsca-ui-worklist/.../*</resource>
        <resource>/sdpmessaging/userprefs-ui</resource>
        <resource>/sdpmessaging/userprefs-ui/.../*</resource>
        <resource>/rss/rssservlet</resource>
        <resource>/owc_discussions/login!withRedirect.jspa</resource>
        <resource>/owc_discussions/login!default.jspa</resource>
        <resource>/owc_discussions/login.jspa</resource>
        <resource>/owc_discussions/admin</resource>
        <resource>/owc_discussions/admin/.../*</resource>
        <resource>/rest/api/resourceIndex</resource>
        <resource>/rest/api/spaces</resource>
        <resource>/rest/api/spaces/.../*</resource>
        <resource>/rest/api/discussions</resource>
        <resource>/rest/api/discussions/.../*</resource>
        <resource>/rest/api/tags</resource>
        <resource>/rest/api/tags/.../*</resource>
        <resource>/rest/api/taggeditems</resource>
        <resource>/rest/api/taggeditems/.../*</resource>
        <resource>/rest/api/activities</resource>
        <resource>/rest/api/activities/.../*</resource>
        <resource>/rest/api/activitygraph</resource>
        <resource>/rest/api/activitygraph/.../*</resource>
        <resource>/rest/api/feedback</resource>
        <resource>/rest/api/feedback/.../*</resource>
        <resource>/rest/api/people</resource>
        <resource>/rest/api/people/.../*</resource>
        <resource>/rest/api/messageBoards</resource>
        <resource>/rest/api/messageBoards/.../*</resource>
        <resource>/rest/api/searchresults</resource>
        <resource>/rest/api/searchresults/.../*</resource>
        <resource>/activitygraph-engines</resource>
        <resource>/activitygraph-engines/.../*</resource>
        <resource>/wcps/api</resource>
        <resource>/wcps/api/.../*</resource>
        <resource>/cs/idcplg</resource>
        <resource>/cs/idcplg/.../*</resource>
        <resource>/cs/groups</resource>
        <resource>/cs/groups/.../*</resource>
        <resource>/adfAuthentication</resource>
        <resource>/pageletadmin</resource>
        <resource>/pageletadmin/.../*</resource>
        <resource>/authenticateWithApplicationServer</resource>
    </protectedResourcesList>
    <publicResourcesList>
        <resource>/webcenter</resource>
        <resource>/webcenter/.../*</resource>
        <resource>/webcenterhelp</resource>
        <resource>/webcenterhelp/.../*</resource>
        <resource>/owc_discussions</resource>
        <resource>/owc_discussions/.../*</resource>
        <resource>/rss</resource>
        <resource>/rss/.../*</resource>
        <resource>/workflow</resource>
        <resource>/workflow/.../*</resource>
        <resource>/integration/services</resource>
        <resource>/integration/services/.../*</resource>
        <resource>/soa-infra</resource>
        <resource>/soa-infra/.../*</resource>
        <resource>/rest/api/cmis/.../*</resource>
        <resource>/cs</resource>
        <resource>/cs/.../*</resource>
    </publicResourcesList>
</OAM11GRegRequest>


Run the RREG
export OAM_REG_HOME=/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg

when /u01/oracle/Middleware/Oracle_IDM2 is a Oracle Access Manager Home.


/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/bin/oamreg.sh inband /u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/input/WebCenterOAM11gRequest.xml

Execution Sumary:

JAVA_HOME=/u01/oracle/jrockit
CLASSPATH=/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/rreg.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/RequestResponse.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/commons-codec-1.3.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/commons-httpclient-3.1.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/commons-logging-1.1.1.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/ojmisc.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/jps-api.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/jps-internal.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/jps-common.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/identitystore.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/identityutils.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/ldapjclnt11.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/dms.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/fmw_audit.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/ojdl.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/oraclepki.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/osdt_cert.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/osdt_core.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/osdt_jce.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/osdt_saml.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/osdt_xmlsec.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/xmlparserv2.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/jps-unsupported-api.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/nap-api.jar:/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/lib/utilities.jar:.
OAM_REG_HOME=/u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg
------------------------------------------------
Welcome to OAM Remote Registration Tool!
Parameters passed to the registration tool are:
Mode: inband
Filename: /u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/input/WebCenterOAM11gRequest.xml
Enter admin username:weblogic
Nov 19, 2013 7:55:16 AM oracle.security.am.engines.rreg.client.handlers.request.OAM11GRequestHandler getWebgatePassword                                                 INFO: Passwords matched and accepted.                                                                                                                     Do you want to import an URIs file?(y/n):    n



Copy the generated files and artifacts (cwallet.sso and ObAccessClient.xml) to the Webgate Instance Location
scp /u01/oracle/Middleware/Oracle_IDM2/oam/server/rreg/client/rreg/output/agent_portal_webcenter/* oracle@192.168.246.147:/u01/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1/webgate/config/


Restart OHS
  /u01/oracle/Middleware/Oracle_WT1/instances/instance1/bin/opmnctl restartproc ias-component=ohs1

Comentários

Postagens mais visitadas deste blog

Index SKIP SCAN???

Index Skip Scan nada mais é que o "split" logico de um indice composto, ou seja, se sua clausula WHERE não tiver todos os campos do indice composto, ele é dividido em menores sub-indices Exemplo: -------- SQL> create table teste(a number,b number); Table created. SQL> begin 2 for i in 1..1000 3 loop 4 insert into teste values(i, 56); 5 end loop; 6 end; 7 / PL/SQL procedure successfully completed. SQL> create index idx_teste on teste(a,b); Index created. SQL> analyze table teste compute statistics; Table analyzed. SQL> explain plan for select /*+ index_ss(teste idx_teste) */ * from teste where b=56; Explained. SQL> start ?\rdbms\admin\utlxpls.sql -------------------------------------------------------------------------------- | Operation | Name | Rows | Bytes| Cost | Pstart| Pstop | -------------------------------------------------------------------------------- | SELECT STATEMENT | | 1...

Configurar Tamanho de UNDO e tempo de RETENÇÃO (UNDO_RETENTION)

-- Tamanho Undo Atual SELECT SUM(a.bytes) "UNDO_SIZE" FROM v$datafile a, v$tablespace b, dba_tablespaces c WHERE c.contents = 'UNDO' AND c.status = 'ONLINE' AND b.name = c.tablespace_name AND a.ts# = b.ts#; -- Blocos de UNDO por Seg. SELECT MAX(undoblks/((end_time-begin_time)*3600*24)) "UNDO_BLOCK_PER_SEC" FROM v$undostat; --Tamanho do Bloco SELECT TO_NUMBER(value) "DB_BLOCK_SIZE [KByte]" FROM v$parameter WHERE name = 'db_block_size'; -- Select calcula UNDO RETENTION SELECT d.undo_size/(1024*1024) "ACTUAL UNDO SIZE [MByte]", SUBSTR(e.value,1,25) "UNDO RETENTION [Sec]", ROUND((d.undo_size / (to_number(f.value) * g.undo_block_per_sec))) "OPTIMAL UNDO RETENTION [Sec]" FROM ( SELECT SUM(a.bytes) undo_size FROM v$datafile a, v$tablespace b, dba_tablespaces c WHERE c.contents = 'UNDO' ...

OHS 12c noprompt password when stop/start component

cd $OHS_DOMAIN/bin $ ./stopComponent.sh ohs1 Stopping System Component ohs1 ... Initializing WebLogic Scripting Tool (WLST) ... Welcome to WebLogic Server Administration Scripting Shell Type help() for help on available commands Reading domain from /u01/oracle/domains/ohs_domain Please enter your password : password Connecting to Node Manager ... Successfully Connected to Node Manager. Killing server ohs1 ... Successfully killed server ohs1 Successfully disconnected from Node Manager. Exiting WebLogic Scripting Tool. Done $ OHS_HOME/oracle_common/common/bin $ wlst.sh readDomain('/u01/oracle/domains/ohs_domain') ohs_domain>cd('/SecurityConfiguration/ohs_domain') set('NodeManagerUsername','weblogic') set('NodeManagerPasswordEncrypted','password') updateDomain() closeDomain() exit() $ ./startComponent.sh ohs1  Starting system Component ohs1 ... Initializing WebLogic Scripting Tool (WLST) ... Welco...