您的位置:首页 > 其它

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

2011-04-20 18:07 525 查看
一般遇到IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件

通常有两种解决方法:

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


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

如:imp report/myoracle file=1.dmp fromuser=report touser=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 行
成功终止导入, 没有出现警告。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐