modify shardspace
Modify shardspace parameters.
Syntax
modify shardspace –shardspace shardspace_name [-chunks number] [-protectmode dg_protection_mode] [-repunits repunits] [-repfactor repfactor]
Options
Table 2-65 GDSCTL modify shardspace Options
| Option | Description |
|---|---|
-shardspace shardspace_name |
Specify the name of the shardspace to be modified. |
-chunks number |
Specify the number of chunks in the shardspace. |
-protectmode dg_protection_mode |
Specify the Data Guard Protection mode: |
-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