Non-Shareplex applications upgrade usually involve DDL changes. For this reason it requires additional considerations.
Here are the ways to do it:
A. If done in a one-way replication environment:
- Turn off DDL replication for replicating objects by setting SP_OCT_REPLICATE_DDL to 0 as well as for non-replicating objects by setting SP_OCT_REPLICATE_ALL_DDL to 0 on source sp_ctrl:
sp_ctrl>set param SP_OCT_REPLICATE_DDL 0
sp_ctrl>set param SP_OCT_REPLICATE_ALL_DDL 0
- Issue flush from source sp_ctrl:
sp_ctrl>flush o.SID (where SID refers to the Oracle SID on source)
- Shutdown Shareplex and do the application upgrade on source, and then restart Shareplex on source.
- Turn on the DDL replication to the state it was prior to application upgrade. For example, if the parameters SP_OCT_REPLICATE_DDL and SP_OCT_REPLICATE_ALL_DDL were originally set to 3 and 0 respectively (which usually are the default settings), then set them as below:
sp_ctrl>set param SP_OCT_REPLICATE_DDL 3
sp_ctrl>set param SP_OCT_REPLICATE_ALL_DDL 0
- On taraget , once Post stops due to flush, shutdown Shareplex and do the application upgrade and then restart Shareplex and Post. To start Post:
sp_ctrl>start post
An alternate way to do this is to set SP_OCT_GEN_STOP to 0x03 on source (which directs Capture to stop gathering changes from the source database) for the duration of patch upgrade but may involve some caution as doing it wrongly can result in data loss. Hence this approach is not documented here.
B. Doing it in a peer to peer environment involves additional steps. They are outlined below:
- Turn off DDL replication for replicating objects by setting SP_OCT_REPLICATE_DDL to 0 as well as for non-replicating objects by setting SP_OCT_REPLICATE_ALL_DDL to 0 (on both nodes)
- Issue flush from sp_ctrl on both nodes
- Once Post stops on both nodes, shutdown Shareplex on both nodes and do the application upgrade, and then restart Shareplex on both nodes and restart Post on these.
- Turn on the DDL replication to the state it was prior to application upgrade.