用例:服务器同步设置 – 首次 - Teradata Data Mover

Teradata® Data Mover 用户指南

Product
Teradata Data Mover
Release Number
17.10
Published
2021 年 6 月
Language
中文 (简体)
Last Update
2021-07-16
dita:mapPath
zh-CN/fcu1619423186706.ditamap
dita:ditavalPath
zh-CN/fcu1619423186706.ditaval
dita:id
B035-4101
Product Category
Analytical Ecosystem
  1. 在活动存储库服务器上,转到 cd /var/opt/teradata/postgres/data 以更改 Postgres 配置。
  2. postgres.conf 中,将 wal_level 更改为 wal_level = logical
  3. 重新启动活动存储库:
    /etc/init.d/postgresql stop
    /etc/init.d/postgresql start
  4. 在活动服务器上,编辑 sync.properties 文件并将 sync.isMaster 属性设置为 true
  5. 在备用服务器上,编辑 sync.properties 文件并将 sync.isMaster 属性设置为 false
  6. 在活动服务器上,将 sync.properties 文件中的 dm.pg.jobstore.production.host 属性设置为活动服务器的主机名。
    使用不同于 localhost 主机名的名称。
  7. 在活动服务器上,配置同步服务:
    /opt/teradata/datamover/sync/nn.nn/dmsync config
    其中,路径中的 nn.nn 是指 Data Mover 的版本号。
  8. 出现提示时,选择以下选项:
    Set up a new replication service between this active repository and one or more standby repositories
  9. 对以下提示做出响应:
       
    Enter remote standby host name 输入备用服务器名称。
    Enter the database super user postgres password on standby repository 输入备用服务器上的 Postgres 用户密码。
    Replication service set up requires that the active and standby repositories are in sync before configuring. Do you need to back up the active repository to the standby repository? [y or n]
    • 如果备用存储库尚未同步,请输入 Y
    • 如果备用存储库已经同步,请输入 N
    Do you need to set up replication for another standby repository? [y or n]:
    • 如果有多个备用服务器需要连接到此活动服务器,请输入 Y
    • 如果仅需要一个备用服务器,请输入 N