今天遇到IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件,通过网上找到解决方案,因此转载,并对另外一种情况进行注释。

 

今天遇到IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件通过网上找到解决方案,因此转载

1005人阅读 评论(0) 收藏 举报

一般遇到IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件


通常有两种解决方法:


1. 授予执行导出的用户dba权限(导数前要grant,导入后要revoke dba权限)
2. 重新用非dba用户导出数据 (如果dmp文件比较大,需要消耗较长的时间)

如果有dba权限的用户,可以方便避免上述两个问题。
3.利用有DBA权限的用户结合fromuser ,touser 参数进行导入

如:imp report/myoracle file=1.dmp fromuser=reporttouser=scott ignore=yes

E:/>imp scott/tiger file=1.dmp

Import: Release 11.2.0.1.0 - Production on 星期三 4月 20 17:12:06 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
经由常规路径由 EXPORT:V11.02.00 创建的导出文件
IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件
IMP-00000: 未成功终止导入

E:/>imp report/report file=1.dmp fromuser=report touser=scott ignore=yes
Import: Release 11.2.0.1.0 - Production on 星期三 4月 20 17:28:54 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
经由常规路径由 EXPORT:V11.02.00 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
导入服务器使用 AL32UTF8 字符集 (可能的字符集转换)
. 正在将 REPORT 的对象导入到 SCOTT
. . 正在导入表 "CUSTOMERS"导入了 1 行
成功终止导入, 没有出现警告。

 
问题2:导入用户scott不是DBA,但是到处用户system是DBA。这种情况即使加入fromuser也会出错,必须给与scot以DBA权限之后才行
imp scott/sakura  fromuser=system touser=scott file=c:\b.dmp
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值