zoukankan      html  css  js  c++  java
  • ant 配置expdp and impap

    +

    执行步骤:

    ant -f 1_exp_prod.xml

    copy file from prod to uat (maunule)

    ant -f  3_imp_uat.xml

    附件:

    1.1_exp_prod.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <project name="DBHandler" basedir="." default="exp">
     <target name="exp">
     <exec executable="cmd.exe">
      <arg line="/c expdp system/oracle123@t1prod file=t1prod2016128_%U.dmp directory=XMLDIR log=t1prod20161122_152621.log tables=('t1data.event','t1data.eventRp','t1data.tblSign','t1data.tblLeave','t1data.daytime','t1data.day') parallel=4"/>
    </exec>
    </target>
    </project>

    2. copy_to_uat.xml

    <?xml version="1.0" encoding="UTF-8"?>
    -<project default="copy" basedir="." name="DBHandler">
    -<target name="copy">
    -<exec executable="cmd.exe">
    <arg line="/c copy D:appAdministratorproduct11.2.0dbhome_1
    dbmsxml	1prod20161122_152621_2.dmp to 192.168.63.19:C:appAdministratorproduct11.2.0dbhome_1
    dbmsxml/>
    </exec>
    </target>
    </project>

    3.3_imp_uat.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <project name="DBHandler" basedir="." default="imp">
     <target name="imp">
     <exec executable="cmd.exe">
      <arg line="/c impdp system/oracle123@t1uat file=t1prod2016128_%U.dmp directory=XMLDIR log=TS_all_imp_2016_09_02.log table_exists_action=replace remap_schema=t1data:t1data parallel=4"/>
    </exec>
    </target>
    </project>

  • 相关阅读:
    Linux 忘记root密码
    Linux 基础命令
    Linux 运行级别
    Oracle 体系结构
    Oracle 数据库启动过程
    数据库设计范式
    Oracle通过ROWID删除表中重复记录
    JACASCRIPT--的奇技技巧的44招
    css 的小细节,小总结
    关于我们DOM的知识点
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/6113421.html
Copyright © 2011-2022 走看看