UNREGISTER STORAGE UNIT
语法用于从当前逻辑库中移除存储单元。
UnregisterStorageUnit ::=
'UNREGISTER' 'STORAGE' 'UNIT' ifExists? storageUnitName (',' storageUnitName)* ignoreTables?
ifExists ::=
'IF' 'EXISTS'
storageUnitName ::=
identifier
ignoreTables ::=
'IGNORE' ('SINGLE')? (',')? ('BROADCAST')? 'TABLES'
UNREGISTER STORAGE UNIT
只会移除 Proxy 中的存储单元,不会删除与存储单元对应的真实数据源;Storage unit are still in used
;SINGLE RULE
、BROADCAST RULE
,且用户确认可以忽略该限制时,可添加 IGNORE SINGLE TABLES
、 IGNORE BROADCAST TABLES
、 IGNORE SINGLE, BROADCAST TABLES
关键字移除存储单元;ifExists
子句用于避免 Storage unit not exists
错误。UNREGISTER STORAGE UNIT ds_0;
UNREGISTER STORAGE UNIT ds_0, ds_1;
UNREGISTER STORAGE UNIT ds_0 IGNORE SINGLE TABLES;
UNREGISTER STORAGE UNIT ds_0 IGNORE BROADCAST TABLES;
UNREGISTER STORAGE UNIT ds_0 IGNORE SINGLE, BROADCAST TABLES;
ifExists
子句移除存储单元UNREGISTER STORAGE UNIT IF EXISTS ds_0;
UNREGISTER
、STORAGE
、UNIT
、IF
、EXISTS
、IGNORE
、SINGLE
、BROADCAST
、TABLES