You can materialize a replicate table from a primary table where user and replication activity cannot be stopped and replication to other tables in the replicate database must continue.
In the direct_load method, the replicate SAP Replication Server logs directly into the primary SAP ASE database, and selects the rows to be materialized for the table. Datatype translations and custom function strings are utilized before applying the data to the replicate table. During materialization, replication activity continues from the primary database and the rows for the table are placed into a catchup queue in SAP Replication Server. The data in the catchup queue is automatically applied, once the rows from the initial select are applied at the target. At which time, the subscription is marked VALID, and activities from the primary table are replicated to the replicate table.
isql –Usa –Ppassword -Sreplicate_Replication_Server sysadmin site_version go The current site version is 1571100
isql –Usa –Psa_pass –SPRS2 drop subscription t1_sub for t1_repdef with replicate at sunak1505x.rep without purge go
isql –Uuser -Ppassword -Sreplicate_ASE_server -Dreplicate_database truncate table t1 go
isql –Usa –Psa_pass –SPRS2 create subscription t1_sub for t1_repdef with replicate at sunak1505x.rep without holdlock direct_load user puser password ppwd go
check subscription t1_sub for t1_repdef with replicate at sunak1505x.rep go
Message: Subscription t1_sub is VALID at the replicate. This indicates materialization is complete and the catchup queue is drained.
Message: Subscription t1_sub encountered ERROR. This indicates that the Replication Server encountered an error when completing the direct load. Check the Replication Server and ASE logs to see the problems encountered.
Subscription t1_sub has been MATERIALIZED at the replicate.
Subscriptions t1_sub progress: catchup, 0% done, -1 commands remaining.Indicates that the direct_load has not completed or that there may be a problem in completing the direct_load process. This also indicates that the replicate DSI has not received the validation marker yet. In this case, make sure the replication path is working.
If there is an error, drop the subscription and start the direct_load process over.