ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Table fout

Sometimes when dropping a table in Oracle database by executing DROP TABLE SQL statement, Oracle may return the error ORA-02449 as below: Soms als men eens een tabel in Oracle database met de volgende opdracht DROP TABLE SQL statement, Oracle nog even terugkomen op de fout ORA-02449 als hieronder:

ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: uniek / primaire sleutels in tabel verwezen door foreign keys

The Oracle error is caused by the attempt to drop a table with unique or primary keys referenced by foreign keys in another table, or in other word, the table that is referenced as a parent table by a foreign key constraint in a parent-child relationship that established between two tables through a foreign key. De Oracle-fout wordt veroorzaakt door de poging tot het neerzetten van een tabel met unieke of primaire sleutels verwezen door foreign keys in een andere tafel, of met andere woorden, de tabel waarnaar wordt verwezen als een ouder tafel door een foreign key beperking in een moeder-kind relatie dat tot stand gebracht tussen twee tabellen via een foreign key. Oracle does not allow to drop tables referenced by foreign keys of other tables without specifying the CASCADE CONSTRAINTS option in the DROP TABLE statement, or to drop the parent table without first removing the foreign key. Oracle laat niet toe dat de daling van de tabellen wordt verwezen door foreign keys van andere tabellen zonder vermelding van de cascade BEPERKINGEN optie in het DROP TABLE statement, of tot intrekking van de bovenliggende tabel zonder eerst te verwijderen van de foreign key.

The solution and workaround for the error when you want to drop tables referenced by child tables, is to use the CASCADE CONSTRAINTS option in the DROP TABLE statement. De oplossing en oplossing voor de fout wanneer u wilt neerzetten tabellen wordt verwezen door kind tafels, is het gebruik van de cascade BEPERKINGEN optie in het DROP TABLE statement. For example: Bijvoorbeeld:

DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE table_name cascade beperkingen;

The CASCADE CONSTRAINTS option in the DROP TABLE SQL statement will drop the FOREIGN KEY constraints of the child tables referenced. De cascade BEPERKINGEN optie in het DROP TABLE SQL statement, dalen de foreign key constraints van het kind tabellen wordt verwezen.

Alternatively, you can manually drop and remove the foreign key key constraints in other tables before performing the DROP TABLE operations on the parent table, drop the foreign key constraints in other tables. Als alternatief kunt u ook handmatig drop en verwijder de foreign key belangrijkste knelpunten in de andere tabellen voor de uitvoering van de DROP TABLE operaties op de bovenliggende tabel, drop de foreign key constraints in de andere tabellen. To check what constraints are referencing a table in Oracle, use the following command: Om te controleren welke beperkingen zijn referencing een tabel in Oracle, gebruikt u de volgende opdracht:

SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = “ table_name “; SELECT * FROM USER_CONSTRAINTS WAAR TABLE_NAME = "table_name";

To drop and delete the user constraints in Oracle use the following command in SQL*Plus, Toad or other SQL tools: Als u en verwijder de gebruiker beperkingen in Oracle gebruikt u de volgende opdracht in SQL * Plus, kikkers of andere SQL-tools:

ALTER TABLE table_name DROP CONSTRAINT constraint_name ; ALTER TABLE table_name DROP CONSTRAINT constraint_name;

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. BELANGRIJK: Dit is een machine vertaalde pagina die wordt verstrekt "as is" zonder garantie. Machine translation may be difficult to understand. Machine vertaling wellicht moeilijk te begrijpen. Please refer to Raadpleeg original English article origineel Engels artikel whenever possible. als dat mogelijk is.

Share and contribute or get technical support and help at Aandeel en bijdragen of het vinden van technische ondersteuning en hulp bij My Digital Life Forums My Digital Life Forums .



3 Responses to “ORA-02449 Oracle Drop Table Error” 3 Responses to "ORA-02449 Oracle Drop Table Error"

  1. vipin Vipin
    February 8th, 2007 18:51 8 februari, 2007 18:51
    1

    what if after dropping the table using the query blow you want again all those constraints. wat als na het neerlaten van de tabel met behulp van de query klap je weer al die beperkingen.

    DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE table_name cascade beperkingen;

    please tell the query if u knows. dan horen de query wanneer u het weet.

  2. f
    July 3rd, 2008 06:30 3 juli, 2008 06:30
    2

    Constrangimentos? Orra, meu revisa essa tradução aí e testa antes de postar!!! Orra, MEU revisa Essa ai tradução e testa antes de postar! Se não seja honesto e indica o link de onde pegou!!! Se Não SEJA honesto e indica o ONDE pegou de link!

  3. sangam Sangam
    July 24th, 2008 13:21 24 juli, 2008 13:21
    3

    Great! Geweldig! The information provided is very helpful. De verstrekte informatie is zeer nuttig. It seems to be simple but really halps an lot. Het lijkt simpel, maar echt halps een perceel. Thanks again. Nogmaals bedankt.

Leave a Reply Verlaat een Antwoord

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> U kunt deze tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Abonneren op commentaar functie is uitgeschakeld. To receive notification of latest comments posted, subscribe to Voor de ontvangst van de kennisgeving van de meest recente reacties gepost te abonneren My Digital Life Comments RSS feed My Digital Life Reacties RSS feed or of register to receive register te ontvangen new comments in daily email digest. nieuwe opmerkingen in het dagelijks e-mail verteren.
Custom Search

New Articles Nieuwe artikelen

Incoming Search Terms for the Article Inkomende Zoektermen voor het artikel

ORA-02449 ORA-02449 - -- oracle drop table orakel drop tafel - -- ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: uniek / primaire sleutels in tabel verwezen door foreign keys - -- drop table cascade drop tabel cascade - -- oracle delete cascade constraint orakel verwijderen cascade beperking - -- oracle drop table force orakel drop tabel werking - -- oracle drop table error orakel drop tabel fout - -- "drop table" force "drop table" van kracht - -- DELETE FROM TABLE en oracle DELETE FROM TABEL nl oracle - -- drop table cascade constraints drop tabel cascade beperkingen - -- FORCE deletE in Oracle FORCE verwijderen in Oracle - -- how to find duplicate values parent tables in child table+oracle hoe vindt u dubbele waarden bovenliggende tabellen in de kinder-tafel + orakel - -- how to drop all table constraints in oracle hoe te laten vallen alle beperkingen in tabel orakel - -- oracle can foreign key be empty in the child table orakel kan foreign key leeg zijn in de tabel kind - -- oracle ORA-02449 drop table orakel ORA-02449 drop tafel - -- oracle drop table * orakel drop tabel * - -- oracle force drop table orakel werking drop tafel - -- oracle casade delete orakel casade verwijderen - -- oracle delete from constraint cascade orakel verwijdert uit dwang cascade - -- oracle drop table cascade constraints orakel drop tabel cascade beperkingen - -- ORA-02449 ALTER TABLE DISABLE ORA-02449 ALTER TABLE DISABLE - -- oracle drop table cascade orakel drop tabel cascade - -- ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: uniek / primaire sleutels in tabel verwezen door foreign keys - -- sql ORA-02449 sql ORA-02449 - -- drop table oracle cascade drop tabel orakel cascade - -- drop statement in oracle query drop verklaring in oracle zoekopdracht - -- drop table cascade constraint oracle drop tabel cascade beperking orakel - -- drop oracle mit foreign keys drop orakel mit foreign keys - -- how to cascaded delete oracle hoe cascaded verwijderen orakel - -- oracle drop tabale orakel drop tabale - -- ORACLE DROP STATEMENT ORACLE DROP statement - -- oracle force drop constraint orakel werking drop beperking - -- ORACLE REMOVE FOREIGN KEY ORACLE verwijderen foreign key - -- oracle 02449 orakel 02449 - -- oracle table delete options oracle tabel opties schrappen - -- ORA-02449: ORA-02449: - -- oracle disable a table without drop orakel uitschakelen van een tabel zonder drop - -- ORA-02449: unique/primary keys in table ORA-02449: uniek / primaire sleutels in tabel - -- oracle drop table forced orakel drop tabel gedwongen - -- Oracle+force error Oracle + force fout - -- oracle cascade constraints orakel cascade beperkingen - -- drop cascade oracle drop cascade orakel - -- drop TABLE error ORACLE Drop Table fout ORACLE - -- drop all constraints from a table in oracle drop alle beperkingen uit een tabel in oracle - -- drop stmt in oracle drop stmt in oracle - -- drop table table_name cascade constraints drop tabel table_name cascade beperkingen - -- drop table ORA-02449 drop tabel ORA-02449 - -- how to drop a table in oracle with foreign key hoe u een tabel in oracle met foreign key - -- oracle drop table foreign keys orakel drop tabel foreign keys - -- ORA-02449 cascade ORA-02449 cascade - --