C:\Documents and Settings\yuechaotian>exp userid=test/test@orcl wner=test file=d:\10g.dmp
Export: Release 10.2.0.1.0 - Production on 星期三 2月 20 11:16:39 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options 已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集 服务器使用 AL32UTF8 字符集 (可能的字符集转换)
即将导出指定的用户...
……
导出成功终止, 但出现警告。
C:\Documents and Settings\yuechaotian>
2.2 使用9i客户端imp上面所导出的dmp文件到10g:可以连接到10g中,但无法识别文件
C:\Documents and Settings\yuechaotian>imp userid=test/test@s10g fromuser=test touser=test file=d:\10g.dmp
Import: Release 9.2.0.1.0 - Production on 星期三 2月 20 11:20:33 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options
IMP-00010: 不是有效的导出文件,标题验证失败 IMP-00000: 未成功终止导入
C:\Documents and Settings\yuechaotian>
规则3:低版本exp出的dmp文件,高版本可以imp(向下兼容)
3.1 使用9i客户端exp出9i中的数据
C:\Documents and Settings\yuechaotian>exp userid=test/test@s9i wner=test file=d:\9i.dmp
Export: Release 9.2.0.1.0 - Production on 星期三 2月 20 11:25:04 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production 已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
即将导出指定的用户...
……
在没有警告的情况下成功终止导出。
C:\Documents and Settings\yuechaotian>
3.2 使用10g客户端imp到10g数据库中
C:\Documents and Settings\yuechaotian>imp userid=test/test@orcl fromuser=test touser=test file=d:\9i.dmp
Import: Release 10.2.0.1.0 - Production on 星期三 2月 20 11:28:46 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options