OGG12C異構同步mysql5.5到oracle11.2.0.4(windows mysql實時同步數據到linux oracle)詳細文檔
有一個需求,將一臺Windows服務器上的Mysql數據實時同步到Linux下Oracle數據庫中,現在筆者有一個安裝配置好的Oracle=>Oracle支持DDL的異構同步環境,現在要做的測試是將Windows中的Mysql庫表同步到現在已經正常同步的Oracle=>Oracle支持DDL的異構環境的目標端。
至於OGG12C的Oracle=>Oracle支持DDL的異構環境這個環境的完整配置文檔將會後續有時間發佈出來並將連接放到此處。
一、環境規劃
環境配置規劃如下:
實驗環境 | 源端 | 目標端 |
---|---|---|
操作系統 | Windows 10 64位 | Redhat 6.5 64位 |
IP | 192.168.1.122 | 192.168.1.10 |
數據庫 | Mysql 5.5 | Oracle11.2.0.4 |
GoldenGate | Oracle GoldenGate 12.2.0.2.2 for MySQL on Windows (64 bit) (66 MB) | Oracle GoldenGate 12.2.0.2.2 for Oracle on Linux x86-64 (584 MB) |
dirdat目錄 | E:\mysql\ogg12\dirdat | /u01/app/oracle/ogg12/dirdat |
二、Mysql庫配置(源端)
1、下載連接:
2、win10安裝mysql5.5
安裝目錄這裏選擇:E:\mysql
安裝完成,選擇 Launch the MySQL Instance Configuration Wizard 點擊 Finish:
然後點擊執行,等四個選項都打了勾,就說明成功了:
安裝過程中如果在最後一步卡住了,可能之前有安裝的mysql,請卸載乾淨再重裝。
3、Mysql配置文件修改
編輯配置文件:
主要變動的地方爲:
[mysqld]
# The TCP/IP Port the MySQL Server will listen on
port=3306
#Path to installation directory. All paths are usually resolved relative to this.
basedir="E:/Mysql/"
#Path to the database root
datadir="C:/ProgramData/MySQL/MySQL Server 5.5/Data/"
# The default character set that will be used when a new schema or table is
# created and no character set is defined
character-set-server=gbk
# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB
#log-bin = E:/mysql/logbinlog.log
#log-bin-index = E:/mysql/binlog.index
# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
#log-bin=mysql-bin
log-bin = "E:\mysql\logbin.log" # 自定義目錄,日誌保存路徑
log-bin-index = "E:\mysql\logindex.index" # 自定義目錄,日誌保存路徑
binlog_cache_size=32m
max_binlog_cache_size=512m
max_binlog_size=512m
# binary logging format - mixed recommended
#binlog_format=mixed
binlog_format=row --OGG同步必須指定日誌爲row
# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=100
重啓mysql
C:\WINDOWS\system32>net stop mysql
MySQL 服務正在停止.
MySQL 服務已成功停止。
C:\WINDOWS\system32>net start mysql
MySQL 服務正在啓動 .
MySQL 服務已經啓動成功。
去mysql驗證一下:
C:\WINDOWS\system32>mysql -u root -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.56-log MySQL Community Server (GPL)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show variables like "%log%";
+-----------------------------------------+---------------------------------------------------------------------+
| Variable_name | Value |
+-----------------------------------------+---------------------------------------------------------------------+
| back_log | 50 |
| binlog_cache_size | 33554432 |
| binlog_direct_non_transactional_updates | OFF |
| binlog_format | ROW |
| binlog_stmt_cache_size | 32768 |
| expire_logs_days | 0 |
| general_log | OFF |
| general_log_file | C:\ProgramData\MySQL\MySQL Server 5.5\Data\DESKTOP-NA0RQBF.log |
| innodb_flush_log_at_trx_commit | 1 |
| innodb_locks_unsafe_for_binlog | OFF |
| innodb_log_buffer_size | 1048576 |
| innodb_log_file_size | 10485760 |
| innodb_log_files_in_group | 2 |
| innodb_log_group_home_dir | .\ |
| innodb_mirrored_log_groups | 1 |
| log | OFF |
| log_bin | ON |
| log_bin_trust_function_creators | OFF |
| log_error | C:\ProgramData\MySQL\MySQL Server 5.5\Data\DESKTOP-NA0RQBF.err |
| log_output | FILE |
| log_queries_not_using_indexes | OFF |
| log_slave_updates | OFF |
| log_slow_queries | OFF |
| log_warnings | 1 |
| max_binlog_cache_size | 536870912 |
| max_binlog_size | 536870912 |
| max_binlog_stmt_cache_size | 18446744073709547520 |
| max_relay_log_size | 0 |
| relay_log | |
| relay_log_index | |
| relay_log_info_file | relay-log.info |
| relay_log_purge | ON |
| relay_log_recovery | OFF |
| relay_log_space_limit | 0 |
| slow_query_log | OFF |
| slow_query_log_file | C:\ProgramData\MySQL\MySQL Server 5.5\Data\DESKTOP-NA0RQBF-slow.log |
| sql_log_bin | ON |
| sql_log_off | OFF |
| sync_binlog | 0 |
| sync_relay_log | 0 |
| sync_relay_log_info | 0 |
+-----------------------------------------+---------------------------------------------------------------------+
41 rows in set (0.00 sec)
4、創建測試用庫和表
在源端創建測試表
mysql> create database oracle;
Query OK, 1 row affected (0.00 sec)
mysql> use oracle;
Database changed
mysql> create user 'scott' identified by 'tiger';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT ALL ON oracle.* TO 'scott';
Query OK, 0 rows affected (0.00 sec)
創建測試表
CREATE TABLE student(
id int PRIMARY KEY,
name varchar(20),
loc varchar2(20)
);
三、OGG配置
1、源端windows ogg初始化
下載解壓縮後的文件放到了E:\mysql\ogg12
通過管理員打開cmd命令行執行初始化:
C:\WINDOWS\system32>E:
E:\>cd mysql/ogg12
--安裝ogg服務器
E:\mysql\ogg12>install addservice addevents
Oracle GoldenGate messages installed successfully.
Service 'GGSMGR' created.
Install program terminated normally.
--初始化
E:\mysql\ogg12>ggsci.exe
Oracle GoldenGate Command Interpreter for MySQL
Version 12.2.0.2.2 OGGCORE_12.2.0.2.0_PLATFORMS_170630.0419
Windows x64 (optimized), MySQL Enterprise on Jun 30 2017 06:15:27
Operating system character set identified as GBK.
Copyright (C) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
GGSCI (DESKTOP-NA0RQBF) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER STOPPED
GGSCI (DESKTOP-NA0RQBF) 3> create subdirs
Creating subdirectories under current directory E:\mysql\ogg12
Parameter files E:\mysql\ogg12\dirprm: created
Report files E:\mysql\ogg12\dirrpt: created
Checkpoint files E:\mysql\ogg12\dirchk: created
Process status files E:\mysql\ogg12\dirpcs: created
SQL script files E:\mysql\ogg12\dirsql: created
Database definitions files E:\mysql\ogg12\dirdef: created
Extract data files E:\mysql\ogg12\dirdat: created
Temporary files E:\mysql\ogg12\dirtmp: created
Credential store files E:\mysql\ogg12\dircrd: created
Masterkey wallet files E:\mysql\ogg12\dirwlt: created
Dump files E:\mysql\ogg12\dirdmp: created
2、編輯mgr進程
登錄scott賬號,輸入dblogin sourcedb 數據庫名@IP地址:端口號 userid 用戶名 password 密碼 (此處爲源端數據庫),編輯mgr進程,寫入配置,如下操作:
GGSCI (DESKTOP-NA0RQBF) 2> dblogin sourcedb [email protected]:3306 userid scott password tiger
Successfully logged into database.
GGSCI (DESKTOP-NA0RQBF) 9> edit params mgr
PORT 7809
DYNAMICPORTLIST 7810-7860
AUTORESTART ER *, RETRIES 3, WAITMINUTES 5
PURGEOLDEXTRACTS ./dirdat/*, USECHECKPOINTS, MINKEEPDAYS 7
lagreporthours 1
laginfominutes 30
lagcriticalminutes 60
啓動mgr進程
GGSCI (DESKTOP-NA0RQBF DBLOGIN as scott) 4> start mgr
Manager started.
會彈出另一個日誌窗口:
***********************************************************************
Oracle GoldenGate Manager for MySQL
Version 12.2.0.2.2 OGGCORE_12.2.0.2.0_PLATFORMS_170630.0419
Windows x64 (optimized), MySQL Enterprise on Jun 30 2017 06:08:27
Copyright (C) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
Starting at 2019-04-22 14:09:02
***********************************************************************
Operating System Version:
Microsoft Windows 8 , on x64
Version 6.2 (Build 9200)
Process id: 12704
Parameters...
PORT 7809
DYNAMICPORTLIST 7810-7860
AUTORESTART ER *, RETRIES 3, WAITMINUTES 5
PURGEOLDEXTRACTS ./dirdat/*, USECHECKPOINTS, MINKEEPDAYS 7
lagreporthours 1
laginfominutes 30
lagcriticalminutes 60
***********************************************************************
** Run Time Messages **
***********************************************************************
2019-04-22 14:09:02 WARNING OGG-01877 Missing explicit accessrule for server collector.
2019-04-22 14:09:02 INFO OGG-00960 Access granted (rule #26).
2019-04-22 14:09:02 INFO OGG-00983 Manager started (port 7809).
3、配置extract進程
輸入edit params e_m將會彈出文本編輯器並寫入:
GGSCI (DESKTOP-NA0RQBF) 10> edit params e_m
EXTRACT e_m
setenv (MYSQL_HOME=E:\mysql)
TRANLOGOPTIONS ALTLOGDEST E:\mysql\logindex.index
SOURCEDB oracle@localhost:3306, USERID scott, PASSWORD tiger
DISCARDROLLOVER ON FRIDAY
DISCARDFILE E:\mysql\ogg12\dirrpt\e_m.dsc, APPEND, MEGABYTES 1024
REPORTCOUNT EVERY 30 MINUTES, RATE
EXTTRAIL E:\mysql\ogg12\dirdat\mq,FORMAT RELEASE 12.2
DYNAMICRESOLUTION
NUMFILES 5000
TABLE oracle.student;
添加抽取進程:
add extract e_m,tranlog,begin now
add exttrail E:\mysql\ogg12\dirdat\mq,extract e_m
啓動抽取進程:
GGSCI (DESKTOP-NA0RQBF) 11> start e_m
Sending START request to MANAGER ...
EXTRACT E_M starting
GGSCI (DESKTOP-NA0RQBF) 14> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING E_M 00:00:00 00:00:02
4、配置Pump進程
編輯投遞進程,如下操作:
GGSCI (DESKTOP-NA0RQBF) 15> edit params p_m
extract p_m
sourcedb [email protected]:3306 userid scott password tiger
PASSTHRU
numfiles 20000
rmthost 192.168.1.10,mgrport 7809,compress
rmttrail /u01/app/oracle/ogg12/dirdat/mq,FORMAT RELEASE 12.2
dynamicresolution
table oracle.*;
添加投遞進程
add extract p_m,exttrailsource E:\mysql\ogg12\dirdat\mq
add rmttrail /u01/app/oracle/ogg12/dirdat/mq,extract p_m,megabytes 500
啓動投遞進程
GGSCI (DESKTOP-NA0RQBF) 16> start p_m
Sending START request to MANAGER ...
EXTRACT P_M starting
GGSCI (DESKTOP-NA0RQBF) 18> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING E_M 00:00:00 00:00:03
EXTRACT RUNNING P_M 00:00:00 00:00:02
5、驗證extract&Pump進程
源端mysql庫insert一條數據:
mysql> insert into student values(1,'sdf sd sd sda','bb');
Query OK, 1 row affected (0.00 sec)
mysql> commit;
Query OK, 0 rows affected (0.00 sec)
Commit_date:10:26:55
mysql> select * from student;
+----+---------------+------+
| id | name | loc |
+----+---------------+------+
| 1 | sdf sd sd sda | bb |
+----+---------------+------+
1 row in set (0.00 sec)
可以通過查詢抽取投遞進程信息發現數據已經被捕獲並寫到trail文件並投遞到目標linux服務器指定的目錄了,這裏爲了直觀監控這一活動,直接去linux看trail文件內容(這裏目標端oracle安裝ogg軟件的過程文章開頭說了,有時間放上來):
[oracle@ogg dirdat]$ pwd
/u01/app/oracle/ogg12/dirdat
[oracle@ogg dirdat]$ ls
mq000000004 mq000000005 mq000000006 mq000000007 mq000000008 sc000000013
上面之所以有這麼多mq開頭的trail文件是因爲筆者自己寫文章時抽取和投遞進程啓動時出了幾次問題,解決了之後寫的這篇文章,而trail文件筆者沒刪。這裏只看最新的mq000000008trail文件內容。
爲了方便,寫個logdump模板:
[oracle@ogg ogg12]$ pwd
/u01/app/oracle/ogg12
[oracle@ogg ogg12]$ vim loginit_mq
cd ./dirdat
open mq000000008
ghdr on
detail on
detail data
usertoken on
usertoken detail
ggstoken on
ggstoken detail
headertoken on
headertoken detail
reclen 0
pos last
pos rev
logtrail
pos
通過logdump查看trail文件最新同步過來的一條記錄:
[oracle@ogg ogg12]$ pwd
/u01/app/oracle/ogg12
[oracle@ogg ogg12]$ ./logdump
Oracle GoldenGate Log File Dump Utility for Oracle
Version 12.2.0.2.2 OGGCORE_12.2.0.2.0_PLATFORMS_170630.0419
Copyright (C) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
Logdump 97 >obey loginit_mq
*** Unable to open OBEY file /u01/app/oracle/ogg12/loginit῟mq
Logdump 98 >obey loginit_mq
cd ./dirdat
open mq000000006
Current LogTrail is /u01/app/oracle/ogg12/dirdat/mq000000006
ghdr on
detail on
detail data
usertoken on
usertoken detail
ggstoken on
ggstoken detail
headertoken on
headertoken detail
reclen 0
Reclen set to 0
pos last
Reading forward from RBA 6030
pos rev
Reading in reverse from RBA 6030
logtrail
Current LogTrail is /u01/app/oracle/ogg12/dirdat/mq000000006
pos
Current position is RBA 6030 Reverse
Logdump 99 >exit
[oracle@ogg ogg12]$ vim loginit_mq
[oracle@ogg ogg12]$ pwd
/u01/app/oracle/ogg12
[oracle@ogg ogg12]$
[oracle@ogg ogg12]$
[oracle@ogg ogg12]$ pwd
/u01/app/oracle/ogg12
[oracle@ogg ogg12]$ ./logdump
Oracle GoldenGate Log File Dump Utility for Oracle
Version 12.2.0.2.2 OGGCORE_12.2.0.2.0_PLATFORMS_170630.0419
Copyright (C) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
Logdump 99 >obey loginit_mq
cd ./dirdat
open mq000000008
Current LogTrail is /u01/app/oracle/ogg12/dirdat/mq000000008
ghdr on
detail on
detail data
usertoken on
usertoken detail
ggstoken on
ggstoken detail
headertoken on
headertoken detail
reclen 0
Reclen set to 0
pos last
Reading forward from RBA 2494
pos rev
Reading in reverse from RBA 2494
logtrail
Current LogTrail is /u01/app/oracle/ogg12/dirdat/mq000000008
pos
Current position is RBA 2494 Reverse
Logdump 100 >pos last
Reading in reverse from RBA 2494
Logdump 101 >pos rev
Reading in reverse from RBA 2494
Logdump 102 >n
TokenID x47 'G' Record Header Info x01 Length 179
TokenID x48 'H' GHDR Info x00 Length 36
450c 0041 0029 05ff 02f2 ad70 e41e caa2 0000 0000 | E..A.).....p........
0000 0004 0000 27f2 0352 0000 0001 0001 | ......'..R......
TokenID x44 'D' Data Info x00 Length 41
TokenID x54 'T' GGS Tokens Info x00 Length 82
TokenID x5a 'Z' Record Trailer Info x01 Length 179
___________________________________________________________________
Hdr-Ind : E (x45) Partition : . (x0c)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 41 (x0029) IO Time : 2019/04/24 10:26:55.000.226
IOType : 5 (x05) OrigNode : 255 (xff)
TransInd : . (x03) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 10226 AuditPos : 4
Continued : N (x00) RecCount : 1 (x01)
2019/04/24 10:26:55.000.226 Insert Len 41 RBA 2315
Name: oracle.student (TDR Index: 1)
After Image: Partition 12 G s
0000 0006 0000 0000 0001 0001 0011 0000 000d 7364 | ..................sd
6620 7364 2073 6420 7364 6100 0200 0600 0000 0262 | f sd sd sda........b
62 | b
Column 0 (x0000), Len 6 (x0006)
0000 0000 0001 | ......
Column 1 (x0001), Len 17 (x0011)
0000 000d 7364 6620 7364 2073 6420 7364 61 | ....sdf sd sd sda
Column 2 (x0002), Len 6 (x0006)
0000 0002 6262 | ....bb
GGS tokens:
TokenID x4c 'L' LOGCSN Info x00 Length 37
3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 | 00000000000000000000
343a 3030 3030 3030 3030 3030 3130 3235 33 | 4:000000000010253
TokenID x36 '6' TRANID Info x00 Length 37
3030 3030 3030 3030 3030 3030 3030 3030 3030 3030 | 00000000000000000000
343a 3030 3030 3030 3030 3030 3130 3132 31 | 4:000000000010121
發現那會10:26做的insert操作已經通過抽取進程從mysql抽取並投遞到了linux這邊,驗證完成,沒問題,接了下來就開始準備怎麼去應用到oracle了。
6、配置Defgen文件
創建表的定義文件(.def)
GGSCI (DESKTOP-NA0RQBF) 105> edit params defgen
defsfile E:\mysql\ogg12\dirdef\stu.def
sourcedb [email protected]:3306 userid scott, password tiger
table oracle.*;
生成:
E:\mysql\ogg12>defgen paramfile E:/mysql/ogg12/dirprm/defgen.prm
***********************************************************************
Oracle GoldenGate Table Definition Generator for MySQL
Version 12.2.0.2.2 OGGCORE_12.2.0.2.0_PLATFORMS_170630.0419
Windows x64 (optimized), MySQL Enterprise on Jun 30 2017 07:07:13
Copyright (C) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
Starting at 2019-04-23 13:43:54
***********************************************************************
Operating System Version:
Microsoft Windows 8 , on x64
Version 6.2 (Build 9200)
Process id: 20324
***********************************************************************
** Running with the following parameters **
***********************************************************************
defsfile E:\mysql\ogg12\dirdef\stu.def
sourcedb [email protected]:3306 userid scott, password ***
table oracle.*;
Expanding wildcard table specification oracle.*:
Retrieving definition for oracle.student.
Definitions generated for 1 table in E:\mysql\ogg12\dirdef\stu.def.
將def傳到oracle,接下來配置應用進程
7、配置replicat進程
編輯應用進程:
GGSCI (ogg) 6> edit params r_m
replicat r_m
setenv(NLS_LANG=AMERICAN_AMERICA.ZHS16GBK)
sourcedefs /u01/app/oracle/ogg12/dirdef/stu.def
userid ogg,password ogg
reportcount every 30 minutes,rate
reperror default,abend
numfiles 20000
checkpointsecs 40
discardfile /u01/app/oracle/ogg12/dirrpt/r_m.dsc,append,megabytes 1000
dynamicresolution
map oracle.student,target oracle.student,keycols(ID),colmap(
usedefaults,
etltime=@DATENOW()
);
~
添加應用進程:
add replicat r_m,exttrail /u01/app/oracle/ogg12/dirdat/mq checkpointtable ogg.checkpoint
接下來在oracle庫創建oracle用戶及student表:
create user oracle identified by oracle;
grant dba to oracle;
CREATE TABLE student(
id int PRIMARY KEY,
name varchar(20),
loc varchar2(20),
etltime timestamp
);
啓動應用進程,因爲筆者前面已經有了幾個trail文件了,所以我這裏是指定的trail文件號和rba啓動:
alter replicat r_m extseqno 6 extrba 0
start r_m
讀者可以直接通過下面方式啓動:
start r_m
進程起來沒問題:
GGSCI (ogg) 7> start r_m
Sending START request to MANAGER ...
REPLICAT R_M starting
GGSCI (ogg) 20> view report r_m
部分日誌如下:
2019-04-24 10:45:19 INFO OGG-02243 Opened trail file /u01/app/oracle/ogg12/dirdat/mq000000008 at 2019-04-24 10:45:19.047722.
2019-04-24 10:45:19 WARNING OGG-02761 Source definitions file, /u01/app/oracle/ogg12/dirdef/stu.def, is ignored because trail file /u01/app/oracle/ogg12/dirdat/mq000000008 contains table
definitions.
2019-04-24 10:45:19 INFO OGG-06505 MAP resolved (entry oracle.student): map "oracle"."student",target oracle.student,keycols(ID),colmap( usedefaults, etltime=@DATENOW() ).
2019-04-24 10:45:20 INFO OGG-02756 The definition for table oracle.student is obtained from the trail file.
Using the following default columns with matching names:
ID=id, NAME=name, LOC=loc
2019-04-24 10:45:20 INFO OGG-06510 Using the following key columns for target table ORACLE.STUDENT: ID.
2019-04-24 10:45:20 INFO OGG-03010 Performing implicit conversion of column data from character set windows-936 to zhs16gbk.
應用進程起來了,沒問題,看日誌數據已經應用,去oracle查詢:
SQL> select * from student;
ID NAME LOC ETLTIME
------ -------------------- -------------------- ------------------------------
1 sdf sd sd sda bb 24-APR-19 10.45.20.000000 AM
數據已經過來,同步成功。
因爲筆者現在是做測試,同步的mysql表直接新建然後同步insert操作,而生產環境下一般還要涉及歷史數據的初始化,oracle我用數據泵初始化,至於mysql,還要研究一下。
四、安裝過程中曾遇到的問題
1、OGG-01411
具體報錯如下:
2019-04-22 17:45:55 INFO OGG-01478 Output file E:\mysql\ogg12\dirdat\mq is using format RELEASE 12.2.
Source Context :
SourceModule : [er.extrout]
SourceID : [er/extrout.c]
SourceFunction : [open_targ_ext_file]
SourceLine : [1569]
ThreadBacktrace : [13] elements
: [E:\mysql\ogg12\gglog.dll(??1CContextItem@@UEAA@XZ+0x2a96) [0x00007FF881BCF6B6]]
: [E:\mysql\ogg12\gglog.dll(?CreateMessage@CMessageFactory@@QEAAPEAVCMessage@@PEAVCSourceContext@@IZZ+0x561) [0x00007FF881BCFD01]]
: [E:\mysql\ogg12\gglog.dll(?_MSG_ERR_TRAIL_FORMAT_MISMATCH@@YAPEAVCMessage@@PEAVCSourceContext@@PEBD11W4MessageDisposition@CMessageFactory@@@Z+0x4f) [0x00007FF881B761FF]]
: [E:\mysql\ogg12\extract.exe(<_MSG_ERR_TRAIL_FORMAT_MISMATCH@@YAPEAVCMessage@@PEAVCSourceContext@@PEBD11W4MessageDisposition@CMessageFactory@@@Z+0x4f) [0x00007FF7D035A3B2]]
: [E:\mysql\ogg12\extract.exe(<_MSG_ERR_TRAIL_FORMAT_MISMATCH@@YAPEAVCMessage@@PEAVCSourceContext@@PEBD11W4MessageDisposition@CMessageFactory@@@Z+0x4f) [0x00007FF7D035A564]]
: [E:\mysql\ogg12\extract.exe(ERCALLBACK+0x441b5) [0x00007FF7D03DDB35]]
: [E:\mysql\ogg12\extract.exe(_ggTryDebugHook+0x8943) [0x00007FF7D04ABC53]]
: [E:\mysql\ogg12\extract.exe(_ggTryDebugHook+0x7d2b) [0x00007FF7D04AB03B]]
: [E:\mysql\ogg12\extract.exe(_ggTryDebugHook+0x87e3) [0x00007FF7D04ABAF3]]
: [E:\mysql\ogg12\extract.exe(ERCALLBACK+0x4448b) [0x00007FF7D03DDE0B]]
: [E:\mysql\ogg12\extract.exe(VAMMessage+0x376aa) [0x00007FF7D05D0A6A]]
: [C:\WINDOWS\System32\KERNEL32.DLL(BaseThreadInitThunk+0x14) [0x00007FF8AF2B7BD4]]
: [C:\WINDOWS\SYSTEM32\ntdll.dll(RtlUserThreadStart+0x21) [0x00007FF8B04ACE71]]
2019-04-22 17:45:55 ERROR OGG-01416 File E:\mysql\ogg12\dirdat\mq000000000, with format RELEASE 9.0/9.5, does not match current format specification of RELEASE 12.2. Modify the parameter file to specify format RELEASE 9.0/9.5 or issue ETROLLOVER prior to restart.
2019-04-22 17:45:55 ERROR OGG-01668 PROCESS ABENDING.
原因和解決方法:
Description: Cannot convert input file {0} with format {1} to output file {2} with format {3}
Cause:
The output trail of the data pump has a different format (version) than the input trail of the data pump. The input and output trail formats must be identical for a data pump.
Action:
The FORMAT RELEASE option of EXTFILE or EXTTRAIL and RMTFILE or RMTTRAIL must be the same when associated with a data pump. For more information, see the Oracle GoldenGate reference documentation.