--執行個體示範
---system使用者匯出
C:\Users\ZML>exp system/zml file='D:\zml.dmp' log = 'D:\zml.log' tables = (zml)
Export: Release 11.2.0.1.0 - Production on 星期一 4月 21 21:39:12 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
串連到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已匯出 ZHS16GBK 字元集和 AL16UTF16 NCHAR 字元集
即將匯出指定的表通過常規路徑...
. . 正在匯出表 ZML匯出了 0 行
成功終止匯出, 沒有出現警告。
C:\Users\ZML>
------scott使用者匯入-------------------
C:\Users\ZML>imp scott/zml file='D:\zml.dmp' log = 'D:\zml1.log' full = y
Import: Release 11.2.0.1.0 - Production on 星期一 4月 21 21:57:40 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
串連到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
經由常規路徑由 EXPORT:V11.02.00 建立的匯出檔案
IMP-00013: 只有 DBA 才能匯入由其他 DBA 匯出的檔案
IMP-00000: 未成功終止匯入
C:\Users\ZML>
--------給scott使用者dba授許可權--------------------
SQL> grant dba to scott
2 ;
授權成功。
SQL>
-------scott使用者匯入---------------
C:\Users\ZML>imp scott/zml file='D:\zml.dmp' log = 'D:\zml1.log' full = y
Import: Release 11.2.0.1.0 - Production on 星期一 4月 21 22:04:39 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
串連到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
經由常規路徑由 EXPORT:V11.02.00 建立的匯出檔案
警告: 這些對象由 SYSTEM 匯出, 而不是目前使用者
已經完成 ZHS16GBK 字元集和 AL16UTF16 NCHAR 字元集中的匯入
. 正在將 SYSTEM 的對象匯入到 SCOTT
. 正在將 SYSTEM 的對象匯入到 SCOTT
. . 正在匯入表 "ZML"匯入了 0 行
成功終止匯入, 沒有出現警告。
C:\Users\ZML>