Exporting customer segments from the production database in a development environment
You can configure your WebSphere Commerce development environment so that you can export customer information from the production environment database. You can then use the customer information to help test any customization of the customer segment export feature.
For more information about exporting customer segment information with the Marketing tool, see Exporting customer segment information.
Before you begin
- Create a user and assign the user the Marketing Director role. Only a Marketing Director can download a customer segment export file.
- Enable logging and tracing. For the Marketing tool, turn on the trace for the com.ibm.commerce.marketing.segment component.
Procedure
- Configure a connection to the production environment database.
- Synchronize the customer segments between the development and production environments.
-
Ensure that the customer segments in your development environment that you want to export exist
in your production environment. If a segment that is being exported does not exist in the production
environment, the generated export file does not include any data.
The customer segments that you want to export need to have the same identifying values in both environments. For example, the MBRGRP.MBRGRP_ID value. The customer segment export uses the ID values in the development environment to create an SQL query to retrieve the customer segment information. By having the same values in both environments, you can ensure that the query retrieves data for the correct segment. If the ID values are different between environments, the query can fail to return information from the production environment database or return information for the wrong customer segment.
-
Configure the customer segment export feature to use the production environment database
connection.
- Restart the WebSphere Commerce Test Server.
-
Verify that the configuration is successful and that you can export customer segments from the
production environment database.