免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1243 | 回复: 1
打印 上一主题 下一主题

怎样把Solaris的Oracle数据弄到Windows上来 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-23 11:41 |只看该作者 |倒序浏览
怎样把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

论坛徽章:
0
2 [报告]
发表于 2012-01-04 15:02 |只看该作者
谢谢分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP