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 : - - oracle drop 甲骨文下降 - - ora 02449 庫存02449 - - oracle delete table 甲骨文刪除表 - - oracle ORA-02449 甲骨文庫存- 02449 - - oracle drop table cascade 甲骨文下拉表級聯 - - all 全部 - - drop table cascade constraints oracle 下拉表級聯限制甲骨文 - - oracle drop all tables 甲骨文下降,所有表格 - - ORA-02449: unique/primary keys in table referenced by foreign keys 庫存- 02449 :獨特/主鍵在表中所引用的外鍵 - - drop table in oracle 下拉表在Oracle - - 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 :獨特/主鍵在表中所引用的外鍵 - - 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下拉表 - - oracle drop index before drop table 甲骨文下降,指數下降,前表 - - delete oracle cascade 刪除甲骨文級聯 - - ORACLE DROP ERROR 甲骨文下降錯誤 - - Oracle drop table error 甲骨文下拉表錯誤 - - oracle drop table options 甲骨文下拉表選項 - - oracle delete from cascade 甲骨文刪除從級聯 - - removing unique key constraint in oracle 消除獨特的主要制約在Oracle - -