Tuesday, 17 March 2015

move table to other table space including LOB.

###move table to other table space including LOB..######

1) move table to other tablespace

ALTER TABLE table_name MOVE TABLESPACE tablespace_name;

2) move LOB to other tablespace

ALTER TABLE table_name move LOB (column_name) STORE AS (TABLESPACE new_tablespace);

3) move index to other tablespace.

ALTER INDEX index_name REBUILD TABLESPACE tablespace_name;

No comments:

Post a Comment

The instance '****.**.**:3306' cannot be added to an InnoDB cluster because it has asynchronous (source-replica) replication channel(s) configured. MySQL InnoDB Cluster

  Error :    MySQL  JS > dba.checkInstanceConfiguration("root@192.*.*.*")  NOTE: Found unexpected replication channel '...