原文鏈接:http://specialwolf.blog.163.com/blog/static/124466832201131844717382/
此處是將scott用戶下面的數據導出再導入到test用戶下:
C:\Documents and Settings\dean_deng>exp system/manager@orcl file=E:\test.dmp owner=(scott)
Export: Release 10.1.0.2.0 - Production on 星期四 5月 3 11:22:52 2012
Copyright (c) 1982, 2004, Oracle. All rights reserved.
連線至: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
已匯出 ZHT16MSWIN950 字元集和 AL16UTF16 NCHAR 字元集
即將匯出設定的使用者 ...
. 正在匯出預先綱要程序物件與動作
. 正在匯出使用者 SCOTT外來功能程式庫名稱
. 正在匯出 PUBLIC 類型同義字
. 正在匯出專用類型同義字
. 正在匯出使用者 SCOTT 物件類型的定義
即將匯出 SCOTT 的物件 ...
. 正在匯出資料庫連結
. 正在匯出序號
. 正在匯出叢集定義
. 即將匯出 SCOTT 的表格 經由一般路徑 ...
. . 正在匯出表格 BONUS匯出了 0 列
. . 正在匯出表格 DEPT匯出了 5 列
. . 正在匯出表格 EMP匯出了 14 列
. . 正在匯出表格 KC匯出了 9 列
. . 正在匯出表格 ORDER_STATUS2匯出了 0 列
. . 正在匯出表格 ORDER_STATUS_TEMP
. . 正在匯出表格 SALGRADE匯出了 5 列
. . 正在匯出表格 SYS_TEMP_FBT
. . 正在匯出表格 TASK匯出了 7 列
. . 正在匯出表格 TEST匯出了 1966088 列
. . 正在匯出表格 TEST1匯出了 1966088 列
. . 正在匯出表格 XS匯出了 22 列
. 正在匯出同義字
. 正在匯出視觀表
. 正在匯出預存程序
. 正在匯出運算子
. 正在匯出引用整合性限制條件
. 正在匯出觸發程式
. 正在匯出索引類型
. 正在匯出點陣圖, 函數與可擴充索引
. 正在匯出後期表格行動
. 匯出具體化視觀表
. 正在匯出瞬間拷貝日誌
. 正在匯出工作佇列
. 正在匯出重新整理群組和子項
. 正在匯出維度
. 正在匯出後綱要程序物件與動作
. 正在匯出統計值
已順利終止匯出, 並且沒有警告.
C:\Documents and Settings\dean_deng>sqlplus system/manager@orcl
SQL*Plus: Release 10.1.0.2.0 - Production on 星期四 5月 3 11:15:43 2012
Copyright (c) 1982, 2004, Oracle. All rights reserved.
連線到:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> create user test identified by test;
已建立使用者.
SQL> grant create session to test;
順利授權.
SQL> grant resource to test;
順利授權.
imp system/manager@orcl file=E:\test.dmp fromuser = scott touser=test
SQL> exit
已切斷與 Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options 的連線
C:\Documents and Settings\dean_deng>imp system/manager@orcl file=E:\test.dmp fromuser = scott touser=test
Import: Release 10.1.0.2.0 - Production on 星期四 5月 3 11:21:05 2012
Copyright (c) 1982, 2004, Oracle. All rights reserved.
連線至: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
經由傳統路徑, 由 EXPORT:V10.01.00 建立的匯出檔
已在 ZHT16MSWIN950 字元集與 AL16UTF16 NCHAR 字元集中完成了匯入
. 正在將 SCOTT 的物件匯入 TEST 中
. . 正在匯入表格 "BONUS"匯入了 0 列
. . 正在匯入表格 "DEPT"匯入了 5 列
. . 正在匯入表格 "EMP"匯入了 14 列
. . 正在匯入表格 "KC"匯入了 9 列
. . 正在匯入表格 "ORDER_STATUS2"匯入了 0 列
. . 正在匯入表格 "SALGRADE"匯入了 5 列
. . 正在匯入表格 "TASK"匯入了 7 列
. . 正在匯入表格 "TEST"匯入了 1966088 列
. . 正在匯入表格 "TEST1"匯入了 1966088 列
. . 正在匯入表格 "XS"匯入了 22 列
將要啟用限制...
已順利終止匯入作業, 並且沒有警告.
C:\Documents and Settings\dean_deng>