ORACLE SOS

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 4202|回复: 0

使用EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK分析ORA-02429错误原因

[复制链接]

95

主题

266

帖子

1719

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1719
发表于 2015-8-17 11:07:58 | 显示全部楼层 |阅读模式
SQL> drop tablespace t1 including contents and datafiles;
drop tablespace t1 including contents and datafiles
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-02429: cannot drop index used for enforcement of unique/primary key


SQL>  EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK('T1');

PL/SQL procedure successfully completed.

SQL> SELECT * FROM TRANSPORT_SET_VIOLATIONS;

VIOLATIONS
------------------------------------------------------------------------------------------------------------------------------------------------------
ORA-39908: Index TOPSTAR.BMS_ACC_SEL_PK in tablespace T1 enforces primary constraints  of table TOPSTAR.BMS_ACC_SEL_DEF in tablespace USERS.
ORA-39907: Index TOPSTAR.BMS_ACC_SEL_DEF_IDX in tablespace T1 points to table TOPSTAR.BMS_ACC_SEL_DEF in tablespace USERS.
ORA-39908: Index TOPSTAR.BMS_BATCH_DEF_PK in tablespace T1 enforces primary constraints  of table TOPSTAR.BMS_BATCH_DEF in tablespace USERS.
ORA-39907: Index TOPSTAR.BMS_BATCH_DEF_1_IDX in tablespace T1 points to table TOPSTAR.BMS_BATCH_DEF in tablespace USERS.
ORA-39907: Index TOPSTAR.BMS_BATCH_DEF_2_IDX in tablespace T1 points to table TOPSTAR.BMS_BATCH_DEF in tablespace USERS.
ORA-39907: Index TOPSTAR.BMS_BATCH_DEF_3_IDX in tablespace T1 points to table TOPSTAR.BMS_BATCH_DEF in tablespace USERS.
ORA-39907: Index TOPSTAR.BMS_BATCH_DEF_4_IDX in tablespace T1 points to table TOPSTAR.BMS_BATCH_DEF in tablespace USERS.
ORA-39907: Index TOPSTAR.BMS_BATCH_DEF_GOODSID_IDX in tablespace T1 points to table TOPSTAR.BMS_BATCH_DEF in tablespace USERS.
ORA-39907: Index TOPSTAR.BMS_BATCH_DEF_INPUTDATE_IDX in tablespace T1 points to table TOPSTAR.BMS_BATCH_DEF in tablespace USERS.
ORA-39907: Index TOPSTAR.BMS_BATCH_DEF_SORTNO_IDX in tablespace T1 points to table TOPSTAR.BMS_BATCH_DEF in tablespace USERS.
ORA-39907: Index TOPSTAR.BMS_BATCH_DEF_SOURCEID_IDX in tablespace T1 points to table TOPSTAR.BMS_BATCH_DEF in tablespace USERS.
ORA-39908: Index TOPSTAR.BMS_BATCH_NO_PK in tablespace T1 enforces primary constraints  of table TOPSTAR.BMS_BATCH_NO in tablespace USERS.
ORA-39908: Index TOPSTAR.BMS_BUSICLASSET_DEF_PK in tablespace T1 enforces primary constraints  of table TOPSTAR.BMS_BUSICLASSSET_DEF in tablespace USE
RS.

有部分表和index 不在同一个表空间,无法只删除t1表空间(因为表在users中,而index在t1中),删除掉users表空间中的table,然后再删除表空间即可

SQL> drop tablespace t1 including contents and datafiles;

Tablespace dropped.


Q Q:107644445
Tel:13429648788
Email:dba@xifenfei.com
个人Blog(惜分飞)
提供专业ORACLE技术支持(数据恢复,安装实施,升级迁移,备份容灾,故障诊断,系统优化等)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|ORACLE SOS 技术论坛

GMT+8, 2024-4-28 02:44 , Processed in 0.017527 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表