expdp fiashback_time 、flashback_scn
在9iexp数据的时候,为保持数据一致性,使用consistent=y参数
用expdp 的fiashback_time或flashback_scn 可以实现同样的功能。
例如:
SELECT to_char(DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER,’9999999999999′) from dual;
select current_scn as FLASHBACK_SCN from v$database;
expdp hr/hr DIRECTORY=dpump_dir1 DUMPFILE=hr_scn.dmp FLASHBACK_SCN=384632
expdp hr/hr DIRECTORY=dpump_dir1 DUMPFILE=hr_scn.dmpFLASHBACK_TIME="TO_TIMESTAMP('25-08-2003 14:35:00', 'DD-MM-YYYY HH24:MI:SS')"
想省事可以用flashback_time=systimestamp
flashback_time=to_timestamp(localtimestamp)
flashback_time=to_timestamp_tz(systimestamp)
看asktom上说,11g有偷偷的支持consistent参数了,没环境,暂时无法验证,直接截屏上图了
难道oracle工作人员也觉得敲flashback_XXX麻烦?
http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_export.htm
http://blog.oracle48.nl/the-expdp-equivalent-of-exp-consistent_y/
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:21545894805637