ORA-02449 Oracle Drop Table Error ORA-02449 Oracle gota tabela erro

Sometimes when dropping a table in Oracle database by executing DROP TABLE SQL statement, Oracle may return the error ORA-02449 as below: Às vezes, ao inserir uma tabela no banco de dados Oracle em DROP TABLE executando SQL, Oracle pode retornar o erro ORA-02449 conforme abaixo:

ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: única / chaves primárias na tabela referenciada pela chaves estrangeiras

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. A Oracle erro é causado pela tentativa de remover uma tabela com as chaves primária ou única referenciada por chaves estrangeiras em outra mesa, ou, por outras palavras, a tabela que é referenciada como uma mãe com um quadro chave estrangeira em uma relação pai-filho que estabeleceu entre os dois quadros através de uma chave estrangeira. 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 não permite que a queda tabelas referenciadas por chaves estrangeiras de outras tabelas, sem especificar o CASCADE CONDICIONALISMOS opção no DROP TABLE declaração, ou a queda da mãe tabela sem primeiro remover a chave estrangeira.

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. A solução ea forma de contornar o erro quando você quer soltar tabelas referenciadas por criança tabelas, é a utilização do CASCADE CONDICIONALISMOS opção no DROP TABLE declaração. For example: Por exemplo:

DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE table_name CASCADE constrangimentos;

The CASCADE CONSTRAINTS option in the DROP TABLE SQL statement will drop the FOREIGN KEY constraints of the child tables referenced. O CASCADE CONDICIONALISMOS opção no comando SQL DROP TABLE irá soltar a chave estrangeira limitações da criança tabelas referenciadas.

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. Alternativamente, você pode soltar e remover manualmente os principais constrangimentos chave estrangeira em outras tabelas antes de efetuar as operações sobre o DROP TABLE tabela pai, gota a chave estrangeira restrições em outros quadros. To check what constraints are referencing a table in Oracle, use the following command: Para verificar quais são as restrições referenciando uma tabela em Oracle, use o seguinte comando:

SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = “ table_name “; SELECT * FROM USER_CONSTRAINTS WHERE 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: Para soltar e apagar o usuário constrangimentos em Oracle usar o seguinte comando no SQL * Plus, Toad ou outras ferramentas SQL:

ALTER TABLE table_name DROP CONSTRAINT constraint_name ; ALTER TABLE table_name DROP SOBRE constraint_name;

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma página traduzida máquina que é fornecida "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de compreender. Please refer to Por favor, consulte a original English article Inglês original article whenever possible. sempre que possível.

Share and contribute or get technical support and help at Compartilhe e contribuir ou obter suporte técnico e ajudar a My Digital Life Forums Minha vida digital Fóruns .



3 Responses to “ORA-02449 Oracle Drop Table Error” 3 As respostas ao "ORA-02449 Oracle Drop Tabela Error"

  1. vipin
    February 8th, 2007 18:51 8 de fevereiro de 2007 18:51
    1

    what if after dropping the table using the query blow you want again all those constraints. após o que se soltando a tabela usando o termo que deseja soprar novamente todos esses condicionalismos.

    DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE table_name CASCADE constrangimentos;

    please tell the query if u knows. informe a consulta se sabe u.

  2. f
    July 3rd, 2008 06:30 3 de julho de 2008 06:30
    2

    Constrangimentos? Orra, meu revisa essa tradução aí e testa antes de postar!!! Orra, meu revisa essa tradução aí 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 link de onde pegou!

  3. sangam
    July 24th, 2008 13:21 24 de julho de 2008 13:21
    3

    Great! Ótimo! The information provided is very helpful. A informação disponível é muito útil. It seems to be simple but really halps an lot. Parece ser simples, mas realmente halps um lote. Thanks again. Obrigado novamente.

Leave a Reply Deixe uma resposta

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> Você pode usar estas tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Subscreva sem comentar


Custom Search

New Articles Novos Artigos

Incoming Search Terms for the Article Incoming Termos de pesquisa para o artigo

ORA-02449 ORA-02449 - -- ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: única / chaves primárias na tabela referenciada pela chaves estrangeiras - -- oracle drop table Oracle gota tabela - -- drop table oracle gota tabela Oracle - -- drop table cascade constraints gota tabela cascata constrangimentos - -- oracle drop statement Oracle gota declaração - -- ORA-02449: ORA-02449: - -- oracle drop Oracle gota - -- ora 02449 Ora 02449 - -- oracle delete table Oracle apagar tabela - -- oracle ORA-02449 Oracle ORA-02449 - -- oracle drop table cascade Oracle gota tabela cascata - -- all todos - -- drop table cascade constraints oracle gota tabela cascata constrangimentos Oracle - -- oracle drop all tables Oracle soltar todos os quadros - -- ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: única / chaves primárias na tabela referenciada pela chaves estrangeiras - -- drop table in oracle gota tabela em Oracle - -- oracle drop table force Oracle gota tabela vigor - -- drop table toad gota tabela toad - -- cascade constraints in oracle Cascade constrangimentos em Oracle - -- delete cascade Oracle apagar cascata Oracle - -- oracle delete cascade constraint Oracle apagar cascata constrangimento - -- error DROP TABLE Erro DROP TABLE - -- oracle delete from cascade constraints Oracle excluir da cascata constrangimentos - -- ORA-02449 + oracle ORA-02449 + Oracle - -- drop table cascade oracle gota tabela cascata Oracle - -- ORA-02449: unique/primary keys in table referenced by foreign key ORA-02449: única / chaves primárias na tabela referenciada pela chave estrangeira - -- oracle cascade constraints Oracle cascata constrangimentos - -- oracle drop tables Oracle gota quadros - -- SQL Error: ORA-02449: unique/primary keys in table referenced by foreign keys SQL Erro: ORA-02449: única / chaves primárias na tabela referenciada pela chaves estrangeiras - -- 02449 02449 - -- delete table entry Oracle apagar tabela entrada Oracle - -- oracle drop all table ora-02449 oracle soltar todos quadro ora-02449 - -- ORA-02449: ORA-02449: - -- oracle drop table cascade constraints Oracle gota tabela cascata constrangimentos - -- removing CONSTRAINT IN ORACLE removendo constrangimento em ORACLE - -- oracle drop table with foreign keys oracle gota tabela com chaves estrangeiras - -- oracle exp drop Oracle exp gota - -- drop table and constraints gota mesa e constrangimentos - -- drop table cascade + Ora Ora gota tabela cascata + - -- drop table with foreign keys in Oracle gota tabela com chaves estrangeiras em Oracle - -- drop table ORA-02449 gota quadro ORA-02449 - -- ora-02449 drop table Ora-02449 gota tabela - -- oracle drop index before drop table oracle gota Índice tabela antes de cair - -- delete oracle cascade Oracle apagar cascata - -- ORACLE DROP ERROR ORACLE gota erro - -- Oracle drop table error Oracle gota tabela erro - -- oracle drop table options Oracle gota tabela opções - -- oracle delete from cascade Oracle excluir da cascata - -- removing unique key constraint in oracle removendo-chave único constrangimento em oracle - --