The ALTER READWRITE_SPLITTING RULE ENABLE/DISABLE
syntax is used enable/disable a specified read source for specified readwrite-splitting rule.
AlterReadwriteSplittingRule ::=
'ALTER' 'READWRITE_SPLITTING' 'RULE' groupName ('ENABLE' | 'DISABLE') storageUnitName 'FROM' databaseName
groupName ::=
identifier
storageUnitName ::=
identifier
databaseName ::=
identifier
databaseName
is not specified, the default is the currently used DATABASE
. If DATABASE
is not used, No database selected
will be prompted.ALTER READWRITE_SPLITTING RULE ms_group_0 DISABLE read_ds_0 FROM sharding_db;
ALTER READWRITE_SPLITTING RULE ms_group_0 ENABLE read_ds_0 FROM sharding_db;
ALTER READWRITE_SPLITTING RULE ms_group_0 DISABLE read_ds_0;
ALTER READWRITE_SPLITTING RULE ms_group_1 ENABLE read_ds_0;
ALTER
, READWRITE_SPLITTING
, RULE
, ENABLE
, DISABLE