ORA-02449 Oracle Drop Table Errorエラーが発生OracleのドロップテーブルのOra - 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ステートメントを実行し、オラクルのエラーが返されるのOra - 02449は以下の通りです:

ORA-02449: unique/primary keys in table referenced by foreign keysメールORA - 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のエラーが原因で発生するユニークな試みをドロップするテーブルに主キーまたは外部キーを別のテーブルによって参照されるか、または他の単語は、テーブルには親テーブルとして引用された外部キー制約の親子関係を設立外国人の間に2つのテーブルを介してキーを押します。 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.オラクルは許可されませんによって参照されるテーブルをドロップの他のテーブルの外部キー制約を指定してカスケードオプションを選択し、 DROP TABLEステートメントか、または親テーブルをドロップする外国人を最初に削除してキーを押します。

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.解決策と回避策は、エラーが発生する場合、子テーブルをドロップによって参照されるテーブルは、カスケードの制約を使用してオプションを選択し、 DROP TABLEステートメントです。 For example:例えば:

DROP TABLE table_name CASCADE CONSTRAINTS;ドロップテーブルのインデックスカスケード制約;

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:どのような制約をチェックするオラクルのテーブルを参照するには、次のコマンドを使用して:

SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = “ table_name “; * user_constraintsどこからインデックスを選択= " インデックス " ;

To drop and delete the user constraints in Oracle use the following command in SQL*Plus, Toad or other SQL tools:ユーザーの制約をドロップして削除するので次のコマンドを使用してOracleのSQL * Plusで、ヒキガエルまたは他のSQLツール:

ALTER TABLE table_name DROP CONSTRAINT constraint_name ; ALTER TABLEのインデックスドロップ制約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つの応答を"ドロップテーブルのOra - 02449 Oracleのエラーが発生"

  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;ドロップテーブルのインデックスカスケード制約;

    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!!!半端な、 revisa essa tradução aíメールテスタのmeuの前に投稿されました! Se não seja honesto e indica o link de onde pegou!!! seのnão sejaのhonestoメールインディカOリンクデ帯pegou !

  3. sangam上岩
    July 24th, 2008 13:21 2008年7月24日13:21
    3 4

    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= <blockquote cite=""> <cite> <acronymのtitle= <b>ダウンロードの<code> <デル日時= " " >の<em> <i>て<strike> <strong> <q cite="">

Subscribe without commenting登録なしのコメント


Custom Search

New Articles新しい記事

Incoming Search Terms for the Article検索用語を受信するには

ORA-02449 のOra - 02449 - - ORA-02449: unique/primary keys in table referenced by foreign keys メールORA - 02449 :固有/外国人によって参照されるテーブルの主キーのキー - - oracle drop table Oracleのドロップテーブル - - drop table oracle ドロップテーブルのオラクル - - drop table cascade constraints ドロップテーブルのカスケード制約 - - oracle drop statement Oracleのドロップステートメント - - ORA-02449: メールORA - 02449 : - - oracle drop オラクルドロップ - - ora 02449 メールORA 02449 - - oracle delete table Oracleのテーブルを削除する - - oracle drop table cascade Oracleのドロップテーブルのカスケード - - all すべての - - drop table cascade constraints oracle ドロップテーブルのカスケード制約オラクル - - oracle ORA-02449 オラクルのOra - 02449 - - oracle drop all tables すべてのテーブルのOracleドロップ - - ORA-02449: unique/primary keys in table referenced by foreign keys メールORA - 02449 :固有/外国人によって参照されるテーブルの主キーのキー - - drop table in oracle Oracleのテーブルにドロップ - - oracle drop table force Oracleのドロップテーブル力 - - drop table toad ドロップテーブルのヒキガエル - - cascade constraints in oracle オラクルの制約のカスケード - - delete cascade Oracle カスケード削除オラクル - - oracle delete cascade constraint Oracleの制約を削除カスケード - - error DROP TABLE エラーが発生ドロップテーブル - - oracle delete from cascade constraints Oracleのカスケードの制約から削除する - - ORA-02449 + oracle オラクルのOra - 02449 + - - drop table cascade oracle ドロップテーブルのカスケードオラクル - - ORA-02449: unique/primary keys in table referenced by foreign key メールORA - 02449 :固有/外国人によって参照されるテーブルの主キーのキー - - oracle cascade constraints Oracleのカスケード制約 - - oracle drop tables Oracleのドロップテーブル - - SQL Error: ORA-02449: unique/primary keys in table referenced by foreign keys SQLエラー: 502個- 02449 :固有/外国人によって参照されるテーブルの主キーのキー - - 02449 02449 - - delete table entry Oracle Oracleのテーブルのエントリを削除 - - oracle drop all table ora-02449 オラクルドロップすべてのテーブルのOra - 02449 - - ORA-02449: メールORA - 02449 : - - oracle drop table cascade constraints Oracleのドロップテーブルのカスケード制約 - - removing CONSTRAINT IN ORACLE Oracleの制約を削除する - - oracle drop table with foreign keys Oracleのドロップテーブルに外部キー - - oracle exp drop Oracleの輸出ドロップ - - drop table and constraints ドロップテーブルと制約 - - drop table cascade + Ora ドロップテーブルのカスケード+メールORA - - drop table with foreign keys in Oracle 外国人のキーがテーブルにドロップオラクル - - drop table ORA-02449 ドロップテーブルのOra - 02449 - - oracle drop index before drop table Oracleのドロップインデックスの前にDROP TABLE - - delete oracle cascade Oracleのカスケードを削除 - - ORACLE DROP ERROR エラーが発生Oracleのドロップ - - Oracle drop table error Oracleのドロップテーブルにエラーが発生 - - oracle drop table options Oracleのドロップテーブルオプション - - oracle delete from cascade オラクルから削除カスケード - - removing unique key constraint in oracle オラクル固有のキー制約を削除する - - error ora-02449 エラーが発生のOra - 02449 - -