ITPub博客

首页 > 数据库 > Oracle > [20230108]ORA-00600 and Session Disconnected.txt

[20230108]ORA-00600 and Session Disconnected.txt

原创 Oracle 作者:lfree 时间:2023-01-31 20:33:04 0 删除 编辑

[20230108]ORA-00600 and Session Disconnected.txt

--//http://ksun-oracle.blogspot.com/2022/07/plsql-ora-00600-by-jdbc-call-exception.html

--//测试:ORA-00600 and Session Disconnected

1.环境:
SCOTT@test01p> @ver1
PORT_STRING                    VERSION        BANNER                                                                               CON_ID
------------------------------ -------------- -------------------------------------------------------------------------------- ----------
IBMPC/WIN_NT64-9.1.0           12.2.0.1.0     Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production              0

2.测试脚本:
--//drop table test_tab_disconnet;

create table test_tab_disconnet(id number, label varchar2(10));
insert into test_tab_disconnet(id, label) values(1, 'label');
commit;

create or replace procedure test_ora_600_disconnet as
begin
  savepoint sp;
  update test_tab_disconnet set label = label where id = 1;
  execute immediate '
    begin
      raise_application_error(-20000, ''error-sp'');
    exception
      when others then
        rollback to savepoint sp;
        update test_tab_disconnet set label = label where id = 1;
        raise;
    end;';
end;
/

3.测试:
SCOTT@test01p> exec test_ora_600_disconnet
BEGIN test_ora_600_disconnet; END;

*
ERROR at line 1:
ORA-00603: ORACLE server session terminated by fatal error
ORA-00600: internal error code, arguments: [4156], [], [], [], [], [], [], [], [], [], [], []
ORA-20000: error-sp
ORA-06512: at line 8
ORA-06512: at line 3
Process ID: 5376
Session ID: 170 Serial number: 51363

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/267265/viewspace-2933492/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
熟悉oracle相关技术,擅长sql优化,rman备份与恢复,熟悉linux shell编程。

注册时间:2008-01-03

  • 博文量
    4006
  • 访问量
    7969582