Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

16

积分

0

好友

2

主题
1#
发表于 2012-1-11 11:31:02 | 查看: 7547| 回复: 2
操作系统:AIX 6.1
数据库版本:Oracle 10.2.0.5

数据库遭遇ORA-00600错误,具体信息如下:
Errors in file /oracle/app/admin/core/udump/core_ora_57739436.trc:
ORA-00600: internal error code, arguments: [kcblasm_1], [103], [], [], [], [], [], []

Current SQL statement for this session:
SELECT MIN(MINBKT),
       MAXBKT,
       SUBSTRB(DUMP(MIN(VAL), 16, 0, 32), 1, 120) MINVAL,
       SUBSTRB(DUMP(MAX(VAL), 16, 0, 32), 1, 120) MAXVAL,
       SUM(REP) SUMREP,
       SUM(REPSQ) SUMREPSQ,
       MAX(REP) MAXREP,
       COUNT(*) BKTNDV,
       SUM(CASE
             WHEN REP = 1 THEN
              1
             ELSE
              0
           END) UNQREP
  FROM (SELECT VAL,
               MIN(BKT) MINBKT,
               MAX(BKT) MAXBKT,
               COUNT(VAL) REP,
               COUNT(VAL) * COUNT(VAL) REPSQ
          FROM (SELECT /*+ no_parallel(t) no_parallel_index(t) dbms_stats cursor_sharing_exact use_weak_name_resl dynamic_sampling(0) no_monitoring */
                 "POLICY_NO" VAL,
            --    NTILE(254) OVER(ORDER BY "POLICY_NO") BKT
                NTILE(254) OVER(ORDER BY NLSSORT("POLICY_NO", 'NLS_SORT = binary')) BKT
                  FROM "AUTO_OPR"."T_APPLY_BASE" T
                 WHERE "POLICY_NO" IS NOT NULL)
         GROUP BY VAL)
GROUP BY MAXBKT
ORDER BY MAXBKT

core_ora_57739436.rar

1.16 MB, 下载次数: 967

trace 文件

alert_core.zip

253 Bytes, 下载次数: 1096

alert 日志

2#
发表于 2012-1-11 11:32:39
但是当使用如下语句 就正常:
SELECT MIN(MINBKT),
       MAXBKT,
       SUBSTRB(DUMP(MIN(VAL), 16, 0, 32), 1, 120) MINVAL,
       SUBSTRB(DUMP(MAX(VAL), 16, 0, 32), 1, 120) MAXVAL,
       SUM(REP) SUMREP,
       SUM(REPSQ) SUMREPSQ,
       MAX(REP) MAXREP,
       COUNT(*) BKTNDV,
       SUM(CASE
             WHEN REP = 1 THEN
              1
             ELSE
              0
           END) UNQREP
  FROM (SELECT VAL,
               MIN(BKT) MINBKT,
               MAX(BKT) MAXBKT,
               COUNT(VAL) REP,
               COUNT(VAL) * COUNT(VAL) REPSQ
          FROM (SELECT /*+ no_parallel(t) no_parallel_index(t) dbms_stats cursor_sharing_exact use_weak_name_resl dynamic_sampling(0) no_monitoring */
                 "POLICY_NO" VAL,
                NTILE(254) OVER(ORDER BY "POLICY_NO") BKT
            -- NTILE(254) OVER(ORDER BY NLSSORT("POLICY_NO", 'NLS_SORT = binary')) BKT
   
                  FROM "AUTO_OPR"."T_APPLY_BASE" T
                 WHERE "POLICY_NO" IS NOT NULL)
         GROUP BY VAL)
GROUP BY MAXBKT
ORDER BY MAXBKT


查询结果:

1 1 1 Typ=1 Len=19: 31,30,31,30,30,30,30,33,30,31,30,36,31,30,30,30,31,34,37 Typ=1 Len=19: 32,31,30,31,30,30,30,30,31,30,34,30,37,30,33,35,35,39,35 52339 52339 1 52339 52339
2 2 2 Typ=1 Len=19: 32,31,30,31,30,30,30,30,31,30,34,30,37,30,33,35,35,39,36 Typ=1 Len=19: 32,31,30,31,30,30,30,30,31,30,34,31,30,30,30,33,32,39,38 52339 52339 1 52339 52339
3 3 3 Typ=1 Len=19: 32,31,30,31,30,30,30,30,31,30,34,31,30,30,30,33,32,39,39 Typ=1 Len=19: 32,31,30,31,30,30,30,30,31,30,35,30,36,30,30,31,32,39,36 52339 52339 1 52339 52339
4 4 4 Typ=1 Len=19: 32,31,30,31,30,30,30,30,31,30,35,30,36,30,30,31,32,39,37 Typ=1 Len=19: 32,31,30,31,30,30,30,30,31,30,35,30,37,30,33,39,30,32,30 52339 52339 1 52339 52339
5 5 5 Typ=1 Len=19: 32,31,30,31,30,30,30,30,31,30,35,30,37,30,33,39,30,32,31 Typ=1 Len=19: 32,31,30,31,30,30,30,30,31,30,35,31,30,30,30,39,37,32,34 52339 52339 1 52339 52339
6 6 6 Typ=1 Len=19: 32,31,30,31,30,30,30,30,31,30,35,31,30,30,30,39,37,32,35 Typ=1 Len=19: 32,31,30,31,30,30,30,30,37,31,39,30,39,30,30,35,33,36,31 52339 52339 1 52339 52339
7 7 7 Typ=1 Len=19: 32,31,30,31,30,30,30,30,37,31,39,30,39,30,30,35,33,36,32 Typ=1 Len=19: 32,31,30,31,30,30,30,30,37,31,39,30,39,30,35,37,37,33,35 52339 52339 1 52339 52339
...


大家帮我看看,Thanks!

回复 只看该作者 道具 举报

3#
发表于 2012-1-11 11:45:14
有MOS 账号的话查一下 现在阶段定位为BUG

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-12-24 01:44 , Processed in 0.051566 second(s), 24 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569