SQL1224 is returned during the execution of an SQL procedure
SQL1224 is returned during the execution of an SQL procedure
https://www.ibm.com/support/pages/sql1224-returned-during-execution-sql-procedure
Question & Answer
Question
The execution of an SQL procedure can fail with error SQL1224 if a LOAD command is executed at the same time.
Answer
PROBLEM
The following message might be logged in the db2diag.log during execution of a SQL procedure.
2007-05-02-11.06.17.513639-300 I2535A1111 LEVEL: Error
PID : 43578 TID : 1 PROC : db2agent (SAMPLE) 0
INSTANCE: db2inst1 NODE : 000 DB : SAMPLE
APPHDL : 0-98 APPID: *N0.db2inst1.070502160554
MESSAGE : Severe TERMINATE err at nest lvl 1, in SQL from rtn<
DB2INST1.SELECTROW:
DATA #1 : Hexdump, 136 bytes
0x0000000110362C48 : 5351 4C43 4120 2020 0000 0088 FFFF FB38 SQLCA .......8
0x0000000110362C58 : 0000 2020 2020 2020 2020 2020 2020 2020 ..<<<<<<<<<<<<<<
0x0000000110362C68 : 2020 2020 2020 2020 2020 2020 2020 2020<<<<<<<<<<<<<<<<<<<<
0x0000000110362C78 : 2020 2020 2020 2020 2020 2020 2020 2020<<<<<<<<<<<<<<<<<<<<
0x0000000110362C88 : 2020 2020 2020 2020 2020 2020 2020 2020<<<<<<<<<<<<<<<<<<<<
0x0000000110362C98 : 2020 2020 2020 2020 5351 4C45 4752 5054 SQLEGRPT
0x0000000110362CA8 : 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0000000110362CB8 : 0000 0000 0000 0000 2020 2020 2020 2020 ........<<<<<<<<
0x0000000110362CC8 : 2020 2035 3530 3332 55032
CAUSE
The above error indicates that the SQL procedure DB2INST1.SELECTROW failed with SQL1224 because during its execution, a LOAD command using the LOCK WITH FORCE option was issued against the same table that is referenced in the stored procedure. The LOCK WITH FORCE option allows the load command to force off other applications that hold conflicting locks on the target table.
SOLUTION
Execute the SQL stored procedure after the load is complete.
------------------------------------------------------------------------------------------
如果你觉得文章有用,欢迎打赏
SQL1224 is returned during the execution of an SQL procedure的更多相关文章
- JDBC入门学习
Introduction What's JDBC JDBC stands for Java Database Connectivity, which is a standard Java API fo ...
- 1Z0-050
QUESTION 13 View the Exhibit.Examine the following command that is executed for the TRANSPORT table ...
- 非常全面的SQL Server巡检脚本来自sqlskills团队的Glenn Berry 大牛
非常全面的SQL Server巡检脚本来自sqlskills团队的Glenn Berry 大牛 Glenn Berry 大牛会对这个脚本持续更新 -- SQL Server 2012 Diagnost ...
- SQL SERVER中什么情况会导致索引查找变成索引扫描
SQL Server 中什么情况会导致其执行计划从索引查找(Index Seek)变成索引扫描(Index Scan)呢? 下面从几个方面结合上下文具体场景做了下测试.总结.归纳. 1:隐式转换会导致 ...
- HANA SQLScript
数据类型 日期时间类型 DATE(日期) DATE 数据类型由年.月.日信息组成,表示一个日期值. DATA 类型的默认格式为‘YYYY-MM-DD’. YYYY 表示年, MM 表示月而 DD 表示 ...
- GET DIAGNOSTICS Syntax
http://dev.mysql.com/doc/refman/5.7/en/get-diagnostics.html GET [CURRENT | STACKED] DIAGNOSTICS { st ...
- How to DEBUG a trigger or procedure
DEBUGGING STORED PROCEDURES Over the past several weeks, we’ve been working on debugging a stored pr ...
- php.ini
[PHP];;;;;;;;;;;;;;;;;;;; About php.ini ;;;;;;;;;;;;;;;;;;;;; PHP's initialization file, generally ...
- PHP配置详解
[PHP] ;;;;;;;;;;;;;;;;;;; ; About php.ini ; ;;;;;;;;;;;;;;;;;;; ; This file controls many aspects of ...
- sql是如何执行一个查询的!
引用自:http://rusanu.com/2013/08/01/understanding-how-sql-server-executes-a-query/ Understanding how SQ ...
随机推荐
- accessservice对于难定位的view如何定位
private static int tabcount = -1; private static StringBuilder sb; public static void printPacketInf ...
- centOS 相关运维指令
1.检查CPU信息: cat /proc/cpuinfo lscpu 2.top输入 top 命令,然后可以再按 m 切换显示内容 其中 KiB Mem 行为物理内存情况,单位为KB 3.free - ...
- vscode格式化
1.tslint TypeScript的格式化 2.esLint 3.prettier 4.vetur 格式化html,css,vue
- VS2010 发布网站总是连同cs文件一起发布了
选择第一个,保存再发布.cs文件 都删除了.
- LeetCode(Java版)
两数之和 题目描述 给定一个整数数组和一个目标值,找出数组中和为目标值的两个数. 你可以假设每个输入只对应一种答案,且同样的元素不能被重复利用. 示例: 给定 nums = [2, 7, 11, 15 ...
- Java Development Kit下载地址
Java Development Kit下载地址 官网下载 一般最新版本无需登录即可下载,其他历史版本需要登录Oracle账户才可以下载. 最新版下载地址: https://www.oracle.co ...
- Rstudio 快捷键无法使用
今天突然发现我的R studio 很多快捷键不能使用,后面发现是因为Rstudio 的快捷键与MobaXterm的快捷键起冲突了,后面关掉MobaXterm后就恢复了,如果有类似的问题可以在自己电脑打 ...
- MavenDependencies 报错缺少jar包
1.首先看你的工程是否是maven项目,如果不是,则先转换为maven项目. 如果已经是maven项目了,maven的依赖库无法添加,则移步2: 2.项目右键,选择maven,然后子菜单,选择&quo ...
- ssr 学习总结
自己构建ssr 前提:了解 koa, koa-router, koa-static, webpack 文件结构 ssr 中的router store 都是 一个工厂函数 在服务器端渲染(SSR) ...
- JAVA流程控制(查漏补缺)
JAVA流程控制(查漏补缺) 目录 JAVA流程控制(查漏补缺) if 判断 switch多重选择 编译检查 for循环 for each break和continue if 判断 要判断引用类型的变 ...