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 .



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

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

    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ß.

  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 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!

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

    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.

Leave a Reply Lassen Sie eine Antwort

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> Sie können diese Tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Abonnieren ohne zu kommentieren


Custom Search

New Articles Neue Artikel

Incoming Search Terms for the Article Eingehende Suche Nutzungsbedingungen für die Artikel

ORA-02449 ORA-02449 - -- 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 - -- oracle drop table Oracle drop table - -- 02449 02449 - -- drop constraint oracle DROP CONSTRAINT Oracle - -- ora 02449 ora 02449 - -- drop package cascade+ oracle Drop-Paket Kaskade + Oracle - -- oracle drop cascade Oracle Drop-Kaskade - -- oracle drop constraint Oracle DROP CONSTRAINT - -- oracle drop Oracle Drop - -- drop table with foreign key constraints in oracle Drop-Tabelle mit Fremdschlüssel-Constraints in Oracle - -- drop table cascade drop table Kaskade - -- oracle delete cascade constraint Oracle DELETE CASCADE-Bedingung - -- DROP TABLE CASCADE CONSTRAINTS DROP TABLE CASCADE Zwänge - -- oracle drop table cascade Oracle drop table Kaskade - -- drop table oracle drop table oracle - -- force drop table Kraft drop table - -- all alle - -- db2 drop parent table lost foreign key child table db2 Drop übergeordneten Tabelle verloren Fremdschlüssel Kind-Tabelle - -- deleting referenced keys in a table oracle Löschen von referenzierten Schlüssel in einer Tabelle Oracle - -- DROP TABLE + ORACLE DROP TABLE + ORACLE - -- foreign key oracle delete Oracle Fremdschlüssel löschen - -- how to find the dropped table in oracle So finden Sie sank die Tabelle in Oracle - -- how to drop table in oracle , wie es Tabelle in Oracle - -- oracle drop tables Oracle Drop-Tabellen - -- oracle drop table error Oracle Drop Tabelle Fehler - -- oracle "delete table" cascade Oracle "Tabelle löschen" Kaskade - -- create table on delete cascade oracle CREATE TABLE auf DELETE CASCADE-Orakel - -- drop table force constrain oracle drop table Kraft Begrenzung Oracle - -- drop table cascade constraint DROP TABLE-CONSTRAINT-Kaskade - -- DROP ORACLE DROP ORACLE - -- drop table referenced by other table in oracle Drop-Tabelle, auf die andere Tabelle in Oracle - -- drop all tables oracle Drop alle Tabellen Oracle - -- dropping two constraints +oracle dropping zwei Zwänge + Oracle - -- Drop table unique key in oracle DROP TABLE eindeutigen Schlüssel in Oracle - -- how to fine which ORA ERROR ARE CAUSED BY WHICH USER IN ORACLE wie man Geldbuße, die ERROR ORA VERURSACHT WERDEN DURCH DIE USER IN ORACLE - -- how to drop a table regardless of foreign keys oracle , wie es eine Tabelle, unabhängig von Fremdschlüssel Oracle - -- oracle drop all user constraints Oracle Drop alle Benutzer Zwänge - -- oracle drop constraint force Oracle DROP CONSTRAINT Kraft - -- Oracle force drop table Oracle Kraft drop table - -- oracle:drop table cascade Oracle: drop table Kaskade - -- WHAT DROP TABLE CASCADE CONSTRAINTS WILL DO; Was DROP TABLE CASCADE Zwänge wird; - -- delete constraint oracle force löschen Constraint Oracle Kraft - -- delete tables with cascade option löschen Sie Tabellen mit CASCADE-Option - -- drop force constraint Drop-Kraft-Bedingung - -- DROP TABLE foreign key disable oracle DROP TABLE Fremdschlüssel deaktivieren Oracle - -- drop all constraint oracle Drop alle Constraint-Orakel - -- get refernced table in oracle Sie refernced Tabelle in Oracle - -- oracle: how to drop table with foreign key Oracle: Wie fallen zu lassen Tabelle mit Fremdschlüssel - -- oracle "drop all tables" Oracle "Drop alle Tabellen" - --