[!ProTrack Warehouse Wiki^homepage-button_GRN_V3.png!]
Documentation for ProTrack Warehouse 2013 Q2.
The following migration process is to be completed by a database admin (DBA).
The Move_LocationData_sp makes it easy to move XYZ data from one database to another while maintaining the integrity of the data. This functionality allows the user to configure the XYZs for new facilities or make changes to the configuration of existing facilities on a test environment separate from the production environment. This practice provides the security that any unintentional changes will not have a negative effect on the production standard calculations. Additionally, the XYZ data transfer ensures that ProTrack Warehouse does not process incorrectly any of the production data resulting from importing XYZ data while simultaneously importing WMS data.
There are two separate stored procedures that may be run to transfer data from a Test Environment to a Production system. The first (Move_LocationData_sp) is used to move the actual XYZ component data. The second only moves the two caches. Depending on the maintenance scenario, it may only be necessary to move the cache.
The Move_LocationData_sp copies all XYZ component data from one database to another. The stored procedure moves data from the following tables:
The Move_Cache_sp is used to move just the cache tables from one database to another:
TravelPathHistoryDetails
Info
All modifications are done in one direction reading from a database that is designated as “Source” and updating the database designated “Destination”. Any errors while executing this request will result in a full rollback of the data.
Click on the Scheduled Task sub-tab.
Fig.1 System Configuration
Select all of the check boxes.
Fig.2 System Configuration - Disable System
ONLY IF RUNNING MOVE_LOCATIONDATA_SP: Delete all XYZ data in the destination database by opening a new query (pointed at the destination database) and run the following statements, one-by-one from top to bottom:
Delete from level Delete from location Delete from segment Delete from aisle_path_node Delete from travel_path_node Delete from node Delete from aisle_path Delete from travel_path Delete from TravelPathHistoryDetails Delete from TravelPathHistory Delete from NodeCache
Run the following query:
exec dbo.Move_LocationData_sp @SourceDB = 'Insert Source DB Name Here', @DestDB = 'Insert Destination DB Name Here', @SourceServer = 'Insert Source Server Name or IP address Here', @DestServer = 'Insert Destination Server Name or IP address Here', @LinkedUserName = 'protrack', @LinkedUserPwd = 'protrack', @Debug = 0
Run the following query:
exec dbo.Move_Cache_sp 'Insert Source DB Name Here', 'Insert Destination DB Name Here', 'Insert Source Server Name or IP address Here', 'Insert Destination Server Name or IP address Here', 'INSERT'
Delete all cache data in the destination database by opening a new query (pointed at the destination database) and run the following statements, one-by-one from top to bottom:
Delete from TravelPathHistoryDetails Delete from TravelPathHistory Delete from NodeCache
Run the following query:
EXEC dbo.Move_Cache_sp 'Insert Source DB Name Here', 'Insert Destination DB Name Here', 'Insert Source Server Name or IP address Here', 'Insert Destination Server Name or IP address Here', 'INSERT'