[Q][Urgen]一个文件已不再需要, 但DROP不了.

[复制链接]
查看11 | 回复5 | 2005-10-30 17:05:33 | 显示全部楼层 |阅读模式
一个文件已不再需要, 但DROP不了.
SQL> ALTER DATABASE DATAFILE 23 ONLINE;
ALTER DATABASE DATAFILE 23 ONLINE
*
ERROR at line 1:
ORA-01113: file 23 needs media recovery
ORA-01110: data file 23: '/u02/oracle/oradata/ORCL/tempx02.dbf'
SQL> ALTER DATABASE DATAFILE 23 OFFLINE FOR DROP;
Database altered.
SQL>select * from V$datafile
-->Datafile 23 依然存在,STATUS='RECOVER'
已恢复不了,因Archive Log已不可得.
我该如何做,才能Drop this file. This file belongs toRBS tablespace.
oh, help


回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
可以删除RBS tablespace,然后重建。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
谢谢老大,
但 现在是Online Production呀, 有没有其它办法?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
you can not drop datafile with "alter database datafile .... offline drop", it still remain in
the data dictionary until you drop the tablespace where the datafile sit in.
Now do like this:
(1)create undo tablespace newundo
datafile '.....' size 50m
(2)alter system set undo_tablespace=newundo;
(3)Before the following command, make sure no active transcation using rollback
segments in the old undo tablespace:
drop tablespace oldundo including contents and datafiles
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
OH, thanks .I will try to do so in idle time.
But , my database is 8.1.7.4, NOT 9i.
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
After seach relate topics, i know how to do. Thanks all.
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行