ORA-02449 Oracle Drop Table Error库存- 02449甲骨文下拉表错误

Sometimes when dropping a table in Oracle database by executing DROP TABLE SQL statement, Oracle may return the error ORA-02449 as below:有时,当下降的一个表中Oracle数据库的执行下拉表的SQL语句,甲骨文可能会返回错误库存- 02449如下:

ORA-02449: unique/primary keys in table referenced by foreign keys库存- 02449 :独特/主键在表中所引用的外键

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 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.甲骨文公司是不容许下降表所引用的外键的其他表没有具体的限制,级联选项,在下拉表的声明,或下降父表没有先删除外键。

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.该解决方案和可行的错误时,您要下拉表所引用的儿童表,是使用级联的限制,选择在下拉表的声明。 For example:例如:

DROP TABLE table_name CASCADE CONSTRAINTS;下拉表table_name级联的限制;

The CASCADE CONSTRAINTS option in the DROP TABLE SQL statement will drop the FOREIGN KEY constraints of the child tables referenced.级联的限制,选择在下拉表的SQL语句将下降外交的主要制约因素的儿童表引用。

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.另外,您也可以手动下降,并删除外键的主要制约因素,在其他表前表演的下拉表操作对父表,下拉外国的主要制约因素,在其他表。 To check what constraints are referencing a table in Oracle, use the following command:要检查什么限制,是参照表在Oracle中,使用下列命令:

SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = “ table_name “;选择*从user_constraints那里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:下降,并删除用户的限制,在Oracle使用下列命令在SQL *加,蟾蜍或其他SQL Server工具:

ALTER TABLE table_name DROP CONSTRAINT constraint_name ;改变表table_name下拉约束constraint_name ;

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article原来的英语文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 .



3 Responses to “ORA-02449 Oracle Drop Table Error” 3回应“库存- 02449甲骨文下拉表错误”

  1. vipin
    February 8th, 2007 18:51 2007年2月8日18时51分
    1

    what if after dropping the table using the query blow you want again all those constraints.什么后,如果去掉表使用查询的打击,你想再次所有这些制约因素。

    DROP TABLE table_name CASCADE CONSTRAINTS;下拉表table_name级联的限制;

    please tell the query if u knows.请告诉查询,如果u知悉。

  2. f
    July 3rd, 2008 06:30 2008年7月3日06:30
    2

    Constrangimentos? constrangimentos ? Orra, meu revisa essa tradução aí e testa antes de postar!!! orra ,分享revisa埃萨tradução aí e种安德斯德postar ! Se não seja honesto e indica o link de onde pegou!!!本身不含税seja honesto e籼o连结德购买方法珀古!

  3. sangam
    July 24th, 2008 13:21 2008年7月24日13时21分
    3

    Great!伟大的! The information provided is very helpful.所提供的资料是非常有帮助。 It seems to be simple but really halps an lot.它似乎是简单,但真的halps一很多。 Thanks again.再次感谢。

Leave a Reply离开的答复

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> 您可以使用这些标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <删除日期时间= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅无评论


Custom Search

New Articles新的条款,

Incoming Search Terms for the Article传入的搜索条件文章

ORA-02449 库存- 02449 - - ORA-02449: unique/primary keys in table referenced by foreign keys 库存- 02449 :独特/主键在表中所引用的外键 - - oracle drop table 甲骨文下拉表 - - drop table oracle 下拉表甲骨文 - - drop table cascade constraints 下拉表级联的限制 - - oracle drop statement 甲骨文下降声明 - - ORA-02449: 库存- 02449 : - - ora 02449 库存02449 - - oracle delete table 甲骨文删除表 - - oracle drop 甲骨文下降 - - oracle ORA-02449 甲骨文库存- 02449 - - ORA-02449: unique/primary keys in table referenced by foreign keys 库存- 02449 :独特/主键在表中所引用的外键 - - oracle drop table cascade 甲骨文下拉表级联 - - all 全部 - - drop table in oracle 下拉表在Oracle - - drop table cascade constraints oracle 下拉表级联的限制,甲骨文 - - oracle drop all tables 甲骨文下降,所有表格 - - oracle drop table force 甲骨文下拉表武力 - - drop table toad 下拉表蟾蜍 - - cascade constraints in oracle 级联的限制,在Oracle - - delete cascade Oracle 删除级联甲骨文 - - oracle delete cascade constraint 甲骨文删除级联约束 - - error DROP TABLE 错误的下拉表 - - oracle delete from cascade constraints 甲骨文删除从级联的限制 - - ORA-02449 + oracle 库存- 02449 +甲骨文 - - drop table cascade oracle 下拉表级联甲骨文 - - ORA-02449: unique/primary keys in table referenced by foreign key 库存- 02449 :独特/主键在表中所引用的外键 - - drop table + oracle 下拉表+甲骨文 - - oracle cascade constraints 甲骨文级联的限制 - - oracle drop tables 甲骨文下拉表 - - SQL Error: ORA-02449: unique/primary keys in table referenced by foreign keys SQL错误:库存- 02449 :独特/主键在表中所引用的外键 - - 02449 02449 - - delete table entry Oracle 删除表项,甲骨文 - - oracle drop all table ora-02449 甲骨文丢弃所有的表库存- 02449 - - ORA-02449: 库存- 02449 : - - oracle drop table cascade constraints 甲骨文下拉表级联的限制 - - removing CONSTRAINT IN ORACLE 消除制约因素在Oracle - - oracle drop table with foreign keys 甲骨文下拉表的外键 - - oracle exp drop 甲骨文进出口下降 - - drop table and constraints 下拉表和制约因素 - - drop table cascade + Ora 下拉表级联+ + - - drop table with foreign keys in Oracle 下拉表与外键在Oracle - - drop table ORA-02449 下拉表库存- 02449 - - ora-02449 drop table 库存- 02449下拉表 - - Drop table in Oracle 下拉表在Oracle - - oracle drop index before drop table 甲骨文下降,指数下降,前表 - - delete oracle cascade 删除甲骨文级联 - - ORACLE DROP ERROR 甲骨文下降错误 - - Oracle drop table error 甲骨文下拉表错误 - - oracle drop table options 甲骨文下拉表选项 - -