SQLLOADER5 (Import from multiple data files to the same table)

Source: Internet
Author: User

Importing from multiple data files to the same table is simple, just specify the path to multiple data files in the infile parameter.
Data File 1:test1.txt
1111ALLE salesman
2222WARDSALESMAN
Data File 2:test2.txt
2222jone1 Smanager
3333jone2 Smanager
Data File 3:test3.txt
4444jone3 Smanager
5555jone4 Smanager

Control file: Testsqlldr2.ctl

LOAD'D:\oracletest\test1.txt'D:\oracletest\ Test2.txt 'D:\oracletest\test3.txt'REPLACE   into TABLE   by whitespacetraling nulcols (empno,ename,job)

To perform an import:

D:\oracletest>Sqlldr Scott/Tiger@orclControl=D:\oracletest\testSqlLdr2.ctlSQL*Loader:release11.2.0.1.0 -Production onSunday November -  -: the: -  theCopyright (c)1982, the, Oracleand/orits affiliates. Allrights reserved. Reach the submission point-Logical Record Count2Reach submission Point-Logical Record Count3Reach submission Point-Logical Record Count4Reach submission Point-Logical Record Count5Reach submission Point-Logical Record Count6

To view the results of the import:

Sql> Select *  fromEMP2; EMPNO ename JOB MGR hiredate SAL COMM DEPTNO---------- ---------- --------- ---------- -------------- ---------- ---------- ----------3333JONE2 Smanager4444JONE3 Smanager5555JONE4 Smanager1111ALLE salesman2222WARD salesman2222JONE1 Smanager has selected 6 rows. 

SQLLOADER5 (Import from multiple data files to the same table)

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.