Midea
WINDCHILL rehost
Windchill10.2M020
Administrator
2015-4-16
本文档通过rehostutility来进行cluster架构的rehost

准备工作
1. 下载RehostUtility,并将软件复制到target的master机器上
2. 配置target服务器的hosts信息,本次rehostTarget服务器IP以及域名(如果需要集成需要配置ESB等服务器信息,具体根据实际项目组要求配置,以下以验证环境为例)
10.16.12.162 mvxl0208 mvxl0208.midea
10.16.12.180 mvxl0263 mvxl0263.midea
10.16.12.181 mvxl0264 mvxl0264.midea
10.16.12.182 mvxl0265 mvxl0265.midea
127.0.0.1        verplm.midea
将以上信息复制到所有的目标服务器的/etc/hosts文件中
DB的导出(根据DBA实际备份情况作业)
sqlplus / as sysdba
create or replace directory dmpdir as ‘/staging/export’
grantread,write on directory dmpdir to gplm
expdpgplm/gplm directory=dmpdirdumpfile=dumpfile.dmp
dump出来的文件生成在/staging/export/dumpfile.dmp
注意,执行expdp的用户必须对目录有读写权限。
LDAP的导出(根据实际备份情况作业)
切换到WindchillDS HOME/server/bin
./export-ldif -n userRoot -l /staging/export/root.ldif
应用目录恢复
将源文件复制到目标服务器对应位置。
(现位置为:/mdplmapp/appmdplm/ptc)
导入DB的数据(根据DBA相关导出信息作业)
导入数据之前,需要将原来的用户drop掉
drop user gplm cascade
然后使用create 用户的脚本重新建立用户(在$WT_HOME/DB/sql3目录下)
@create_user.sql
然后import数据
impdpgplm/gplm directory=dmpdirdumpfile=dumpfile.dmp logfile=imp.log
导入LDAP的数据
import-ldif-includeBranch o=ptc-backendID=userRoot-replaceExisting-ldifFile  /staging/export/root.ldif
如果导入失败,可以使用control panel导入数据。
修改RehostUtility配置
1. 在master(mvxl0265)机器上,将RehostUtility软件中conf/rehost.properties复制成conf/rehost-verplm.properties
2. 打开编辑rehost-verplm.properties成如下格式:
>>>>>  LDAP Settings    >>>>####
#  Before performing rehosting activities, PTC recommends that you back up the source(original)
#  LDAP content by exporting an LDIF file from the original LDAP server.
#  If the target LDAP server is not the same as the original LDAP server, import the exported
#  LDIF file to the target LDAP server so that the target LDAP starts with the same entries as
#  the source. This can be done manually or by executing a user-defined task before
#  executingrehosting task modules.
#  Setting the following properties to valid values is required:
#    target.ldap.hostname, target.ldap.username, target.ldap.password, target.ldap.port,
#    target.ldap.baseDn, target.ldap.serviceName, and source.ldap.serviceName
target.ldap.hostname=mvxl0265.midea
target.ldap.username=cn=Manager
target.ldap.password=ldapadmin
target.ldap.port=3890
target.ldap.baseDn.product=cn=configuration,cn=Windchill_10.2,o=ptc
target.ldap.baseDn.administrative=ou=people,cn=AdministrativeLdap,cn=Windchill_10.2,o=ptc
target.prise=ou=people,cn=EnterpriseLdap,cn=Windchill_10.2,o=ptc
target.ldap.serviceName=verplm.midea
source.ldap.serviceName=gplm.midea
>>>>>  Database Settings  >>>>####
#  Setting the following properties to valid values is required:
#    target.db.hostname,target.db.port,target.db.serviceName,target.db.username, and
#    target.db.password,target.db.vendor
#  if the DB's vendor is Microsoft SQL Server, you should set "microsoft" to the "target.db.vendor", if the vendor is Oracle, you should set "oracle".
#  The value of "target.db.vendor" cannot be empty.
#  target.db.jdbc.database identifies the database name that is used when making JDBC connections. This is the value of wt.pom.jdbc.database.
#  You must include a valid value for target.db.jdbc.database when the target database is an SQL Server database.
target.db.hostname=10.16.66.18
target.db.port=1602
target.db.serviceName=verplm1
target.db.username=gplm
target.db.password=gplmtest218
target.db.vendor=oracle
target.db.jdbc.database=
webapp是什么架构
>>>>>  Windchill Path Settings    >>>>####
#  Windchill path settings identify where Windchill and Apache are installed on the
#  target system. These settings must be valid when running the utility as part of
#  mostrehosting scenarios.
#  Specify the absolute folder path for Windchill, Apache.
#  Setting the following properties to valid values is required:
#    target.wt.home, target.httpserver.home and target.httpserver.port
target.java.home=/mdplmapp/appmdplm/ptc/Java
target.wt.home=/mdplmapp/appmdplm/ptc/Windchill
target.httpserver.home=/mdplmapp/appmdplm/ptc/HTTPServer
target.httpserver.port=8888
target.httpserver.ssl.port=443

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。

FIS
« 上一篇
maven 项目里文件的相对路径
下一篇 »

发表评论