zoukankan      html  css  js  c++  java
  • 导出oracle整个数据库

    1 将数据库baiTEST完全导出,用户名system 密码manager 导出du到D:daochu.dmp中zhi
    exp system/manager@TEST file=d:daochu.dmp full=y
    2 将数据库dao中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%'"
    上面是常用的导出,对于压缩我不太在意,用winzip把dmp文件可以很好的压缩。
    不过在上面命令后面 加上 compress=y 就可以了

    开始bai->运行->输入“cmd”->输入exp user/password@IP地址:1521/数据du库实例zhi file=文件所在目录dao
    (如:exp user/password@192.168.141.40:1521/orcl file=E:workdmpperson.dmp)
    导入
    (如:imp user/password@192.168.141.40:1521/orcl file=E:workdmpperson.dmp full=y ignore=y)

  • 相关阅读:
    BZOJ 2005 能量采集
    HDU 2841 Visible Trees(莫比乌斯反演)
    hihocoder 1543
    hihocoder 1311
    hdu 6069
    hdu 6058
    hdu 6034
    拓展欧几里得
    poj 3321
    树状数组总结
  • 原文地址:https://www.cnblogs.com/zwgblogs/p/13665372.html
Copyright © 2011-2022 走看看