Import data in CVS format to Oracle table

Source: Internet
Author: User

First, you must have a CVS file.


DM Dmmc XH DM1 Dmmc1 Wh Gbbz FH Xgsj Isdel
1 Male 3 0
2 Female 2 0

 

1. The current working directory is created on drive C.

 

 

2. Create the content of the testxb. CTL file as follows:

Load data
Infile 'C:/xb.csv'
Replace Delete into Table zzdxb fields terminated ','
(DM, dmmc, XH, DM1, dmmc1, wh, gbbz, FH, xgsj, isdel)

 

 

3. "program"-"run"-cmd

Input: sqlldr userid = user name/password @ service name control = 'C:/testxb. CTL'

If the import is successful: No data records exist in the generated bad file.

If the generated bad file has a data record, it indicates that the imported data has a situation.

Tip: reach the submission point-64 logical record count (each 64 records are submitted once)

 

 

 

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.