對比expdp、impdp和exp、imp發現前者沒有了resumable功能,測試發現expdp和impdp自動使用了resumable特性
C:>expdp test/test@orcl directory=dir_temp dumpfile=t.dmp tables=t2
Export: Release 10.2.0.1.0 - Production on 星期四, 03 9月, 2009 18:41:41
Copyright (c) 2003, 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
啟動 "TEST"."SYS_EXPORT_TABLE_01": test/********@orcl directory=dir_temp dumpfi
le=t.dmp tables=t2
正在使用 BLOCKS 方法進行估計...
處理物件類型 TABLE_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的總估計: 23 MB
處理物件類型 TABLE_EXPORT/TABLE/TABLE
處理物件類型 TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . 匯出了 "TEST"."T2" 18.84 MB 759316 行
已成功載入/卸載了主表 "TEST"."SYS_EXPORT_TABLE_01"
******************************************************************************
TEST.SYS_EXPORT_TABLE_01 的轉儲檔案集為:
C:BAKT.DMP
作業 "TEST"."SYS_EXPORT_TABLE_01" 已於 18:42:11 成功完成
C:>
--==================================
SQL> select file_id,file_name,tablespace_name,bytes/1024/1024 m ,autoextensible
from dba_data_files;
FILE_ID FILE_NAME TABLESPACE M AUT
---------- ------------------------------ ---------- ---------- ---
1 C:TEMPSYSTEM01.DBF SYSTEM 300 YES
9 C:TEMPUSERS.DBF USERS 5 NO
6 C:TEMPUNDOTBS02.DBF UNDOTBS2 10 NO
5 C:TEMPTEST.DBF TEST 55 YES
3 C:TEMPSYSAUX01.DBF SYSAUX 120 YES
--==================================
C:>impdp test/test@orcl directory=dir_temp dumpfile=t.dmp remap_schema=(test:sc
ott) remap_tablespace=(test:users)
Import: Release 10.2.0.1.0 - Production on 星期四, 03 9月, 2009 18:48:42
Copyright (c) 2003, 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
已成功載入/卸載了主表 "TEST"."SYS_IMPORT_FULL_01"
啟動 "TEST"."SYS_IMPORT_FULL_01": test/********@orcl directory=dir_temp dumpfil
e=t.dmp remap_schema=(test:scott) remap_tablespace=(test:users)
處理物件類型 TABLE_EXPORT/TABLE/TABLE
處理物件類型 TABLE_EXPORT/TABLE/TABLE_DATA
........這裡hang住了
--================================
本欄目更多精彩內容:http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/
查看dba_resumable發現上面的impdp確實SUSPENDED:
SQL> select status,timeout,name,error_parameter1,error_parameter2,error_paramete
r3,error_parameter4 from dba_resumable;
STATUS TIMEOUT NAME ERROR ERROR ERROR ERROR
--------- ---------- ------------------------------ ----- ----- ----- -----
NORMAL 7200 TEST.SYS_IMPORT_FULL_01
SUSPENDED 7200 TEST.SYS_IMPORT_FULL_01.1 SCOTT T2 128 USERS
SQL> alter database datafile 9 autoextend on;
資料庫已更改。
SQL>
--==========================
datafile 9可以自動擴充之後impdp得以繼續:
C:>impdp test/test@orcl directory=dir_temp dumpfile=t.dmp remap_schema=(test:sc
ott) remap_tablespace=(test:users)
Import: Release 10.2.0.1.0 - Production on 星期四, 03 9月, 2009 18:48:42
Copyright (c) 2003, 2005, Oracle. All rights reserved.