设为首页 加入收藏 网站搜索 繁體中文 中国建站网 — 站长资源平台

10g新特性之-expdp与传统exp的速度比较

来源本站整理 作者:佚名 时间:2006-8-2 20:38:26 该文得分0

  测试环境:
  
  System Configuration: Sun Microsystems sun4u Sun Enterprise 450 (4 X UltraSPARC-II 296MHz)
  System clock frequency: 99 MHz
  Memory size: 2048 Megabytes
  
  数据量:
  
  单表测试,1363292行记录,116.6 MB左右数据
  
  1.使用并行 expdp
  
  花费时间:
  Tue Apr 27 10:21:54 CST 2004 - Tue Apr 27 10:21:10 CST 2004 = 43秒
  
  $ cat bak.sh
  date
  expdp eygle/eygle dumpfile=big_big_table.dmp directory=dpdata tables=big_big_table job_name=exptab parallel=4
  date
  $ ./bak.sh
  Tue Apr 27 10:21:10 CST 2004
  
  Export: Release 10.1.0.2.0 - 64bit Production on Tuesday, 27 April, 2004 10:21
  
  Copyright (c) 2003, Oracle. All rights reserved.
  
  Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
  With the Partitioning, OLAP and Data Mining options
  Starting "EYGLE"."EXPTAB": eygle/******** dumpfile=big_big_table.dmp directory=dpdata tables=big_big_table job_name=exptab parallel=4
  Estimate in progress using BLOCKS method...
  Processing object type TABLE_EXPORT/TABLE/TBL_TABLE_DATA/TABLE/TABLE_DATA
  Total estimation using BLOCKS method: 248 MB
  Processing object type TABLE_EXPORT/TABLE/TABLE
  . . exported "EYGLE"."BIG_BIG_TABLE" 116.6 MB 1363292 rows
  Master table "EYGLE"."EXPTAB" successfully loaded/unloaded
  ******************************************************************************
  Dump file set for EYGLE.EXPTAB is:
  /opt/oracle/dpdata/big_big_table.dmp
  Job "EYGLE"."EXPTAB" successfully completed at 10:21
  
  Tue Apr 27 10:21:54 CST 2004
  
  2.使用正常 expdp
  
  花费时间:
  Tue Apr 27 10:23:36 CST 2004 - Tue Apr 27 10:23:02 CST 2004 = 34 秒
  
  看来并行的差异需要更大的数据量的测试
  
  $ cat bak2.sh
  date
  expdp eygle/eygle dumpfile=big_big_table2.dmp directory=dpdata tables=big_big_table job_name=exptab
  date
  
  $ ./bak2.sh
  Tue Apr 27 10:23:02 CST 2004
  
  Export: Release 10.1.0.2.0 - 64bit Production on Tuesday, 27 April, 2004 10:23
  
  Copyright (c) 2003, Oracle. All rights reserved.
  
  Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
  With the Partitioning, OLAP and Data Mining options
  Starting "EYGLE"."EXPTAB": eygle/******** dumpfile=big_big_table2.dmp directory=dpdata tables=big_big_table job_name=exptab
  Estimate in progress using BLOCKS method...
  Processing object type TABLE_EXPORT/TABLE/TBL_TABLE_DATA/TABLE/TABLE_DATA
  Total estimation using BLOCKS method: 248 MB
  Processing object type TABLE_EXPORT/TABLE/TABLE
  . . exported "EYGLE"."BIG_BIG_TABLE" 116.6 MB 1363292 rows
  Master table "EYGLE"."EXPTAB" successfully loaded/unloaded
  ******************************************************************************
  Dump file set for EYGLE.EXPTAB is:
  /opt/oracle/dpdata/big_big_table2.dmp
  Job "EYGLE"."EXPTAB" successfully completed at 10:23
  
  Tue Apr 27 10:23:36 CST 2004
  
  3.常规路径exp
  
  花费时间:Tue Apr 27 10:27:00 CST 2004 - Tue Apr 27 10:24:54 CST 2004 = 2:06
  
  这是花费时间最长的.
  是 126/34 = 370.58823529411764705882352941176%
  
  expdp明显快于exp
  
  $ cat bak3.sh
  date
  exp eygle/eygle file=big_big_table3.dmp tables=big_big_table
  date
  
  $ ./bak3.sh
  Tue Apr 27 10:24:54 CST 2004
  
  Export: Release 10.1.0.2.0 - Production on Tue Apr 27 10:24:54 2004
  
  Copyright (c) 1982, 2004, Oracle. All rights reserved.
  
  Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
  With the Partitioning, OLAP and Data Mining options
  Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
  
  About to export specified tables via Conventional Path ...
  . . exporting table BIG_BIG_TABLE 1363292 rows exported
  Export terminated successfully without warnings.
  Tue Apr 27 10:27:00 CST 2004
  
  4.直接路径exp
  

  花费时间:
  Tue Apr 27 10:52:09 CST 2004 - Tue Apr 27 10:50:58 CST 2004 = 1.11
  是 71/34 = 208.82352941176470588235294117647%
  
  直接路径导出快于常规路径导出,但是仍然不敌expdp
  
  $ cat bak4.sh
  date
  exp eygle/eygle file=big_big_table3.dmp tables=big_big_table direct=y
  date
  
  $ ./bak4.sh
  Tue Apr 27 10:50:58 CST 2004
  
  Export: Release 10.1.0.2.0 - Production on Tue Apr 27 10:50:58 2004
  
  Copyright (c) 1982, 2004, Oracle. All rights reserved.
  
  Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
  With the Partitioning, OLAP and Data Mining options
  Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
  
  About to export specified tables via Direct Path ...
  . . exporting table BIG_BIG_TABLE 1363292 rows exported
  Export terminated successfully without warnings.
  Tue Apr 27 10:52:09 CST 2004
  
  5.文件大小
  
  传统方式exp文件要大于expdp的文件大小
  
  大约大出10M左右.
  
  $ ls -al
  total 741566
  drwxr-xr-x 2 oracle dba 512 Apr 27 10:50 .
  drwxr-xr-x 2

[1] [2]  下一页

相关文章
广告赞助
网友评论

共有 0 位网友发表了评论,平均得分: 0 查看完整内容

用户名:

分 值:100分 85分 70分 55分 40分 25分 10分 0分

内 容:

(注“”为必填内容。) 验证码: 验证码,看不清楚?请点击刷新验证码