14.7 迁移 Identity Applications

不要对数据库使用区分大小写的排序。区分大小写的排序不受支持。使用区分大小写的排序可能会导致迁移期间出现重复键错误。如果遇到重复键错误,请检查排序规则并更正它,然后重安装 Identity Applications。唯一受支持的排序规则是 SQL_Latin1_General_CP1_CI_AS。

在迁移 Identity Applications 之前,必须安装 /opt/netiq/common/openssl/lib64/ 目录中的 libssl.so.1.0.0 和 libcrypto.so.1.0.0 库。

Identity Applications 迁移过程包括以下步骤:

14.7.1 将数据库迁移到新服务器

如果您的 User Application 数据库位于 PostgreSQL 中,请执行以下步骤:

  1. 登录到安装了 PostgreSQL 的服务器。

  2. 打开命令提示符,导航到 postgres bin 目录并将数据导出到 .sql 文件。

    示例:pg_dumpall -U postgres > dump.sql

  3. 登录到要安装 PostgreSQL 的新服务器。

  4. 如下所述安装 PostgreSQL

    1. 软件许可和下载门户下载并装入 Identity_Manager_4.8.x_Windows.iso

    2. 导航到装入 Identity_Manager_4.8.x_Windows.iso 的位置。

    3. 导航到:<装入位置>\common\packages\postgres\ 目录

    4. 运行 PostgreSQL 安装程序。

  5. 导航到 C:\NetIQ\IDM\postgres 并删除 Data 目录。

  6. PostgreSQL 安装位置创建一个 data 目录,并确保 postgres 用户有权访问该目录。

  7. 打开命令提示符,导航到 postgres bin 目录并如下所示初始化数据库:

    示例:initdb.exe -D C:\NetIQ\IDM\postgres\data -E WIN1252 -U postgres

  8. 确保 C:\NetIQ\IDM\postgres\data 下的 pg_hba.conf 文件中存在以下项。

    # IPv6 local connections:

    host all all ::1/128 trust

    host all all 0.0.0.0/0 trust

  9. 确保已在 postgresql.conf 文件中取消注释以下项:

    listen_addresses = '*'

    port = 5432

  10. 运行菜单运行 services.msc,重启动 postgres 服务。

  11. 打开命令提示符,导航到 postgres bin 目录,将数据导入新的 PostgreSQL 数据库,然后按照步骤 2 中所述使用收集的转储

    示例:psql -U postgres < dump.sql

14.7.2 在新服务器上安装 Identity Applications

以下过程说明如何在新服务器上安装 Identity Application:

  1. NetIQ 下载网站下载 Identity_Manager_4.8.x_Windows.iso

  2. 装入 .iso 文件。

  3. 导航到 Identity apps 目录,安装 Identity Applications,并跳过 User Application 和 Roles and Resources Service 驱动程序的部署。

    1. 选择“自定义安装”模式。

    2. 输入身份库细节。

    3. 取消选中部署 Identity Applications 驱动程序

  4. 选择现有 PostgreSQL 服务器,提供所需的细节,然后继续安装。