In another blog posting, I asserted that statistics collected by one session on a Global Temporary table (GTT) would be used by other sessions that reference that table, even though each session has their own physical instance of the table. I thought I should demonstrate that behaviour, so here is a simple test.
We will need two database sessions. I will create a test Global Temporary table with a unique index.
DROP TABLE t PURGE;
TRUNCATE TABLE t;
CREATE GLOBAL TEMPORARY TABLE t
(a NUMBER,b VARCHAR2(1000))
ON COMMIT PRESERVE ROWS;
CREATE UNIQUE INDEX t ON t(a);
Recent comments
16 weeks 5 days ago
26 weeks 4 days ago
28 weeks 2 days ago
31 weeks 3 days ago
33 weeks 5 days ago
43 weeks 2 days ago
44 weeks 5 days ago
45 weeks 6 days ago
46 weeks 2 hours ago
48 weeks 5 days ago