Administer > Stage server > Create a staging server
Create a staging server on a migrated environment
- Run stagingprop to ensure that all the latest changes are available on the production server.
- Back up the staging trigger definition of the custom tables as well as their corresponding records in the following tables:
If you are not sure about the staging triggers, check the file...
WC_INSTALL/schema/db_type/wcs.stage.trigger.sql...where db_type is either db2 or oracle.
- Migrate the production server.
- Create a WCS instance as a staging server:
- Start the Instance Creation wizard.
- Complete the pages of the wizard.
- On the Staging page of the wizard, ensure that you select...
Use staging serverIf you do not select this check box, the resulting WCS instance is a production WCS instance.
- Ensure that caching is not enabled in the Cache page.
When the instance creation process completes, you have created a staging instance.
- Redefine the custom tables in the staging database schema.
- Place the backed up records into the STGMERTAB, STGSITETAB, and STGMRSTTAB table, depending on the scope of the table.
- Redefine the staging triggers for the custom tables in the wcs.stage.trigger.sql file.
Do not run the wcs.stage.trigger.sql file or change the wcs.droptrigger.sql file.
- Run stagingcopy to synchronize the staging database with the production database.
- Modify the wcs.droptrigger.sql file to include all the custom tables after running the stagingcopy utility.
- Copy the nondatabase assets such as JSP files, JavaScript files, and image files, from the production server to the staging server.