
Signature
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)
Lee Fesperman wrote on 19.06.2005 22:23:
> Assuming no cross-referencing referential integrity, ordering would truncate the table
> containing the FK reference first, thus it would seem to work.
No. As long as there is a FK referenced *defined* Oracle will refuse to
truncate a table.
> Apparently, Oracle doesn't support the CASCADE option for DROP, which would eliminate
> the similar ordering problem when using a list of DROP TABLEs. It also solves the
> cross-referencing problem. Lack of standards support does have its consequences ;^)
Oracle does support the CASCADE option for DROP... But then we're back to
the question on how to speed that up.
Thomas
Lee Fesperman - 20 Jun 2005 21:56 GMT
> Lee Fesperman wrote on 19.06.2005 22:23:
> > Assuming no cross-referencing referential integrity, ordering would truncate
> > the table containing the FK reference first, thus it would seem to work.
> No. As long as there is a FK referenced *defined* Oracle will refuse to
> truncate a table.
I see, that makes sense, though it wouldn't be too hard for Oracle to check. However,
dropping and restoring the constraint isn't too onerous.
> > Apparently, Oracle doesn't support the CASCADE option for DROP, which would
> > eliminate the similar ordering problem when using a list of DROP TABLEs. It
[quoted text clipped - 3 lines]
> Oracle does support the CASCADE option for DROP... But then we're back to
> the question on how to speed that up.
Actually, I was piggy-backing on your response to comment on the SchemaSpy capability to
produce an ordered list. With the CASCADE option for DROP, the ordered list isn't needed
... just put CASCADE on every DROP.

Signature
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)