怎样把Solaris的Oracle数据弄到Windows上来

-----------------------

在远端的Sun服务器上有Oracle for Solaris.
但是有火墙,无法用SQL工具直接连上去。
所以就用Export工具在Sun上面做了个Dmp文件。
然后用Ftp get 下来。
正准备用Import 到我本机的Database Ora9 for windows中,但是出错。
请教了,有什么方便的方法可以把Oracle for Solaris中的数据弄到Oracle for Windows中!

-----------------------

IMP不成功

Export的方式
bash-2.03$ exp ilearn/ilearn file=20031020_1.dmp tables=\(object_variance\)
Export: Release 9.2.0.1.0 - Production on Mon Oct 20 09:32:31 2003
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Export done in UTF8 character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table                OBJECT_VARIANCE        252 rows exported
Export terminated successfully without warnings.
Import的方式
Import: Release 9.0.1.1.1 - Production on Mon Oct 20 09:38:41 2003
(c) Copyright 2001 Oracle Corporation.  All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
With the Partitioning option
JServer Release 9.0.1.1.1 - Production
IMP-00010: not a valid export file, header failed verification
IMP-00000: Import terminated unsuccessfully
一个是Solaris的DB,一个是Windows的DB。为什么发生这种情况?

-----------------------

exp/imp

呵呵,这样exp/imp肯定是不行的,
这跟oracle的版本有关系,据我的测试,高版本的exp出来后是不能imp进低版本的数据库,相反则可以,建议是直接用windows环境下的exp/imp进行数据迁移,这样可以解决问题,另外,如果表不是很多的话,用db link来转移资料也未尝不可.

-----------------------

版本

Export的数据库是Oracle9.2.0.1.0
Import的数据库是Oracle9.0.1.1.1
我倒过来试一下吧。

-----------------------

倒过来可以

倒过来,我Test成功了。
从9.0.1.1.1Exp,到9.2.0.1.0Imp。
看来还是版本问题。
只有去找Oracle9.2.0的Windows版本了。

-----------------------

http://www.itpub.net/thread-166479-1-1.html

posted @ 2011-08-23 20:29  emanlee  阅读(672)  评论(0编辑  收藏  举报