stagingprop utility

The stagingprop propagates staged data and managed files from the production-ready data to the production environment.

The stagingprop retrieves all the unprocessed STAGLOG records. An unprocessed STAGLOG record is any record where the value of the column STGPROCESSED is set to 0. Successful stagingprop updates STGPROCESSED to processed (1).

The stagingprop has two stages: consolidation and propagation. During consolidation, stagingprop examines STAGLOG and determines which STAGLOG records can be marked processed without propagation. Processed STAGLOG records are then propagated to the production database.

We can run stagingprop consolidation without propagation by omitting the following parameters: destdb, destdb_user, and dest_passwd. If some of the parameters are supplied, or if the stagingprop utility cannot establish a connection to the production database with the parameters, the utility does not run successfully. We can also skip the consolidation phase when there are no new records to consolidate since the previous consolidation ran. When there are no new records within the STAGLOG database table that need to be consolidated, a message outputs to the log file to indicate that consolidation is to be skipped. Otherwise, the consolidation phase executes normally. An end-of-consolidation marker marks the last examined record from the consolidation phase. To revert this new functionality so that the consolidation phase is always performed, the end-of-consolidation marker must be deleted using the following SQL command:

Where the -1 value represents the end-of-consolidation marker.

Run stagingprop on a system that can connect to both the staging environment and the production environment database.

After staging propagation, the cache gets invalidated by the following mechanisms:

If the staging environment contains either web activities, or content spots, refresh the registry before any updates are displayed on the site.

To successfully run the stagingprop, the staging and production environments must be at the same maintenance level and have the same features enabled.

We can determine which tables are propagated by the stagingprop utility by viewing the list of managed tables.

Optimize the performance of the stagingprop by ensuring that the default isolation level for WebSphere Application Server is set to Cursor Stability.


Parameter values


Related tasks
Run utilities from the Utility server Docker container
Configure the Oracle database connection for utilities to authenticate users with Oracle Wallet
Create a database table filter list
Create a staging filter configuration XML file
Filter data for the stagingprop to propagate
Publish data to the production database
Prevent the WebSphere Commerce application from restarting during the propagation of managed file data
Create SQL triggers to override WebSphere Commerce database table triggers


Related reference
Example: Propagate filtered promotion data to the production database