如何配置WebCenter Domain

1. 选择相关组件

在这一版的WebCenter中,Blog与Wiki使用的都是UCM中的功能,这一点和上一个版本完全不一样。因此,一个基本的WebCenter Domain内容管理是必须的(当然,你也可以不选,但这种场景很少不推荐)。还有一点需要说明,上一版中如果想和BPM11g集成,需要大量的配置工作,而这一版则相对简单,只要在创建域时选中此项即可。为了测试WebCenter基本功能,我选择如下组件:

    • Oracle WebCenter Space
    • Oracle Universal Content Management – Content Server
    • Oracle Enterprise Manager(必选)
    • Oracle WebCenter Discussion Server
    • Oracle WebCenter ActivityGraph Engines
    • Oracle WebCenter Personalization
    • Oracle WebCenter Pagelet Producer
    • Oracle WebCenter Analytics Collector
    • Oracle WSM Policy Manager(必选)
    • Oracle JRF(必选)

2. 个性化定制

为了自动创建服务连接,配置域时手工指定机器名。具体同容参见:《WebCenter 11g PS3预备知识

例如:

名称

监听地址

端口

AdminServeryekki-cn7001
WC_Portletyekki-cn8889
WC_Utilitiesyekki-cn8891
WC_Collaborationyekki-cn8890
UCM_server1yekki-cn16200
WC_Spacesyekki-cn8888

3. 配置UCM服务器

启动AdminServer,然后启动UCM_server1,访问:http://yekki-cn:16200/cs/ 将进入UCM初始化设置页面,参数使用默认即可,唯一有二项需要注意:

    • 服务器套接字端口: 4444
    • 传入套接字连接地址安全过滤器:这个参数是指,如果其它应用,如:WebCenter想通过Socket访问UCM,则哪些IP地址被允许。为了方便起见,我在将其设为*.*.*.*

重新启动UCM服务器,再次访问:http://yekki-cn:16200/cs/,点击:管理->管理服务器->组件管理器,Enable如下组件:

    • Folders_g
    • WebCenterConfigure

再次重新启动UCM服务器

4. 启动其它被管理服务器

记得最后启动WC_Spaces

5. 查看服务连接

访问:http://yekki-cn:7001/em,以下链接已经被创建好

    • WebCenterSpaces-ucm
    • WebCenterSpaces-Discussions
    • WebCenterSpaces-PageletProducer

创建Analytics & Activity Graph连接:

    • Connect Name: WebCenterSpaces-Analytics
    • Active Connection: Enable
    • Enable WebCenter Event Collection: Enable
    • Messaging Mode: Unicast
    • Collector Host Name: yekki-cn
    • Collector Port: 31314

重新启动WC_Spaces

6. 测试

访问:http://yekki-cn:8888/webcenter 以Project Site为模板创建一个Space,测试其中功能,例如:论坛、文档。创建页面,选择Blog或Wiki测试。

7. 其它

  • 如果重新创建WebCenter Domain,记得通过RCU重新创建数据库表空间与表
  • 以上服务器及数据库都启动,大约占用7~8G内存,玩WebCenter要量力而行。

(完)

如何为UCM配置基于WLS Embedded LDAP认证

1. 为WebLogic Embedded LDAP设置密码

进入WebLogic Server管理控制台,依次点击:[DOMAIN_NAME]->Security->Embedded LDAP,如图:

ldap_pwd

CredentialConfirm Credential输入框内输入密码,例如:welcome1

重新启动WebLogic Server

2.  为UCM配置安全提供者

进入UCM管理控制台,例如:http://localhost:7777/idc(sysadmin/idc)

依次点击:Administrator->Providers,在Create a New Provider部分找到ldapuser,点击:Add

add_provider

填写以下信息:

  • Source Path:$MW_HOME 对应的路径名
  • LDAP Server:WLS服务器地址,例如:localhost
  • LDAP Suffix:ou=people,ou=myrealm,dc=wc_domain(WLS域名)
  • LDAP Port:WLS监听端口,例如:7001
  • LDAP Attribute MAP:cn:dFullName,mail:dEmail,title:dUserType
  • LDAP Admin DN:cn=Admin
  • LDAP Admin Password:welcome1(步骤一中输入的密码)

样例:

provider

重新启动UCM所有服务

3. 验证效果

在UCM管理控制台,依次点击:Administrator->Providers,查看新添加的安全提供程序的状态情况

result

使用weblogic/welcome1用户登录UCM(http://localhost/idc),应该能够成功登录!

(完)

安装Content Management for WebCenter

环境准备

  • Content Management for WebCenter 10.1.3.5.1
  • Oracle WebCenter 11.1.1.3.0
  • Oracle Database 10g Express Edition
  • Oracle WebTier Utilities 11.1.1.3.0 64bit
  • Windows 7 Professional 64 bit

创建数据库表

此步骤通过Oracle Repository Creation Utility 11.1.1.3.0 图形化工具实现,过程略。

安装UCM

由于此版本的UCM不支持Win7 64位,所以要进行些设置,右键点击Installer.exe文件,选择 Run this program in compatibility mode for: Windows XP (Service Pack3 )如下图:

installer

以我的电脑为例,执行以下命令:

F:\ofm_ucm_generic_10.1.3.5.1_disk1_1of1\ContentServer\install\UCM\ContentServer
\win32>Installer.exe
intradoc.common.ServiceException: Unable to determine your platform.

F:\ofm_ucm_generic_10.1.3.5.1_disk1_1of1\ContentServer\install\UCM\ContentServer
\win32>Installer.exe

Please select your locale from the list.
          1. Chinese-Simplified
          2. Chinese-Traditional
          3. Deutsch
         *4. English-US
          5. English-UK
          6. Español
          7. Français
          8. Italiano
          9. Japanese
         10. Korean
         11. Nederlands
         12. Português-Brazil
Choice?

Throughout the install, when entering a text value, you can press Enter to
accept the default that appears between square brackets ([]). When selecting
from a list, you can select the choice followed by an asterisk by pressing
Enter.

Select installation type from the list.
        *1. Install new server
         2. Update a server
Choice?

Content Server Installation Directory

 

Please enter the full pathname to the installation directory.
Content Server Core Folder [c:/oracle/ucm/server]:d:/oracle/fmw/ucm

Create Directory
        *1. yes
         2. no
Choice?

Java virtual machine
        *1. Sun Java 1.5.0_11 JDK
         2. Specify a custom Java virtual machine
Choice?
Installing with Java version 1.5.0_11.

Enter the location of the native file repository. This directory contains
the native files checked in by contributors.
Content Server Native Vault Folder [d:/oracle/fmw/ucm/vault/]:

Create Directory
        *1. yes
         2. no
Choice?

Enter the location of the web-viewable file repository. This directory
contains files that can be accessed through the web server.
Content Server Weblayout Folder [d:/oracle/fmw/ucm/weblayout/]:

Create Directory
        *1. yes
         2. no
Choice?

This server can be configured to manage its own authentication or to allow
another master to act as an authentication proxy.
Configure this server as a master or proxied server.
        *1. Configure as a master server.
         2. Configure as server proxied by a local master server.
Choice?

During installation, an admin server can be installed and configured to
manage this server. If there is already an admin server on this system, you
can have the installer configure it to administrate this server instead.
Select admin server configuration.
        *1. Install an admin server to manage this server.
         2. Configure an existing admin server to manage this server.
         3. Don’t configure an admin server.
Choice?

Enter the location of an executable to start your web browser. This browser
will be used to display the online help.
Web Browser Path [c:/program files/internet explorer/iexplore.exe]:

Content Server System locale
          1. Chinese-Simplified
          2. Chinese-Traditional
          3. Deutsch
         *4. English-US
          5. English-UK
          6. Español
          7. Français
          8. Italiano
          9. Japanese
         10. Korean
         11. Nederlands
         12. Português-Brazil
Choice?

Please select the region for your timezone from the list.
        *1. Use the timezone setting for your operating system
         2. Pacific
         3. America
         4. Atlantic
         5. Europe
         6. Africa
         7. Asia
         8. Indian
         9. Australia
Choice?

Please enter the port number that will be used to connect to the Content
Server. This port must be otherwise unused.
Content Server Port [4444]:

Please enter the port number that will be used to connect to the Admin
Server. This port must be otherwise unused.
Admin Server Port [4440]:

Enter a security filter for the server port. Hosts which are allowed to
communicate directly with the server port may access any resources managed
by the server. Insure that hosts which need access are included in the
filter. See the installation guide for more details.
Incoming connection address filter [127.0.0.1]:

*** Content Server URL Prefix

The URL prefix specified here is used when generating HTML pages that refer
to the contents of the weblayout directory within the installation. This
prefix must be mapped in the web server Additional Document Directories
section of the Content Management administration menu to the physical
location of the weblayout directory.

For example, "/idc/" would be used in your installation to refer to the URL
<a href="http://ucm.company.com/idc">http://ucm.company.com/idc</a> which would be mapped in the web server to the
physical location /oracle/ucm/weblayout.
Web Server Relative Root [/idc/]:

Enter the name of the local mail server. The server will contact this system
to deliver email.
Company Mail Server [mail]:

Enter the e-mail address for the system administrator.
Administrator E-Mail Address [sysadmin@mail]:

*** Web Server Address

Many generated HTML pages refer to the web server you are using. The address
specified here will be used when generating those pages. The address should
include the host and domain name in most cases. If your webserver is running
on a port other than 80, append a colon and the port number.

Examples: www.company.com, ucm.company.com:90
Web Server HTTP Address [yekki-cn]:

Enter the name for this instance. This name should be unique across your
entire enterprise. It may not contain characters other than letters,
numbers, and underscores.
Server Instance Name [idc]:

Enter a short label for this instance. This label is used on web pages to
identify this instance. It should be less than 12 characters long.
Server Instance Label [idc]:

Enter a long description for this instance.
Server Description [Content Server idc]:

Web Server
        *1. Microsoft IIS 5.0/6.0
         2. Apache
         3. Sun ONE
         4. Configure manually
Choice? 2

Please select a database from the list below to use with the Content Server.
Content Server Database
        *1. Oracle
         2. Microsoft SQL Server 2005
         3. Microsoft SQL Server 2000
         4. Sybase
         5. DB2
         6. Custom JDBC settings
         7. Skip database configuration
Choice?

Manually configure JDBC settings for this database
         1. yes
        *2. no
Choice?

Oracle Server Hostname [localhost]:

Oracle Listener Port Number [1521]:

*** Database User ID

The user name is used to log into the database used by the content server.
Oracle User [user]:DEV_OCSERVER

*** Database Password

The password is used to log into the database used by the content server.
Oracle Password []:oracle

Oracle Instance Name [ORACLE]:XE

Configure the JVM to find the JDBC driver in a specific jar file
         1. yes
        *2. no
Choice?

The installer can attempt to create the database tables or you can manually
create them. If you choose to manually create the tables, you should create
them now.
Attempt to create database tables
         1. yes
        *2. no
Choice?

Select components to install.
         1. ContentFolios: Collect related items in folios
         2. Folders_g: Organize content into hierarchical folders
         3. LinkManager8: Hypertext link management support
         4. OracleTextSearch: External Oracle 11g database as search indexer sup
port
         5. ThreadedDiscussions: Threaded discussion management
Enter numbers separated by commas to toggle, 0 to unselect all, F to finish: 1,2
,3,4,5

        *1. ContentFolios: Collect related items in folios
        *2. Folders_g: Organize content into hierarchical folders
        *3. LinkManager8: Hypertext link management support
        *4. OracleTextSearch: External Oracle 11g database as search indexer sup
port
        *5. ThreadedDiscussions: Threaded discussion management
Enter numbers separated by commas to toggle, 0 to unselect all, F to finish: F

Configure the Administration Server service
        *1. Install service and start automatically
         2. Install service
         3. Don’t install the service
Choice?

Configure the admin service to run as a specific user
        *1. yes
         2. no
Choice? 2

Configure admin service to be dependent on another service
         1. yes
        *2. no
Choice?

Configure the Content Server service
        *1. Install service and start automatically
         2. Install service
         3. Don’t install the service
Choice?

Configure the service to run as a specific user
        *1. yes
         2. no
Choice? 2

Configure service to be dependent on another service
         1. yes
        *2. no
Choice?

Checking configuration. . .

Configuration OK.

Review install settings. . .
Content Server Core Folder: d:/oracle/fmw/ucm/
Java virtual machine: Sun Java 1.5.0_11 JDK
Content Server Native Vault Folder: d:/oracle/fmw/ucm/vault/
Content Server Weblayout Folder: d:/oracle/fmw/ucm/weblayout/
Proxy authentication through another server: no
Install admin server: yes
Web Browser Path: c:/program files/internet explorer/iexplore.exe
Content Server System locale: English-US
Content Server Port: 4444
Admin Server Port: 4440
Incoming connection address filter: 127.0.0.1
Web Server Relative Root: /idc/
Company Mail Server: mail
Administrator E-Mail Address: sysadmin@mail
Web Server HTTP Address: yekki-cn
Server Instance Name: idc
Server Instance Label: idc
Server Description: Content Server idc
Web Server: Apache
Content Server Database: Oracle
Manually configure JDBC settings for this database: false
Oracle Server Hostname: localhost
Oracle Listener Port Number: 1521
Oracle User: DEV_OCSERVER
Oracle Password: 6GP1gBgzSyKa4JW10U8UqqPznr/lzkNn/Ojf6M8GJ8I=
Oracle Instance Name: XE
Configure the JVM to find the JDBC driver in a specific jar file: false
Attempt to create database tables: no
Components:
ContentFolios,Folders_g,LinkManager8,OracleTextSearch,ThreadedDiscussions
Configure the Administration Server service: auto
Configure the admin service to run as a specific user: false
Configure admin service to be dependent on another service: false
Configure the Content Server service: auto
Configure the service to run as a specific user: false
Configure service to be dependent on another service: false

Proceed with install
        *1. Proceed
         2. Change configuration
         3. Recheck the configuration
         4. Abort installation
Choice?
d:/oracle/fmw/ucm/bin/IdcServerNT.exe -install_autostart
Installing the service IdcContentService idc…
Sucessfully installed the service.
d:/oracle/fmw/ucm/admin/bin/IdcAdminNT.exe -install_autostart
Installing the service IdcAdminService idc_admin…
Sucessfully installed the service.
Finished install type Install at 7/26/10 1:18 PM.

应用补丁与相关配置

使用如下命令:

wc_contentserverconfig.cmd content_server_dir path_to_source_directory

  • content_server_dir :UCM安装目录
  • path_to_source_directory:webcenter-conf所在目录

例如,在我的电脑上:

F:\ofm_ucm_generic_10.1.3.5.1_disk1_1of1\ContentServer\webcenter-conf>wc_content
serverconfig.cmd D:\oracle\fmw\ucm F:\ofm_ucm_generic_10.1.3.5.1_disk1_1o
f1\ContentServer\webcenter-conf

重新启动服务

  • IDC Content Admin Service idc_admin
  • IDC Content Service idc

配置WebTier实例

1. 在WebTier实例的配置文件httpd.conf最后加入下列一行:

include "D:/oracle/fmw/ucm/data/users/apache22/apache.conf"

这里应根据UCM具体安装目录设置此行,此例中UCM安装目录为D:/oracle/fmw/ucm

2. 重新启动WebTier实例

配置连接IP过滤(可选)

修改<content_server_dir>/config目录下的config.cfg文件,例如,在我的电脑中:D:\oracle\fmw\ucm\config,修改"SocketHostAddressSecurityFilter"(允许连接UCM的IP地址)

SocketHostAddressSecurityFilter=127.0.0.1 | allowed_host_IP 或

SocketHostAddressSecurityFilter=*.*.*.* (所有地址)

修改<content_server_dir>/admin/bin/intradoc.cfg,如果没有SocketHostAddressSecurityFilter就添加之,值如上,记得最后重新启动服务。

测试

确保UCM服务(IDC Content Admin Service idc_admin与IDC Content Service idc),、数据库以及以上服务还有Apache服务器或IIS都启动成功,打开浏览器输入以下地址:

http://hostname:port/idc,点击“登录”,默认管理员用户名与密码:sysadmin/idc

 

关于Win7 64位

由于此版本的UCM官方不支持Win7 64位,所以这里使用的WebTier(或Apache Server)应该使用32位的介质,不然无法正常启动。

删除UCM

1. 停止服务

  • IDC Content Admin Service idc_admin
  • IDC Content Service idc

2. 删除注册信息

%UCM_HOME%\bin\Installer UnregisterAll

3. 删除UCM安装目录

4. 删除数据库表

 

(完)