ORA-02449 Oracle Drop Table Error 오라 - 02449 오라클 드롭 테이블 오류
Sometimes when dropping a table in Oracle database by executing DROP TABLE SQL statement, Oracle may return the error ORA-02449 as below: 가끔 몸값 SQL 문을 실행하여 Oracle 데이터베이스 테이블에 자리를 떨어뜨리고, 오라클은 아래와 같은 오류를 반환할 수있습니다 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. 오라클 테이블을 다른 테이블의 외국인 TABLE 문을 열쇠로하거나 드롭에서 캐스케이드 옵션을 지정하는 제약 최초의 외국인 핵심을 제거하지 않고 부모없이 참조된 테이블 드롭 드롭을 허용하지 않습니다.
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. 솔루션과 해결 방법은 오류가 발생하면 아이를 테이블에 의해 참조된 테이블 드롭으로, 드롭 TABLE 문을에서 캐스케이드 제약 원하는 옵션을 사용하는 것입니다. For example: 예를 들면 :
DROP TABLE table_name CASCADE CONSTRAINTS; 몸값 CASCADE는 TABLE TABLE_NAME에 제약;
The CASCADE CONSTRAINTS option in the DROP TABLE SQL statement will drop the FOREIGN KEY constraints of the child tables referenced. 드롭는 TABLE SQL 문을에서 캐스케이드 제약 옵션은 아이 참조된 테이블의 외래 키 제약을 내릴 것이다.
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. 또는 수동으로 떨어질 수 있으며 다른 테이블에 부모 테이블에 드롭 TABLE의 작업을 수행하기 전에, 다른 테이블에서 외래 키 제약 드롭 외국인 키를 제약 조건을 제거합니다. 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: 드롭하려면 SQL에 * 플러스, 두꺼비 또는 다른 SQL 도구는 다음 명령을 사용하여 사용자가 오라클에 제약을 삭제 :
ALTER TABLE table_name DROP CONSTRAINT constraint_name ; TABLE_NAME에 ALTER TABLE의 몸값 CONSTRAINT 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 원래 영어 문서 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 오라 - 00942 테이블이나보기는 Oracle 오류가 존재하지 않습니다
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error , 또는 오라클 데이터베이스 파티션 분할 추가 만들기 ORA - 14080 오류와 함께 실패
- Oracle Database Import Error 3113/3114 Oracle 데이터베이스 가져오기 오류 3,114분의 3,113
- Oracle ORA-14074 Create or Add New Partition Fails Error 오라 - 14074를 작성하거나 새 파티션을 추가 오라클 오류 실패
- Oracle EXP-00091 Error When Export Database 오라클 있도록 EXP - 00091 오류가 발생했을 때 데이터베이스 내보내기
- ORA-01502 Oracle Index in Unusable State ORA - 01502 오라클 지수는 불가능 상태에
- Check Oracle Version 오라클 버전 확인
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL 쉽게 중복, 복사 또는 이름으로 테이블을 만듭니다와 오라클, PostgreSQL을, DB2 및 SQLite에 백업 테이블의 SQL
- Delete, Remove or Drop Oracle Stored Packages with Drop Package 삭제, 제거 또는 드롭 드롭 패키지와 오라클에 저장된 패키지
- Manual and Clean Uninstall Oracle for Windows 매뉴얼 및 청소를 제거 Windows 용 오라클

































February 8th, 2007 18:51 2 월 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; 몸값 CASCADE는 TABLE TABLE_NAME에 제약;
please tell the query if u knows. 으로 U 안다면 쿼리를 알려 주시기 바랍니다.
July 3rd, 2008 06:30 2008년 7월 3일 06:30
Constrangimentos? Orra, meu revisa essa tradução aí e testa antes de postar!!! Orra, meu revisa ESSA tradução 있나 종피 전자 Antes 드 POSTAR이야! Se não seja honesto e indica o link de onde pegou!!! 남동 이도 전자 seja 정직한냅니다 O를 연결 드 onde pegou ~!
July 24th, 2008 13:21 7 월 24 일 2008 13:21
Great! 훌륭한! The information provided is very helpful. 정보를 제공한 것은 매우 도움이된다. It seems to be simple but really halps an lot. 그것은 단순하게 보이지만 정말 많이 halps. Thanks again. 다시 한번 감사드립니다.