Ora-00911:invalid character SQL contains Chinese error

Source: Internet
Author: User

normal operation under PL/SQL but error at VS, first check if the end of the stitching SQL contains ";" (If the end of SQL contains ";" PL is still capable of normal execution) otherwise, it may be caused by the following reasons. Include Chinese
string string. Format (@ "select A.table_name   table name,           a.column_name  field name,           a.data_type    field type,           A. Data_length  length,           a.nullable     is empty,           a.data_default default value,           b.comments comment     from            user_ Tab_columns A, user_col_comments B            WHERE a.table_name = b.table_name and            a.column_name = B.column_name            and a.column_name = ' {0} '                , Fileid);
View Code

Workaround:

Add the following code when loading the program:

   System.Environment.SetEnvironmentVariable ("Nls_lang", "Simplified Chinese_china". ZHS16GBK ");

  

Ora-00911:invalid character SQL contains Chinese error

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.