oracle数据库导入由DBA导出的文件

  1. --实例演示  
  2. ---system用户导出  
  3. C:\Users\ZML>exp system/zml file='D:\zml.dmp' log = 'D:\zml.log' tables = (zml)  
  4.   
  5. Export: Release 11.2.0.1.0 - Production on 星期一 4月 21 21:39:12 2014  
  6.   
  7. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.  
  8.   
  9.   
  10. 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production  
  11. With the Partitioning, OLAP, Data Mining and Real Application Testing options  
  12. 已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集  
  13.   
  14. 即将导出指定的表通过常规路径...  
  15. . . 正在导出表                             ZML导出了           0 行  
  16. 成功终止导出, 没有出现警告。  
  17.   
  18. C:\Users\ZML>  
  19. ------scott用户导入-------------------  
  20. C:\Users\ZML>imp scott/zml file='D:\zml.dmp' log = 'D:\zml1.log' full = y  
  21.   
  22. Import: Release 11.2.0.1.0 - Production on 星期一 4月 21 21:57:40 2014  
  23.   
  24. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.  
  25.   
  26.   
  27. 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production  
  28. With the Partitioning, OLAP, Data Mining and Real Application Testing options  
  29.   
  30. 经由常规路径由 EXPORT:V11.02.00 创建的导出文件  
  31. IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件  
  32. IMP-00000: 未成功终止导入  
  33.   
  34. C:\Users\ZML>  
  35. --------给scott用户dba授权限--------------------  
  36. SQL> grant dba to scott  
  37.   2  ;  
  38.   
  39. 授权成功。  
  40.   
  41. SQL>  
  42. -------scott用户导入---------------  
  43. C:\Users\ZML>imp scott/zml file='D:\zml.dmp' log = 'D:\zml1.log' full = y  
  44.   
  45. Import: Release 11.2.0.1.0 - Production on 星期一 4月 21 22:04:39 2014  
  46.   
  47. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.  
  48.   
  49.   
  50. 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production  
  51. With the Partitioning, OLAP, Data Mining and Real Application Testing options  
  52.   
  53. 经由常规路径由 EXPORT:V11.02.00 创建的导出文件  
  54.   
  55. 警告: 这些对象由 SYSTEM 导出, 而不是当前用户  
  56.   
  57. 已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入  
  58. . 正在将 SYSTEM 的对象导入到 SCOTT  
  59. . 正在将 SYSTEM 的对象导入到 SCOTT  
  60. . . 正在导入表                           "ZML"导入了           0 行  
  61. 成功终止导入, 没有出现警告。  
  62.   
  63. C:\Users\ZML>  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值