动态网站制作指南 [  QQ表情  ]
[ 投票调查 ]
[ 企业邮箱 ]
[ 网站空间 ]
网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
ASP源码 | .Net源码 | PHP源码 | JSP源码 | JAVA源码 | CGI源码 | VB源码 | C++源码 | Delphi源码 | PB源码 | VF源码 | 汇编 | 服务器
电脑书籍下载:程序设计书籍 | 数据库教程书籍 | 平面与多媒体书籍 | 网络通讯书籍 | 系统管理书籍 | 网络安全书籍 | 认证考试书籍
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > 数据库 > Oracle教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
数据库:数据库教程,数据库技巧,Oracle教程,MySQL教程,Sybase教程,Access教程,DB2教程,数据库安全,数据库文摘
文章搜索服务
邮件订阅
输入你的邮件地址,
你将不会错过任何关于:
[ Oracle教程 ]的信息



本月文章推荐
.在 Oracle10g 上构建 PL/SQL Web.
.oracle 备份数据库.
.Oracle数据库联机热备份的原理简.
.TestKing Oracle 1z0-032 V11.1.
.Oracle初级用户必须了解的ORA-01.
.Oracle数据库的左连接和右连接.
.建立用户组保证Oracle数据库安全.
.创建复制环境中只读实体化视图站.
.Oracle如何精确计算row的大小.
.Oracle中常用SQL语法和数据对象.
.ORACLE数据库不用索引来查找数据.
.如何以树状结构显示系统当前的任.
.配置UltraEdit为Oracle PL/SQL代.
.Oracle基本数据类型存储格式浅析.
.对Foreign Key的进一步认识。.
.Oracle导出数据库结构到PowerDes.
.ASSM管理(BMB段管理)的内部机理.
.使用LogMiner分析Oracle8i/9i的重.
.ORACLE数据库对象与用户管理.
.快速理解Oracle归档模式的命令及.

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

发表日期:2008-2-9 |



  测试环境:
  
  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
上一篇:Oracle10g的UNDO_RETENTION自动化管理增强 人气:519
下一篇:如何把数据导入不同的表空间? 人气:403
浏览全部Oracle教程的内容 Dreamweaver插件下载 常用网页广告代码全集
  最新网站源码 最新软件下载
2008-7-25 WikyBlog v1.7.0.1 多国语言版
2008-7-25 乐彼网上开店系统(56770 Eshop)
2008-7-25 赛特网站管理系统sitecms v3.6.0
2008-7-25 Modoer多功能点评系统 v1.0.1 Bu
2008-7-25 Shangducms Teamsuit! v1.1.0 开
2008-7-25 幻影动漫网视频系统(Ppdong) v1.
2008-7-25 acteecompany企业网站建设系统 v
2008-7-25 恒浪整合管理系统 ims v4.1 ACCE
2008-7-25 艺术图库系统 v1.0 beta
2008-7-19 UltraEdit 简体中文增强版 14.10
2008-7-19 CentOS 5.2 i386 LiveCD
2008-7-19 Snapture多功能相机 v1.4
2008-7-19 iAcces中文输入法 v1.0Build016
2008-7-19 Cookbook烹饪秘籍 v2.5
2008-7-19 苹果专用DVD转换工具 v1.1.59汉化
2008-7-19 Modem修复软件ZiPhone修改版04.0
2008-7-19 AgileMessenger即时通讯工具美化
2008-7-19 Sketches画图软件 v0.7b6破解版


  发表评论
姓 名: 验证码:
内 容:
[ 汉字翻译拼音 ] [ 广告代码 ] [ 符号对照表 ] [ 进制转换 ] [ 经典小工具 ] [ 个税计算 ] [ 汉字简繁转换 ] [ 普通单位换算 ] [ 公制单位换算 ]
[ 生辰老黄历 ] [ 国内电话区号 ] [ 国家代码与域名缩写 ] [ 文字加密解密 ] [ 健康查询 ] [ 万年历 ] [ 手机号码查询 ] [ ip搜索 ] [ Google PR查询 ]
业务联系 | 广告刊登 | 频道合作 | 投稿荐稿 | 联系方式 | 加入收藏 | RSS订阅
Copyright © 2000-2008 www.knowsky.com All rights reserved | 网络实名:动态网站制作指南 | 沪ICP备05001343号
ホームページ制作 不動産検索システム 求人情報
防水工事·改修工事 フットサル大会 探偵