Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-19011: Character string buffer too small

user10175043Feb 20 2012 — edited Feb 23 2012
If there's anyone who can understand my frustration and help me out a bit, I'll be indebted.

So here I am, with a perfectly running query from MS SQL Server, and the same query converted to Oracle syntax just crashes.

Research indicated that Oracle's handling of xml has a limit of 4000 characters (varchar2(4000)). [4000 characters in a tag, and no greater].

Now, just WTF's this s***?


MS SQL Server:
select acct_no "acct", acct_name "acctname" from account where company_id = 578 for xmlpath ('a'), root ('GetFinal')
Oracle:
select xmlelement("GetFinal", xmlagg(xmlelement("a", xmlelement("acct", acct_no), xmlelement("acctname", acct_name)))) from account where company_id = 578

Why the F does something so simple to obtain in other databases, require one to run around loops ten f**** million times when it comes to Oracle?????
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2012
Added on Feb 20 2012
2 comments
4,957 views