分析表时引发的一个ora-600 [qkssao2s1]

SQL> create table test as select * from dba_objects;

Table created

SQL> create index test_object_id on test(object_id);

Index created

SQL> create index test_data_object_id on test(data_object_id,1);

----------data_object_id是一个number类型,但是使用1就会报错-----------

Index created

SQL> exec dbms_stats.gather_table_stats(user,'TEST');

begin dbms_stats.gather_table_stats(user,'TEST'); end;

ORA-00600: 内部错误代码, 参数: [qkssao2s1], [], [], [], [], [], [], []
ORA-06512: 在 "SYS.DBMS_STATS", line 13056
ORA-06512: 在 "SYS.DBMS_STATS", line 13076
ORA-06512: 在 line 1

SQL> drop index test_data_object_id;

Index dropped

SQL> exec dbms_stats.gather_table_stats(user,'TEST');

PL/SQL procedure successfully completed

SQL> create index test_data_object_id on test(data_object_id,1);

Index created

SQL> exec dbms_stats.gather_index_stats(user,'TEST_DATA_OBJECT_ID');

begin dbms_stats.gather_index_stats(user,'TEST_DATA_OBJECT_ID'); end;

ORA-03001: 未实施的功能
ORA-06512: 在 "SYS.DBMS_STATS", line 10621
ORA-06512: 在 "SYS.DBMS_STATS", line 10645
ORA-06512: 在 line 1

SQL> exec dbms_stats.gather_index_stats(user,'TEST_DATA_OBJECT_ID');

begin dbms_stats.gather_index_stats(user,'TEST_DATA_OBJECT_ID'); end;

ORA-03001: 未实施的功能
ORA-06512: 在 "SYS.DBMS_STATS", line 10621
ORA-06512: 在 "SYS.DBMS_STATS", line 10645
ORA-06512: 在 line 1

SQL> exec dbms_stats.gather_index_stats(user,'TEST_OBJECT_ID');

PL/SQL procedure successfully completed

SQL> drop index test_data_object_id;

Index dropped

SQL> create index test_data_object_id on test(data_object_id,'a');

Index created

---------------------改为'a'正常---------------------------

SQL> exec dbms_stats.gather_table_stats(user,'TEST');

PL/SQL procedure successfully completed

SQL>

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

转载于:http://blog.itpub.net/10805681/viewspace-616154/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值