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 .
Related Articles Mga Kaugnay na Akda
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 mesa o tingnan ay hindi umiiral oracle Pagkakamali
- Delete, Remove or Drop Oracle Stored Packages with Drop Package Tanggalin, Alisin o drop Oracle Stored packages sa drop package
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Kung paano Alisin at Drop Datafiles mula sa sa tablespace Oracle Database
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Paano drop tablespace at makuha Oracle database kapag sinasadyang tanggalin ang Datafile
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Madaling Duplicate, Kopyahin o Backup Table sa Oracle, PostgreSQL, DB2 at Bumuo ng SQLite sa Talahanayan Bilang SQL
- IMP-00013 Oracle Import Error Malikot na bata-00013 Oracle Import Error
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 hindi sapat na halaga Error
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 error kapag i-export ang database ng
- Oracle Database Import Error 3113/3114 Oracle Database Error sa pag-import 3113/3114
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Temporary tablespace ay Empty Error sa Oracle


























February 8th, 2007 18:51 Pebrero 8th, 2007 18:51
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.
July 3rd, 2008 06:30 June 3rd, 2008 06:30
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!
July 24th, 2008 13:21 Hulyo 24th, 2008 13:21
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.