<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Which Rehosting Method? in Windchill</title>
    <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310386#M36438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&amp;nbsp; This is good information.&amp;nbsp; I will check with our DBA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 13:01:52 GMT</pubDate>
    <dc:creator>tchao</dc:creator>
    <dc:date>2015-10-29T13:01:52Z</dc:date>
    <item>
      <title>Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310363#M36415</link>
      <description>It has been a while since I had to rehost my production machine to a test server, but I recently upgraded to 10.2 and would like my test server to reflect the 10.2 production server so that I have a fresh start. I would like to use the Rehost 2.0 tool to help me since I do not want</description>
      <pubDate>Wed, 02 May 2018 12:41:04 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310363#M36415</guid>
      <dc:creator>BrianToussaint</dc:creator>
      <dc:date>2018-05-02T12:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310364#M36416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also on 10.2 M020 in a virtual environment. I have a .bat file that manually stops the services on the test system, copies the files from production, then runs the rehosting utility. It pauses prior to the rehost step to give me time to export and re-import the database. I do all of this with the production system online and I do not use a second staging area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The projects.properties file contains just this one line: &lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;clone.prod=InfoEngine,Database,Apache,IEAdapter,WVSAgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the steps I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;Production Database Server&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;Backup Windchill database to disk (SQL script)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;Test Database Server&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;Copy database backup file from production server&lt;/LI&gt;&lt;LI&gt;Restore Database&lt;/LI&gt;&lt;LI&gt;Fix Windchill user account&lt;/LI&gt;&lt;/UL&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;USE windchill&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;GO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;sp_change_users_login @Action='Report'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;GO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;EXEC sp_change_users_login 'Auto_Fix', 'windchill'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;GO&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Delete the entry from RMISTUBS table in the database. See CS150162.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;delete from windchill.RMIStubs where RMIStubs.Name ='CacheMaster'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;Test Application Server&lt;/H3&gt;&lt;H4&gt;Scripted Steps&lt;/H4&gt;&lt;UL&gt;&lt;LI&gt;Stop Windchill Services&lt;/LI&gt;&lt;LI&gt;Copy Application Data&lt;/LI&gt;&lt;LI&gt;Copy File Vault&lt;/LI&gt;&lt;LI&gt;Replace WVS Agent.ini File (single CAD worker for test environment)&lt;/LI&gt;&lt;LI&gt;Customize GUI for DEV (differnt color background, header message, etc.)&lt;/LI&gt;&lt;LI&gt;Clear Tomcat Cache&lt;/LI&gt;&lt;LI&gt;Delete Windchill Log Files&lt;/LI&gt;&lt;LI&gt;Delete Apache Log Files&lt;/LI&gt;&lt;LI&gt;Delete Directory Server Log Files&lt;/LI&gt;&lt;LI&gt;Start Windchill DS&lt;/LI&gt;&lt;LI&gt;Run Rehost Utility&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;Manually Steps&lt;/H4&gt;&lt;UL&gt;&lt;LI&gt;Stop WindchillDS&lt;/LI&gt;&lt;LI&gt;Clear Tomcat Cache&lt;/LI&gt;&lt;LI&gt;Update Trusted Hosts (for different CAD worker)&lt;/LI&gt;&lt;LI&gt;Start Windchill Services&lt;/LI&gt;&lt;LI&gt;Manually remove the remote file server&lt;/LI&gt;&lt;LI&gt;Clear out the visualization queues&lt;/LI&gt;&lt;LI&gt;Delete extra publisher queues&lt;/LI&gt;&lt;/UL&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;windchill wt.queue.QueueManager&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 19:17:50 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310364#M36416</guid>
      <dc:creator>TomU</dc:creator>
      <dc:date>2015-04-10T19:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310365#M36417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the information. Gives me a good starting point to work from. On the Replace WVS Agent.ini File, if I do not have CAD worker for my test environment, what do I do? For WindchillDS, do I copy that as well, or do I need to install that first and import the ldif file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 13:07:35 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310365#M36417</guid>
      <dc:creator>BrianToussaint</dc:creator>
      <dc:date>2015-04-13T13:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310366#M36418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want the test environment configured for publishing, you can just completely delete the agent.ini file. (This defines the workers.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as Windchill DS, I just copy the entire thing. I don't bother with exporting or importing the ldif. There is nothing about Windchill, WindchillDS, or Apache that requires any type of actual Windows installation. As long as the files are in the right place, they will run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 13:21:06 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310366#M36418</guid>
      <dc:creator>TomU</dc:creator>
      <dc:date>2015-04-13T13:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310367#M36419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha. Thanks for the information. Does the copy slow down your productions server? I'm worried that it might slow mine down when I get to the file vault. I have 400GB in my vault.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 13:24:52 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310367#M36419</guid>
      <dc:creator>BrianToussaint</dc:creator>
      <dc:date>2015-04-13T13:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310368#M36420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, a little. I think the database export is actually more impactful than the vault copy. Normally I kick this off after most people have gone home for the day. The whole process can be completed in less than an hour. (Our database is 60 GB and file vault is 650 GB.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 13:30:34 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310368#M36420</guid>
      <dc:creator>TomU</dc:creator>
      <dc:date>2015-04-13T13:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310369#M36421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, I use robocopy for the file copying. See below for sample. (I actually did install the Java SDK locally on the test system, so only the Java installer folder needed to be copied.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM ======= Copy Application Data ========&lt;BR /&gt;REM ======================================&lt;BR /&gt;robocopy \\production_server\e$\ptc\Windchill_10.2\HTTPServer E:\PTC\Windchill_10.2\HTTPServer /mir /ns /nc /nfl&lt;BR /&gt;robocopy \\production_server\e$\ptc\Windchill_10.2\PSI E:\PTC\Windchill_10.2\PSI /mir /ns /nc /nfl&lt;BR /&gt;robocopy \\production_server\e$\ptc\Windchill_10.2\Windchill E:\PTC\Windchill_10.2\Windchill /mir /ns /nc /nfl&lt;BR /&gt;robocopy \\production_server\e$\ptc\Windchill_10.2\WindchillDS E:\PTC\Windchill_10.2\WindchillDS /mir /ns /nc /nfl&lt;BR /&gt;robocopy \\production_server\e$\PTC\Windchill_10.2\Java\installer E:\PTC\Windchill_10.2\Java\installer /mir /ns /nc /nfl&lt;/P&gt;&lt;P&gt;REM ========== Copy File Vault ===========&lt;BR /&gt;REM ======================================&lt;BR /&gt;robocopy \\production_server\f$\WC_Vault F:\WC_Vault /mir /ns /nc /nfl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 13:53:11 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310369#M36421</guid>
      <dc:creator>TomU</dc:creator>
      <dc:date>2015-04-13T13:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310370#M36422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this information I am trying to do the same thing.&lt;/P&gt;&lt;P&gt;FYI:&lt;/P&gt;&lt;P&gt;I noticed that you had stop and start windchill services as well as clearing the tomcat cache as manual steps. I just wrote some powershell scripts to do this here they are if you want them obviously you will need to change the service names and paths to be correct for your Windchill environment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script 1 Stop Windchilll Services: ===================================&lt;/P&gt;&lt;P&gt;#Stop Windchill Services&lt;/P&gt;&lt;P&gt;#3-30-2015&lt;/P&gt;&lt;P&gt;#Brian R. Reed&lt;/P&gt;&lt;P&gt;FUNCTION STOPWINDCHILL(){&lt;/P&gt;&lt;P&gt; Stop-Service "PTC-Windchill"&lt;/P&gt;&lt;P&gt; Stop-Service "PTC-WindchillDS"&lt;/P&gt;&lt;P&gt; Stop-Service "PTC-Apache"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script 2 Start Windchill Services: ====================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Script to Start Windchill Services&lt;/P&gt;&lt;P&gt;#3-30-2015&lt;/P&gt;&lt;P&gt;#Brian R. Reed&lt;/P&gt;&lt;P&gt;FUNCTION STARTWINDCHILL(){&lt;/P&gt;&lt;P&gt; Start-Service "PTC-Apache"&lt;/P&gt;&lt;P&gt; Start-Service "PTC-WindchillDS"&lt;/P&gt;&lt;P&gt; Sleep 15&lt;/P&gt;&lt;P&gt; Start-Service "PTC-Windchill"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;STARTWINDCHILL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script 3 Stop Services Clear Cache Start Services: ===================================&lt;/P&gt;&lt;P&gt;#Script Written by Brian Reed&lt;BR /&gt;#Functionality: This script does the following:&lt;BR /&gt;#----1. Shuts down Windchill &lt;BR /&gt;#----2. Shuts down Windchill DS&lt;BR /&gt;#----3. Shuts down Apache&lt;BR /&gt;#----4. Checks to make sure Services were terminated - If not tries again. &lt;BR /&gt;#----5. Clears System Cache&lt;BR /&gt;#----6. Restarts Apache&lt;BR /&gt;#----7. Restarts Windchill DS&lt;BR /&gt;#----8. Restarts Windchill&lt;/P&gt;&lt;P&gt;$allServicesStoppedFlag = $false&lt;BR /&gt;$allServicesStartedFlag = $false&lt;/P&gt;&lt;P&gt;#allServicesStatus gives the current state of the Windchill Services&lt;BR /&gt;#$True means services are on&lt;BR /&gt;#$False means services are off&lt;BR /&gt;#"" means service status unknown&lt;BR /&gt;$allServicesStatus = $null&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FUNCTION STOPWINDCHILL(){&lt;BR /&gt; Stop-Service "PTC-Windchill"&lt;BR /&gt; Stop-Service "Windchill Directory Server"&lt;BR /&gt; Stop-Service "PTC-Apache"&lt;BR /&gt;}&lt;BR /&gt;FUNCTION STARTWINDCHILL(){&lt;BR /&gt; Start-Service "PTC-Apache"&lt;BR /&gt; Start-Service "Windchill Directory Server"&lt;BR /&gt; sleep 15&lt;BR /&gt; Start-Service "PTC-Windchill"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#Attempt to Stop Windchill Services:&lt;BR /&gt;STOPWINDCHILL&lt;/P&gt;&lt;P&gt;#Get status of Windchill Services: &lt;BR /&gt;FUNCTION GETSERVICESTATUS(){&lt;BR /&gt;$WindchillServiceInfo = Get-Service "PTC-Windchill"&lt;BR /&gt;$ApacheServiceInfo = Get-Service "PTC-Apache"&lt;BR /&gt;$WindchillDSServiceInfo = Get-Service "Windchill Directory Server"&lt;BR /&gt;return $WindchillServiceInfo, $ApacheServiceInfo, $WindchillDSServiceInfo&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;FUNCTION TESTSERVICESTATUS(){&lt;BR /&gt; $aStatus = GETSERVICESTATUS&lt;BR /&gt; $wc1 = ""&lt;BR /&gt; $wc2 = ""&lt;BR /&gt; $wc3 = ""&lt;BR /&gt; $serviceOn = ""&lt;BR /&gt; foreach($item in $aStatus){&lt;BR /&gt; if ($item.Name -eq "PTC-Windchill"){&lt;BR /&gt; if($item.Status -eq "Running"){$wc1 = $true}&lt;BR /&gt; elseif($item.Status -eq "Stopped"){$wc1 = $false}&lt;BR /&gt; else{$wc1 = ""}&lt;BR /&gt; }&lt;BR /&gt; elseif($item.Name -eq "PTC-Apache"){&lt;BR /&gt; if($item.Status -eq "Running"){$wc2 = $true}&lt;BR /&gt; elseif($item.Status -eq "Stopped"){$wc2 = $false}&lt;BR /&gt; else{$wc2 = ""}&lt;BR /&gt; }&lt;BR /&gt; elseif($item.Name -eq "Windchill Directory Server"){&lt;BR /&gt; if($item.Status -eq "Running"){$wc3 = $true}&lt;BR /&gt; elseif($item.Status -eq "Stopped"){$wc3 = $false}&lt;BR /&gt; else{$wc3 = ""}&lt;BR /&gt; }&lt;BR /&gt; else{&lt;BR /&gt; $allServicesStartedFlag = $null&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; if($wc1 -eq $true -and $wc2 -eq $true -and $wc3 -eq $true){&lt;BR /&gt; $serviceOn -eq $true&lt;BR /&gt; }&lt;BR /&gt; elseif($wc1 -eq $false -and $wc2 -eq $false -and $wc3 -eq $false){&lt;BR /&gt; $serviceOn -eq $false&lt;BR /&gt; }&lt;BR /&gt; else{&lt;BR /&gt; $serviceOn -eq $null&lt;BR /&gt; }&lt;BR /&gt; return $serviceOn&lt;BR /&gt;}&lt;BR /&gt; &lt;BR /&gt;#Test Services Status&lt;BR /&gt;$serviceStatus = TESTSERVICESTATUS&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#If Services stopped continue&lt;BR /&gt;if($serviceStatus -eq $false){&lt;BR /&gt;}&lt;BR /&gt;#If Services did not stop try again:&lt;BR /&gt;else{&lt;BR /&gt; $i = 0&lt;BR /&gt; while($i -lt 3){&lt;BR /&gt; sleep 20&lt;BR /&gt; STOPWINDCHILL&lt;BR /&gt; $serviceStatus = TESTSERVICESTATUS&lt;BR /&gt; $i++&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#Clear System Cache:&lt;BR /&gt;Remove-Item D:\ptc\Windchill_10.0\Windchill\tomcat\instances\* -recurse&lt;BR /&gt;Remove-Item D:\ptc\Windchill_10.0\Windchill\tasks\codebase\com\infoengine\compiledTasks\* -recurse&lt;BR /&gt;Remove-Item D:\ptc\Windchill_10.0\Windchill\logs\* -recurse&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#Start Windchill&lt;BR /&gt;STARTWINDCHILL&lt;BR /&gt; &lt;BR /&gt;#If Services started exit script&lt;BR /&gt;if($serviceStatus -eq $true){&lt;BR /&gt; }&lt;BR /&gt;#If Services did not start try again:&lt;BR /&gt;else{&lt;BR /&gt; $i = 0&lt;BR /&gt; while($i -lt 3){&lt;BR /&gt; sleep 20&lt;BR /&gt; STARTWINDCHILL&lt;BR /&gt; $serviceStatus = TESTSERVICESTATUS&lt;BR /&gt; $i++&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:34:55 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310370#M36422</guid>
      <dc:creator>breed</dc:creator>
      <dc:date>2015-04-13T15:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310371#M36423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually they are scripted the first time around, just not after the rehosting process. (For some reason the rehost process terminates the script I launch it from when finished.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just using plain old batch file syntax. Quite a bit simpler. &lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM ====== Stop Windchill Services =======&lt;/P&gt;&lt;P&gt;REM ======================================&lt;/P&gt;&lt;P&gt;net stop "PTC Windchill Method Server"&lt;/P&gt;&lt;P&gt;net stop "PTCWindchillWebServer"&lt;/P&gt;&lt;P&gt;net stop "PTC Windchill Directory Server"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM ========= Clear Tomcat Cache =========&lt;BR /&gt;REM ======================================&lt;BR /&gt;RMDIR E:\ptc\Windchill_10.2\Windchill\tomcat\instances /Q /S&lt;BR /&gt;RMDIR E:\ptc\Windchill_10.2\Windchill\tasks\codebase\com\infoengine\compiledTasks /Q /S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM ===== Delete Windchill Log Files =====&lt;BR /&gt;REM ======================================&lt;BR /&gt;RMDIR /S /Q E:\PTC\Windchill_10.2\Windchill\logs\&lt;BR /&gt;MKDIR E:\PTC\Windchill_10.2\Windchill\logs\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM ====== Delete Apache Log Files =======&lt;BR /&gt;REM ======================================&lt;BR /&gt;del /f /q E:\PTC\Windchill_10.2\HTTPServer\logs\*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM ====== Delete Directory Server Log Files ======&lt;BR /&gt;REM ======================================&lt;BR /&gt;del /f /q E:\PTC\Windchill_10.2\WindchillDS\server\logs\*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:41:57 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310371#M36423</guid>
      <dc:creator>TomU</dc:creator>
      <dc:date>2015-04-13T15:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310372#M36424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see. I wonder why it terminates? Maybe you could use the start command to launch a second batch file and then wait for it to terminate before continuing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:52:09 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310372#M36424</guid>
      <dc:creator>breed</dc:creator>
      <dc:date>2015-04-13T15:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310373#M36425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far most of it is going okay but I did run across a couple of things and was wondering what you did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to copy the HTTPServer directory, it errors on the logs saying that the file cannot be copied and it keeps on trying to copy it. Once I turned off Apache on the production server, it copied fine. How does yours work since you are doing it live?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you do with the PTC software installed on the SQL server? Do you copy that directory over or do you install it separately and go with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that it is going okay. I'm in the middle of copying the vault for the first time and have stopped it during working hours since I do not want to tie up the production server copying files. I let it run over 8 hours last night and am less than 75% done. &lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/sad.png" /&gt; Once it is done, then I can try the rehost portion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:59:43 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310373#M36425</guid>
      <dc:creator>BrianToussaint</dc:creator>
      <dc:date>2015-04-14T12:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310374#M36426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What copy method are you using? Did you try the robocopy syntax? If so, maybe try adding /r:2 to the end. This will limit the retries to twice on failure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running Windows Server 2012 and 2012R2 and I don't have any problem copying files that are in use. On the other hand, you don't need the logs. You're probably going to delete them anyway. Maybe you should tweak your copy script to just exclude them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have SQL fully installed on both the production and test database servers. To copy the database over I'm simply making a backup of the database on the production system, physically copying the file to the test system, then restoring the database from the backup. If you've never had a Windchill database in the test system before, you will also need to create the proper SQL login for the Windchill database user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually performed a clean installation of Windchill on the entire test environment and then later did the clone. This had the benefit of getting the proper shortcuts created for the Windchill shell, getting the database server properly configured, etc. Probably worth doing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:18:42 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310374#M36426</guid>
      <dc:creator>TomU</dc:creator>
      <dc:date>2015-04-14T13:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310375#M36427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Robocopy for the first time and like it a bunch. I'll have to play around with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did install 10.2 on my test servers for upgrade testing, so that was already setup. I was just wondering about when you update the software if you did it manually on the SQL server machine or if you copied it. I'll probably go with manually updating it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm on Windows 2008 R2 and SQL 20008 and IT is wanting me to switch to 2012 on both fronts. Was going from 2008 to 2012 easy? Did you need a new server for the upgrade or did you just upgrade the software and OS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Tom for all the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:45:43 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310375#M36427</guid>
      <dc:creator>BrianToussaint</dc:creator>
      <dc:date>2015-04-14T13:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310376#M36428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copying the database is simple enough, but you just can't copy the entire SQL installation. That is heavily integrated with the OS, so you will need to use the installer for that. (Make sure you're collation is set right!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We run a VMware virtual environment, so when I moved from 9.1 to 10.2 I just set up entirely new VMs for the application and database servers. As a rule I much prefer clean OS installs to in-place upgrades. By the way, 2012&lt;STRONG&gt;R2&lt;/STRONG&gt; isn't supported for 10.2 M020, so I'm only running that on the development system. Production is running 2012. 2012R2 &lt;EM&gt;&lt;STRONG&gt;is&lt;/STRONG&gt;&lt;/EM&gt; supported for 10.2 M030.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 14:05:39 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310376#M36428</guid>
      <dc:creator>TomU</dc:creator>
      <dc:date>2015-04-14T14:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310377#M36429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am finally at the point where I want to do the rehost. I have followed your steps above and am at the rehost portion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing a lot of manual copying, how can you run it as clone? I thought that clone does a copy? Why wouldn't you use rename for the type of rehost?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 15:07:08 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310377#M36429</guid>
      <dc:creator>BrianToussaint</dc:creator>
      <dc:date>2015-04-20T15:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310378#M36430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After reading through the guide I determined that the clone made the most sense based on the following statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Rehost&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="rehost.PNG" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/87510_rehost.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Clone&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="clone.PNG" class="jive-image image-2" src="https://community.ptc.com/legacyfs/online/87511_clone.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each time I refresh the test environment, I want an exact copy of production. I don't want to run the risk that something in test is left different than production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though I'm running the "clone" scenario, I'm not running the "Copy" task. When I originally worked through the guide I was under the impression that I needed to have an intermediate staging area that the production data had to be copied to before the rehost copy task could be run. Since I wasn't interested in doing that I opted to copy the data manually myself and then leave that step out of the projects.properties file. It's entirely possible that copy will actually copy directly from production to test, but I've never taken the time to configure it that way or try it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 15:31:37 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310378#M36430</guid>
      <dc:creator>TomU</dc:creator>
      <dc:date>2015-04-20T15:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310379#M36431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I think I've got it now. At least I'm on a virtual and can go back if I mess something up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 16:11:21 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310379#M36431</guid>
      <dc:creator>BrianToussaint</dc:creator>
      <dc:date>2015-04-20T16:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310380#M36432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've occasionally run into issues using sc to stop services, as not all of the processes would stop (we have multiple background method servers and method servers running on each server) before it returned. I wonder if using Power shell to do this would help. Right now we're using a Java program that queries sc to see if all of the processes are stopped (and does some other stuff, such as pausing after stopping the processes to allow files to be released before attempting to delete them).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 13:30:13 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310380#M36432</guid>
      <dc:creator>mmuth</dc:creator>
      <dc:date>2015-05-05T13:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310381#M36433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are having trouble getting the services to stop you should give Powershell a try. I don't use it in the script above but, you can use the "-force" flag to forcefully terminate a process that is hanging. I recomend at the very least trying to stop the process without using the -force flag first to avoid any data loss from terminating a process before it has committed user changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some exaples for ending a process and service:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try to end them in a "nice" way: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Get-Process "PTC-Windchill" | Stop-Process&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Get-Service "PTC-Windchill" | Stop-Service&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Force them to stop:&lt;/P&gt;&lt;P&gt;Get-Process "PTC-Windchill" | Stop-Process -force&lt;/P&gt;&lt;P&gt;Get-Service "PTC-Windchill" | Stop-Service -force&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 16:14:18 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310381#M36433</guid>
      <dc:creator>breed</dc:creator>
      <dc:date>2015-06-23T16:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Which Rehosting Method?</title>
      <link>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310382#M36434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Tom:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw this commands and seems like this is for SQL Server only:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Fix Windchill user account&lt;/LI&gt;&lt;/UL&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;USE windchill&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;GO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;sp_change_users_login @Action='Report'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;GO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;EXEC sp_change_users_login 'Auto_Fix', 'windchill'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;GO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find this info in the Rehosting Utility Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you or anyone know if I have to do this in Oracle DB?&amp;nbsp; (I am not the DBA)&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:10:35 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Which-Rehosting-Method/m-p/310382#M36434</guid>
      <dc:creator>tchao</dc:creator>
      <dc:date>2015-10-28T18:10:35Z</dc:date>
    </item>
  </channel>
</rss>

