ora-01036: Illegal variable name/number

Source: Internet
Author: User

A stored procedure, debugging is not a problem, but in C # run Error:

ora-01036: Illegal variable name/number

Baidu, it is said that because a lot of errors will be reported this mistake, did not find the right me (parameter order matching, size matching, etc.), have to try again:

The method I called:

                oracleparameter[] Parameters ={
                                 new OracleParameter ("Vipno", Orac letype.varchar,50),
                           / nbsp   New OracleParameter ("point", oracletype.varchar,30),
                nbsp                new OracleParameter ("Str_reason", oracletype.varchar,20),  / /str_reason I have a space here,
                                New OracleParameter ("Myresult", Oracletype.int32)
              &NBSP ;                              };

Finally have to keep only one parameter, to debug, that is, the stored procedure only the first parameter, I call only with one parameter, the other parameters commented out, after testing no problem.

About the third parameter when the problem is found, my "" Inside and the third parameter of the stored procedure than a space, because of this space, resulting in this bad lookup error.


The problem is solved by this.


In fact, we have to have a way to try more.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

ora-01036: Illegal variable name/number

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.