# setDatabaseForClusterReplication {#setdatabaseforclusterreplication}

## Syntax {#section_pgb_sh2_czb .section}

`setDatabaseForClusterReplication(dbHandle, option)`

## Arguments {#section_hrv_sh2_czb .section}

**dbHandle** is a database handle.

**option** is a Boolean value indicating whether to enable asynchronous replication on the specified database. The default value is false.

## Details {#section_ls4_th2_czb .section}

This command enables/disables asynchronous replication on the specified database. It can only be executed on the data node of the master cluster.

Related functions: [getDatabaseClusterReplicationStatus](../g/getDatabaseClusterReplicationStatus.md)

**Parent topic:**[Functions](../../Functions/category.md)

