drop table sales purge
ORA-00942: table or view does not existMore Details: https://docs.oracle.com/error-help/db/ora-00942
create table sales
( tstamp timestamp not null,
empno number(10) not null,
ename varchar2(10) not null,
deptno varchar2(10) not null
)
partition by range (tstamp)
(
partition p00 values less than (timestamp '2010-01-01 00:00:00'),
partition p01 values less than (timestamp '2010-02-01 00:00:00'),
partition p02 values less than (timestamp '2010-03-01 00:00:00'),
partition p03 values less than (timestamp '2010-04-01 00:00:00'),
partition p04 values less than (timestamp '2010-05-01 00:00:00'),
partition p05 values less than (timestamp '2010-06-01 00:00:00'),
partition p06 values less than (timestamp '2010-07-01 00:00:00')
)
Table created.
insert into sales values ( timestamp '2013-01-01 00:00:00' , 0,0,0)
ORA-14400: inserted partition key does not map to any partition ORA-06512: at "SYS.DBMS_SQL", line 1721More Details: https://docs.oracle.com/error-help/db/ora-14400
drop table sales purge
Table dropped.
create table sales
( tstamp timestamp not null,
empno number(10) not null,
ename varchar2(10) not null,
deptno varchar2(10) not null
)
partition by range (tstamp)
(
partition p00 values less than (timestamp '2010-01-01 00:00:00'),
partition p01 values less than (timestamp '2010-02-01 00:00:00'),
partition p02 values less than (timestamp '2010-03-01 00:00:00'),
partition p03 values less than (timestamp '2010-04-01 00:00:00'),
partition p04 values less than (timestamp '2010-05-01 00:00:00'),
partition p05 values less than (timestamp '2010-06-01 00:00:00'),
partition p06 values less than (timestamp '2010-07-01 00:00:00'),
partition pmax values less than (maxvalue)
)
Table created.
insert into sales
values ( timestamp '2013-01-01 00:00:00' , 0,0,0)
1 row(s) inserted.
alter table SALES set interval ( NUMTOYMINTERVAL(1,'MONTH') )
ORA-14759: SET INTERVAL is not legal on this table.More Details: https://docs.oracle.com/error-help/db/ora-14759
alter table sales drop partition pmax
Table altered.
alter table SALES set interval ( NUMTOYMINTERVAL(1,'MONTH') )
Table altered.
select
partition_name pname,
partition_position pos,
high_value
from user_tab_partitions
where table_name = 'SALES'
PNAME | POS | HIGH_VALUE | P00 | 1 | TIMESTAMP' 2010-01-01 00:00:00' | P01 | 2 | TIMESTAMP' 2010-02-01 00:00:00' | P02 | 3 | TIMESTAMP' 2010-03-01 00:00:00' | P03 | 4 | TIMESTAMP' 2010-04-01 00:00:00' | P04 | 5 | TIMESTAMP' 2010-05-01 00:00:00' | P05 | 6 | TIMESTAMP' 2010-06-01 00:00:00' | P06 | 7 | TIMESTAMP' 2010-07-01 00:00:00' |
---|
drop table MILLION_PAR purge
ORA-00942: table or view does not existMore Details: https://docs.oracle.com/error-help/db/ora-00942
create table MILLION_PAR ( x int )
partition by range ( x )
interval( 1 )
(
partition p0 values less than (1)
)
Table created.
insert into MILLION_PAR values (2000000)
ORA-14300: partitioning key maps to a partition outside maximum permitted number of partitions ORA-06512: at "SYS.DBMS_SQL", line 1721More Details: https://docs.oracle.com/error-help/db/ora-14300
drop table sales purge
Table dropped.
create table sales
( tstamp timestamp not null,
empno number(10) not null,
ename varchar2(10) not null,
deptno varchar2(10) not null
)
partition by range (tstamp)
(
partition p00 values less than (timestamp '2010-01-01 00:00:00'),
partition p01 values less than (timestamp '2010-02-01 00:00:00'),
partition p02 values less than (timestamp '2010-03-01 00:00:00'),
partition p03 values less than (timestamp '2010-04-01 00:00:00'),
partition p04 values less than (timestamp '2010-05-01 00:00:00'),
partition p05 values less than (timestamp '2010-06-01 00:00:00'),
partition p06 values less than (timestamp '2010-07-01 00:00:00')
)
Table created.
insert into sales values ( timestamp '2013-01-01 00:00:00' , 0,0,0)
ORA-14400: inserted partition key does not map to any partition ORA-06512: at "SYS.DBMS_SQL", line 1721More Details: https://docs.oracle.com/error-help/db/ora-14400
drop table sales purge
Table dropped.
create table sales
( tstamp timestamp not null,
empno number(10) not null,
ename varchar2(10) not null,
deptno varchar2(10) not null
)
partition by range (tstamp)
(
partition p00 values less than (timestamp '2010-01-01 00:00:00'),
partition p01 values less than (timestamp '2010-02-01 00:00:00'),
partition p02 values less than (timestamp '2010-03-01 00:00:00'),
partition p03 values less than (timestamp '2010-04-01 00:00:00'),
partition p04 values less than (timestamp '2010-05-01 00:00:00'),
partition p05 values less than (timestamp '2010-06-01 00:00:00'),
partition p06 values less than (timestamp '2010-07-01 00:00:00'),
partition pmax values less than (maxvalue)
)
Table created.
insert into sales
values ( timestamp '2013-01-01 00:00:00' , 0,0,0)
1 row(s) inserted.
alter table SALES set interval ( NUMTOYMINTERVAL(1,'MONTH') )
ORA-14759: SET INTERVAL is not legal on this table.More Details: https://docs.oracle.com/error-help/db/ora-14759
alter table sales drop partition pmax
Table altered.
alter table SALES set interval ( NUMTOYMINTERVAL(1,'MONTH') )
Table altered.
select
partition_name pname,
partition_position pos,
high_value
from user_tab_partitions
where table_name = 'SALES'
PNAME | POS | HIGH_VALUE | P00 | 1 | TIMESTAMP' 2010-01-01 00:00:00' | P01 | 2 | TIMESTAMP' 2010-02-01 00:00:00' | P02 | 3 | TIMESTAMP' 2010-03-01 00:00:00' | P03 | 4 | TIMESTAMP' 2010-04-01 00:00:00' | P04 | 5 | TIMESTAMP' 2010-05-01 00:00:00' | P05 | 6 | TIMESTAMP' 2010-06-01 00:00:00' | P06 | 7 | TIMESTAMP' 2010-07-01 00:00:00' |
---|
drop table MILLION_PAR purge
Table dropped.
create table MILLION_PAR ( x int )
partition by range ( x )
interval( 1 )
(
partition p0 values less than (1)
)
Table created.
insert into MILLION_PAR values (2000000)
ORA-14300: partitioning key maps to a partition outside maximum permitted number of partitions ORA-06512: at "SYS.DBMS_SQL", line 1721More Details: https://docs.oracle.com/error-help/db/ora-14300