ORA-01460: unimplemented or unreasonable conversion requested

后端 未结 4 1513
清酒与你
清酒与你 2020-12-19 06:32

When I run the following .Net code:

using (var c = Shared.DataSources.BSS1.CreateCommand())
{
    c.CommandText = \"\\r\\nSelect c1, c2, c3, rowid \\r\\nFrom         


        
4条回答
  •  感动是毒
    2020-12-19 06:47

    After much investigation I found out that it's all about the fact that we have bound parameters that are used from ODP.NET and targeting tables from a DBLINK to a V8 Oracle server.

    Once I eliminated the bound parameters it all worked.

    It was a while back, but I think it's had something to do with varying string lengths of the strings sent to the bound parameter. It seems that it ignored the size property, so if in the first query I sent a string with length 10 and in the second string I sent a string with length 12, I'll get that error.

    I also found the oracle articles about it : https://community.oracle.com/thread/2460796?tstart=0

    and the patch for it: https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=745005.1

    But - I found a fix in my code that actually solved it - see my next answer.

    Hope this helps anyone.

提交回复
热议问题