informix 从文本导入海量数据(informix load)(Informix imports large amounts of data from text (Informix, load)).doc
- 1、本文档共10页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
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
文档评论(0)