sql - 甲骨文 ORA-00600

标签 sql oracle plsql ora-00600

我有返回的 SQL SELECT 语句:

    Error: ORA-00600: internal error code, arguments: [qerpfAllocateR], [], [], [], [], [], [], []

如果我通过在 WHERE 子句中再添加一个条件来缩小结果范围,一切都会好起来的。

有谁知道发生了什么?

编辑:
    select * from ( select tbl1.col1, ..., tbl1.points
    from table1 tbl1, table2 tbl2
    where tbl1.tbl2FK = tbl2.PK and
          tbl2.col1 = someNumber and
          tbl1.dateColumn = to_date('27-10-2008','dd-mm-yyyy')
    order by tbl1.points desc ) s where rownum <= 3 

编辑2:

我的数据库管理员建议的解决方案有效:
select * from (select rank() over (order by tbl1.points desc) rank,
                  tbl1.col1, ..., tbl1.points
           from table1 tbl1, table2 tbl2
           where tbl1.tbl2FK = tbl2.PK and
                 tbl2.col1 = someNumber and
                 tbl1.dateColumn = to_date('27-10-2008','dd-mm-yyyy')) s
     where s.rank <= 3

最佳答案

祝您好运获得 Oracle 的支持...

不过说真的,每次遇到这个问题时,稍微重新排列查询通常会有所帮助。也许摆弄一下索引。

关于sql - 甲骨文 ORA-00600,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/511534/

相关文章:

MySQL JOIN 替换子查询(OR NOT IN)

c# - [C#]不插入数据库,但给出executeExecutequery为1

oracle - 如何传递包含@的用户名作为参数

sql - SQL Server 中的批量更新和提交频率

oracle - 加快 Oracle DB 大量记录的更新速度

java - Oracle ORA-29536 关于 DDL-将 java 源加载到数据库中

SQLServer从子查询中获取前1行

sql - Oracle 10 中的 GRANT 问题

css - Oracle Apex 布局 - 突出的子元素

java - 查找数据库表的唯一约束