zoukankan      html  css  js  c++  java
  • orcale导出导入数据--待测试

    先进入oracle用户 su - oracle

    1. 用户模式: 导出用户所有对象以及对象中的数据

    将数据库中test用户与test用户的表导出到d:daochu.dmp中

    exp test/test@orcl file=d:daochu.dmp owner=(test,test1)

    2. 表模式: 导出用户所有表或者指定的表

    将数据库中的表table1 、table2导出到d:daochu.dmp中

    exp test/test@orcl  file=d:daochu.dmp  tables=(table1,table2)

    3. 整个数据库: 导出数据库中所有对象

    将数据库中所有对象完全导出到D:daochu.dmp中

    exp test/test@orcl  file=d:daochu.dmp  full=y

    同导出一样,要先切换至oracle用户 su - oracle

    1. 用户模式: 导入用户所有对象以及对象中的数据

    imp test/test@orcl  file=d:daochu.dmp  fromuser=test1  touser=test

    fromuser:取出当前dmp文件的用户

    touser:把现在dmp文件中的数据导入到目标库的指定用户

    2. 表模式: 导入用户所有表或者指定的表

    imp test/test@orcl   file=d:daochu.dmp  tables=(table1,table2)  

    3. 整个数据库: 导入数据库中所有对象

    imp test/test@orcl   file=d:/daochu.dmp 

  • 相关阅读:
    luogu P1340 兽径管理
    luogu P2828 Switching on the Lights(开关灯)
    luogu P1462 通往奥格瑞玛的道路
    codevs 2596 售货员的难题
    luogu P1145 约瑟夫
    luogu P1395 会议
    luogu P1041 传染病控制
    luogu P1198 [JSOI2008]最大数
    codevs 1191 数轴染色
    [POJ1082]Calendar Game
  • 原文地址:https://www.cnblogs.com/xyyou/p/14067957.html
Copyright © 2011-2022 走看看