Oracle expdp和impdp如何自動使用resumable特性

來源:互聯網
上載者:User

對比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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.