Replica DDL - MySQL
Informazioni sulla replica DDL in MySQL.
Limitazione della replica DDL in MySQL
-
Caso 1: se DDL o
TRACKSCHEMACHANGESè abilitato e la tabella si trova nell'elenco di acquisizione. L'estrazione termina con il seguente errore: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.È necessario eseguire azioni come suggerito nel messaggio di errore.
Quando il parametro
TRANLOGOPTIONS WARNCREATEASSELECTviene utilizzato nel file dei parametri Extract, Extract continua dopo aver emesso il seguente messaggio di avvertenza nel report Extract, in caso di successiva operazione'CREATE TABLE AS SELECT'."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." -
Caso 2: quando la replica DDL o
TRACKSCHEMACHANGESè disabilitata e la tabella si trova nella lista Extract.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.
Nota: per i dettagli, vedere TRANLOGOPTIONS WARNCREATEASSELECT in Riferimento parametri e funzioni per Oracle GoldenGate.