Re: how to boost drop table statement
- From: Thomas Kellerer <NNGNVRDSJEBN@xxxxxxxxxxxxx>
- Date: Sun, 19 Jun 2005 16:41:00 +0200
John Currier wrote on 18.06.2005 20:22:
You could try to TRUNCATE the tables first, but then they must not have foreign key constraints.
You just have to do them in the correct order (assuming no recursive constraints).
<plug> SchemaSpy grew out of a tool that I wrote to determine that order. It'll generate insertion order and deletion order lists of tables that are intended to be used by load/purge scripts. </plug>
No that won't help. There is a limitation on the usage of TRUNCATE with Oracle.
Quote from the manual (9.2):
"You cannot truncate the parent table of an enabled referential integrity constraint. You must disable the constraint before truncating the table."
Even if the order is right, it won't help here.
Thomas .
- Follow-Ups:
- Re: how to boost drop table statement
- From: Lee Fesperman
- Re: how to boost drop table statement
- References:
- how to boost drop table statement
- From: Markusin
- Re: how to boost drop table statement
- From: Thomas Kellerer
- Re: how to boost drop table statement
- From: John Currier
- how to boost drop table statement
- Prev by Date: Re: how to boost drop table statement
- Next by Date: Re: how to boost drop table statement
- Previous by thread: Re: how to boost drop table statement
- Next by thread: Re: how to boost drop table statement
- Index(es):