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 .
Related Articles Gerelateerde artikelen
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 tafel of View niet bestaat Oracle-fout
- Delete, Remove or Drop Oracle Stored Packages with Drop Package Verwijderen, verwijderen of Drop opgeslagen Oracle-pakketten met drop-pakket
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Hoe te verwijderen en Drop Datafiles uit tablespace in Oracle Database
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Hoe Drop tablespace en herstelmelding database als Oracle per ongeluk verwijderen datafile
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Gemakkelijk te dupliceren, kopiëren of Backup tabellen in Oracle, PostgreSQL, DB2 en SQLite met Create Tabel Zoals SQL
- IMP-00013 Oracle Import Error IMP-00013 Oracle Import Error
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 niet genoeg waarden fout
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 fout, toen de uitvoer database
- Oracle Database Import Error 3113/3114 Oracle database importeren fout 3113/3114
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 tijdelijke tablespace is leeg Fout in Oracle


























February 8th, 2007 18:51 8 februari, 2007 18:51
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.
July 3rd, 2008 06:30 3 juli, 2008 06:30
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!
July 24th, 2008 13:21 24 juli, 2008 13:21
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.