exp/expdp 的一致性读


默认情况下exp/expdp 导出的时候 是针对当前表的一致性读

在导入的时候经常遇到:

 1

ORA-02298: cannot validate  - parent keys not found

是因为主表和子表不一致引起的

2  ORA-00001 unique constraint violated

由于先导出序列再导出表的表和序列值不一致引起的

 

要实现多表的一致性读 需要添加如下参数:

 

exp consistent=y

expdp flashback_time=systimestamp

具体案例可参考:

http://space.itpub.net/283894/viewspace-368964

http://blog.oracle48.nl/the-expdp-equivalent-of-exp-consistent_y/

请使用浏览器的分享功能分享到微信等