今天删除数据库中的表空间时,发现始终删不掉,错误信息为:quot;ora-00604,ora-02429:无法删除用于强制唯一/主键的索引。quot;最
今天删除数据库中的表空间时,发现始终删不掉,错误信息为:"ora-00604,ora-02429:无法删除用于强制唯一/主键的索引。"
最终发现是其他某个用户在创建索引时没有注意到其中tablespace设置,直接把这个索引的表空间指定到这个表空间中,故删除之,并重新创建到其他表空间中.故障接触.
操作语法:
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 = 'ENESYS0922');
更多Oracle相关信息见Oracle 专题页面 ?tid=12

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号