exp 备份是完全备份,现在需要导入只导一个表的满足条件的数据,imp 可以用QUERY 嘛,可以的话怎么写

解决方案 »

  1.   

    不可以。你可以使用exp help='Y' 和imp help='Y'看看,exp有imp没有。
      

  2.   

    是可以指定表名的..
    imp system/aptech@accp file=d:\item_back.dmp ignore=y full=y tables=(emp,dept)
      

  3.   

    userid=user/pwd@tnsname
    log=imp.log
    file=filename
    fromuser=
    touser=
    tables=()
    full=no
    buffer=81920000
    commit=no
    grants=no
    ignore=yes
    indexes=no
    rows=yes
    show=no
    constraints=no
    statistics=none
      

  4.   

    如果你使用的oracle 10g, 可以使用impdp使用这个子句可以实现
    QUERY=[[schema_name.]table_name:]query_clause
    比如:
    impdp scott/tiger directory=dump_scott dumpfile=schema.dmp schemas=scott  
    QUERY=departments:"WHERE department_id < 120"