ORA-02449 Oracle Drop Table Error ORA-02449 Oracle ड्रॉप तालिका में त्रुटि
Sometimes when dropping a table in Oracle database by executing DROP TABLE SQL statement, Oracle may return the error ORA-02449 as below: ORA कभी कभी जब छोड़ टेबल एसक्यूएल बयान क्रियान्वित द्वारा Oracle डाटाबेस में एक टेबल छोड़, Oracle त्रुटि लौट सकते हैं नीचे के रूप में 02,449:
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 त्रुटि के लिए अद्वितीय है या एक और प्राथमिक तालिका, या अन्य शब्द में विदेशी कुंजी द्वारा संदर्भित कुंजी के साथ एक मेज ड्रॉप करने की कोशिश की वजह से, मेज कि एक माता पिता की मेज के रूप में एक माता पिता में एक विदेशी प्रमुख बाधा-संबंध बच्चे द्वारा संदर्भित है कि एक विदेशी कुंजी के माध्यम से दो तालिकाओं के बीच की स्थापना की. 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. Oracle को छोड़ टेबल बयान में कमी Cascade विकल्प को निर्दिष्ट या पहले विदेशी प्रमुख को हटाने के बिना माता पिता की मेज छोड़ दूसरे के बिना मेज के विदेशी कुंजी द्वारा संदर्भित टेबल छोड़ने की अनुमति नहीं है.
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. समाधान और त्रुटि के लिए workaround आप बच्चे मेज द्वारा संदर्भित टेबल छोड़ जब चाहते हैं, को छोड़ टेबल बयान में Cascade बाधाओं विकल्प का उपयोग है. For example: उदाहरण के लिए:
DROP TABLE table_name CASCADE CONSTRAINTS; छोड़ टेबल table_name Cascade बाधाओं;
The CASCADE CONSTRAINTS option in the DROP TABLE SQL statement will drop the FOREIGN KEY constraints of the child tables referenced. संदर्भित छोड़ टेबल एसक्यूएल बयान में Cascade बाधाओं विकल्प बच्चे मेज के विदेश प्रमुख बाधाओं को छोड़ देगा.
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 में उपयोगकर्ता बाधाओं को हटाना एसक्यूएल में निम्न कमांड का प्रयोग * प्लस, टॉड या अन्य एसक्यूएल उपकरण:
ALTER TABLE table_name DROP CONSTRAINT constraint_name ; टेबल table_name छोड़ बाधा constraint_name बदल;
IMPORTANT : The page is machine translated and provided "as is" without warranty. महत्वपूर्ण: पृष्ठ की मशीन है और अनुवाद प्रदान "के रूप में वारंटी के बिना है." Machine translation may be difficult to understand. मशीन अनुवाद मुश्किल से समझ सकते हो. Please refer to कृपया उल्लेख करने original English article मूल अंग्रेजी लेख whenever possible. जब भी संभव है.
Related Articles संबंधित लेख
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 तालिका देखें या मौजूद नहीं है Oracle त्रुटि क्या
- Delete, Remove or Drop Oracle Stored Packages with Drop Package हटाने के लिए, निकालें या छोड़ Oracle छोड़ पैकेज के साथ संग्रहित संकुल
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL आसानी से डुप्लिकेट, प्रतिलिपि बनाएँ या तालिका के साथ ओरेकल, PostgreSQL, DB2 और SQLite में बैकअप टेबल्स एसक्यूएल
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 बनाएँ या नई विभाजन जोड़ें विफल त्रुटि
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error बनाने के लिए, जोड़ें या भाजित Oracle डाटाबेस के विभाजन के साथ विफल रहता है ORA-14,080 त्रुटि
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 त्रुटि जब निर्यात डाटाबेस
- Oracle Database Import Error 3113/3114 Oracle डाटाबेस के आयात त्रुटि 3113/3114
- Create New Table by Selecting Data from Other Tables with CREATE TABLE AS पैदा टेबल के रूप में साथ अन्य टेबल्स से डेटा का चयन करके नई तालिका बनाएँ
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle पी एल / एसक्यूएल ORA-00947 नहीं बस मान त्रुटि
- How to Remove and Drop Datafiles from Tablespace in Oracle Database तालिकास्थान से Oracle डाटाबेस में निकालें और गिरा Datafiles कैसे










































April 7th, 2009 18:56 7 अप्रैल 2009 18:56
If you need to recreate a table you do not have to drop constraints. यदि आप एक मेज आप बाधाओं को छोड़ नहीं है विश्राम की आवश्यकता है. As an alternative you can disable constraints and then enable them back again. एक विकल्प के रूप में आप को निष्क्रिय कर सकते हैं और फिर उन्हें वापस बाधाओं को सक्षम फिर से.
The correct select statement to see which foreign keys reference the primary key of the parent table is as follows: सही चुनें बयान जो विदेशी चाबियाँ संदर्भ माता पिता की मेज के प्राथमिक कुंजी को देखने के लिए इस प्रकार है:
SELECT TABLE_NAME, CONSTRAINT_NAME का चयन करें TABLE_NAME, CONSTRAINT_NAME
FROM USER_CONSTRAINTS से USER_CONSTRAINTS
WHERE CONSTRAINT_TYPE = 'R' कहां CONSTRAINT_TYPE = '' आर
AND R_CONSTRAINT_NAME = parent_table_primary_key; और R_CONSTRAINT_NAME parent_table_primary_key =;
You can use EXECUTE IMMEDIATE to disable constraints without necessarily dropping them. तुम जरूरी उन्हें छोड़ने के बिना अक्षम बाधाओं को तत्काल क्रियान्वित उपयोग कर सकते हैं.
July 24th, 2008 13:21 24, 2008 13:21 जुलाई
Great! महान! The information provided is very helpful. उपलब्ध कराई गई जानकारी बहुत उपयोगी है. It seems to be simple but really halps an lot. यह सरल लगता है, लेकिन वास्तव में एक बहुत halps. Thanks again. एक बार फिर धन्यवाद.
July 3rd, 2008 06:30 3 जुलाई 2008 06:30
Constrangimentos? Constrangimentos? Orra, meu revisa essa tradução aí e testa antes de postar!!! Orra, meu revisa essa tradução ai ई कचकड़ा antes de postar!! Se não seja honesto e indica o link de onde pegou!!! नाव seja honesto Se ई इंडिका ओ कड़ी pegou de onde!!
February 8th, 2007 18:51 फ़रवरी 8, 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 Cascade बाधाओं;
please tell the query if u knows. कृपया क्वेरी बताओ अगर u जानता है.