您的位置:首页 > 数据库 > Oracle

oracle删除表空间报ORA-00604和ORA-02429错误问题

2018-02-28 15:28 429 查看
解决方案
1、--生成删除主键约束的脚本select 'alter table '||owner||'.'||table_name||' drop constraint '||constraint_name||' ;'
from dba_constraints
where constraint_type in ('U', 'P')
and (index_owner, index_name) in
(select owner, segment_name
from dba_segments
where tablespace_name = 'GBOSV1');----GBOSV1换成要删除的表空间2、根据第一步产生的select数据内容,挨个执行表中的内容,如下:alter table GBOSV1.T_O_OPEN_DOOR_RECORD drop constraint PK_O_OPEN_DOOR_RECORD_COLS ;3、执行删除表空间语句drop tablespace gbosv1 including contents and datafiles;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  oracle
相关文章推荐