您必须为 Content Engine 所使用的每个对象存储库创建
JDBC 数据源。您必须为环境中的每个对象存储库生成、编辑和执行新的 configurejdbc-os.xml 文件。
如果您已同时生成所有配置概要文件,那么已经为初始对象存储库数据源创建了初始
configurejdbc-os.xml 文件。如果存在现有的 configurejdbc-os.xml
文件,那么可以为每个附加的对象存储库生成另一个文件。您添加的每个附加文件都将被命名为
configurejdbc-os.n.xml。您可以根据需要生成多个
configurejdbc-os.n.xml
文件,这取决于环境中的对象存储库数目。为了获得最佳结果,请为每个对象存储库创建一个附加的文件。
- 打开已填写完毕的安装与升级工作表文件。
提示: 在工作表文件中,验证命令是否处于启用状态。要只查看此任务的
Configuration Manager 值,请在安装或配置程序列中按
CM:配置对象存储库 JDBC 数据源(对象存储库 1)进行过滤。
- 以 config_mgr_user(即,运行 Configuration Manager 的用户)身份登录到应用程序服务器。
- 如果您未同时生成所有配置文件,或者必须创建另一个文件,请通过运行以下命令来生成
configurejdbc-os.n.xml 文件:
configmgr_cl generateConfig -appserver app_server_type -db db_type
-task configurejdbcos -profile myprofile
其中:
- -appserver appserver_name
- -appserver appserver_type 指定应用程序服务器的类型,并且必须是 WebSphere®、WebLogic 或 JBoss。
- -db database_type
- 只有在同时生成所有文件或者使用 configurejdbcgcd 或 configurejdbcos
选项来生成单一文件时,-db database_type 参数才是必需的。此参数指定 Content Engine 要使用的数据库的类型,并且必须是 mssql、oracle、oracle_rac、db2 或 db2zos。
- -profile myprofile
- -profile myprofile 参数指定要使用的概要文件。myprofile 值可以是下列其中一项:
- 概要文件的名称,例如 ce_was_tiv_db2。此概要文件必须位于 ce_install_path/tools/configure/profiles 目录中,其中 ce_install_path 是 Content Engine 软件的安装位置。
- 概要文件目录的绝对路径,例如 "C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2" 或 opt/IBM/FileNet/ContentEngine/tools/configure/profiles/ce_was_tiv_db2。
- 概要文件输入文件的绝对路径,例如
"C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2\ce_was_tiv_db2.cfg" 或
opt/IBM/FileNet/ContentEngine/tools/configure/profiles/ce_was_tiv_db2/ce_was_tiv_db2.cfg。
切记: 如果此路径包含带有空格的目录名,请将整个路径括在引号中。例如,输入
"C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2\ce_was_tiv_db2.cfg"。
- 使用文本编辑器来打开 configurejdbc-os.n.xml
文件并对其进行如下编辑:
- 通过使用工作表中的值,提供环境所需的条目。
- 将 ****INSERT VALUE**** 的每个实例都替换为适合于站点的值。有关更多信息,请参阅文件中的描述。
- 验证其余属性的缺省值对于您的站点而言是否正确。
- 将 <configuration> 标记中的 enabled
属性值设置为 true,以便运行 6 中的配置任务。
- 保存您所作的编辑。
- 运行 storepasswords 命令,以便对所需的密码进行加密和存储。
configmgr_cl storepasswords -profile myprofile
提示: 如果 storepasswords
命令提示您将密码存储在磁盘上的配置文件中,那么您必须响应
yes 或 no(而不是
y 或 n)。
- 运行以下命令,以执行 configurejdbc.n.xml 文件:
configmgr_cl execute -task configurejdbcos -profile myprofile
- 可选: 通过运行以下命令来检查完成状态:
configmgr_cl checkStatus -task configurejdbcos -task configurejdbc.n.xml
-profile myprofile
其中,configurejdbc.n.xml 是对象存储库的任务文件。
- 根据需要,对另外每个对象存储库重复 3 到 6。