- 最后登录
- 2013-12-23
- 在线时间
- 3 小时
- 威望
- 0
- 金钱
- 21
- 注册时间
- 2012-12-3
- 阅读权限
- 10
- 帖子
- 10
- 精华
- 0
- 积分
- 0
- UID
- 734
|
1#
发表于 2013-5-2 10:26:53
|
查看: 13262 |
回复: 7
参数
EXTRACT:- EXTRACT EXT
- setenv (ORACLE_SID="db1")
- setenv (NLS_LANG = AMERICAN_AMERICA.AL32UTF8)
- EXTTRAIL /oracle/app/goldengate/dirdat/sl
- USERID ogg,PASSWORD "test"
- TRANLOGOPTIONS ALTARCHIVELOGDEST +DATA/archive
- TRANLOGOPTIONS ALTARCHIVEDLOGFORMAT %t_%s_%r.dbf
- TRANLOGOPTIONS ASMUSER SYS@ASM, ASMPASSWORD test
- THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 90000
- numfiles 3000
- DISCARDROLLOVER AT 05:30
- DYNAMICRESOLUTION
- --GETTRUNCATES
- DDL INCLUDE MAPPED &
- exclude objtype 'PROCEDURE' &
- exclude objtype 'FUNCTION' &
- exclude objtype 'TYPE' &
- exclude objtype 'TRIGGER' &
- exclude objtype 'GRANT' &
- exclude instr 'GRANT' &
- exclude objtype 'DATABASE LINK' &
- exclude objtype 'CONSTRAINT' &
- exclude objtype 'JOB' &
- exclude instr 'ALTER SESSION' &
- exclude INSTR 'AS SELECT' &
- exclude INSTR 'REPLACE SYNONYM'
- DDLOPTIONS ADDTRANDATA,REPORT
- FETCHOPTIONS, USESNAPSHOT, USELATESTVERSION, MISSINGROW REPORT
- STATOPTIONS REPORTFETCH
- WARNLONGTRANS 1H, CHECKINTERVAL 5M
- SEQUENCE A.* ;
- SEQUENCE B.* ;
- TABLE A.* ;
- TABLE B.* ;
复制代码 PUMP:- EXTRACT EDP
- setenv (NLS_LANG = AMERICAN_AMERICA.AL32UTF8)
- PASSTHRU
- DYNAMICRESOLUTION
- USERID ogg,PASSWORD "test"
- RMTHOST 10.10.10.1, MGRPORT 7819,COMPRESS
- RMTTRAIL /oracle/app/goldengate/dirdat/ww
- DISCARDFILE ./dirrpt/ext.dsc,APPEND,MEGABYTES 5
- SEQUENCE A.*;
- SEQUENCE B.*;
- TABLE A.*;
- TABLE B.*;
复制代码 REPLICAT:- REPLICAT REP
- setenv (NLS_LANG = AMERICAN_AMERICA.AL32UTF8)
- DBOPTIONS DEFERREFCONST
- USERID ogg,PASSWORD "test"
- --HANDLECOLLISIONS
- REPERROR (00001,discard)
- ASSUMETARGETDEFS
- REPORTROLLOVER AT 23:59
- DISCARDFILE ./dirrpt/REP.DSC,APPEND,megabytes 100
- DDL INCLUDE MAPPED
- --exclude INSTR 'AS SELECT'
- DDLERROR DEFAULT IGNORE RETRYOP
- DDLOPTIONS REPORT
- --BATCHSQL
- ALLOWNOOPUPDATES
- DDLSUBST 'A' WITH 'A_OGG' INCLUDE ALL
- DDLSUBST 'B' WITH 'B_OGG' INCLUDE ALL
- DDLOPTIONS MAPSESSIONSCHEMA A, TARGET A_OGG, MAPSCHEMAS
- DDLOPTIONS MAPSESSIONSCHEMA B, TARGET B_OGG, MAPSCHEMAS
- DBOPTIONS LOBWRITESIZE 102400
- MAP A.* , TARGET A_OGG.*;
- MAP B.* , TARGET B_OGG.*;
复制代码 |
|