国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

10g新特性之-expdp與傳統exp的速度比較

2024-07-21 02:34:11
字體:
來源:轉載
供稿:網友

  測試環境:
  
  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 23 oracle dba 1024 Apr 26 22:53 ..
  -rwxr-xr-x 1 oracle dba 120 Apr 27 10:21 bak.sh
  -rwxr-xr-x 1 oracle dba 111 Apr 27 10:22 bak2.sh
  -rwxr-xr-x 1 oracle dba 71 Apr 27 10:24 bak3.sh
  -rwxr-xr-x 1 oracle dba 80 Apr 27 10:50 bak4.sh
  -rw-r----- 1 oracle dba 122413056 Apr 27 10:21 big_big_table.dmp
  -rw-r----- 1 oracle dba 122417152 Apr 27 10:23 big_big_table2.dmp
  -rw-r--r-- 1 oracle dba 134604800 Apr 27 10:52 big_big_table3.dmp
  -rw-r--r-- 1 oracle dba 965 Apr 27 10:23 export.log
  
  以下是導入測試:
  
  6. imp測試
  
  花費時間: Tue Apr 27 11:15:11 CST 2004 - Tue Apr 27 11:08:24 CST 2004 = 6:47s
  
  $ cat rev2.sh
  date
  imp eygle/eygle file=big_big_table3.dmp tables=big_big_table
  date
  
  $ ./rev2.sh
  Tue Apr 27 11:08:24 CST 2004
  
  Import: Release 10.1.0.2.0 - Production on Tue Apr 27 11:08:24 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 file created by EXPORT:V10.01.00 via direct path
  import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
  . importing EYGLE's objects into EYGLE
  . . importing table "BIG_BIG_TABLE" 1363292 rows imported
  Import terminated successfully without warnings.
  Tue Apr 27 11:15:11 CST 2004
  $
  
  7. impdp
  
  花費時間: Tue Apr 27 11:07:06 CST 2004 - Tue Apr 27 11:06:40 CST 2004 = 26s
  
  與imp相比這個速度實在是驚人.
  407/26 = 1565.3846153846153846153846153846%
  
  無怪乎Oracle說impdp才是data pump真正杰出的地方(really stands out)
  
  $ ./rev.sh
  Tue Apr 27 11:06:40 CST 2004
  
  Import: Release 10.1.0.2.0 - 64bit Production on Tuesday, 27 April, 2004 11:06
  
  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
  Master table "EYGLE"."IMPTAB" successfully loaded/unloaded
  Starting "EYGLE"."IMPTAB": eygle/******** dumpfile=big_big_table.dmp tables=big_big_table directory=dpdata job_name=imptab
  Processing object type TABLE_EXPORT/TABLE/TABLE
  Processing object type TABLE_EXPORT/TABLE/TBL_TABLE_DATA/TABLE/TABLE_DATA
  . . imported "EYGLE"."BIG_BIG_TABLE" 116.6 MB 1363292 rows
  Job "EYGLE"."IMPTAB" successfully completed at 11:07
  
  Tue Apr 27 11:07:06 CST 2004

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 卓资县| 梧州市| 莒南县| 敦化市| 海兴县| 新疆| 惠安县| 夏邑县| 平南县| 阿尔山市| 龙泉市| 晴隆县| 康定县| 汉寿县| 神池县| 丹阳市| 阿拉善右旗| 探索| 水城县| 宜城市| 教育| 阿鲁科尔沁旗| 东安县| 皮山县| 金华市| 区。| 视频| 玛沁县| 乌兰县| 万盛区| 牟定县| 易门县| 青州市| 霍林郭勒市| 桓台县| 东城区| 叶城县| 台东市| 平凉市| 探索| 巴中市|