I am using the large object field storage feature of Oracle in the Process of Oracle development using ado.net, but encountered a lot of trouble during the process,
Share it with you.
Adding columns containing large object fields to the server is basically normal, but the problem arises during the update.
When command.exe cutenonquery () is executed, two typical Oracle exceptions are thrown:
- ORA-01036: Illegal variable name/number (invalid variable name/List)
This exception is thrown. In most cases, the parameters set in the statement are not bound at runtime, or the number of parameters does not match (for example, if two parameters are set, only one result is bound ), this situation is well judged. In another case, when the update... returning... into statement is executed, the data row that matches the where condition has been deleted, which also causes this problem.
- ORA-24369: Required callbacks not registered for one or more bind handles (no callback required for registration of one or more connection handles)
This exception is caused mainly because the data rows that match the where condition are not unique during update... returning... into, which leads to the failure to locate the Oracle lob locator correctly.