Migrate > Take the first steps after WebSphere Commerce migration > Migrating store data
Migrate store functions and store style from WebSphere Commerce Accelerator to Management Center
Use the migrateStoreFunctions utility to migrate store functions and store style from WebSphere Commerce Accelerator to Management Center.
By running the store functions migration utility, you migrate existing store function data and store style data so that business users can use the Store Management tool within Management Center to manage store functions and store style, instead of WebSphere Commerce Accelerator.
Prior to WebSphere Commerce v7 Feature Pack 2, store functions were referred to as change flows.
Before you begin
Ensure you have reviewed and understood the information in Overview of migrating store functions and store style from WebSphere Commerce Accelerator to Management Center v7 Feature Pack 2.
Before running the store functions migration utility, ensure that you have:
The store functions migration utility is a script that calls an ANT task. This ANT task loads a configuration file to migrate store functions data and store style data to the Management Center database tables. Error conditions are written to standard output. The store functions migration script performs the following actions:
- Converts store function settings and store style settings contained in the Features.xml file to e-Marketing Spot data.
- Disables the change flow option in WebSphere Commerce Accelerator.
Procedure
- Stop the WebSphere Commerce server.
Ensure that you run the store functions migration utility as the wasuser user.
To do so, issue the following command: su - wasuser_ID where wasuser_ID is the non-root user ID created before installing WebSphere Commerce. The default WebSphere Application Server user name is wasuser.
- Open a command prompt window.
- Run the store functions migration utility with arguments specifying the build file and the information needed to connect to a database in the server environment.
Call the migration script with the following command:
WCDE_installdir/components/management-center/bin/migrateStoreFunctions.bat -Dstore="storeId1, storeId2" -verbose
- -Dstore
- Required. Specifies the store IDs of the stores that to migrate, separated by commas.
To migrate all of the stores in the database, use –Dstore="ALL"
- -verbose
- Optional. Indicates that you require additional logging for use when debug the command.
Call the migration script with the following command:
WC_INSTALL/bin/config_ant.bat -buildfile WC_INSTALL/components/management-center/migration/optional/components/management-center/subcomponents/store/config/StoreFunctionsMigration.xml -DinstanceName=instance -DdbUserName=database_username -DdbUserPassword=database_password -Dstore="storeId1, storeId2" -logfile logfile_path -verbose
WC_INSTALL/bin/config_ant.bat -buildfile WC_INSTALL/components/management-center/migration/optional/components/management-center/subcomponents/store/config/StoreFunctionsMigration.xml -DinstanceName=instance -DdbUserName=database_username -DdbUserPassword=database_password -Dstore="storeId1, storeId2" -logfile logfile_path -verbose
- -buildfile
- Required. Specifies the build file to use for the migration. This parameter must be followed by the path to the migration build file as shown.
- -DinstanceName
- Required. Specifies the instance to migrate. When using this parameter, replace instance with the name of the WCS instance for which you are migrating the store functions data and the store style data.
- -DdbUserName
- Required. Provides the user account to use to connect to the database. When using this parameter, replace database_username with the WebSphere Commerce database user's username.
- -DdbUserPassword
- Required. Provides the password to use to connect to the database. When using this parameter, replace database_password with the WebSphere Commerce database user's password.
- -Dstore
- Required. Specifies the store IDs of the stores that to migrate, separated by commas.
To migrate all of the stores in the database, use –Dstore="ALL"
- -logfile
- Optional. Specifies the location of a log file. When using this parameter, replace logfile_path with the absolute path of a file to contain logging information, for example, C:\logs\migrateStoreFunctionsLog.txt. If you do not specify this parameter, the logging information is displayed in the console.
- -verbose
- Optional. Indicates that you require additional logging for use when debug the command.
- Optional: Review the log file to understand the results of the migration.
What to do next
After running the store functions migration utility, manually migrate the Management Center user interface files to ensure that the site is configured to support the new store function settings and store style settings available with Management Center.
Previous topic:
Overview of migrating store functions and store style from WebSphere Commerce Accelerator to Management Center v7 Feature Pack 2
Next topic:
Migrate Management Center user interface files to support new store functions and store style settings