2021-01-26 2474100
2474100 - ABAP program terminates with dump
DBIF_DSQL2_DEFAULT_CR_ERROR
SAP Knowledge Base
版本 5 Type
Article
Master
语言 英语 英语
Language
Release
发布给客户 Category 问题
Status
BC-DB-HDB-SYS (SAP HANA 的数据库界面/
Component Released On 05.11.2020
DBMS)
Please find the original document at https://launchpad.support.sap.com/#/notes/2474100
症状
• You find short dump DBIF_DSQL2_DEFAULT_CR_ERROR as below:
Category ABAP Programming Error
Runtime Errors DBIF_DSQL2_DEFAULT_CR_ERROR
Except. CX_SY_NATIVE_SQL_ERROR
ABAP Program SAPLSYDB
Application Component BC-DB-DBI
----------------------------------------------------------------------------------------------------
|Short Text
| COMMIT/ROLLBACK error on "DEFAULT" database connection.
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
|What happened?
|
|
| The current ABAP program terminated due to an internal error in the
| internal SAP database interface.
----------------------------------------------------------------------------------------------------
• Error message in system log / SM21 :
Database error 314 with INS access to table DDLOG
> numeric overflow: cannot convert to Integer type: 2147485637
> at function __typecast__() (at pos 82)
Unexpected return value 2 when calling up ins_d
Runtime error "DBIF_DSQL2_DEFAULT_CR_ERROR" occurred.
• Error in developer trace / ST11
C SQLCODE : 314
C SQLERRTEXT : numeric overflow: 2147485317 at function __typecast__()
C
sc_p=7f43330ccc78,no=83,idc_p=7f4333137a40,con=0,act=1,slen=121,smax=256,#vars=4,stmt=8193280,table=
© 2021 SAP SE or an SAP affiliate company. All rights reserved 1 of 3
2021-01-26 2474100
C stmtid = <1//bas/742_REL/src/krn/dbi/dbs/dbsynseq /566/20150918203156>
C INSERT INTO DDLOG ( SEQNUMBER, TIMESTAMP, SYSTEMID, NBLENGTH, NOTEBOOK)
VALUES ( DDLOG_SEQ.NEXTVAL,\
C?,?,?,?);
B ***LOG BY4=> sql error 314 performing INS on table DDLOG [dbsynseq 587]
B ***LOG BY0=> numeric overflow: 2147485317 at function __typecast__() [dbsynseq 587]
B ***LOG BZY=> unexpected return code 2 calling ins_ddlog [dbsync 1396]
环境
• HANA 1.0 all revisions
• HANA 2.0 all revisions
重现问题
You can simply run command
SELECT * FROM M_SEQUENCES WHERE SEQUENCE_NAME = 'DDLOG_SEQ'
on HANA DB, it can return similar error like below :
Numeric overflow for parameter/column (6) source type BIGINT, target type INT4, value
'2147485501'
原因
The maximum value of the sequence is 2147483640. This limit is due to the current implementation of the
buffer synchronization.
解决方案
Proceed as follows:
1. Stop the system. You must shut down all application server ABAP instances.
2. Log on HANA DB with user SAP application user ( normally user <SAPSID> ).
3. Remove all DDLOG entries:
truncate table ddlog;
4. Delete the DDLOG sequence:
drop sequence ddlog_seq;
5. Create the DDLOG sequence:
create sequence "DDLOG_SEQ" cache 500
6. You can now restart the system.
另请参阅
If you are using ABAP on ORACLE or other database, refer to note/KBA below:
2420341 - Dump when table DDLOG exceds max value
© 2021 SAP SE or an SAP affiliate company. All rights reserved 2 of 3
2021-01-26 2474100
1312102 - ORA-08004: sequence DDLOG_SEQ.NEXTVAL exceeds MAXVALUE
2716788 - How to prevent issue of SAP Note 1312102 from happening in the first place
关键字
DBIF_DSQL2_DEFAULT_CR_ERROR, SAPLSYDB, maxvalue, DDLOG, sequence, ddlog_seq, numeric
overflow, DB_COMMIT, interface, ORA-08004, BIGINT, Database error 314
产品
SAP HANA 1.0, platform edition
SAP HANA, platform edition 2.0
Other Components
Component 描述
HAN-DB SAP HANA 数据库
BC-DB-DBI 与数据库无关的数据库界面
该文档参考
SAP Note/知识库文章 称谓
2716788 How to prevent issue of SAP Note 1312102 from happening in the first place
2420341 Dump when table DDLOG exceeds max value
1312102 Database insert for INSERT into table DDLOG
Terms of use | Copyright | Trademark | Legal Disclosure | Privacy
© 2021 SAP SE or an SAP affiliate company. All rights reserved 3 of 3