ORA-02449 Oracle Drop Table Error 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: وأحيانا عندما اسقاط جدول قاعدة البيانات اوراكل في تنفيذ الجدول انخفاض البيان لغة الاستعلامات البنيويه ، اوراكل ان يعود الى الخطأ 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 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. شلال الخيار فإن القيود الموجودة في الجدول لغة الاستعلامات البنيويه البيان اسقاط الخارجية المعوقات الرئيسية للطفل الجداول المشار اليها.
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 حيث 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: اسقاط وحذف القيود المستخدم في أوراكل استخدم الامر التالي في لغة الاستعلامات البنيويه * بالاضافة الى ذلك ، العلجوم لغة الاستعلامات البنيويه او غيرها من الادوات :
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 المادة الاصليه English 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 بالنظر الى الجدول او لا وجود خطأ في أوراكل
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error خلق ، اضافة او تقسيم قاعدة البيانات اوراكل مع التقسيم لا خطأ ora - 14080
- Oracle Database Import Error 3113/3114 خطا قاعدة البيانات أوراكل استيراد 3113/3114
- Oracle ORA-14074 Create or Add New Partition Fails Error اوراكل ora - 14074 انشاء او اضافة جديدة للتقسيم لا خطأ
- ORA-01502 Oracle Index in Unusable State Ora - 01502 الرقم القياسي لشركة اوراكل في دولة غير صالحة للاستعمال
- Oracle PL/SQL ORA-00947 Not Enough Values Error اوراكل رر / لغة الاستعلامات البنيويه ora - 00947 القيم لا يكفي خطأ
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error اوراكل ora - 01658 قادرة على انشاء الاولية لهذا الجزء في مدى خطأ tablespace
- ORA-25153 Temporary Tablespace is Empty Error in Oracle Ora - 25153 المؤقتة tablespace فارغه خطأ في أوراكل
- Manual and Clean Uninstall Oracle for Windows دليل النظيفه وأوراكل لالغاء تثبيت ويندوز
- Oracle EXP-00091 Error When Export Database اكسب اوراكل - 00091 خطا عند تصدير قاعدة البيانات

































February 8th, 2007 18:51 في الثامن شباط / فبراير ، 2007 18:51
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. الرجاء ان نقول للاستفسار اذا كان يعرف ش.
July 3rd, 2008 06:30 يوليو 3rd ، 2008 06:30
Constrangimentos? Constrangimentos؟ Orra, meu revisa essa tradução aí e testa antes de postar!!! Orra ، meu revisa عيسى tradução aí ه testa يدفع دي postar! Se não seja honesto e indica o link de onde pegou!!! سي não seja honesto س ه indica صلة دي onde pegou!
July 24th, 2008 13:21 يوليو 24th ، 2008 13:55
Great! عظيم! The information provided is very helpful. المعلومات المقدمة مفيدة جدا. It seems to be simple but really halps an lot. يبدو ان الامر بسيط ولكنه حقا halps وجود الكثير. Thanks again. الشكر مرة اخرى.