11g資料泵NETWORK_LINK功能增強

yangtingkun發表於2012-06-06

11g增強了資料泵的NETWORK_LINK功能,使得遠端的匯入或匯出也支援分割槽粒度。

 

 

10g的時候,資料泵的NETWORK_LINK只支援表粒度:

[orat3@hpserver2 ~]$ expdp test/test network_link=ora10204 dumpfile=tpart.dp logfile=test.log directory=dd tables=t_part:p1

Export: Release 10.2.0.4.0 - 64bit Production on Monday, 4 June, 2012 0:38:31

Copyright (c) 2003, 2007, Oracle. All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39203: Partition selection is not supported over a network link.

很明顯10g並不支援透過網路方式的分割槽選擇功能。而且對於分割槽表而言,無論是匯出還是匯入,都是已一個整體完成的。

而在11g中,無論是匯入還是匯出,NETWORK_LINK方式都支援分割槽粒度:

solaris*orcl-/home/oracle$ expdp test/test network_link=t111g dumpfile=t_part_hash.dp directory=d_output nologfile=y tables=t_part_hash:sys_p61

Export: Release 11.2.0.3.0 - Production on Mon Jun 4 08:24:54 2012

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Oracle Label Security and Real Application Testing options
Starting "TEST"."SYS_EXPORT_TABLE_01": test/******** network_link=t111g dumpfile=t_part_hash.dp directory=d_output nologfile=y tables=t_part_hash:sys_p61
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 8 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "TEST"."T_PART_HASH":"SYS_P61" 5.476 KB 13 rows
Master table "TEST"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for TEST.SYS_EXPORT_TABLE_01 is:
/home/oracle/t_part_hash.dp
Job "TEST"."SYS_EXPORT_TABLE_01" successfully completed at 08:25:57

這個功能沒有在新特性文件中體現,但是卻是一個不錯的功能提升。

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-732510/,如需轉載,請註明出處,否則將追究法律責任。

相關文章