ORA-19011:字符串缓冲区太小*操作:将结果作为高音获取

时间:2016-07-25 10:27:52

标签: sql plsql oracle11g

请参阅以下查询:

SELECT '<Incident URN="1">' || dbms_xmlgen.getxmltype ('
SELECT * FROM INCIDENT WHERE (( PERSON_SURNAME LIKE ''Bloggs%'' OR PERSON_SURNAME LIKE ''Bloggs%'')) AND (( FORENAME_1 LIKE ''Fred%'' OR FORENAME_1 LIKE 
''Fred%'') OR ( FORENAME_2 LIKE ''Fred%'' OR FORENAME_2 LIKE ''Fred%'') OR ( FORENAME_3 LIKE ''Fred%'' OR FORENAME_3 LIKE ''Fred%'')) AND (PERSON_DOB = to_date(''1981-11-04'',
''YYYY-MM-DD'')) ORDER BY INC_CR_DTE Desc, INC_NO Desc 
').extract ('ROWSET/ROW/*')  || '</Incident>'as XMLReturned from dual

我得到的错误是:

ORA-19011: Character string buffer too small
19011. 00000 -  "Character string buffer too small" 
*Cause:    The string result asked for is too big to return back
*Action:   Get the result as a lob instead

我做了一些谷歌搜索,我发现了这个:http://www.dba-oracle.com/t_ora_19011_character_string_buffer_too_small.htm而且:How to search a field when you get the ORA-19011 error?但是没有帮助。我该如何解决这个问题?

0 个答案:

没有答案