ORA-02449 Oracle Drop Table Error ORA-02449 Oracle drop table error
Sometimes when dropping a table in Oracle database by executing DROP TABLE SQL statement, Oracle may return the error ORA-02449 as below: Včasih, ko spustite tabelo v zbirko podatkov Oracle DROP TABLE, ki jih izvršitvena izjavo SQL, Oracle se lahko vrne na napako ORA-02449 kakor je prikazano spodaj:
ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: edinstveno / primarni ključi v tabeli se sklicujejo na tuje ključ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. Vedeževalka je napaka, ki jo povzroča poskus, da bi se spustite tabelo z edinstvenimi ali primarni ključi, ki jih referenčni tuji ključi v drugi tabeli, ali v drugih besedah, tabele, ki je naveden kot matično tabeli, ki jo izda tuje ključnih omejitev pri razmerja roditelj-otrok da je sedež dveh med tabelami s pomočjo tujega ključa. 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 ne omogoča, da se spusti tabel, ki jih navaja tuje ključe drugih mize brez določitve CASCADE omejitev možnosti v DROP TABLE izjavo, ali kapljico nadrejeno tabelo brez prvega odstranjevanje tujih tipko.
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. Rešitev in rešitev za napako, kadar hočeš, da padec tabelah so navedene v tabelah otroka, je, da se uporabi omejitev CASCADE možnost v DROP TABLE izjavo. For example: Na primer:
DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE table_name CASCADE omejitev;
The CASCADE CONSTRAINTS option in the DROP TABLE SQL statement will drop the FOREIGN KEY constraints of the child tables referenced. CASCADE je omejitev možnosti v DROP TABLE SQL izjavo bo opustila FOREIGN KEY omejitve za otroka tabelah navedeni.
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. Lahko pa tudi ročno padci in odstranite ključne omejitve tujega ključa v drugih tabelah pred izvedbo operacije drop table na nadrejeno tabelo, spustite tipko tujih omejitve v drugih tabelah. To check what constraints are referencing a table in Oracle, use the following command: Če želite preveriti, kaj so ovire navajanje tabele v Oracle, se uporabi naslednji ukaz:
SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = “ table_name “; SELECT * FROM USER_CONSTRAINTS KJE 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: Če ľelite izločiti in izbrisati uporabnika omejitve v Oracle uporabite naslednji ukaz v SQL * Plus, Toad ali drugih SQL orodja:
ALTER TABLE table_name DROP CONSTRAINT constraint_name ; Alter TABELA table_name drop constraint_name omejitev;
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. POMEMBNO: To je stroj prevede stran, ki je ponujena "kot je" brez garancije. Machine translation may be difficult to understand. Strojno prevajanje je lahko težko razumljiva. Please refer to Prosimo, glejte original English article Originalno angleško članek whenever possible. kadar je to mogoče.
Share and contribute or get technical support and help at Deliti in prispevati ali dobiti tehnično podporo in pomoč pri My Digital Life Forums Moje digitalno življenje Forumi .
Related Articles Sorodni članki
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 tabelo ali pogled ne obstaja Oracle error
- Delete, Remove or Drop Oracle Stored Packages with Drop Package Zbriąi, odstraniti ali padec Oracle shranjene pakete s preklopnimi paket
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Kako se odstrani in spusti Datafiles iz Tablespace v Oracle Database
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Kako kapljico Tablespace in izterjavo Oracle Database, ko bi pomotoma zbrisali Datafile
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Preprosto Podvoji, kopirajte ali varnostno kopiranje tabel v Oracle, PostgreSQL, SQLite in DB2 s Ustvarite Tabela Kot 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 Ni dovolj vrednosti napaka
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 napako, ko izvozne baze podatkov
- Oracle Database Import Error 3113/3114 Oracle podatkovne baze uvozna error 3113/3114
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Začasni Tablespace je puhel Napaka v Oracle


























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. kaj če po spustite tabelo z uporabo poizvedbe razstrelili želite ponovno vse tistih omejitev.
DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE table_name CASCADE omejitev;
please tell the query if u knows. prosim povejte, če je v query ve.
July 3rd, 2008 06:30 3. julij 2008 06:30
Constrangimentos? Orra, meu revisa essa tradução aí e testa antes de postar!!! Orra, meu revisa Essa tradução e ai testa antes de postar! Se não seja honesto e indica o link de onde pegou!!! Se não seja honesto e indica o link de onde pegou!
July 24th, 2008 13:21 24. julij 2008 13:21
Great! Odličen! The information provided is very helpful. Predložene informacije je zelo koristen. It seems to be simple but really halps an lot. Zdi se, da bo preprosto, toda res halps je veliko. Thanks again. Hvala še enkrat.