# EssPartitionPutReplCells

Description

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

Syntax

    ESS_FUNC_M EssPartitionPutReplCells (hCtx, pReplicatePartition);

ESS_HCTX_T | hCtx
ESS_PREPLICATE_PARTITION_T | pReplicatePartition

Parameters

hCtx | Essbase API context handle.
pReplicatePartition | Partition information.

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

    ESS_FUNC_M  Ess_PartitionPutReplCells(ESS_HCTX_T hCtx)
    {
       ESS_FUNC_M  sts;
       ESS_PART_REPL_T ReplicatePartition;
       ESS_PART_CONNECT_INFO_T        HostDatabase;

       memset(&ReplicatePartition, 0, sizeof(ESS_PART_REPL_T));
       memset(&HostDatabase, 0, sizeof(ESS_PART_CONNECT_INFO_T));

       ReplicatePartition.pHostDatabase = &HostDatabase;

       ReplicatePartition.lPartitionCount = -1;
       ReplicatePartition.bUpdatedOnly = ESS_FALSE;

       sts = EssPartitionPutReplCells(hCtx, &ReplicatePartition);
       printf("EssPartitionPutReplCells  sts: %ld\n",sts);

       return(sts);
    }

See Also

Constant and Structure Definitions for Partitions
EssPartitionApplyOtlChangeFile()
EssPartitionApplyOtlChangeRecs()
EssPartitionCloseDefFile()
EssPartitionFreeDefCtx()
EssPartitionFreeOtlChanges()
EssPartitionGetAreaCellCount()
EssPartitionGetList()
EssPartitionGetOtlChanges()
EssPartitionGetReplCells()
EssPartitionNewDefFile()
EssPartitionOpenDefFile()
EssPartitionPurgeOtlChangeFile()
EssPartitionReadDefFile()
EssPartitionReadOtlChangeFile()
EssPartitionReplaceDefFile()
EssPartitionResetOtlChangeTime()
EssPartitionValidateDefinition()
EssPartitionWriteDefFile()