ogg问题
环境:同时配置了DDL和DML
版本:11.1.1.1.4
oracle:11.2.0.2
抽取进程报如下错误:
2012-06-26 22:00:35 ERROR OGG-01028 Oracle GoldenGate Capture for Oracle, extacc.prm: Object with object number 141556 is compressed. Table compression is not supported.
2012-06-26 22:00:35 INFO OGG-00991 Oracle GoldenGate Capture for Oracle, extacc.prm: EXTRACT EXTACC stopped normally.
在网上搜索,找到解决办法:
SQL> select objectowner,objectname,objecttype,ddltype from goldengate.ggs_ddl_hist where bjectid=141556;
OBJECTOW OBJECTNAME OBJECTTYPE DDLTY
-------- ------------------------------ ---------- -----
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
得知受影响的是account用户的DBMS_TABCOMP_TEMP_CMP表,需要在DDL和DML配置中将该表排除在外,在抽取进程参数中添加如下参数:
DDL &
EXCLUDE OBJNAME "ACCOUNT.DBMS_TABCOMP_TEMP_CMP"
TABLEEXCLUDE ACCOUNT.DBMS_TABCOMP_TEMP_CMP;
需要注意的是,在源端或者目的端的参数文件里,只能出现一个DDL参数,否则会报如下错误:
2012-06-27 09:37:07 ERROR OGG-00403 Oracle GoldenGate Capture for Oracle, extacc.prm: There can be only one DDL filtering statement. If DDL filter is long, use ampersand (&) sign to continue it on another line.
2012-06-27 09:37:07 ERROR OGG-01668 Oracle GoldenGate Capture for Oracle, extacc.prm: PROCESS ABENDING.
所以可以再DDL的&符号后面另起一行跟上EXCLUDE OBJNAME "ACCOUNT.DBMS_TABCOMP_TEMP_CMP"参数,如果中间还有其他DDL参数的话,只要在每个DDL参数后面空一格追加&符号,然后另起一行添加需要的参数。
在添加完参数后,重启extract进程。
参考:
https://forums.oracle.com/forums/thread.jspa?messageID=10292582
http://deciphercorp.wordpress.com/category/oracle-goldengate/
环境:同时配置了DDL和DML
版本:11.1.1.1.4
oracle:11.2.0.2
抽取进程报如下错误:
2012-06-26 22:00:35 ERROR OGG-01028 Oracle GoldenGate Capture for Oracle, extacc.prm: Object with object number 141556 is compressed. Table compression is not supported.
2012-06-26 22:00:35 INFO OGG-00991 Oracle GoldenGate Capture for Oracle, extacc.prm: EXTRACT EXTACC stopped normally.
在网上搜索,找到解决办法:
SQL> select objectowner,objectname,objecttype,ddltype from goldengate.ggs_ddl_hist where bjectid=141556;
OBJECTOW OBJECTNAME OBJECTTYPE DDLTY
-------- ------------------------------ ---------- -----
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
ACCOUNT DBMS_TABCOMP_TEMP_CMP TABLE DROP
得知受影响的是account用户的DBMS_TABCOMP_TEMP_CMP表,需要在DDL和DML配置中将该表排除在外,在抽取进程参数中添加如下参数:
DDL &
EXCLUDE OBJNAME "ACCOUNT.DBMS_TABCOMP_TEMP_CMP"
TABLEEXCLUDE ACCOUNT.DBMS_TABCOMP_TEMP_CMP;
需要注意的是,在源端或者目的端的参数文件里,只能出现一个DDL参数,否则会报如下错误:
2012-06-27 09:37:07 ERROR OGG-00403 Oracle GoldenGate Capture for Oracle, extacc.prm: There can be only one DDL filtering statement. If DDL filter is long, use ampersand (&) sign to continue it on another line.
2012-06-27 09:37:07 ERROR OGG-01668 Oracle GoldenGate Capture for Oracle, extacc.prm: PROCESS ABENDING.
所以可以再DDL的&符号后面另起一行跟上EXCLUDE OBJNAME "ACCOUNT.DBMS_TABCOMP_TEMP_CMP"参数,如果中间还有其他DDL参数的话,只要在每个DDL参数后面空一格追加&符号,然后另起一行添加需要的参数。
在添加完参数后,重启extract进程。
参考:
https://forums.oracle.com/forums/thread.jspa?messageID=10292582
http://deciphercorp.wordpress.com/category/oracle-goldengate/
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26194851/viewspace-733905/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26194851/viewspace-733905/