配置 Windchill 以与 Oracle Data Guard 配合使用
以下各部分记录了 Windchill 与 Oracle Data Guard 配合使用的配置步骤。
配置新的 Windchill 安装以与 Oracle Data Guard 配合使用
完成以下步骤,配置新的 Windchill 安装以与 Oracle Data Guard 配合使用。
|
PTC 强烈建议选择 MaxProtection 作为 Data Guard 保护模式,以避免在数据库故障转移后随即出现数据不一致的情况。虽然确保了数据一致性,但这种保护模式会对整体系统性能造成负面影响。
|
3. 通过使用 SQL*Plus 并以数据库管理用户的身份执行以下语句来创建 Oracle Windchill 数据库用户架构。将变量替换为适用于您系统的值。
create user <Windchill_DB_Username> identified by <Windchill_DB_User_password>
default tablespace <Default_Tablespace_Name>
temporary tablespace <Temporary_Tablespace_Name>
/
grant connect, resource to <Windchill_DB_Username>
/
grant create sequence, create view,
unlimited tablespace to <Windchill_DB_Username>
4. 启动 PTC 解决方案安装程序 (PSI),然后在平台组件窗口中选择“数据库软件”字段的“Oracle 高级”选项以进行 Windchill 安装。
5. 在 PSI 的数据库信息窗口中,输入以下信息:
◦ “Oracle 数据库连接字符串”字段中的完整 Oracle Data Guard 连接字符串如下所示,并将变量替换为适用于您系统的值:
(DESCRIPTION=(ADDRESS_LIST=(FAILOVER=ON)(ADDRESS=(PROTOCOL=TCP)
(HOST=<Primary_DB_HOST>)(PORT=<Listener_Port>))(ADDRESS=(PROTOCOL=TCP)
(HOST=<StandBy_DB_HOST>)(PORT=<Listener_Port>)))
(CONNECT_DATA=(SERVICE_NAME=<Client_Failover_Service_Name>)
(SERVER=DEDICATED)(FAILOVER_MODE=(TYPE=session)(METHOD=BASIC)(RETRIES=180)
(DELAY=5))))
◦ “用户名”和“密码”字段中现有 Windchill 数据库用户的用户名和密码。
配置现有 Windchill Oracle 数据库以与 Oracle Data Guard 配合使用
完成以下步骤,配置现有的 Windchill Oracle 数据库以与 Oracle Data Guard 配合使用。
1. 停止 Windchill。
2. 备份现有 Windchill 数据库,并验证备份数据库是否有效。
|
PTC 强烈建议选择 MaxProtection 作为 Data Guard 保护模式,以避免在数据库故障转移后随即出现数据不一致的情况。虽然确保了数据一致性,但这种保护模式会对整体系统性能造成负面影响。
|
5. 从 Windchill shell 中,运行以下命令来设置所需的特性,并将变量替换为适用于您系统的值:
xconfmanager -s wt.pom.dbConnectionRetryCount=60 -t "db/db.properties"
xconfmanager -s
wt.pom.jdbc.host="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)
(HOST==<Primary_DB_Host>)(PORT=<Listener_Port>))
(ADDRESS=(PROTOCOL=TCP)(HOST=<Standby_DB_Host>)
(PORT=<Listener_Port>)))
(CONNECT_DATA=(SERVICE_NAME=<Client_Failover_Service_Name>)
(SERVER=DEDICATED)(FAILOVER_MODE=(TYPE=session)(METHOD=BASIC)(RETRIES=180)
(DELAY=5))))" -t "db/db.properties"
xconfmanager -s wt.pom.jdbc.port="" -t "db/db.properties"
xconfmanager -s wt.pom.jdbc.service="" -t "db/db.properties"
xconfmanager -p
6. 启动 Windchill。
7. 验证所有 Windchill 功能是否都按预期正常运行。