MySQL: DDLレプリケーション

MySQLでのDDLレプリケーションについて学習します。

MySQLでのDDLレプリケーションの制限

DDL操作CREATE TABLE AS SELECTはサポートされていません。Oracle GoldenGate Extract for MySQLは、このDDLを検出すると、次のエラーで異常終了します。

DDL statement "CREATE TABLE AS SELECT" is detected for table table-name at binary log
number binlog number and offset binlog offset. The DDL operation "CREATE TABLE AS SELECT"
is not supported. Execute all 'CREATE TABLE AS SELECT' DDL operations manually to the target
database and start Extract by adding Extract parameter TRANLOGOPTIONS WARNCREATEASSELECT. Once
Extract gets past the 'CREATE TABLE AS SELECT' operation, restart Extract after disabling the
parameter TRANLOGOPTIONS WARNCREATEASSELECT.

ノート:

詳細は、Oracle GoldenGateパラメータおよび機能リファレンスTRANLOGOPTIONS WARNCREATEASSELECTを参照してください。