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 私のデジタルライフフォーラム .です。
Related Articles関連記事
- ORA-00942 Table or View Does Not Exist Oracle ErrorメールORA - 00942テーブルまたはビューが存在しない場合はOracleのエラーが発生
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error作成、追加、またはOracleデータベースのパーティション分割が失敗するのOra - 14080エラーが発生
- Oracle Database Import Error 3113/3114 Oracleデータベースにインポートエラーが発生3114分の3113
- Oracle ORA-14074 Create or Add New Partition Fails ErrorオラクルのOra - 14074新しいパーティションを作成または追加に失敗するエラーが発生
- ORA-01502 Oracle Index in Unusable StateメールORA - 01502 Oracleのインデックスを使用不能な状態に
- Oracle PL/SQL ORA-00947 Not Enough Values Error OracleのPL / SQLのに十分な値エラーが発生しないのOra - 00947
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace ErrorオラクルのOra - 01658の範囲の最初のセグメントを作成できない場合は、テーブルスペースのエラーが発生
- ORA-25153 Temporary Tablespace is Empty Error in OracleメールORA - 25153テンポラリテーブルスペースが空にエラーが発生オラクル
- Manual and Clean Uninstall Oracle for Windowsオラクル、 Windowsのマニュアルおよび清潔度をアンインストール
- Oracle EXP-00091 Error When Export Database Oracleの輸出- 00091エラーが発生する輸出データベース













February 8th, 2007 18:51 2007年2月8日18:51
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知っている場合、クエリの教えてください。
July 3rd, 2008 06:30 2008年7月3日06:30
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 !
July 24th, 2008 13:21 2008年7月24日13:21
Great!すばらしい! The information provided is very helpful.提供された情報は非常に有益です。 It seems to be simple but really halps an lot.しかし、本当に単純なことと思われる多くhalpsする。 Thanks again.再度ありがとう。