During log synchronization for a standby tenant, you can suspend and resume log synchronization.
Suspend log synchronization
Log on as the administrator to the standby tenant or the
systenant of the cluster where the standby tenant resides.Suspend log synchronization.
ALTER SYSTEM RECOVER STANDBY [TENANT = tenant_name] CANCEL ;You need to add the
TENANT = tenant_nameparameter to the statement to specify the name of the standby tenant only when you execute the statement in thesystenant.The following sample code suspends log synchronization for the standby tenant in the
systenant:ALTER SYSTEM RECOVER STANDBY TENANT = standby_tenant CANCEL ;Execute the following statement a standby tenant to suspend log synchronization for the standby tenant:
ALTER SYSTEM RECOVER STANDBY CANCEL;Notice
After you suspend log synchronization, the standby tenant no longer synchronizes logs from the primary tenant. This can interrupt log streams of the standby tenant. Proceed with caution.
Query the synchronization progress of log streams from the
DBA_OB_TENANTSandGV$OB_LOG_STATviews. The progress stops at the point in time at which the statement was executed.For more information, see View the log synchronization progress.
Enable log synchronization
After you suspend log synchronization for a standby tenant, you can resume log synchronization by changing the restore end point for the standby tenant.
Log on as the administrator to the standby tenant or the
systenant of the cluster where the standby tenant resides.Enable log synchronization.
ALTER SYSTEM RECOVER STANDBY [TENANT = tenant_name] UNTIL UNLIMITED;You need to add the
TENANT = tenant_nameparameter to the statement to specify the name of the standby tenant only when you execute the statement in thesystenant.UNLIMITEDindicates that the end point is infinite.Execute the following statement in the
systenant to enable log synchronization for the specified standby tenant:ALTER SYSTEM RECOVER STANDBY TENANT = standby_tenant UNTIL UNLIMITED;Execute the following statement in the standby tenant to enable log synchronization for the standby tenant:
ALTER SYSTEM RECOVER STANDBY UNTIL UNLIMITED;