add extract p117, exttrailsource ./dirdat/es
add rmttrail d:\ogg\dirdat\XX,EXTRACT p117,MEGABYTES 100
edit params p117
EXTRACT P117
TRANLOGOPTIONS RAWDEVICEOFFSET 0
TRANLOGOPTIONS CONVERTUCS2CLOBS
USERID oggadm, PASSWORD oggadm
RMTHOST IP地址, MGRPORT 7809, COMPRESS
RMTTRAIL d:\ogg\dirdat\t1
PASSTHRU
TABLE X.X;
TABLE X.X;
TABLE X.X;select s.sid,t.start_time,osuser o, username u,sa.sql_text
from v$session s, v$transaction t, dba_rollback_segs r, v$sqlarea sa
where s.taddr=t.addr and t.xidusn=r.segment_id(+)
and s.sql_address=sa.address(+);
col get_system_change_number for 9999999999999999999;
select dbms_flashback.get_system_change_number from dual;
dblogin userid oggadm,password oggadm
add replicat rs117,exttrail ./dirdat/t1,checkpointtable oggadm.GGS_CHECKPOINT
edit param rs117
REPLICAT rs117
SETENV (ORACLE_SID = "X")
SETENV (NLS_LANG = "AMERICAN_AMERICA.ZHS16GBK")
USERID oggadm, PASSWORD AACAAAAAAAAAAAGACBRBDBRGUJAGXCKH, ENCRYPTKEY DEFAULT
ASSUMETARGETDEFS
ALLOWNOOPUPDATES
discardfile ./dirrpt/X.dsc, purge, megabytes 200
reperror default, discard
discardrollover
STATOPTIONS RESETREPORTSTATS
REPORT AT 00:01
REPORTROLLOVER AT 00:01
REPORTCOUNT EVERY 60 SECONDS, RATE
gettruncates
DDL INCLUDE ALL
DDLERROR 4045 IGNORE
DDLERROR 4080 IGNORE
DDLERROR 1918 IGNORE
DDLERROR 942 IGNORE
DDLERROR 1435 IGNORE
DDLERROR DEFAULT DISCARD RETRYOP MAXRETRIES 2 RETRYDELAY 5
MAP X.X, TARGET X.X;
7.根据导出的SCN来启动复制进程
start replicat rs117, aftercsn X
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30491527/viewspace-1982666/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30491527/viewspace-1982666/