zoukankan      html  css  js  c++  java
  • oracle 数据导入、导出

    导入导出

     1 --数据导出备份和导入
     2 
     3 ------注意 导出和导入 必须是CMD 命令行下操作,而不是SQL编辑器中
     4 
     5 
     6 --1、导出表 。
     7 --exp:导出关键字 ,userid:用户权限 ,file:保存的位置 ,tables:表
     8 exp  userid=scott/tiger@orcl  tables=(dept,emp)  file=c:/scottTables.dmp   
     9 
    10  
    11 
    12 --2、导入表  
    13 --imp:导入关键字
    14 imp  userid=scott/tiger@orcl   file=c:/scottTables.dmp
    15 
    16  
    17 
    18 --3、导出方案
    19 exp  userid=scott/tiger@orcl  owner=scott  file=d:/scott.dmp
    20 
    21  
    22 
    23 --4、管理员帮忙导出scott方案
    24 exp  userid=sys/oracle@orcl  owner=scott  file=d:/scott.dmp
    25 
    26  
    27 
    28 --5、导入方案
    29 imp userid=scott/tiger@orcl   file=d:/scott.dmp
    30 
    31  
    32 
    33 --6、管理员导入  管理员导出过的方案
    34 imp userid=sys/oracle@orcl  file=d:/scott.dmp fromuser=sys  touser=scott
    35 
    36       
    37 
    38  
    39 
    40  
    41 
    42  
  • 相关阅读:
    经典入门_排序
    经典入门_贪心算法
    经典入门_Hash的应用
    经典入门_排序
    uva 839
    uva 327
    uva 699
    uva 712
    uva 297
    uva 548
  • 原文地址:https://www.cnblogs.com/bigerf/p/6488724.html
Copyright © 2011-2022 走看看