ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Tabelle Fehler
Sometimes when dropping a table in Oracle database by executing DROP TABLE SQL statement, Oracle may return the error ORA-02449 as below: Manchmal, wenn Drop eine Tabelle in der Oracle-Datenbank durch Ausführung von DROP TABLE-SQL-Anweisung, Oracle Mai Rückkehr der Fehler ORA-02449 unten ein:
ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: einzigartige / Primärschlüssel in der Tabelle, auf die von Fremdschlüsseln
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. Die Oracle-Fehler wird verursacht durch den Versuch, Drop eine Tabelle mit einzigartigen oder Primärschlüssel, auf die Fremdschlüssel in einer anderen Tabelle, oder in anderen Worten, die Tabelle, auf die verwiesen wird, wie ein Elternteil Tabelle durch einen Fremdschlüssel-Constraint in einer Eltern-Kind-Beziehung dass zwischen zwei Tabellen mit einem Fremdschlüssel. 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 ist es nicht möglich zu Drop-Tabellen, auf die von Fremdschlüsseln der anderen Tabellen ohne Angabe der CASCADE CONSTRAINTS Option in der DROP TABLE-Anweisung, oder, um die übergeordneten Tabelle, ohne zuvor die Beseitigung Fremdschlüsselspalte.
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. Die Lösung und Abhilfe für den Fehler, wenn Sie wollen Drop-Tabellen, auf die Kind-Tabellen, ist die Verwendung der CONSTRAINTS CASCADE-Option in der DROP TABLE-Anweisung. For example: Zum Beispiel:
DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE table_name CASCADE CONSTRAINTS;
The CASCADE CONSTRAINTS option in the DROP TABLE SQL statement will drop the FOREIGN KEY constraints of the child tables referenced. Die CONSTRAINTS CASCADE-Option in der DROP TABLE-SQL-Anweisung wird die Drop-Fremdschlüssel-Constraints des Kindes Tabellen referenziert werden.
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. Alternativ können Sie auch manuell Drop und entfernen Sie die Fremdschlüssel-Constraints in anderen Tabellen vor der Ausführung der DROP TABLE-Operationen in der übergeordneten Tabelle, die Drop-Fremdschlüssel-Constraints in anderen Tabellen. To check what constraints are referencing a table in Oracle, use the following command: Um zu überprüfen, welche Zwänge sind Referenzierung einer Tabelle in Oracle, verwenden Sie den folgenden Befehl ein:
SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = “ table_name “; SELECT * FROM WHERE USER_CONSTRAINTS 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: Fallen zu lassen und löschen Sie die Benutzer Zwänge in Oracle verwenden Sie den folgenden Befehl in SQL * Plus, Toad oder 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. WICHTIG: Dies ist eine Maschine übersetzt, die Seite wird "as is" ohne Garantie. Machine translation may be difficult to understand. Maschinelle Übersetzung Mai nur schwer zu verstehen. Please refer to Bitte wenden Sie sich an original English article Original Englisch Artikel whenever possible. wann immer dies möglich ist.
Share and contribute or get technical support and help at Aktie und einen Beitrag oder erhalten technische Unterstützung und Hilfe bei My Digital Life Forums My Digital Life Foren .
Related Articles Verwandte Artikel
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 Tabelle oder View nicht vorhanden ist Oracle-Fehler
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Erstellen, hinzufügen oder Split Oracle Database Partition schlägt fehl mit ORA-14080 Fehler
- Oracle Database Import Error 3113/3114 Oracle-Datenbank importieren Fehler 3113/3114
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 erstellen oder neue Partition schlägt fehl Fehler
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 Fehler beim Export Datenbank
- ORA-01502 Oracle Index in Unusable State ORA-01502 Oracle Index in Nicht staatliche
- Check Oracle Version Check Oracle-Version
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Leicht duplizieren, kopieren oder Backup Tabellen in Oracle, PostgreSQL, DB2 und SQLite mit Create Table Wie SQL
- Delete, Remove or Drop Oracle Stored Packages with Drop Package Löschen, entfernen oder Drop Oracle gespeichert Pakete mit Drop-Paket
- Manual and Clean Uninstall Oracle for Windows Handbuch und sauber deinstallieren Oracle für Windows

































February 8th, 2007 18:51 8. Februar 2007 18:51
what if after dropping the table using the query blow you want again all those constraints. Was passiert, wenn nach dem Ablegen der Tabelle mit der Abfrage Schlag Sie wollen wieder alle, die Zwänge.
DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE table_name CASCADE CONSTRAINTS;
please tell the query if u knows. Bitte sagen Sie die Abfrage, wenn u weiß.
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 tradução ai e testa antes de postar! Se não seja honesto e indica o link de onde pegou!!! Se Steuern nicht im Preis Sitzung honesto e indica o Link de onde pegou!
July 24th, 2008 13:21 24. Juli 2008 13:21
Great! Großartig! The information provided is very helpful. Die zur Verfügung gestellten Informationen ist sehr hilfreich. It seems to be simple but really halps an lot. Es scheint sich um einfache, aber wirklich halps ein Los. Thanks again. Nochmals vielen Dank.