讲师中心 微信公众号

工具推荐

视频效率加速
AniShort
AniShort

AI短剧协同制作平台

SoundView
SoundView

字幕擦除翻译、配音口型同步

剧云
剧云

中文短剧剧本制作平台

Laper
Laper

剧本策划到成片协作

ORA-00600: internal error code, arguments: [kqlnrc_1], [0x70

雨丽君_4284

雨丽君_4284

发布时间:2016-06-07 17:58:03

|

1576人浏览过

|

来源于php中文网

原创

今天早上做数据库巡检,发现alert日志里出现如下错误: Errors in file /home/Oracle/admin/exmxsbusi/udump/exmxsbusi2_ora_27477.trc: ORA-00600: 内部错误代码, 参数: [kqlnrc_1], [0x15E465678], [], [], [], [], [], [] Mon Jun 18 10:11:31 CST 2012 Er

今天早上做数据库巡检,发现alert日志里出现如下错误:

errors in file /home/oracle/admin/exmxsbusi/udump/exmxsbusi2_ora_27477.trc:
ora-00600: 内部错误代码, 参数: [kqlnrc_1], [0x15e465678], [], [], [], [], [], []
mon jun 18 10:11:31 cst 2012


errors in file /home/oracle/admin/exmxsbusi/udump/exmxsbusi2_ora_27477.trc:
ora-00600: 内部错误代码, 参数: [kqlnrc_1], [0x15e465678], [], [], [], [], [], []
mon jun 18 10:11:55 cst 2012
errors in file /home/oracle/admin/exmxsbusi/udump/exmxsbusi2_ora_27477.trc:
ora-00600: 内部错误代码, 参数: [kqlnrc_1], [0x15e465678], [], [], [], [], [], []
查看trace文件:
oracle database 10g enterprise edition release 10.2.0.5.0 - 64bit production
with the partitioning, real application clusters, olap, data mining
and real application testing options
oracle_home = /home/oracle/db
system name: linux
node name: cpexmxsii-coddb-02
release: 2.6.18-194.1.axs3
version: #1 smp fri may 7 10:03:53 cst 2010
machine: x86_64
instance name: exmxsbusi2
redo thread mounted by this instance: 2
oracle process number: 504
unix process pid: 27477, image:oracle@cpexmxsii-coddb-02

*** action name:(main session) 2012-06-18 10:11:14.231
*** module name:(pl/sql developer) 2012-06-18 10:11:14.231
*** service name:(exmxsbusi) 2012-06-18 10:11:14.231
*** session id:(155.2098) 2012-06-18 10:11:14.231
*** 2012-06-18 10:11:14.231
ksedmp: internal or fatal error
ora-00600: 内部错误代码, 参数: [kqlnrc_1], [0x15e465678], [], [], [], [], [], []
current sql statement for this session:
declare
  c integer := 0;
  p1 varchar2(500);
  p2 varchar2(500);
  expr varchar2(500);
  dblink varchar2(500);
  part1_type integer;
  object_number integer;
  dp integer;
begin
  :object_type := null;
  :object_owner := null;
  :object_name := null;
  :sub_object := null;
  expr := :part1;
  if :part2 is not null then expr := expr || '.' || :part2; end if;
  if :part3 is not null then expr := expr || '.' || :part3; end if;
  loop
    begin
      sys.dbms_utility.name_resolve(name => expr,
                                    context => c,
                                    schema => :object_owner,
                                    part1 => p1,
                                    part2 => p2,
                                    dblink => dblink,
                                    part1_type => part1_type,
                                    object_number => object_number);
      if part1_type = 1 then :object_type := 'index'; end if;
      if part1_type = 2 then :object_type := 'table'; end if;
      if part1_type = 4 then :object_type := 'view'; end if;
      if part1_type = 5 then :object_type := 'synonym'; end if;
      if part1_type = 6 then :object_type := 'sequence'; end if;
      if part1_type = 7 then :object_type := 'procedure'; end if;
      if part1_type = 8 then :object_type := 'function'; end if;
      if part1_type = 9 then :object_type := 'package'; end if;
      if part1_type = 12 then :object_type := 'trigger'; end if;
      if part1_type = 13 then :object_type := 'type'; end if;
      if part1_type = 28 then :object_type := 'java source'; end if;
      if part1_type = 29 then :object_type := 'java class'; end if;
      if :object_type is null then
        select object_type into :object_type
          from sys.all_objects
         where object_id = object_number;
      end if;
    exception
      when others then null;
    end;
    c := c + 1;
    if c > 9 then
      dp := instr(expr, '.', -1);
      if dp > 0 then
        if :sub_object is not null then
          :sub_object := '.' || :sub_object;
        end if;
        :sub_object := upper(substr(expr, dp + 1)) || :sub_object;
        expr := substr(expr, 1, dp - 1);
        c := 0;
      end if;
    end if;
    exit when (:object_type is not null) or (c > 9);
  end loop;
  if :object_type is not null then
    if p1 is null then
      :object_name := p2;
    elsif p2 is null then
      :object_name := p1;
      if :object_name = :part1 and :part2 is not null then
        :sub_object := :part2;
      end if;
      if :object_name = :part2 and :part3 is not null then
        :sub_object := :part3;
      end if; 
    else
      :object_name := p1;
      :sub_object := p2;
    end if;
    return;
  end if;
  begin
    if :part2 is null and :part3 is null then
      select 'user', null, :part1
        into :object_type, :object_owner, :object_name
        from sys.all_users u
       where u.username = :part1
         and rownum = 1;
      return;
    end if;
  exception
    when no_data_found then
      null;
  end;
  begin
    if :part2 is null and :part3 is null and :deep != 0 then
      select 'role', null, :part1
        into :object_type, :object_owner, :object_name
        from sys.session_roles r
       where r.role = :part1
         and rownum = 1;
      return;
    end if;
  exception
    when no_data_found then
      null;
  end;
  if :deep != 0 then
    begin
      if :part2 is null then
        select constraint_type, owner, constraint_name
          into :object_type, :object_owner, :object_name
          from sys.all_constraints c
         where c.constraint_name = :part1
           and c.owner = :cur_schema
           and rownum = 1;
      else
        select constraint_type, owner, constraint_name, :part3
          into :object_type, :object_owner, :object_name, :sub_object
          from sys.all_constraints c
         where c.constraint_name = :part2
           and c.owner = :part1
           and rownum = 1;
      end if;
      if :object_type = 'p' then
        :object_type := 'primary key';
      end if;
      if :object_type = 'u' then
        :object_type := 'unique key';
      end if;
      if :object_type = 'r' then
        :object_type := 'foreign key';
      end if;
      if :object_type = 'c' then
        :object_type := 'check constraint';
      end if;
      return;
    exception
      when no_data_found then
        null;
    end;
  end if;
end;

再看

----- pl/sql call stack -----
  object      line  object
  handle    number  name
0x15d17ad68       116  package body sys.dbms_utility

......

......

      so: 0x13667b708, type: 54, owner: 0x149fa2a30, flag: init/-/-/0x00
      library object pin: pin=0x13667b708 handle=0x15e465678 mode=s lock=11a0570c8
      user=15a46c3d0 session=15a46c3d0 count=1 mask=0001 savepoint=0x7675 flags=[00]
      library object handle: handle=15e465678 mtx=0x15e4657a8(0) lct=1 pct=0 cdp=0
     name=exmxsquery.vw_ebay_mail_clct@ebaytrack
      hash=f0cd4f621dedeac376c5bc759c015f5e timestamp=12-22-2011 17:03:45
      namespace=tabl flags=rem/kghp/tim/xlr/[00020020]
      kkkk-dddd-llll=0000-0001-0001 lock=s pin=s latch#=14 hpc=0002 hlc=0002
      lwt=0x15e465720[0x15e465720,0x15e465720] ltm=0x15e465730[0x15e465730,0x15e465730]
      pwt=0x15e4656e8[0x15e4656e8,0x15e4656e8] ptm=0x15e4656f8[0x15e4656f8,0x15e4656f8]
      ref=0x15e465750[0x15e465750,0x15e465750] lnd=0x15e465768[0x15e465768,0x15e465768]
        lock instance lock: id=lbf0cd4f621dedeac3
        pin instance lock: id=nbf0cd4f621dedeac3 mode=s release=f flags=[00]
        library object: bject=1432efc78
        type=synm flags=exs/loc[0005] pflags=[0000]status=invlload=0
        data blocks:

看到这个地方,vw_ebay_mail_clct是ebaytrack库上exmxsquery用户下的一个同义词,应该是这个同义词失效了,一般同义词失效是其同义的对象删掉重建了,或者select权限收回了。为了证实这个认识,打电话询问开发的工程师当时有没有改动那个视图,回答时肯定的,说但是那个时间点正在create or replace,这样同义词就自动失效了。通过如下sql查询:

sql> select object_name,object_type,owner,status
  2            from   dba_objects
  3            where  object_name='vw_ebay_mail_clct';

object_name                    object_type         owner      status
--------------------                        -------------------         ----------          -------
vw_ebay_mail_clct              view                  emstrc         valid
vw_ebay_mail_clct              synonym        emsquery    invalid

果然失效了。注意在10g中,同义词失效,但是还是可以查询的:

select  count(*)  from vw_ebay_mail_clct;

  count(*)
------------------
         3398700

重建同义词:

create or replace synonym vw_ebay_mail_clct for emstrc.vw_ebay_mail_clct;

重新查询状态:

sql> select object_name,object_type,owner,status
  2            from   dba_objects
  3            where  object_name='vw_ebay_mail_clct';

object_name                    object_type         owner      status
--------------------                        -------------------         ----------          -------
vw_ebay_mail_clct              view                  emstrc         valid
vw_ebay_mail_clct              synonym        emsquery    valid

状态已经变为valid了。

参考文档:

how to find the object that causing ora-600 [kqlnrc_1] [id 1190673.1]

以上就是ORA-00600: internal error code, arguments: [kqlnrc_1], [0x70的内容,更多相关内容请关注PHP中文网(www.php.cn)!

热门AI工具

更多
Atoms
Atoms Hot

Atoms是一款AI智能体工具,第一支自动构建真实业务的 AI 团队。

蛙蛙写作

一款AI论文写作工具,主要用于超级AI智能写作助手,适合需要提升相关任务效率的用户。

讯飞智作

讯飞智作是一款AI视频创作工具,AI文本配音工具,数字人课程、营销视频制作。

DeepSeek

DeepSeek是一款面向对话、写作、编程和推理场景的AI大模型工具。

VibeKnow
VibeKnow Hot

一款AI视频创作工具,主要用于全球首个AI知识视频创作平台,文档、文章、网页,一键生成视频,适合需要提升相关任务效率的用户。

超级麦吉

一款通过数字员工协作完成调研、数据分析与文档制作的AI办公平台。

WorkBuddy

一款AI办公效率工具,主要用于腾讯云推出的AI原生桌面智能体工作台,适合需要提升相关任务效率的用户。

豆包大模型

豆包大模型是一款由字节跳动推出的企业级大语言模型服务平台。

PixPix
PixPix Hot

PixPix是一款面向电商视觉生产的AI商品图生成工具。

相关专题

更多
Nginx CVE-2026-123007排查与防护指南
Nginx CVE-2026-123007排查与防护指南

Nginx HTTP/2漏洞该怎么修复?本专题围绕CVE-2026-123007,介绍安全版本升级、模块兼容检查和配置恢复方法,以及日志排查、权限设置等后续加固操作,方便你按实际部署情况查找对应教程。

0

2026.11.20

GoFrame框架Web开发与路由中间件
GoFrame框架Web开发与路由中间件

本专题聚焦GoFrame框架的Web开发,拆解路由注册与匹配规则、请求参数获取、参数校验与中间件执行顺序,说明统一响应、JWT鉴权、文件上传与接口文档生成的落地方式,并补充优雅重启与测试实践。

40

2026.11.17

GoFrame框架安装与gf命令行工具
GoFrame框架安装与gf命令行工具

本专题围绕GoFrame框架的安装与工具链配置展开,讲清Go版本要求、gf命令行的安装方式、代理镜像与依赖准备,说明项目初始化、热编译、交叉编译打包的做法,并整理安装阶段的常见报错与验证步骤。

60

2026.11.17

GoFrame框架零基础入门
GoFrame框架零基础入门

本专题整理GoFrame框架的入门知识,从模块化设计理念、环境准备到跑通第一个Web服务,讲清目录分层、配置加载、日志与中间件的用法,并对比Gin、Go-Zero的差异,帮助Go开发者建立整体认知。

80

2026.11.17

SQLAlchemy 一对多关系怎么建立
SQLAlchemy 一对多关系怎么建立

SQLAlchemy 一对多关系怎么建立?本专题整理父子表外键、relationship 双向映射、关联查询、级联删除和加载优化等相关文章,帮助你理解并实现常见的 ORM 关系建模。

20

2026.11.17

SQLAlchemy 如何增删改查
SQLAlchemy 如何增删改查

SQLAlchemy 如何增删改查?本专题整理 ORM 新增记录、条件查询、更新和删除、Session 事务提交与批量处理等实用文章,帮助你掌握 Python 数据库操作流程。

80

2026.11.17

SQLAlchemy ORM 模型怎么写
SQLAlchemy ORM 模型怎么写

SQLAlchemy ORM 模型怎么写?本专题整理模型类定义、Mapped 字段映射、主键与约束、表结构创建和常见报错的相关文章,帮助你从基础配置到实际建模逐步掌握 SQLAlchemy。

40

2026.11.17

Go-Zero API开发使用教程
Go-Zero API开发使用教程

本专题聚焦Go-Zero的API开发,拆解.api描述文件的语法结构、路由与分组定义、参数绑定与校验规则,说明统一响应体、JWT鉴权、跨域与接口文档生成的落地方式,并给出网关聚合与接口测试的实践建议。

180

2026.11.12

Go-Zero安装与goctl环境配置教程
Go-Zero安装与goctl环境配置教程

本专题围绕Go-Zero的安装与工具链配置展开,讲清Go版本要求、goctl安装方式、代理镜像、protoc依赖与环境变量设置,说明多版本共存、升级回退与CI流水线安装的做法,并整理安装阶段的常见报错与验证步骤。

140

2026.11.12

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
热门推荐
/
最新课程
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn