RE: Temporary space needed to create a constraint

From: Mark W. Farnham <mwf_at_rsiz.com>
Date: Tue, 10 Jul 2012 18:16:31 -0400
Message-ID: <02e501cd5ee9$a95037d0$fbf0a770$_at_rsiz.com>



Yeah, what JL wrote.

Could you send the DDL and version information?

Something is not making sense.

mwf

-----Original Message-----

From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Jonathan Lewis
Sent: Tuesday, July 10, 2012 5:35 PM
To: oratune_at_yahoo.com; mark.powell2_at_hp.com; oracle-l Subject: Re: Temporary space needed to create a constraint

But if there is a pre-existing index that contains all the data needed to enforce the constraint Oracle shouldn't need to do any sorting, it need only do a full scan of the index to check that there are no duplicates.

Regards

Jonathan Lewis
http://jonathanlewis.wordpress.com/all_postings

Author: Oracle Core (Apress 2011)
http://www.apress.com/9781430239543

  • Original Message ----- From: "David Fitzjarrell" <oratune_at_yahoo.com> To: <mark.powell2_at_hp.com>; "oracle-l" <oracle-l_at_freelists.org> Sent: Tuesday, July 10, 2012 9:31 PM Subject: Re: Temporary space needed to create a constraint

Which is exactly what he's done -- the constraint creation runs out of temp space even though no index is being created. The sort segment outgrows the available temp space and then errors out. I can guess that Oracle is ordering the keys to verify no duplicates exist before creating and enforcing the primary key, but I can't prove that on my small playground database.

David Fitzjarrell

--

http://www.freelists.org/webpage/oracle-l

--

http://www.freelists.org/webpage/oracle-l Received on Tue Jul 10 2012 - 17:16:31 CDT

Original text of this message