informix 从文本导入海量数据(informix load)(Informix imports large amounts of data from text (Informix, load)).docVIP
- 1、本文档共10页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
informix 从文本导入海量数据(informix load)(Informix imports large amounts of data from text (Informix, load))
informix 从文本导入海量数据(informix load)(Informix imports large amounts of data from text (Informix, load))
Informix imports large amounts of data from text (Informix, load)
Importing data from text to Informix data generally uses SQL statements:
Load, from, file.dat, insert, into, yourDB;
But when the imported data has several million or even tens of millions, the above method may go wrong because it can cause insufficient database caching.
One solution is to use the dbload command, which follows the parameter description of the dbload:
#---------------------------------------------------------------------
#dbload Usage:
#
#dbload, [-d, dbname], [-c, cfilname], [-l, logfile], [-e,, errnum], [-n, nnum]
[-i inum] [-s] [-p] [-r # | -k] [-X]
#
# -d database name
-c command file name #
# -l bad row (s) log file
# -e bad row (s) before abort #
# -s syntax error check only
# # -n of row (s) before commit
-p prompt to commit or not # on abort
# # -i or row (s) to ignore before starting
# -r loading without locking table
-X recognize HEX escapes in character # fields
-k loading with exclusive lock # on table (s)
#---------------------------------------------------------------------
Heres a simple example:
Database name: remotedb
Load command file name: load.cmd
Error log file name: error.log
Number of data submitted per submission: 100000
Data file name: prepay.dat
Data delimiter: 1
Field data for each row of data: 14
The data table name to insert: prepay
The application command is as follows:
Dbload, -d, remotedb, -c, load.cmd, -l, error.log, -n;
Load.cmd file content:
-----------------
File prepay.dat delimiter | 14;
Insert into prepay;
-----------------
Attached shell script:
# /bin/sh!
#===========================================================================
#filename:dbload.sh
# function:
# from the file data into the Informix database
# is mainly to solve the problem of massive data import, when used directly as:
#load, from, prepay.dat, insert, into, prepay;
# import dat
您可能关注的文档
- 28句很美的英文表白(28 very beautiful English expressions).doc
- 2k11操作详解(Detailed operation of 2K11).doc
- 2、2008-2009年度省直单位公务车辆协议供货协议书(Agreement on supply agreement of official vehicles in provincial units in 2 and 2008-2009).doc
- 23招打造极速winxp(23 strokes to create speed WinXP).doc
- 2月19日 探险家(February 19th Explorer).doc
- 2认证模式(2 authentication mode).doc
- 3.4磁场对通电导线的作用力(3.4 the force of the magnetic field on the conducting wire).doc
- 3.0.4内核在mini2440上的移植(3.0.4 kernel porting on mini2440).doc
- 30秒如何养成人格魅力(30 seconds how to develop personal charm).doc
- 3.5推荐作品(3.5 recommended works).doc
- imba金融会计(IMBA financial accounting).doc
- inno setup教程(inno setup使用说明)(setup教程 anthem (anthem setup使用说明)).doc
- ibm面试题(IBM interview questions).doc
- innosetup教程(innosetup教程).doc
- ipad系统安装及iphone多媒体数据的备份及导入ok(IPad system installation and backup and import of iPhone multimedia data OK).doc
- ipc详解(Ipc详解).doc
- iphone itouch 源推荐(源推荐iPhone iTouch).doc
- ipma-hr胜任素企业培训质模型对企业人力资源管理的挑战与对策(The challenge and Countermeasure of enterprise human resource management based on IPMA-HR competency model).doc
- ip基础--7.ip封包(IP base --7.ip packet).doc
- it精英(It elite).doc
文档评论(0)