您的位置:首页 > 其它

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

2012-02-20 14:01 633 查看

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

2011-04-20 18:07
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐