数据库在imp导入过程中能不能跳过正在导入的表?因为倒出来的数据库是某个用户下的,包括某些我不需要的表,能不能在导入过程中跳过某些表?

解决方案 »

  1.   

    如果表不多的话, imp user/passwd fromuser= touser=  tables=(A,B,C,....)
      

  2.   


    同意,可以用这样的形式当然impdp也能做到,不过你既然是用imp那么说明你的dmp是用exp做出来的,所以impdp这里就用不上了。还要注意impdp 10g版块开始支持。
      

  3.   

    imp -help没看到 有想应的功能。
    impdp -help
      exculude 这个强大了参考:http://dbaforums.org/oracle/index.php?showtopic=18046
    impdp system/******* directory=bkp dumpfile=fullSM.dmp logfile=IMPSM.log schemas=myschema EXCLUDE=TABLE:'TABLE1','TABLE2', 'TABLE3', 'TABLE4'
    或用 exculude=table:in(t1,t2,t2)
      

  4.   

    数据库版本有关,10G之后有了impdp是方便了很多
      

  5.   

    做不到!  解决方案:
    1 先全部导入,在将不需要的表删除!   如果你没有足够的空间导入,可以压缩应怕空间! 
    2 重新在导出一个dmp文件,导出语句参考:
    参考:http://dbaforums.org/oracle/index.php?showtopic=18046 
    impdp system/******* directory=bkp dumpfile=fullSM.dmp logfile=IMPSM.log schemas=myschema EXCLUDE=TABLE:'TABLE1','TABLE2', 'TABLE3', 'TABLE4' 
    或用 exculude=table:in(t1,t2,t2)      2中选择   导出想要的表 t1 t2 t3.......
             导出想要的表,但不包括 t1 t2 t3