ORA-02266解决办法
来源:互联网 发布:淘宝直播卖衣服怎么样 编辑:程序博客网 时间:2024/06/05 01:04
今天想truncate一张表,但报ORA-02266错误
想到可能是主键被子表引用,查了一下
解决如下:
SQL> truncate table area;
truncate table area
*
ERROR 位于第 1 行:
ORA-02266: 表中的唯一/主键被启用的外部关键字引用
SQL> alter table area disable primary key cascade;
表已更改。
SQL> truncate table area;
表已截掉。
SQL> alter table area enable primary key;
表已更改。
SQL>
想到可能是主键被子表引用,查了一下
解决如下:
SQL> truncate table area;
truncate table area
*
ERROR 位于第 1 行:
ORA-02266: 表中的唯一/主键被启用的外部关键字引用
SQL> alter table area disable primary key cascade;
表已更改。
SQL> truncate table area;
表已截掉。
SQL> alter table area enable primary key;
表已更改。
SQL>
- ORA-02266解决办法
- 【ORA】ORA-16629解决办法
- ORA-00604,ORA-12705解决办法
- ORA-00119,ORA-00132解决办法
- ORA-16014错误解决办法
- ORA-00600 错误解决办法
- Ora-27100错误解决办法
- ORA-20446 错误解决办法
- Ora-03114解决办法
- ORA-16038 的解决办法
- ORA-01653错误解决办法
- ORA-01653错误解决办法
- ORA-12560解决办法
- ORA-16014错误解决办法
- ORA-01653: 解决办法
- ORA-01659解决办法
- ORA-12519:解决办法
- ORA-14037 :解决办法
- 让IE6/IE7/IE8支持CSS3的插件-CSS3PIE
- 解决异常org.hibernate.exception.ConstraintViolationException: could not delete:
- struts.devMode和struts.configuration.xml.reload区别和联系
- android研究步骤
- oracle process设置的注意事情
- ORA-02266解决办法
- 也作一下装配脑袋的Expression习题 8).(高难度)new System.Windows.Point() { X = Math.Sin(a), Y = Math.Cos(a) }
- iphone编程资源站
- MyInt
- skserver.exe和SkServerGUI.exe代理服务器
- Oracle 密码文件
- 帮助解决一个struts问题
- Annan warns against use of more force in Syria
- 工作积累之CPPUNIT框架