ORA-02449 Oracle Drop Table Error ORA-02449 Oracle drop table Error

Sometimes when dropping a table in Oracle database by executing DROP TABLE SQL statement, Oracle may return the error ORA-02449 as below: Minsan kapag bumababa sa isang table sa Oracle database sa pamamagitan ng executing DROP TALAAN SQL pahayag, Oracle ay maaaring bumalik ang error ORA-02449 tulad ng sa ibaba:

ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: natatanging / pangunahing mga susi sa table na nababanggit sa pamamagitan ng mga banyagang key

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. Ang Oracle error ay sanhi ng pagtatangka sa drop sa isang table na may mga natatanging o pangunahing key nababanggit sa pamamagitan ng mga banyagang mga susi sa isa pang table, o sa iba pang mga salita, ang table na ito ay nababanggit bilang isang magulang na mesa sa pamamagitan ng isang dayuhang key pagpilit sa isang magulang-anak na relasyon na naitatag sa pagitan ng dalawang mesa sa pamamagitan ng isang dayuhang 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. Oracle ay hindi nagpapahintulot sa drop tables nababanggit sa pamamagitan ng mga banyagang mga susi ng iba pang mga talahanayan na walang tinutukoy na opsyon CONSTRAINTS ang Cascade sa drop TALAAN pahayag, o sa drop ng mga magulang sa mesa nang unang pag-aalis ng mga banyagang 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. Ang solusyon at workaround para sa mga error kapag nais mong i-drop tables nababanggit sa pamamagitan ng anak tables, ay upang gamitin ang Cascade CONSTRAINTS option sa drop TALAAN statement. For example: Halimbawa:

DROP TABLE table_name CASCADE CONSTRAINTS; DROP TALAAN 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. Cascade na opsyon CONSTRAINTS ang sa drop TALAAN SQL pahayag ay drop ang FOREIGN susi constraints ng bata tables nababanggit.

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. Bilang kahalili, maaari mong manwal na drop at tanggalin ang mga dayuhang key key constraints sa iba pang mga talahanayan bago ang pagpapalabas sa drop TALAAN operasyon sa mga magulang na mesa, drop ang mga dayuhang key constraints sa ibang tables. To check what constraints are referencing a table in Oracle, use the following command: Para tingnan kung ano ang constraints ay may kaugnayan sa isang table sa Oracle, gamitin ang sumusunod na command:

SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = “ table_name “; PUMILI * MULA USER_CONSTRAINTS WHERE 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: Sa drop at tanggalin ang user constraints sa Oracle gamitin ang mga sumusunod na mga utos sa SQL * Plus, SQL palaka o iba pang mga kasangkapan:

ALTER TABLE table_name DROP CONSTRAINT constraint_name ; Baguhin TALAAN table_name DROP pagpilit constraint_name;

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. MAHALAGA: Ito ay isang makina isinalin pahina na kung saan ay ibinigay "bilang ganito" walang warranty. Machine translation may be difficult to understand. Makina ng pagsasalin ay maaaring mahirap maintindihan. Please refer to Mangyaring sumangguni sa original English article orihinal na Ingles article whenever possible. hangga't maaari.

Share and contribute or get technical support and help at Share at kontribusyon o makakuha ng teknikal na suporta at tulong sa My Digital Life Forums Aking Digital buhay Forums .



3 Responses to “ORA-02449 Oracle Drop Table Error” 3 tugon sa "ORA-02449 Oracle Drop Table Error"

  1. vipin
    February 8th, 2007 18:51 Pebrero 8th, 2007 18:51
    1

    what if after dropping the table using the query blow you want again all those constraints. ano kung matapos na bumababa sa mga table na gamit ang query pumutok na gusto mo ulit ang lahat ng mga constraints.

    DROP TABLE table_name CASCADE CONSTRAINTS; DROP TALAAN table_name Cascade CONSTRAINTS;

    please tell the query if u knows. mangyaring sabihin sa tanong na kung u malaman.

  2. f
    July 3rd, 2008 06:30 June 3rd, 2008 06:30
    2

    Constrangimentos? Orra, meu revisa essa tradução aí e testa antes de postar!!! Orra, meu revisa essa tradução ai e testa antes de post! Se não seja honesto e indica o link de onde pegou!!! Hindi se seja honesto e indica o link de diyan pegou!

  3. sangam
    July 24th, 2008 13:21 Hulyo 24th, 2008 13:21
    3

    Great! Dakila! The information provided is very helpful. Ang impormasyon na ibinigay ay masyadong helpful. It seems to be simple but really halps an lot. Ito tila sa maging simple pero talagang halps ng isang pulutong. Thanks again. Thanks again.

Leave a Reply Mag-iwan ng isang Sumagot

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> Maaari mong gamitin ang mga tag: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del DateTime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Mag-subscribe sa comments tampok na ito ay hindi pinagana. To receive notification of latest comments posted, subscribe to Upang makatanggap ng mga notification ng mga pinakabagong comments posted, mag-subscribe sa My Digital Life Comments RSS feed Ang aking digital na buhay Comments RSS feed or o register to receive magrehistro upang makatanggap ng new comments in daily email digest. mga bagong komento sa pang-araw-araw email digest.
Custom Search

New Articles New Articles

Incoming Search Terms for the Article Papasok Search Mga Tuntunin para sa mga Artikulo

ORA-02449 ORA-02449 - -- oracle drop table orakulo drop table - -- ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: natatanging / pangunahing mga susi sa table na nababanggit sa pamamagitan ng mga banyagang key - -- drop table cascade drop table kaskad - -- oracle delete cascade constraint orakulo tanggalin ang kaskad pagpilit - -- oracle drop table force orakulo drop table ng lakas - -- oracle drop table error orakulo drop table error - -- "drop table" force "drop table" na puwersa - -- DELETE FROM TABLE en oracle DELETE MULA SA TALAAN en oracle - -- drop table cascade constraints drop table kaskad constraints - -- FORCE deletE in Oracle FORCE tanggalin sa Oracle - -- how to find duplicate values parent tables in child table+oracle kung paano maghanap ng dobleng halaga ng magulang sa anak mesa table + oracle - -- how to drop all table constraints in oracle paano sa drop table ang lahat ng constraints sa orakulo - -- oracle can foreign key be empty in the child table orakulo ay maaaring dayuhang key ay walang laman ang mga anak sa mesa - -- oracle ORA-02449 drop table orakulo ORA-02449 drop table - -- oracle drop table * orakulo drop table * - -- oracle force drop table orakulo force drop table - -- oracle casade delete orakulo casade burahin - -- oracle delete from constraint cascade orakulo tanggalin mula sa pagpilit kaskad - -- oracle drop table cascade constraints orakulo drop table kaskad constraints - -- ORA-02449 ALTER TABLE DISABLE ORA-02449 baguhin TALAAN HINDI PAGANA - -- oracle drop table cascade orakulo drop table kaskad - -- ORA-02449: unique/primary keys in table referenced by foreign keys ORA-02449: natatanging / pangunahing mga susi sa table na nababanggit sa pamamagitan ng mga banyagang key - -- sql ORA-02449 sql ORA-02449 - -- drop table oracle cascade drop table oracle kaskad - -- drop statement in oracle query drop pahayag sa oracle query - -- drop table cascade constraint oracle drop table kaskad pagpilit oracle - -- drop oracle mit foreign keys drop oracle mit dayuhang key - -- how to cascaded delete oracle paano cascaded oracle burahin - -- oracle drop tabale orakulo drop tabale - -- ORACLE DROP STATEMENT Orakulo drop statement - -- oracle force drop constraint orakulo force drop pagpilit - -- ORACLE REMOVE FOREIGN KEY Orakulo alisin ang mga dayuhang key - -- oracle 02449 orakulo 02449 - -- oracle table delete options oracle table tanggalin ang mga opsyon - -- ORA-02449: ORA-02449: - -- oracle disable a table without drop oracle-disable ang isang table na walang drop - -- ORA-02449: unique/primary keys in table ORA-02449: natatanging / pangunahing mga susi sa mesa - -- oracle drop table forced orakulo drop table sapilitang - -- Oracle+force error Oracle + force error - -- oracle cascade constraints orakulo kaskad constraints - -- drop cascade oracle drop kaskad oracle - -- drop TABLE error ORACLE drop TALAAN error ORACLE - -- drop all constraints from a table in oracle drop lahat ng constraints mula sa isang table sa orakulo - -- drop stmt in oracle drop stmt sa orakulo - -- drop table table_name cascade constraints drop table table_name kaskad constraints - -- drop table ORA-02449 drop table ORA-02449 - -- how to drop a table in oracle with foreign key paano sa drop ng isang table sa oracle sa mga dayuhang key - -- oracle drop table foreign keys orakulo drop table dayuhang key - -- ORA-02449 cascade ORA-02449 kaskad - --