DDL-Replikation - MySQL
Weitere Informationen zur DDL-Replikation finden Sie unter MySQL.
Begrenzung der DDL-Replikation in MySQL
-
Fall 1: Wenn DDL oder
TRACKSCHEMACHANGESaktiviert ist und die Tabelle in der Erfassungsliste enthalten ist. Extract wird mit folgendem Fehler abgebrochen: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.Sie müssen die in der Fehlermeldung vorgeschlagenen Aktionen ausführen.
Wenn der Parameter
TRANLOGOPTIONS WARNCREATEASSELECTin der Extract-Parameterdatei verwendet wird, wird Extract fortgesetzt, nachdem die folgende Warnmeldung im Extract-Bericht ausgegeben wurde, falls ein späterer'CREATE TABLE AS SELECT'-Vorgang gefunden wird."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. The DDL and the associated DMLs are ignored." -
Fall 2: Wenn die DDL-Replikation oder
TRACKSCHEMACHANGESdeaktiviert ist und die Tabelle in der Extract-Liste enthalten ist.When both DDL replication / TRACKSCHEMACHANGES are not enabled in the capture, the DDL and associated DML operations with CREATE TABLE AS SELECT are ignored. User needs to issue the same "CREATE TABLE AS SELECT" in the target as it was issued in the source.
Hinweis: Weitere Informationen finden Sie unter TRANLOGOPTIONS WARNCREATEASSELECT in der Referenz zu Parametern und Funktionen für Oracle GoldenGate.