Takes the last change time from the source partition and assigns it as a last metadata change time of a destination partition.
Syntax
EsbPartitionResetOtlChangeTime (hCtx, pSourceRegion, pDestRegion) ByVal hCtx As Long pSourceRegion As ESB_PART_DEFINED_T pDestRegion As ESB_PART_DEFINED_T
Parameter | Description |
---|---|
hCtx | API context handle. |
pSourceRegion | Partition for the new time. |
pDestRegion | Partition where the time is reset. |
Notes
The source partition refers to a partition that provides a time stamp, and a target partition refers to a partition which receives the time stamp.
A source partition does not have to be either a data source partition or an outline source partition.
Return Value
Returns zero if successful; error code if unsuccessful.
Access
A call to this function requires Database Manager access privileges.
Example
Public Sub ESB_PartitionResetOtlChangeTime() Dim SourcePartition As ESB_PART_DEFINED_T Dim DestPartition As ESB_PART_DEFINED_T SourcePartition.usType = ESB_PARTITION_OP_REPLICATED DestPartition.usType = ESB_PARTITION_OP_REPLICATED SourcePartition.Direction = ESB_PARTITION_DATA_SOURCE DestPartition.Direction = ESB_PARTITION_DATA_TARGET SourcePartition.HostDatabase.HostName = "Dscharton2" DestPartition.HostDatabase.HostName = "Dscharton2" SourcePartition.HostDatabase.AppName = "Sampeast" DestPartition.HostDatabase.AppName = "East" SourcePartition.HostDatabase.DbName = "Samppart" DestPartition.HostDatabase.DbName = "Company" sts = EsbPartitionResetOtlChangeTime(hCtx, _ SourcePartition, DestPartition) End Sub
See Also