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

Home -> Community -> Usenet -> c.d.o.misc -> Re: 2 DBA problems

Re: 2 DBA problems

From: Daniel Morgan <dmorgan_at_exesolutions.com>
Date: Mon, 14 Oct 2002 15:39:41 GMT
Message-ID: <3DAAE538.4A79971E@exesolutions.com>


s Lehaire wrote:

> HI,
> I've got 2 problems:
>
> 1 - I want to know when a structure of a table have changed and what was the
> change done.
> 2 - My DB is not correctly structure and I want to create the constraints
> but there's yet constraints existing so how can I drop all constraints (DROP
> CONSTRAINT my_constraint is not working).
>
> Thx for response

Q1:
Go to http://tahiti.oracle.com
and search on "DDL TRIGGER"

Q2:
SELECT CONSTRAINT_NAME
FROM user_constraints
WHERE TABLE_NAME = '<table_name>';

ALTER TABLE <table_name>
DROP CONSTRAINT <constraint_name>;

And do them one at a time.

Daniel Morgan Received on Mon Oct 14 2002 - 10:39:41 CDT

Original text of this message

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