ITPub博客

首页 > 数据库 > Oracle > [20170703]ora-00600[kkpamDGSPam2].txt

[20170703]ora-00600[kkpamDGSPam2].txt

原创 Oracle 作者:lfree 时间:2017-07-03 10:37:49 0 删除 编辑

[20170703]ora-00600[kkpamDGSPam2].txt

--//oracle 分区数量不能超过1048575.做一个例子说明:
--//2^20-1=1048575

SCOTT@test01p> @ ver1

PORT_STRING                    VERSION        BANNER                                                                               CON_ID
------------------------------ -------------- -------------------------------------------------------------------------------- ----------
IBMPC/WIN_NT64-9.1.0           12.1.0.1.0     Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production              0

drop table t1 purge;
CREATE TABLE T1 ( ID NUMBER,CODE VARCHAR2(1)) partition by range(ID) interval(1)
SUBPARTITION BY LIST(CODE)
SUBPARTITION TEMPLATE
(SUBPARTITION CODE_a VALUES ('A'),
SUBPARTITION CODE_s VALUES ('S'),
SUBPARTITION CODE_v VALUES ('V'),
SUBPARTITION CODE_e VALUES ('E'),
SUBPARTITION CODE_oth VALUES (DEFAULT))
(partition ID_1 values less than (1));

2.测试:
SCOTT@test01p> select * from t1 where id=1048575 and code='A';
select * from t1 where id=1048575 and code='A'
              *
ERROR at line 1:
ORA-00600: internal error code, arguments: [kkpamDGSPam2], [1048575], [1048575], [], [], [], [], [], [], [], [], []

SCOTT@test01p> select * from t1 where id=1048577 and code='A';
select * from t1 where id=1048577 and code='A'
              *
ERROR at line 1:
ORA-00600: internal error code, arguments: [kkpamDGSPam2], [1048576], [1048575], [], [], [], [], [], [], [], [], []

SCOTT@test01p> select * from t1 where id=2048575 and code='A';
select * from t1 where id=2048575 and code='A'
              *
ERROR at line 1:
ORA-00600: internal error code, arguments: [kkpamDGSPam2], [1048576], [1048575], [], [], [], [], [], [], [], [], []
--//可以只要超出范围1048575,参数就是1048576.

SCOTT@test01p> select * from t1 where id=1048574 and code='A';
no rows selected

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

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

注册时间:2008-01-03

  • 博文量
    4006
  • 访问量
    7971388