Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> INSERT into partitioned table from a simple query gives wrong result

INSERT into partitioned table from a simple query gives wrong result

From: Lee Farrant <lee_at_vivao.net>
Date: 2000/04/29
Message-ID: <8eedmt$kl7$1@gxsn.com>#1/1

Is anyone aware of a fix for this?

Lee

Hdr: 1140366 8.0.5.2.1 RDBMS 8.0.5.2.1 PRODID-5 PORTID-453 Abstract: WRONG RESULT (DUPLICATED ROWS) FROM INSERT SELECT INTO PARTITIONED TABLE



PROBLEM:
.

INSERT into partitioned table from a simple query gives wrong result (duplicated rows) when target partitioned table is analyzed at the same time.
.

Simplest testcase:
.

1. Table d2 is empty and is partitioned by id and has two partitions, table d1 contains, let's say, 10000 rows; no indexes on both tables.
.

2. In the first session run:
.

   insert into d2 (id) select id from d1;
.

3. In the second session, while INSERT is still runnning, issue:
.

   analyze table d2 estimate statistics sample 1 percent;
.

4. After INSERT finishes table d2 contains more rows than d1.
.

Environment: no MTS, no OPS, no PQO, most INIT.ORA settings default
.



DIAGNOSTIC ANALYSIS:
.

Reproducibility does not depend on: Received on Sat Apr 29 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US