ORA-02449 Oracle Drop Table Error ORA-02449 Wyrocznia Spadać Stół Błąd

Sometimes when dropping a table in Oracle database by executing DROP TABLE SQL statement, Oracle may return the error ORA-02449 as below: Czasami, gdy wyrzuca w tabeli bazy danych Oracle wykonując DROP TABLE SQL, Oracle może zwrócić błąd ORA-02449, tak jak poniżej:

ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: unikalny / kluczy podstawowych w tabeli, o której mowa zagranicznych klucze

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 błąd jest spowodowany próbą spadek tabeli z unikalnymi lub kluczy podstawowych do których odwołują się klucze zagranicznych w innym stole, lub innymi słowy, że tabela jest wymieniony jako rodzic tabeli przez klucz obcy ograniczeń w relacji rodzic-dziecko że między dwie tabele poprzez klucz obcy. 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 nie pozwalają na spadek tabele do których odwołują się klucze zagranicznych innych tabel bez określenia KASKADA OGRANICZEń opcję w DROP TABLE, lub odrzucić dominującej tabeli bez wyjmowania klucz obcy.

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. Rozwiązanie i obejście błędu jeśli chcesz spadek tabele referenced by dziecko tabel jest użycie opcji CASCADE OGRANICZEń w DROP TABLE oświadczenie. For example: Na przykład:

DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE TABLE_NAME KASKADA OGRANICZEń;

The CASCADE CONSTRAINTS option in the DROP TABLE SQL statement will drop the FOREIGN KEY constraints of the child tables referenced. W KASKADA OGRANICZEń opcję w DROP TABLE SQL spadnie do FOREIGN KEY ograniczenia dziecka tabele odwołuje.

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. Można ręcznie spadku i usunąć klucz obcy kluczowych ograniczeń w innych tabel przed wykonywania operacji na DROP TABLE dominującej tabeli, spadek zagranicznego kluczowych ograniczeń w innych tabelach. To check what constraints are referencing a table in Oracle, use the following command: Aby sprawdzić, jakie są ograniczenia określania tabeli w Oracle, należy użyć następującego polecenia:

SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = “ table_name “; SELECT * FROM USER_CONSTRAINTS GDZIE 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: Aby usunąć i spadku użytkownik ograniczeń Oracle użyć następującego polecenia w programie SQL * Plus, Toad SQL lub innych narzędzi:

ALTER TABLE table_name DROP CONSTRAINT constraint_name ; ALTER TABLE TABLE_NAME DROP Constraint constraint_name;

IMPORTANT : The page is machine translated and provided "as is" without warranty. UWAGA: Strona jest maszyna przetłumaczony i dostarczane "tak jak są" bez gwarancji. Machine translation may be difficult to understand. Tłumaczenie maszynowe może być trudne do zrozumienia. Please refer to Proszę odnieść się do original English article oryginalny angielski artykułu whenever possible. ilekroć jest to możliwe.


4 Responses to “ORA-02449 Oracle Drop Table Error” 4 Odzewy wobec "ORA-02449 Wyrocznia Spadać Stół Błąd"

  1. Michael Komisarenko Michael Komisarenko
    April 7th, 2009 18:56 7 kwietnia 2009 18:56
    4 4

    If you need to recreate a table you do not have to drop constraints. Jeśli musisz ponownie tabeli nie masz spadek ograniczeń. As an alternative you can disable constraints and then enable them back again. Jako alternatywę można wyłączyć ograniczenia, a następnie włączyć je ponownie.
    The correct select statement to see which foreign keys reference the primary key of the parent table is as follows: Prawidłowe wybierz oświadczenia, aby sprawdzić, które klawisze zagranicznych odniesienia klucz podstawowy jednostki dominującej tabela przedstawia się następująco:

    SELECT TABLE_NAME, CONSTRAINT_NAME SELECT TABLE_NAME, CONSTRAINT_NAME
    FROM USER_CONSTRAINTS Z USER_CONSTRAINTS
    WHERE CONSTRAINT_TYPE = 'R' GDZIE CONSTRAINT_TYPE = "R"
    AND R_CONSTRAINT_NAME = parent_table_primary_key; I R_CONSTRAINT_NAME = parent_table_primary_key;

    You can use EXECUTE IMMEDIATE to disable constraints without necessarily dropping them. Możesz użyć EXECUTE IMMEDIATE wyłączyć ograniczenia, bez konieczności opuszczania ich.

  2. sangam sangam
    July 24th, 2008 13:21 24 lipca 2008 13:21
    3 3

    Great! Świetny! The information provided is very helpful. Przedstawione informacje są bardzo pomocne. It seems to be simple but really halps an lot. Wydaje się proste, ale naprawdę halps jedna partia. Thanks again. Jeszcze raz dziękujemy.

  3. f f
    July 3rd, 2008 06:30 3 lipca 2008 06:30
    2 2

    Constrangimentos? Constrangimentos? Orra, meu revisa essa tradução aí e testa antes de postar!!! Orra, meu revisa essa tradução aí e TESTA antes de zamieścić! Se não seja honesto e indica o link de onde pegou!!! Se não seja honesto e indica o związek de onde pegou!

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

    what if after dropping the table using the query blow you want again all those constraints. Co zrobić, jeśli po upuszczeniu tabeli za pomocą zapytań cios chcesz ponownie wszystkich tych ograniczeń.

    DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE TABLE_NAME KASKADA OGRANICZEń;

    please tell the query if u knows. należy powiadomić zapytanie u wie.

Leave a Reply Zostawiać pewien Odpowiadać

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> Możesz używać tych tagów: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Subskrybuj do uwag funkcja została wyłączona. To receive notification of latest comments posted, subscribe to Aby otrzymywać powiadomienia o najnowszych komentarzy wysłana, aby subskrybować My Digital Life Comments RSS feed Mój Cyfrowy Życie Komentarze RSS or lub register to receive zarejestruj się do otrzymywania new comments in daily email digest. nowych uwag w codziennej email digest.
Custom Search

New Articles Nowe artykuły

Incoming Search Terms for the Article Przychodzące wyszukiwanych haseł do artykułu

ora-02449 Ora-02449 - -- ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: unikalny / kluczy podstawowych w tabeli, o której mowa zagranicznych klucze - -- oracle drop table force Oracle spadek tabeli życie - -- ORA-02449 drop table ORA-02449 spadku tabeli - -- oracle drop table Oracle spadek tabeli - -- oracle force drop table Oracle życie spadek tabeli - -- ora 02449 ora 02449 - -- drop table oracle spadek tabeli Oracle - -- ora-02449 unique primary keys in table referenced by foreign keys Ora-02449 unikalnych kluczy podstawowych w tabeli, o której mowa zagranicznych klucze - -- DROP TABLE FORCE ORACLE DROP TABLE życie ORACLE - -- ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: unikalny / kluczy podstawowych w tabeli, o której mowa zagranicznych klucze - -- ORA-02449: ORA-02449: - -- drop table ora-02449 spadek tabeli ora-02449 - -- oracle drop Oracle kropla - -- drop table cascade spadek tabeli kaskadowy - -- oracle ora-02449 Oracle ora-02449 - -- oracle delete cascade Oracle usunąć kaskadowy - -- drop table with cascade option spadek tabeli z kaskady opcji - -- oracle drop constraint Oracle ograniczenie spadku - -- force drop table życie spadek tabeli - -- oracle drop table cascade Oracle spadek tabeli kaskadowy - -- oracle delete cascade constraint Oracle usunąć kaskady ograniczeń - -- oracle cascade constraints Oracle kaskady ograniczeń - -- oracle drop constraint cascade Oracle ograniczenie spadku kaskadowego - -- force drop table oracle życie spadek tabeli Oracle - -- 02449 02449 - -- oracle drop table ora-02449 Oracle spadek tabeli ora-02449 - -- drop constraint oracle ograniczenie spadku Oracle - -- oracle drop table error Oracle spadek tabeli błędów - -- ORACLE DELETE STATEMENT ORACLE USUŃ REGULACJI - -- cascade constraint in oracle kaskady ograniczeń w sanktuarium - -- drop cascade oracle spadek kaskady Oracle - -- drop table cascade oracle spadek tabeli kaskady Oracle - -- ORA-02449 oracle ORA-02449 Wyrocznia - -- oracle drop table options Oracle spadek tabeli opcji - -- oracle drop table Oracle spadek tabeli - -- force drop oracle życie spadek Oracle - -- "ORA-02449: unique/primary keys in table referenced by foreign keys" "ORA-02449: unikalny / kluczy podstawowych w tabeli, o której mowa zagranicznych klucze" - -- drop statement in oracle spadek oświadczenie w sanktuarium - -- oracle drop statement Oracle spadek oświadczenie - -- CASCADE CONSTRAINTS in oracle KASKADA OGRANICZEń w sanktuarium - -- drop table error spadek tabeli błędów - -- oracle drop tables foreign keys Oracle spadek tabele kluczy obcych - -- cascade option in oracle kaskady opcję Oracle - -- how to drop tables with key constraints in oracle jak kropla tabele z najważniejszymi ograniczeniami w sanktuarium - -- Oracle ignore drop error Oracle zignorować spadek błąd - -- ORA-02449 ORA-02449 - -- all wszyscy - -- DROP TABLE TOAD DROP TABLE TOAD - -- drop table force spadek tabeli życie - --