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 .
Related Articles Artigos relacionados
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 Ver tabela ou não existe erro Oracle
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Criar, Adicionar ou Split Oracle Database Partição falhe com Erro ORA-14080
- Oracle Database Import Error 3113/3114 Banco de dados Oracle importação erro 3113/3114
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 criar ou adicionar novas partições falhar erro
- ORA-01502 Oracle Index in Unusable State ORA-01502 Oracle Índice inutilizáveis no Estado
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 não basta valores erro
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error Oracle ORA-01658 Não foi possível criar INICIAL Extensão para o segmento no tablespace Erro
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Temporária tablespace está vazio Erro em Oracle
- Manual and Clean Uninstall Oracle for Windows Manual limpo e desinstalação Oracle para Windows
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 erro ao exportar Database













February 8th, 2007 18:51 8 de fevereiro de 2007 18:51
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.
July 3rd, 2008 06:30 3 de julho de 2008 06:30
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!
July 24th, 2008 13:21 24 de julho de 2008 13:21
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.