oracle中有这样的导出语法
exp aichannel/aichannel@TESTDB2 file= d:\datanewsmgnt.dmp tables=(inner_notify) 
用来指定导出inner_notify的数据,可是我想不导出表空间下的某张表应该怎么写?

解决方案 »

  1.   

    exp scott/tiger file=example.out tables=emp
    有什么不一样么,你知道了某张表的表名,还管他表空间做什么?
      

  2.   

    exp做不到 但是expdp可以做到
    Expdp scott/tiger DIRECTORY=dump DUMPFILE=a.dup EXCLUDE=object_type[:name_clause]http://shen5277.javaeye.com/blog/735433
      

  3.   

    exp好像没有合适的参数达到你的要求,但是你可以全部导出,然后imp时不导入这张表不就可以了!
      

  4.   

    或者是使用expdp(10g或者是更高版本),有一个exclude参数可以满足你的请求!
      

  5.   

    1 将数据库TEST完全导出,用户名system 密码manager 导出到D:\daochu.dmp中
       exp system/manager@TEST file=d:\daochu.dmp full=y2 将数据库中system用户与sys用户的表导出
       exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)3 将数据库中的表table1 、table2导出
       exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2) 4 将数据库中的表table1中的字段filed1以"00"打头的数据导出
       exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"
    知道表名字就不用管空间了,好像不能备份空间