Home > database > Oracle11g questions about the partition table
Oracle11g questions about the partition table
Time:10-08
The database version: oracle11g 11.2.0.4.0 Current library have a table to partition, range partitioning, according to the automatic partition each month, but now there is a problem, is the time of partition fields have null values, when insert the data submitted to the ORA - 14300, Solution: is when inserting data, NULL values can be converted to a time, Solution 2: insert a NULL value, automatically NULL into another partition, insert a NULL value, namely time, writing time partition, Methods the good solution, but method 2 do not know how, Here is to use the RANGE - the LIST to create partitions, but they still offer ORA - 14300 error when inserting data, Is now want to create a composite partition, to write the time of normal RANGE partitions, if there is a NULL value into the LIST partition, Are all the same partition fields, such as: CREATE_TIME Don't know how to do this, please master answer, thank you! RANGE - the LIST is below, but the insert data will be submitted to the ORA - 14300 error:
The CREATE TABLE T_TEST ( TABLE_ID VARCHAR2 (64) NOT NULL, CREATE_TIME DATE DEFAULT SYSDATE ) PARTITION BY RANGE (CREATE_TIME) The INTERVAL (NUMTOYMINTERVAL (1, 'MONTH')) STORE IN (TBS_TEST_DATA) SUBPARTITION BY LIST (CREATE_TIME) SUBPARTITION TEMPLATE ( SUBPARTITION SP_0 VALUES (NULL) in TABLESPACE TBS_TEST_DATA) (PARTITION P_0 VALUES LESS THAN (TO_DATE (' 1970-01-01 ', '- DD YYYY - MM)) in TABLESPACE TBS_TEST_DATA);
INSERT INTO T_TEST (TABLE_ID, CREATE_TIME) VALUES (' test01, NULL); COMMIT;
CodePudding user response:
Null is excluded from the scope of any one can't listed