ORA-53991: cannot move tablespace because tables are being used

文档解释

ORA-53991: cannot move tablespace because tables are being used

Cause: The operation failed because Oracle Multimedia tables were being used.

Action: End all sessions using Oracle Multimedia tables and try again.

ORA-53991是由于表空间正在使用中,无法移动表空间时出现的Oracle错误。

官方解释

当管理员试图移动表空间时出现ORA-53991,意思是在此表空间中有正在使用的表或索引,不允许移动该表空间。

常见案例

1.用户在移动表空间时,没有先将表上的临时表空间恢复到原有状态,而出现了此错误。

2.用户在停止表空间时,没有关闭表空间中的表,而出现了此错误。

一般处理方法及步骤

1.首先,要找出此表空间中正被使用的表,可以使用以下查询语句来完成:

SELECT * FROM V$TEMPORARY_TABLESPACES WHERE tablespace_name=’xxx’;

2.若查出是临时表空间被使用则,先将该表空间恢复到原有状态,即关闭临时表空间;

3.若查出是正常表空间被使用,则将该表空间中的表关闭;

4.最后,进行表空间的移动操作。

你可能感兴趣的