DDL 복제 - MySQL
MySQL에서 DDL 복제에 대해 알아봅니다.
MySQL의 DDL 복제 제한
-
사례 1: DDL 또는
TRACKSCHEMACHANGES가 사용으로 설정되어 있고 테이블이 캡처 목록에 있는 경우 다음 오류로 인해 비정상 종료 추출: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.오류 메시지에 제안된 대로 조치를 취해야 합니다.
TRANLOGOPTIONS WARNCREATEASSELECT매개변수를 Extract 매개변수 파일에 사용하면 이후'CREATE TABLE AS SELECT'작업이 발견될 경우 Extract 보고서에서 다음 경고 메시지를 실행한 후 Extract가 계속됩니다."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." -
사례 2: DDL 복제 또는
TRACKSCHEMACHANGES가 사용 안함으로 설정되고 테이블이 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.
주: 자세한 내용은 Oracle GoldenGate에 대한 매개변수 및 함수 참조의 TRANLOGOPTIONS WARNCREATEASSELECT를 참조하십시오.