ORA-02449 Oracle Drop Table Error ORA-02449 Oracle caída cuadro de error
Sometimes when dropping a table in Oracle database by executing DROP TABLE SQL statement, Oracle may return the error ORA-02449 as below: A veces, cuando cayendo una tabla en base de datos Oracle de ejecución DROP TABLE sentencia SQL, Oracle puede devolver el error ORA-02449, como a continuación:
ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: singular / claves primarias en el cuadro de referencia de claves foráneas
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 El error está causado por el intento de descenso con una tabla única o la principal referencia de teclas claves foráneas en otra tabla, o en otras palabras, el cuadro que se cita como uno de los padres por un cuadro de clave foránea en una relación padre-hijo que se establece entre dos cuadros a través de una clave foránea. 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 no permite eliminar tablas de referencia de claves foráneas de otras tablas sin especificar la opción CASCADE LIMITACIONES en el DROP TABLE, o desistir del padre mesa sin antes eliminar la clave foránea.
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. La solución y la solución para el error cuando se quiere eliminar tablas de referencia de los cuadros de niños, es usar la opción CASCADE LIMITACIONES en el DROP TABLE. For example: Por ejemplo:
DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE table_name CASCADE LIMITACIONES;
The CASCADE CONSTRAINTS option in the DROP TABLE SQL statement will drop the FOREIGN KEY constraints of the child tables referenced. La opción CASCADE LIMITACIONES en el DROP TABLE sentencia SQL disminuirá las restricciones de claves foráneas del niño tablas de referencia.
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. Si lo prefieres, puedes soltar manualmente y eliminar la clave foránea principales limitaciones en los demás cuadros antes de llevar a cabo las operaciones DROP TABLE en la tabla padre, la caída de claves foráneas a otras tablas. To check what constraints are referencing a table in Oracle, use the following command: Para comprobar cuáles son las limitaciones de referencias a una tabla en Oracle, utilice el siguiente 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 y eliminar las limitaciones a los usuarios de Oracle utiliza el siguiente comando en SQL * Plus, Toad o SQL otras herramientas:
ALTER TABLE table_name DROP CONSTRAINT constraint_name ; ALTER TABLE table_name DROP CONSTRAINT constraint_name;
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Se trata de una máquina que traduzca la página se proporciona "tal cual" sin garantía. Machine translation may be difficult to understand. La traducción automática puede resultar difícil de entender. Please refer to Por favor, consulte original English article artículo original Inglés whenever possible. siempre que sea posible.
Share and contribute or get technical support and help at Compartir y contribuir o recibir apoyo técnico y ayudar a My Digital Life Forums Mi vida digital Foros .
Related Articles Artículos relacionados
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 tabla o vista no existe error de Oracle
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Crear, Añadir o base de datos Oracle Split partición falla con ORA-14080 Error
- Oracle Database Import Error 3113/3114 Bases de datos Oracle error de importación 3113/3114
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 crear o añadir nuevas particiones no error
- ORA-01502 Oracle Index in Unusable State ORA-01502 Índice de Oracle en inutilizables Estado
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 no basta con los valores de error
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error Oracle ORA-01658 No es posible crear INICIAL La medida para el segmento de tablas de error
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Temporales de tablas está vacía Error en Oracle
- Manual and Clean Uninstall Oracle for Windows Manual y limpio de desinstalación de Oracle para Windows
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 de error cuando la exportación de bases de datos

































February 8th, 2007 18:51 8 de febrero de 2007 18:51
what if after dropping the table using the query blow you want again all those constraints. ¿y si después de dejar caer la tabla mediante la consulta que quiere volar de nuevo a todos estas limitaciones.
DROP TABLE table_name CASCADE CONSTRAINTS; DROP TABLE table_name CASCADE LIMITACIONES;
please tell the query if u knows. , por favor, decirme si la consulta u sabe.
July 3rd, 2008 06:30 3 de Julio, 2008 06:30
Constrangimentos? Orra, meu revisa essa tradução aí e testa antes de postar!!! Orra, revisa meu 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 vínculo de Onde pegou!
July 24th, 2008 13:21 24 de Julio, 2008 13:21
Great! Gran! The information provided is very helpful. La información proporcionada es muy útil. It seems to be simple but really halps an lot. Parece ser simple pero realmente halps un lote. Thanks again. Gracias de nuevo.