ORA-00600之数据库内部BUG 22114696

ORA-00600之数据库内部BUG 22114696

错误信息

应用包运行时收到报错信息如下:

sql 复制代码
ORA-00600: internal error code, arguments: [4450],[kpotx.c],[2866],[],...
ORA-02063: preceding line from DW_JOB_PROD
line ORA-06512: line at ""APP.PKG_JOB_FAST_NEW"" ...

ORA-00600报错一般与Oracle数据库内部Bug有关。注意第一行arguments后面三个方括号中的数字与信息,可用于确定相关的数据库Bug。

Bug信息

在MOS上匹配到相关的Bug信息描述如下:

bash 复制代码
ORA-00600 [4450] can occur when using autonomous transactions and
 multiple database links if the value for open_links was too small.
  
If you get ORA-00600[4450] at the remote side of a database link, it may be
this bug. Check for traces at the local side and find out if more database
links were potentially being used than the configured value for open_links
(the default value is 4).

经确认,报错的应用确实使用了大量DBLINK,与该BUG描述的触发场景一致。

检查open_links当前值:

sql 复制代码
--当前值为16
SQL> show parameter open_links

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
open_links			     integer	 16
open_links_per_instance 	     integer	 16

应对办法

官方推荐了两种应对办法。一种是workaround办法,另一种是升级数据库到版本12.2.0.1。

bash 复制代码
Workaround:
Increase the value for open_links.

Bug 22114696 - ORA-600 [4450], [kpotx.c], [2866] (Doc ID 22114696.8)

问题数据库版本为11g,没有升级到12c的计划。因此这里我们采用workaround,即调大open_links,将其调大到100。该参数调整后需要重启数据库。

调整open_links参数:

sql 复制代码
sys@ORA11G> alter system set open_links=100 scope=both;
alter system set open_links=100 scope=both
                 *
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified

sys@ORA11G> alter system set open_links=100 scope=spfile;
System altered.

sys@ORA11G> shutdown immediate;
sys@ORA11G> startup;

🐟OPEN_LINKS参数含义

  • OPEN_LINKS specifies the maximum number of concurrent open connections to remote databases in one session.
  • These connections include database links, as well as external procedures and cartridges, each of which uses a separate process.
相关推荐
不羁。。4 小时前
【撸靶笔记】第七关:GET - Dump into outfile - String
数据库·笔记·oracle
yangchanghua1115 小时前
pgsql 如何查询今天范围内的数据(当天0点0分0秒 - 当天23点59分59秒....)
数据库·pgsql
larance6 小时前
SQLAlchemy 的异步操作来批量保存对象列表
数据库·python
python_chai6 小时前
从数据汇总到高级分析,SQL 查询进阶实战(下篇)—— 分组、子查询与窗口函数全攻略
数据库·sql·mysql
在努力的前端小白6 小时前
Spring Boot 敏感词过滤组件实现:基于DFA算法的高效敏感词检测与替换
java·数据库·spring boot·文本处理·敏感词过滤·dfa算法·组件开发
未来之窗软件服务6 小时前
自建知识库,向量数据库 (九)之 量化前奏分词服务——仙盟创梦IDE
数据库·仙盟创梦ide·东方仙盟·自建ai·ai分词
冒泡的肥皂9 小时前
MVCC初学demo(一
数据库·后端·mysql
.Shu.10 小时前
Redis Reactor 模型详解【基本架构、事件循环机制、结合源码详细追踪读写请求从客户端连接到命令执行的完整流程】
数据库·redis·架构
薛晓刚13 小时前
当MySQL的int不够用了
数据库
SelectDB技术团队13 小时前
Apache Doris 在菜鸟的大规模湖仓业务场景落地实践
数据库·数据仓库·数据分析·apache doris·菜鸟技术