Reusing custom staging triggers

If you created custom tables with staging triggers in a previous version of WebSphere Commerce, you can continue to use your custom triggers. Run the provided scripts to allow the unchanged custom triggers to continue to use the KEYS table to maintain the primary key values of the STAGLOG table.

Note: Alternatively, you can update your existing staging triggers for better performance and scalability. For an example of how to update your trigger, see Staging trigger example.

Procedure

  1. Connect to the staging database.
    • DB2db2 connect to stagingdbuser db_user using db_password
    • Oraclesqlplus db_user/db_password@stagingdb
  2. Run the following script:
    • DB2db2 -td# -vf WC_installdir/schema/db2/wcs.stage.heteroTriggerSupport.sql
    • Oraclesqlplus @WC_installdir/schema/oracle/wcs.stage.heteroTriggerSupport.sql