Example of oracle sqlldr data import tool

Source: Internet
Author: User

The example of the oracle sqlldr data import tool can be used for large-volume txt documents, which is very fast to import. Www.2cto.com directly code BlackListDay. ctl: SQL code LOAD DATA INFILE '$ {DATAFILE}' --------- DATA file, that is, the txt file badfile 'ct _ blacklistday_info.bad 'Append into table fujz_blacklist_temp ----- TABLE name fields terminated by' | '------ data used | split trailing nullcols (ID_TYPE, <span style = "white-space: pre;"> </span> ------ ID_ICCID, OP_TIME "to_date (: OP_TIME, 'yyyy-MM-DDHH24: MI: ss ') ") BlackListDay. sh: Shell code #! /Usr/bin/ksh im_data () {DATAFILE = "$ HOME/work/fujza/BLACK13_201211.txt" ---- data file DATAFILE35 = "$ HOME/work/fujza/BLACK35_201211.txt" export DATAFILE35 sqlldr $ {DBNAME}/$ {DBPWD} @ $ {SID} log =$ {HOME}/work/fujza/BlackListDay2.log control =$ {HOME}/work/fujza/BlackListDay35.ctl streamsize = 25600000 echo "sqlldr2 end" export DATAFILE sqlldr $ {DBNAME}/$ {DBPWD }@$ {SID} log =$ {HOME}/work/fujza/BlackListDay. log control =$ {HOME}/work/fujza/BlackListDay. ctl streamsize = 25600000 echo "sqlldr1 end" exit EOF} im_data

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.