Oracle External table Processing Chinese Characters

Source: Internet
Author: User

In an External table file, if the fields in the file are separated by ctrl + F, the ctrl + F separator cannot be recognized after the Chinese characters, causing an error in External table import, the solution is to add the following content when creating an external table:

Characterset 'al32utf8'

Example:

Drop table tablename

Create table tablename

(

Id

Var char2 (40 ),
Age

Int,
Name

Varchar2 (40 ),

 

)

Organization External

(

Type Oracle_Loader

Default Directory Extfile_data

Access parameters

(

Records delimited by newline

Badfile ExtFile_bad: 'tablename _ % a _ % p. bad'

Logfile Extfile_log: 'tablename _ % a _ % p. Log'

Characterset 'al32utf8'

Fields terminated by x '06'

Missing field values are null

(

Id

Char (40 ),
Age

,
Name

Char (40)

 

)

)

Location ('filename ')

)

Parallel

Reject limit Unlimited;

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.