默认情况下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/
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15747463/viewspace-768588/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/15747463/viewspace-768588/