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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: TRUNCATE/DELETE/CONSTRAINTS/HELP

Re: TRUNCATE/DELETE/CONSTRAINTS/HELP

From: Nils Vierus <NV_at_IVU-BERLIN.DE>
Date: Wed, 17 Jan 1996 02:46:13 -0500
Message-Id: <9601170806.AA13052@alice.jcc.com>


Hi Robert,

We've had the same problem with truncating tables being refernces by constraints.
You can easy get a list of all constraints into the table by quering the system table all_constraints (user_constraints). I wrote a script to first disable these constraints, then trincating the table and re- enable the constraints. It works fine.

Nils.

#  ____    ____    ____
# |  _ |  |    |  |    |      Nils Vierus
# | (_)|  |    |  |    |
# | ___| _|   _|__|   _|      IVU GmbH
# |(   (_  \ ( (_  | (_ |     Bundesallee 88
# | |  | \  \/ /|  |  | |   D-12161 Berlin
# | |  |  \   /||  |__| |
# |(____) |\_/ |\________)    fon       : +49 30 85906-325
# |    |  |    |  |    |      fax       : +49 30 85906-313
# |____|  |____|  |____|      e-mail    : nv_at_ivu-berlin.de
#                             compuserve: 73064, 2423

Received on Wed Jan 17 1996 - 03:06:28 CST

Original text of this message

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