Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hello all,
I am attempting to do my first system rehost. I want to use the Windchill Rehosting Utility. I have fully read the guide and made detailed notes and the necessary configuration files. I must have missed something because I am receiving an error when I try to run. The error is:
[DBValidator] 2014-05-12 13:04:32,335 ERROR [main] com.ptc.wc.rehost.validate.DBConnectionValidator - Failed to validate db connection:[DBValidator] java.sql.SQLException: ORA-01017: invalid username/password; logon denied
My projects.properties contains:
# Defines the modules for each use scenario. Modules are separated using a comma.
#rename.modules=StartProcessTask:${rehost.script.task1},IERehostTask,StartProcessTask:${rehost.script.task2},DBRehostTask# rename.modules=IERehostTask,ApacheRehostTask,DBRehostTask,OrgRehostTask,StartProcessTask:rehost.script.task1,VaultTaskrehost.modules=StartProcessTask:StartProcessTask:rehost.script.PTCFolderCopy,StartProcessTask:rehost.script.LDAPImport,IERehostTask,ApacheRehostTask,StartProcessTask:rehost.script.ORACLEDBCopy,StartProcessTask:rehost.script.ORACLEDBImport,DBRehostTask,StartProcessTask:rehost.script.WindchillOracleStart,VaultTask,FileServerTask,InstallerRegistryRehostTask
My renamed rehost.properties is attached. Note password lines are all referenced to encrypted passwords set by the setAuth.bat utility as directed in the Windchill Rehosting guide.
For the Oracle database connection I have verified both the PDMLink user account password and the system manager account password, and I have tried both with the setAuth.bat utility and re-ran the rehost.bat utility. Neither of these are successful.
I am working with PTC on this issue, but currently I am in a wait state so thought I'd reach out here for the record.
Has anyone successfully used the automated rehosting utility? If you have did you encounter this '[DBValidator] java.sql.SQLException: ORA-01017: invalid username/password; logon denied' error?
Thanks again!
Hello Steve,
Thx for the note. I think I have it right. I am going from production (windchill.oceanworks.com) to our test server (owi-ca-vpdmtest.oceanworks.cc). We do have another project coming up where people more skilled than I will rename our aliased production from owi-ca-vpdmapp.oceanworks.cc to windchill.oceanworks.com. But this case is separate.
I'll keep digging and working with PTC and post the eventual answer here for the record.
- Jim
Hmm, thanks Mike! I'll see if I get the same response. I do see the Release 2 is out for 10.2.
For what it's worth, I had the same experience as Mike when PTC first released the tool.At the time itonly supported one rehost scenario, and after that failed, tech support said they really don't use the tool internally - they do it manuallybecause they know how to do it that way so it's easier. That was a year and a half ago at least, so maybe it has changed. However, it caused such issues for us, we haven't tried the tool since.
~Jamie
Hello all, Hello Kevin,
Thanks for the suggestion Kevin. I tried that, and the setAuth worked better in that it accepted my renamed rehost.properties, and it set the password encryption. But the rehost still fails. Doing some digging here is what I think is happening:
Recall the error is:
validate:[DBValidator] 2014-05-13 11:26:47,934 ERROR [main] com.ptc.wc.rehost.validate.DBConnectionValidator - Failed to validate db connection:[DBValidator] java.sql.SQLException: ORA-01017: invalid username/password; logon denied
I think it has something to do with setting up the database user properly.
This may have to be done during import, or maybe it can be done after import. I ran the imp tool last night (I know it's deprecated in favour of impdp, but our backup is via exp and not expdp so I can't use impdp yet. I found this nugget yesterday in Oracle documentation:http://docs.oracle.com/cd/E11882_01/server.112/e23633/expimp.htm#BABIFFHB ).
When I ran the imp tool I used the following command:
imp system/manager file=pdmlink.dmp FULL=y commit=y
What leads me to this conclusion is that on the target test system I can't login to sqlplus with the username and password that works on the source production system.
If this causes any ideas in anyone, please share it here for the record. I'll post an update based on my current idea of setting the database user name or something like this.
- Jim
Hello Randy,
It sounds like you have a good system worked out. I do see that there are certain things that only have to be done the first time, and other tasks that can happen at other times. The rehosting utility can accomodate some of this by the looks of it. The guide perhaps doesn't cover this in enough detail, that being said it is not an easy topic to learn as many have said and I am experiencing.
- Jim
Hello Chris,
Congratulations on the new assignment. I wish I could attend this year's PTC Live to see your progress as you work to improve the rehost experience.
You commented, in a way, that you prefer linux. No site I have worked at yet has used Linux for their Windchill servers. Will there be good documentation, testing, and examples provided for those of us in a Microsoft / Oracle only world?
Thanks again.
So this came in from my clone posting to PTC Communities from Chris R Spartz:
I'm going to try this next.
Look for results later today.
So I tried this, and it works, well getting past the db validation works anyway:
Now I think I have to xconfmanager set my ldap password, because now it halts with these two errors separated by a bunch of java calls:
...
Hello Carsten,
I have been assigned to complete other tasks related to our PTC Creo and Windchill products. I'll try this solution as soon as I can and report back here.
Thanks again!