Oracle的imp/exp組件是我們常用的工具,它的一個操作原則就是向下兼容。下面是據此總結的幾個使用規則和相關測試:
C:\Documents and Settings\yuechaotian>exp userid=hdtest/test@s67 tables=(ab01) rows=n file=d:\x.dmp
?
Export: Release
?
Copyright (c) 1982, 2002, Oracle Corporation.? All rights reserved.
?
?
即將導出指定的表通過常規路徑
...
|
C:\Documents and Settings\yuechaotian>exp userid=hbjb_kf_hd/test@s46 owner=hdtest file=d:\x.dmp
?
Export: Release
?
Copyright (c) 1982, 2005, Oracle.? All rights reserved.
?
|
C:\Documents and Settings\yuechaotian>exp userid=test/test@orcl owner=test file=d:\10g.dmp
?
Export: Release
?
Copyright (c) 1982, 2005, Oracle.? All rights reserved.
?
?
即將導出指定的用戶
...
……
導出成功終止
,
但出現警告。
?
C:\Documents and Settings\yuechaotian>
|
C:\Documents and Settings\yuechaotian>imp userid=test/test@s10g fromuser=test touser=test file=d:\10g.dmp
?
Import: Release
?
Copyright (c) 1982, 2002, Oracle Corporation.? All rights reserved.
?
?
IMP-00010:
不是有效的導出文件,標題驗證失敗
?
C:\Documents and Settings\yuechaotian>
|
C:\Documents and Settings\yuechaotian>exp userid=test/test@s9i owner=test file=d:\9i.dmp
?
Export: Release
?
Copyright (c) 1982, 2002, Oracle Corporation.? All rights reserved.
?
?
即將導出指定的用戶
...
……
在沒有警告的情況下成功終止導出。
?
C:\Documents and Settings\yuechaotian>
|
C:\Documents and Settings\yuechaotian>imp userid=test/test@orcl fromuser=test touser=test file=d:\9i.dmp
?
Import: Release
?
Copyright (c) 1982, 2005, Oracle.? All rights reserved.
?
?
經由常規路徑由
EXPORT:V
……
成功終止導入
,
但出現警告。
?
C:\Documents and Settings\yuechaotian>
|
C:\Documents and Settings\yuechaotian>imp userid=test/test fromuser=scott touser=test file=d:\tyc.dmp
?
Import: Release
?
Copyright (c) 1982, 2005, Oracle.? All rights reserved.
?
?
經由常規路徑由
EXPORT:V
?
警告
:
這些對象由
SCOTT
導出
,
而不是當前用戶
?
已經完成
ZHS16GBK
字符集和
AL16UTF16 NCHAR
字符集中的導入
?
C:\Documents and Settings\yuechaotian>
|
C:\Documents and Settings\yuechaotian>imp userid=test/test fromuser=scott touser=test file=d:\tyc.dmp
?
Import: Release
?
Copyright (c) 1982, 2005, Oracle.? All rights reserved.
?
?
經由常規路徑由
EXPORT:V
?
警告
:
這些對象由
SCOTT
導出
,
而不是當前用戶
?
已經完成
ZHS16GBK
字符集和
AL16UTF16 NCHAR
字符集中的導入
?
C:\Documents and Settings\yuechaotian>
|