1、修改host配置;
在C:\Windows\System32\drivers\etc\hosts文件中配置修改后的域名pdm.test.com,如下:
127.0.0.1 pdm.test.com
2、修改数据库tnsnames.ora文件
将tnsnames.ora文件中的原域名pdm.wind.com修改为pdm.test.com,修改后重启数据库及监听服务。
3、修改数据库表中的相关配置
a) update site set url='http://pdm.test.com:8080/Windchill/servlet/WindchillGW' where url='http://pdm.wind.com:8080/Windchill/servlet/WindchillGW';
b) update repository set lastKnowndomain='pdm.test.com' where local=1;
c) update repository set guid='Ldap.test.com',lastKnowndomain='Ldap.test.com' where local=0;
d) update fvhost set hostname='pdm.test.com' where hostname='pdm.wind.com';
修改结束后重启LDAP。
4、修改Windchill配置
在windchill shell中运行以下命令:
a) 进入ptc/Windchill_10.2/Windchill/bin/adminTools/rehost目录下,执行命令:
ant "-Dtarget-ldap=ldap://cn=Manager:ldapadmin@pdm.test.com/" -Dtarget-domain=pdm.test.com
接着会出现选择提示,两次都选择y
等待之后出现 BUILD SUCCESSFUL则表示执行成功(后面几个命令执行成功后也同此命令)。
b) 进入ptc/Windchill_10.2/HTTPServer目录下,执行命令:
① ant -DserverName=pdm.test.com -f config.xml reconfigure
② ant -DAJP_HOST=pdm.test.com -f config.xml configureAJPWorkers
③ ant -f webAppConfig.xml addAuthProvider -DappName=Windchill -DproviderName=AdministrativeLdap "-DldapUrl=ldap://pdm.test.com:389/ou=people,cn=AdministrativeLdap,cn=Windchill_10.2,o=ptc" -DbindDn="cn=Manager" -DbindPwd="ldapadmin"
④ ant -f webAppConfig.xml addAuthProvider -DappName=Windchill -DproviderName=EnterpriseLdap "-DldapUrl=ldap://pdm.test.com:389/ou=people,cn= EnterpriseLdap,cn=Windchill_10.2,o=ptc" -DbindDn="cn=Manager" -DbindPwd="ldapadmin"
⑤ xconfmanager -s "wt.pom.jdbc.host=pdm.test.com" -t db\db.properties -p
以上命令执行成功后,重启HTTP Server,Windchill服务。此时Windchill更换域名完成,可使用新域名地址http://pdm.test.com/Windchill访问系统。