Oracle Import data is displayed as a question mark and garbled processing method ____oracle

Source: Internet
Author: User

Just encountered a problem, the other side of the server environment for Linux, in accordance with the general Sqlldr import data, through the Plsql query found to be a question mark and garbled.

Through the SELECT * from V$nls_parameters of the database, the character encoding Nls_characterset of the database is detected as American_america. ZHS16GBK, but Nls_nchar_characterset for AL16UTF16.

Then, on the server, modify the Oracle and root user's. Bash_profile and profile, add character encoding to set export Nls_lang=american_america. ZHS16GBK;

Enter regedit in cmd, find the ORACLE nls_characterset of this machine, my address is hkey_local_machine/software/oracle/nls_lang, change it to American_ AMERICA. ZHS16GBK.

Will import the data file CSV through the tool, my is UltraEdit, save as ANSI, add the language control code CHARACTERSET ZHS16GBK in the control file CTL.

Next, you should be able to import the data. (Remember Plsql to reopen after the change)

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.