ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop tabulce chyba
Sometimes when dropping a table in Oracle database by executing DROP TABLE SQL statement, Oracle may return the error ORA-02449 as below: Někdy, když odhazuji tabulky v databázi Oracle příkazem DROP TABULKA SQL, Oracle se může vrátit na chybu ORA-02449, jak je uvedeno níže:
ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: unique / primárního klíče v tabulce s odkazem na cizí klíče
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. Oracle chyba je způsobena tím, že pokus o kapku tabulku s unikátní nebo primární klíče s odkazem na cizí klíče v jiné tabulce nebo v jiné slovo, že tabulka je popsána jako mateřský tabulce cizího klíče omezení ve vztahu rodič-dítě že vytvořené mezi dvě tabulky pomocí cizího klíče. 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 neumožňuje, aby stáhly tabulky s odkazem na cizí klíče v jiných tabulkách, aniž by určoval, kaskády omezením možnosti v DROP TABULKA prohlášení, nebo upustit od mateřské stolu, aniž by nejprve odstraní cizí klíč.
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. Řešení a řešení pro chybu v případě, že chcete kapka tabulky s odkazem na dítě tabulek, je použití CASCADE omezením možnosti v DROP TABULKA prohlášení. For example: Například:
DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABULKA TABLE_NAME CASCADE omezení;
The CASCADE CONSTRAINTS option in the DROP TABLE SQL statement will drop the FOREIGN KEY constraints of the child tables referenced. Kaskády omezením možnosti v DROP TABULKA SQL bude přetahovat cizí klíč omezení dítěte odkazované tabulky.
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. Případně můžete ručně odstranit kapky a cizí klíč klíčových omezení v jiných tabulek před provedením DROP TABULKA operace na mateřské tabulka, pokles o omezení cizího klíče v jiných tabulkách. To check what constraints are referencing a table in Oracle, use the following command: Chcete-li zjistit, jaká omezení jsou odkazování na tabulky v Oracle, zadejte následující příkaz:
SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = “ table_name “; Select * from USER_CONSTRAINTS KDE 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: Chcete-li odpojit a mazat uživatele omezení v Oracle použijte následující příkaz v SQL * Plus, SQL Toad nebo jiné nástroje:
ALTER TABLE table_name DROP CONSTRAINT constraint_name ; ALTER TABLE DROP TABLE_NAME omezení constraint_name;
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. Upozornění: Tento stroj je přeložen stránku, která je poskytována "tak jak jsou", bez záruky. Machine translation may be difficult to understand. Strojový překlad může být obtížné porozumět. Please refer to Odkazujeme na original English article Anglický originál článku whenever possible. kdykoli je to možné.
Share and contribute or get technical support and help at Sdílení a přispět nebo získat technickou podporu a pomoc při My Digital Life Forums My Digital Life fóra .
Related Articles Související články
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 tabulku nebo pohled neexistuje Oracle chyba
- Delete, Remove or Drop Oracle Stored Packages with Drop Package Odstranit, odstranit nebo Drop Oracle skladováno balíčky s obalu Drop
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Jak odebrat a Drop Datafiles z TABLESPACE v Oracle Database
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Jak Drop TABLESPACE a obnovit databáze Oracle, když náhodou odstraňte Datafile
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Snadno duplikovat, kopírovat nebo záložní zdroje v prostředí Oracle, PostgreSQL, DB2 a SQLite s Vytvořte tabulku jako SQL
- IMP-00013 Oracle Import Error IMP-00013 Oracle Import Chyba
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 nestačí hodnoty Chyba
- Oracle EXP-00091 Error When Export Database Oracle exp-00091 chybu při export databáze
- Oracle Database Import Error 3113/3114 Oracle Database Import chyba 3113/3114
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Dočasný TABLESPACE je prázdný Chyba v Oracle


























February 8th, 2007 18:51 8. února 2007 18:51
what if after dropping the table using the query blow you want again all those constraints. Co dělat, když po shození tabulky pomocí dotazu ránu budete chtít znovu všechny ty překážky.
DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABULKA TABLE_NAME CASCADE omezení;
please tell the query if u knows. Prosím, řekněte dotaz, pokud u ví.
July 3rd, 2008 06:30 3. července 2008 06:30
Constrangimentos? Orra, meu revisa essa tradução aí e testa antes de postar!!! Orra, můj revisa ESSA tradução ai 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 odkazu de onde pegou!
July 24th, 2008 13:21 24. července 2008 13:21
Great! Velký! The information provided is very helpful. Poskytnuté informace jsou velmi užitečné. It seems to be simple but really halps an lot. Zdá se, že je jednoduchý, ale opravdu halps jeden los. Thanks again. Díky znovu.