GoldenGate支援MySQL的最低版本5.1.5

來源:互聯網
上載者:User

標籤:goldengate   mysql   最低版本   

 

GoldenGate的官方文檔明確表示,GoldenGate需要將MySQL的日誌格式(binlog_format)設定為ROW,其他兩種格式(MIXED or STATEMENT)是不支援。

########################################################################官方描述如下

binlog_format: This parameter sets the format of the logs. It must be set to the value of ROW, which directs the database to log DML statements in binary format. Any other log format (MIXED or STATEMENT) causes Extract to abend.

########################################################################

 

 

但是MySQL在版本5.1.5之前是不支援ROW和MIXED格式(MySQL 5.1.5引入ROW,5.1.8引入MIXED)

####  官方描述如下:http://dev.mysql.com/doc/refman/5.1/en/binary-log-formats.html

Support for row-based logging was added in MySQL 5.1.5. Mixed logging is available beginning with MySQL 5.1.8. In MySQL 5.1.12, MIXED become the default logging mode; in 5.1.29, the default was changed back to STATEMENT for compatibility with MySQL 5.0.

########################################################################

 

目前客戶的MySQL版本是5.0.6-beta版:

D:\MySQL Server 5.0\bin>mysql -u root -p

Enter password: *****

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 111 to server version: 5.0.6-beta-nt-log

 

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the buffer.

 

mysql> select version();

+-------------------+

| version()         |

+-------------------+

| 5.0.6-beta-nt-log|

+-------------------+

1 row in set (0.02 sec)

 

這個版本是不支援binlog_format=ROW,所以安裝好GolenGate後,啟動抽取進程時,進程abend

########################################################################下面是出錯資訊:

2014-09-16 16:55:16  ERROR   OGG-00146  VAM function VAMRead returned unexpected result: error 600 - VAM Client Report <CAUSE OF FAILURE : STATEMENT or MIXED level logging found so abending

WHEN FAILED : While reading log event from binary log

WHERE FAILED : MySQLBinLog Reader Module

CONTEXT OF FAILURE : No Information Available!>

 

因此如果想要採用GoldenGate來實現MySQL的資料即時同步,需要將MySQL版本升級到5.1.5以上。

本文出自 “Cheney.Yu” 部落格,請務必保留此出處http://cheneyyu.blog.51cto.com/173219/1553525

GoldenGate支援MySQL的最低版本5.1.5

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.