欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

一次sqlldr性能測試案例

系統 2335 0
$ sqlldr

SQL*Loader: Release 10.2.0.1.0 - Production on Tue May 19 16:06:21 2009

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Usage: SQLLDR keyword=value [,keyword=value,...]

Valid Keywords:

??? userid -- ORACLE username/password??????????
?? control -- control file name?????????????????
?????? log -- log file name?????????????????????
?????? bad -- bad file name?????????????????????
????? data -- data file name????????????????????
?? discard -- discard file name?????????????????
discardmax -- number of discards to allow????????? (Default all)
????? skip -- number of logical records to skip??? (Default 0)
????? load -- number of logical records to load??? (Default all)
??? errors -- number of errors to allow??????????? (Default 50)
????? rows -- number of rows in conventional path bind array or between direct path data saves
?????????????? (Default: Conventional path 64, Direct path all)
bindsize -- size of conventional path bind array in bytes (Default 256000)
??? silent -- suppress messages during run (header,feedback,errors,discards,partitions)
??? direct -- use direct path????????????????????? (Default FALSE)
?? parfile -- parameter file: name of file that contains parameter specifications
parallel -- do parallel load???????????????????? (Default FALSE)
????? file -- file to allocate extents from?????
skip_unusable_indexes -- disallow/allow unusable indexes or index partitions (Default FALSE)
skip_index_maintenance -- do not maintain indexes, mark affected indexes as unusable (Default FALSE)
commit_discontinued -- commit loaded rows when load is discontinued (Default FALSE)
readsize -- size of read buffer????????????????? (Default 1048576)
external_table -- use external table for load; NOT_USED, GENERATE_ONLY, EXECUTE (Default NOT_USED)
columnarrayrows -- number of rows for direct path column array (Default 5000)
streamsize -- size of direct path stream buffer in bytes (Default 256000)
multithreading -- use multithreading in direct path
resumable -- enable or disable resumable for current session (Default FALSE)
resumable_name -- text string to help identify resumable statement
resumable_timeout -- wait time (in seconds) for RESUMABLE (Default 7200)
date_cache -- size (in entries) of date conversion cache (Default 1000)

PLEASE NOTE: Command-line parameters may be specified either by
position or by keywords. An example of the former case is 'sqlldr
scott/tiger foo'; an example of the latter is 'sqlldr control=foo
userid=scott/tiger'. One may specify parameters by position before
but not after parameters specified by keywords. For example,
'sqlldr scott/tiger control=foo logfile=log' is allowed, but
'sqlldr scott/tiger control=foo log' is not, even though the
position of the parameter 'log' is correct.

0) 控制文件

install.ctl(含序列,不能設direct=true):

load data

infile '/orahome/wangnc/INSTALLDETAIL.dat'

append

into table sys_login_records_detail_1

fields terminated by ','

(

LOGIN_DATE DATE "yyyy-mm-dd" TERMINATED BY whitespace,

FILLER_1 FILLER,

GAME_ID,

FILLER_2 FILLER,

IP,

MAC,

NETBAR_ID,

PROVINCE,

CITY,

LOGIN_TIMES,

id POSITION(1:1) "sys_login_records_detail_seq_1.nextval"

)

install4.ctl(不含序列,可設direct=true):

Load data

infile '/orahome/wangnc/INSTALLDETAIL.dat'

append

into table sys_login_records_detail_1

fields terminated by ','

(

LOGIN_DATE DATE "yyyy-mm-dd" TERMINATED BY whitespace,

FILLER_1 FILLER,

GAME_ID,

FILLER_2 FILLER,

IP,

MAC,

NETBAR_ID,

PROVINCE,

CITY,

LOGIN_TIMES

)

1) 常規導入

sqlldr userid='emoa_sqlldr/"xxx"@db_esuite' \

control=/orahome/wangnc/install.ctl \

log=/orahome/wangnc/install1.log \

bad=/orahome/wangnc/install1.bad

##Space allocated for bind array:????????????????? 132352 bytes(64 rows)

##Elapsed time was:????? 00:01:45.85


2) 1000條提交一次

sqlldr userid='emoa_sqlldr/"xxx"@db_esuite' \

control=/orahome/wangnc/install.ctl \

log=/orahome/wangnc/install2.log \

bad=/orahome/wangnc/install2.bad \

rows=1000 readsize=2068000 bindsize=2068000

##Space allocated for bind array:???????????????? 2068000 bytes(1000 rows)

##Elapsed time was:????? 00:00:22.80

3) 10000條提交一次

sqlldr userid='emoa_sqlldr/"xxx"@db_esuite' \

control=/orahome/wangnc/install.ctl \

log=/orahome/wangnc/install3.log \

bad=/orahome/wangnc/install3.bad \

rows=10000 readsize=20680000 bindsize=20680000

##Space allocated for bind array:??????????????? 20680000 bytes(10000 rows)

##Elapsed time was:????? 00:00:20.25

4) 設置direct=true, 含序列

sqlldr userid='emoa_sqlldr/"xxx"@db_esuite' \

control=/orahome/wangnc/install.ctl \

log=/orahome/wangnc/install4.log \

bad=/orahome/wangnc/install4.bad \

direct=true

##ORA-01400: cannot insert NULL into ("EMOA"."sys_login_records_detail_1"."ID")

5) 設置direct=true, 去掉序列字段, 最快的方式

#SQL> alter table emoa.sys_login_records_detail_1 drop column id;

sqlldr userid='emoa_sqlldr/"xxx"@db_esuite' \

control=/orahome/wangnc/install4.ctl \

log=/orahome/wangnc/install4.log \

bad=/orahome/wangnc/install4.bad \

direct=true

##Elapsed time was:????? 00:00:10.98

##但是如果有重復數據, 會把唯一索引置為unusable, 要確保數據源已剔重

6) 設置readsize和bindsize到最大值, 高效又穩妥的方式, 最終采納方案

sqlldr userid='emoa_sqlldr/"xxx"@db_esuite' \

control=/orahome/wangnc/install4.ctl \

log=/orahome/wangnc/install6.log \

bad=/orahome/wangnc/install6.bad \

rows=100160 readsize=20971520 bindsize=20971520 PARALLEL=TRUE

##Space allocated for bind array:??????????????? 20970240 bytes(10160 rows)

##Elapsed time was:????? 00:00:14.36


--End--

一次sqlldr性能測試案例


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 国产精品毛片久久久久久久 | 激情毛片 | av中文字幕在线 | 久久久久久国产精品免费免费狐狸 | 黄视频在线播放 | 2022国产91精品久久久久久 | 97超级碰碰碰视频在线视频观看 | 久草天堂 | 国产精品久久一区二区三区 | 国产在线视频2019最新视频 | 91在线视频播放 | 男人和女人做爰毛片试看 | 中文字幕日韩精品在线 | 欧美成人18性 | 欧美精品一区二区精品久久 | 久久狠狠色狠狠色综合 | 日韩成人av在线 | 欧美精品免费在线 | 精东视频污 | 亚洲综合在线视频 | 日日夜夜婷婷 | 亚洲AV久久久久久久无码 | 日韩少妇成熟A片无码专区 黄在线免费观看 | 欧美精品一区二区蜜臀亚洲 | 伊人色综合网 | 亚洲成人精品久久久 | 九色在线观看 | 久草在线视频资源 | 亚洲夜夜爱 | 欧美一级做a爰片久毛片潮 日本久久视频 | 偶像练习生在线免费观看 | 婷婷国产 | 91色在线 | 亚洲乱码视频 | 久久亚洲国产精品 | 国产亚洲精品一区二区 | 国产毛片不卡 | 狠狠色噜噜狠狠狠狠色吗综合 | 免费看黄网站在线 | 成人性视频免费网站 | 片一级片在线观看 |