微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

将Oracle DMP文件导入到oracle的全新安装中

客户向我们发送了一个我们需要测试的Oracle数据库.我们不使用Oracle或拥有任何内部Oracle专业知识.

我们需要设置数据库,以便我们可以连接到它并调试问题.

我重新安装了Oracle 9(客户端运行的版本)和管理工具.

对于我的生活,我无法导入数据.它不应该是这么复杂.我一定是弄错了.

我试过了:

imp 'sys/password AS SYSDBA' file=c:\database.dmp full=yes log=implog.txt

得到了:

Connected to: Personal Oracle9i Release 9.2.0.1.0 - Production
With the Partitioning,OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

Export file created by EXPORT:V09.02.00 via conventional path

Warning: the objects were exported by SYstem,not by you

import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
. importing SYstem's objects into SYS
. importing ABCDE's objects into ABCDE
IMP-00003: ORACLE error 1435 encountered
ORA-01435: user does not exist
Import terminated successfully with warnings.

但是在管理器中没有任何东西出现在任何架构中的表格中,而且我的智慧结束了.

您需要先创建用户(或架构)
C:\>sqlplus system/password

sql> create user CLIENT_TEST identified by client_test_password;
sql> grant connect,unlimited tablespace,resource to CLIENT_TEST;
sql> exit

然后,您可以使用fromuser =和touser = IMP开关将数据导入新用户/架构:

C:\>imp system/password FROMUSER=ABCDE TOUSER=client_test file=c:\database.dmp full=yes

希望有所帮助!

原文地址:https://www.jb51.cc/oracle/205332.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐