ORA-14652: reference partitioning FOREIGN KEY IS NOT supported [message #501572] |
Wed, 30 March 2011 00:20  |
rangan.s
Messages: 75 Registered: February 2008 Location: chennai
|
Member |
|
|
HI,
I am trying to use reference partitioning the parent table records moved using the row movement . but the child table records are not moving below is my sample .
CREATE TABLE ref_parent1 (
table_name VARCHAR2(30),
order_date DATE,
num_rows NUMBER);
INSERT INTO ref_parent1 VALUES ('TEST',SYSDATE,100);
INSERT INTO ref_parent1 VALUES ('TEST1',SYSDATE,1000);
INSERT INTO ref_parent1 VALUES ('TEST2',SYSDATE,1000);
COMMIT;
CREATE TABLE ref_parent (
table_name1 ,
order_date ,
num_rows )
PARTITION BY RANGE(num_rows) (
PARTITION num_rows1 VALUES LESS THAN (100) ,
PARTITION num_rows2 VALUES LESS THAN (1000),
PARTITION num_rows3 VALUES LESS THAN (10000) ,
PARTITION num_rows4 VALUES LESS THAN (MAXVALUE))
ENABLE ROW MOVEMENT AS
SELECT * FROM ref_parent1;
ALTER TABLE ref_parent ADD CONSTRAINT pk_ref_parent PRIMARY KEY (table_name1) USING INDEX;
CREATE TABLE ref_child1 (
table_name VARCHAR2(30) NOT NULL,
index_name VARCHAR2(30) NOT NULL
);
INSERT INTO ref_child1 VALUES ('TEST','IDX1');
INSERT INTO ref_child1 VALUES ('TEST1','IDX2');
INSERT INTO ref_child1 VALUES ('TEST2','IDX3');
COMMIT;
CREATE TABLE ref_child (
table_name ,
index_name ,
CONSTRAINT fk_ref_child_parent
FOREIGN KEY(table_name) REFERENCES ref_parent(table_name1))
PARTITION BY REFERENCE(fk_ref_child_parent)
ENABLE ROW MOVEMENT AS
SELECT * FROM ref_parent;
ORA-14652: reference partitioning FOREIGN KEY IS NOT supported
Thanks
Rangan Sampath
|
|
|
|
|
|
Re: ORA-14652: reference partitioning FOREIGN KEY IS NOT supported [message #501607 is a reply to message #501595] |
Wed, 30 March 2011 02:02  |
 |
Michel Cadot
Messages: 68767 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote:can anyone confirm from oracle technical team ??
There is no-one from Oracle technical team here; even if there was one he/she could not answer this question.
You have to go with a SR.
I hope you will be able to make them create a patch for this; you have a clear, simple and reproducible test case.
Regards
Michel
CM: first sentence should read "There is no-one..."
[Updated on: Mon, 04 April 2011 01:50] by Moderator Report message to a moderator
|
|
|