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. जब भी संभव है.


4 Responses to “ORA-02449 Oracle Drop Table Error” 4 उत्तर के लिए "ORA-02449 Oracle ड्रॉप तालिका में त्रुटि"

  1. Michael Komisarenko माइकल Komisarenko
    April 7th, 2009 18:56 7 अप्रैल 2009 18:56
    4 4

    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. तुम जरूरी उन्हें छोड़ने के बिना अक्षम बाधाओं को तत्काल क्रियान्वित उपयोग कर सकते हैं.

  2. sangam संगम
    July 24th, 2008 13:21 24, 2008 13:21 जुलाई
    3 3

    Great! महान! The information provided is very helpful. उपलब्ध कराई गई जानकारी बहुत उपयोगी है. It seems to be simple but really halps an lot. यह सरल लगता है, लेकिन वास्तव में एक बहुत halps. Thanks again. एक बार फिर धन्यवाद.

  3. f
    July 3rd, 2008 06:30 3 जुलाई 2008 06:30
    2 2

    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!!

  4. vipin विपिन
    February 8th, 2007 18:51 फ़रवरी 8, 2007 18:51
    1 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 Cascade बाधाओं;

    please tell the query if u knows. कृपया क्वेरी बताओ अगर u जानता है.

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 कर सकते हैं <blockquote title=""> <b> cite=""> <cite> <code> <डेल DateTime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. टिप्पणी की सुविधा है विकलांग गया है की सदस्यता लें. To receive notification of latest comments posted, subscribe to सदस्यता के लिए नई टिप्पणियों की सूचना प्राप्त पोस्ट किया है, My Digital Life Comments RSS feed मेरे डिजिटल जीवन टिप्पणियाँ आरएसएस फ़ीड or या register to receive रजिस्टर प्राप्त करने के लिए new comments in daily email digest. दैनिक ईमेल में नई टिप्पणियाँ डाइजेस्ट.
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 FORCE ओरेकल छोड़ टेबल बल - -- ora 02449 02,449 ora - -- oracle drop table Oracle छोड़ सारणी - -- oracle delete cascade Oracle झरना हटाना - -- ora-02449 unique primary keys in table referenced by foreign keys ora-02449 अद्वितीय विदेशी कुंजी द्वारा संदर्भित तालिका में प्राथमिक कुंजी - -- ora-02449 drop table ora-02449 छोड़ सारणी - -- oracle force drop table Oracle बल छोड़ सारणी - -- drop table oracle ड्रॉप तालिका Oracle - -- DROP TABLE FORCE oracle छोड़ टेबल Oracle बल - -- drop table ORA-02449 ORA छोड़ टेबल 02,449 - -- force drop table oracle सेना छोड़ तालिका Oracle - -- oracle cascade constraints Oracle झरना बाधाओं - -- drop table with cascade option Cascade विकल्प के साथ छोड़ सारणी - -- ORA-02449: ORA-02449: - -- cascade constraints in oracle Oracle में झरना बाधाओं - -- SQL Error: ORA-02449: unique/primary keys in table referenced by foreign keys SQL त्रुटि: ORA-02449: अनूठा / विदेशी कुंजी द्वारा संदर्भित तालिका में प्राथमिक कुंजी - -- oracle drop table cascade Oracle ड्रॉप तालिका झरना - -- oracle force table drop Oracle बल तालिका ड्रॉप - -- drop table cascade ड्रॉप तालिका झरना - -- ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: अनूठा / विदेशी कुंजी द्वारा संदर्भित तालिका में प्राथमिक कुंजी - -- Drop Table FORCE ड्रॉप तालिका बल - -- oracle drop table ora-02449 Oracle ड्रॉप तालिका ora-02449 - -- oracle ORA-02449 Oracle ORA-02449 - -- Oracle drop table constraints Oracle ड्रॉप तालिका की कमी - -- drop table cascade constraints oracle ड्रॉप तालिका झरना बाधाओं Oracle - -- force drop table in oracle बल Oracle में छोड़ सारणी - -- drop table error ड्रॉप तालिका त्रुटि - -- drop table cascade constraints ड्रॉप तालिका झरना बाधाओं - -- oracle drop table with foreign key Oracle विदेशी कुंजी के साथ छोड़ सारणी - -- oracle drop statement Oracle छोड़ बयान - -- oracle drop Oracle ड्रॉप - -- 02449 02449 - -- toad drop table मेंढक छोड़ सारणी - -- drop table table_name cascade constraints; ड्रॉप तालिका table_name झरना बाधाओं; - -- oracle DROP TABLE options टेबल विकल्प छोड़ Oracle - -- oracle unique/primary keys in table referenced by foreign keys Oracle अद्वितीय / विदेशी कुंजी द्वारा संदर्भित तालिका में प्राथमिक कुंजी - -- cascade constraint oracle झरना बाधा Oracle - -- drop table with foreign keys oracle विदेशी चाबियाँ Oracle के साथ छोड़ सारणी - -- drop table table_name cascade constraints ड्रॉप तालिका table_name झरना बाधाओं - -- oracle drop constraint Oracle छोड़ बाधा - -- all सब - -- "ORA-02449: unique/primary keys in table referenced by foreign keys" "ORA-02449: अनूठा / विदेशी कुंजी द्वारा संदर्भित तालिका में प्राथमिक कुंजी" - -- oracle delete foreign key Oracle विदेशी कुंजी को नष्ट - -- oracle drop table cascade delete Oracle ड्रॉप तालिका झरना हटाना - -- drop table oracle force ड्रॉप तालिका Oracle बल - -- oracle drop tables Oracle छोड़ सारणी - -- drop table delete cascade oracle ड्रॉप तालिका झरना Oracle हटाना - -- delete from table cascade oracle टेबल झरना Oracle से हटाना - --