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

Webcenter Content - Jython to Checkin Content with Attachments (CHECKIN_NEW_WITH_RENDITIONS)

In the last few days, i had to load a content that, by its requirements, needs to attach files to the content. My first alternative would be Batch Loading, however for the bacth loder file it was not possible because it does not actually support the rendition service. With the next option, i tried to use the IdcCommand, but still had many problems, such as errors below: sample hda file: [oracle @ hostname bin] $ cat idctst.txt @Properties LocalData IdcService = EDIT_RENDITIONS dID = 37020 renditionKeys = addRendition0 addRendition0.name = test543 addRendition0.action = edit addRendition0.file = test.txt addRendition0.file: path = / u01 / oracle / domains / content_domain / ucm / cs / vault / ~ temp / test.txt @end << EOD >> Executing: [oracle @ hostname bin] $ ./IdcCommand -f idctst.txt -u sysadmin -l log.log -c server Error: Java HotSpot (TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and w

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'