modify shardspace

Modify shardspace parameters.

Syntax

modify shardspace -shardspace shardspace_name
                 [-chunks number]
                 [-protectmode dg_protection_mode]
                 [-repunits repunits]
                 [-repfactor repfactor]

Options

Table 65 GDSCTL modify shardspace Options

Option Description
-shardspaceshardspace_name Specify the name of the shardspace to be modified.
-chunksnumber Specify the number of chunks in the shardspace.
-protectmodedg_protection_mode Specify the Data Guard Protection mode: MAXPROTECTION, MAXAVAILABILITY, or MAXPERFORMANCE. This option can only be executed where Data Guard replication technology is used.
-repfactor Replication factor (the number of replicas for each piece of data stored in a shardgroup). This parameter can only be used with NATIVE replication and system-managed or composite sharding, and is mandatory in these cases. It doesn’t apply to user-defined sharding or a federated database since there are no shardgroups in this case.
-repunits Total number of replication units (SNR only).

Usage Notes

The number of chunks can only be modified if a shardspace does not contain deployed shards. This command is not applicable to a federated database.

Examples

Modify the GOLD shardspace to have 6000 chunks.

GDSCTL> modify shardspace -shardspace gold -chunks 6000