EsbPartitionResetOtlChangeTime

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
ParameterDescription

hCtx

API context handle.

pSourceRegion

Partition for the new time.

pDestRegion

Partition where the time is reset.

Notes

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