Oracle SqlLoader Tool

Source: Internet
Author: User

Because a large amount of data exists in text files and needs to be imported to Oracle, we are lucky to have access to the arms SqlLoader.

Run the sqlldr command on the host where Oracle is installed.
Sqlldr

You will see instructions on this tool:

It's just a simple example to help you get in touch for the first time.

Compile a ctl file named input. ctl as the control file of the Oracle database.
Load data
Infile
Append into table B
Fields terminated by C
(
D [COLUMNLIST]
)

Note:
Enter the full or relative path of the input data file at location A in the string format (included)
Enter the table name in the corresponding database at location B (but make sure the table exists and has a correct structure)
Enter the delimiter between data in the text file in section C and use the string format (included)
D. Fill in the field name list corresponding to the text data in the database table. Use "," to separate multiple field names.


If everything is ready, it will be more OK later. Switch the directory to the directory where input. ctl is located and run
Sqlldr userid = username/password @ instanceName control = input. ctl

OK!

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.