我正在使用IBM iseries v6r1m0系统。IBMDB2简单查询错误901 - 系统错误
我试图执行一个非常简单的查询:
select * from XG.ART where DOS = 998 and (DES like 'ALB%' or DESABR like 'ALB%')
的列有:
DOS -> numeric (3,0)
DES -> Graphic(80) CCSID 1200
DESABR -> Garphic(25) CCSID 1200
我得到:
SQL State : 58004
SQL Code : -901
Message : [SQL0901] SQL System error.
Cause . . . . . : An SQL system error has occurred. The current SQL statement cannot be completed successfully. The error will not prevent other SQL statements from being processed. Previous messages may indicate that there is a problem with the SQL statement and SQL did not correctly diagnose the error. The previous message identifier was CPF4204. Internal error type 3107 has occurred. If precompiling, processing will not continue beyond this statement.
Recovery . . . : See the previous messages to determine if there is a problem with the SQL statement. To view the messages, use the DSPJOBLOG command if running interactively, or the WRKJOB command to view the output of a precompile. An application program receiving this return code may attempt further SQL statements. Correct any errors and try the request again.
如果我改变DES到REF(图形(25)),它的工作原理...
编辑:
我运行一些测试今天下午,这是很奇怪:
刚刚创建表/索引后,我没有错误。
- 如果我插入一些DATAS:错误
- 如果我收拾桌子:错误
- 如果我删除索引(见下文):它的工作原理(带或不带DATAS) !
的指标为:
create index XG.GTFAT_ART_B on XG.ART(
DOS,
DESABR,
ART_ID
)
编辑2:
这里是作业日志(不好意思,这是法语...)
它最高审计机关:
Function error X'1720' in machine instruction. Internal snapshot ID 01010054
Foo file created in library QTEMP.
*** stuff with the printer
DBOP *** FAILED open. Exception from call to SLIC$
Internal error in the query processor file
Sql system error
你不必换'DESABR'?确认会很好,但我假设你正在改变dds文件。这听起来像'DES'中可能有某种无效/奇怪的数据。 –
@ X-Zero:包装DESABR是什么意思?我已经添加了一些信息... – Xavinou
桌子的创建脚本是什么?我得到的是,你是否必须改变'DESABR'的定义来使其工作,或者只有'DOS'。 –