EsbPartitionPutReplCells

Description

EsbPartitionPutReplCells() replicates all data cells that are identified in the replication partition from the selected source database to the target database.

Syntax

EsbPartitionPutReplCells (hCtx, ReplicatedRegion, HostAppDbList)
ByVal hCtx             As Long
      ReplicatedRegion As ESB_PART_REPL_T
ByVal HostAppDbList    As String

Parameters

hCtx Essbase API context handle.
ReplicatedPartition Partition information.
HostAppDbList List of database/applications on the host server.

Return Value

Returns zero if successful; error code if unsuccessful.

Notes

This routine removes the file if it's empty after purging.

Access

A call to this function requires database designer access privileges.

Example

Public Sub ESB_PartitionPutReplCells()

   Dim ReplPartition As ESB_PART_REPL_T
   Dim HostAppDbList As String
   Dim ProcState     As ESB_PROCSTATE_T
   Dim ind, i        As Long
   
   
   ReplPartition.PartitionCount   = -1  'All areas
   ReplPartition.UpdatedOnly      = 0 'Updated only cells
   HostAppDbList                  = "localhost" & vbCrLf & _
                                    "Sampeast" & vbCrLf & _
                                    "East"
      
   sts = EsbPartitionPutReplCells(hCtx, ReplPartition, HostAppDbList)
   
   If sts = 0 Then
      sts = EsbGetProcessState(hCtx, ProcState)
      Do Until ProcState.State = ESB_STATE_DONE
         sts = EsbGetProcessState(hCtx, ProcState)
      Loop
   End If

End Sub

See Also

Constant and Structure Definitions for Partitions
EsbPartitionApplyOtlChangeFile()
EsbPartitionGetAreaCellCount()
EsbPartitionGetList()
EsbPartitionGetOtlChanges()
EsbPartitionGetReplCells()
EsbPartitionPurgeOtlChangeFile()
EsbPartitionResetOtlChangeTime()