分类: Oracle
2010-04-01 17:45:33
导入符合条件的记录,追加到再有表:
impdp ultranms/ultranms query=fm_orgevent:'"WHERE orgeventid=3089876"' dumpfile=expdat.dmp TABLE_EXISTS_ACTION=APPEND tables=fm_orgevent
把表导入到另一个schema下:
impdp ultranms/ultranms remap_schema=ultranms:test dumpfile=expdat.dmp tables=fm_orgevent
符合条件的记录insert到原来的表中:
--select * from fm_orgevent where orgeventid=3089786
insert into ultranms.fm_orgevent (ORGEVENTID,BATCHID,ORGEVENTTYPE,DCTIME,ORGHOST,PROBE,ETEXT) select ORGEVENTID,BATCHID,ORGEVENTTYPE,DCTIME,ORGHOST,PROBE,ETEXT from fm_orgevent where orgeventid=3089786 ;