Content Platform Engine, V 5.2.1              

通过使用命令行来创建数据源

您必须为 Content Platform Engine 所使用的每个对象存储创建 JDBC 数据源。必须针对环境中的每个对象存储生成、编辑以及执行新的 configurejdbcos.xml 文件。

开始之前

确保您有执行规划活动时填写的安装与升级工作表。

关于此任务

如果您已同时生成所有配置概要文件,那么已经为初始对象存储数据源创建了初始 configurejdbcos.xml 文件。如果存在现有的 configurejdbcos.xml 文件,那么可以为每个其他对象存储生成另一个文件。添加的每个其他文件都将命名为 configurejdbcos.n.xml。可以根据需要生成多个 configurejdbcos.n.xml 文件,取决于环境中的对象存储数目。为获得最佳效果,请为每个对象存储创建一个附加的文件。

过程

要使用命令行创建数据源,请执行以下操作:

  1. 打开已填写完毕的安装与升级工作表文件。
    提示: 在工作表文件中,验证是否已启用数据 > 过滤器 > 自动过滤器命令。要仅查看此任务的 Configuration Manager 值,请在安装或配置程序列中按 CM:配置对象存储库 JDBC 数据源(对象存储库 1)进行过滤。
  2. config_mgr_user(即,运行 Configuration Manager 的用户)身份登录到应用程序服务器。
  3. 如果您未同时生成所有配置文件,或者必须创建另一个文件,请通过运行以下命令来生成 configurejdbc-os.n.xml 文件:
     configmgr_cl  generateConfig -appserver  app_server_type -db  db_type
      -task configurejdbcos -profile myprofile

    其中:

    -appserver appserver_name
    -appserver appserver_type 指定应用程序服务器的类型,并且必须是 WebSphereJBossWebLogic
    -db database_type
    只有在同时生成所有文件或者使用 configurejdbcgcdconfigurejdbcos 选项来生成单一文件时,-db database_type 参数才是必需的。此参数指定 Content Platform Engine 要使用的数据库的类型,并且必须是 mssqloracleoracle_racdb2db2zosdb2pshadr
    -profile myprofile
    -profile myprofile 参数指定要使用的概要文件。myprofile 值可以是下列其中一项:
    • 概要文件的名称,例如 ce_was_tiv_db2。此概要文件必须位于 ce_install_path/tools/configure/profiles 目录中,其中 ce_install_pathContent Platform 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"
  4. 使用文本编辑器来打开并编辑 configurejdbcos.n.xml 文件,如下所示:
    1. 通过使用工作表中的值,提供环境所需的条目。
    2. ****INSERT VALUE**** 的每个实例都替换为适合于站点的值。有关更多信息,请参阅文件中的描述。
    3. 验证其余属性的缺省值对于您的站点而言是否正确。
    4. <configuration> 标记中的 enabled 属性值设为 true,以便运行 6 中的配置任务。
    5. 保存您所作的编辑。
  5. 运行 storepasswords 命令,以便对所需的密码进行加密和存储。
    configmgr_cl storepasswords -profile myprofile
  6. 运行以下命令,以执行 configurejdbc.n.xml 文件:
    configmgr_cl execute -task configurejdbcos -profile myprofile
    提示: 如果 storepasswords 命令提示您将密码存储在磁盘上的配置文件中,那么您必须响应 yesno(而不是 yn)。
  7. 可选: 通过运行以下命令来检查完成状态:
    configmgr_cl checkStatus -task configurejdbcos -taskfile configurejdbc.n.xml
     -profile myprofile

    其中,configurejdbc.n.xml 是对象存储的任务文件。

  8. 根据需要,对另外的每个对象存储重复执行步骤 3 到步骤 6


最近一次更新时间: 2016 年 3 月
p8pup642.htm

© Copyright IBM Corporation 2013, 2016.