datafile设置成<5*data block size
Oracle会忽略该文件
如果用重建Controlfile的方法的确可以删除Datafile
但是在数据字典里(V$datafile)会留下MISS FILE / Need recover的记录
这样做没有任何意义,在数据字典里该文件的大小等信息仍然存在
给管理许多不便
给个做法,建议不用
sqlplus:alter database backup controlfile to trace;
Open Trace file & remove the datafile you want to delete
Shutdown database
connect internal
startup nomount
exec sql in trace file which you modified
alter database open resetlogs;
select * from v$datafile;
最初由 parrotao 发布
[B]datafile设置成<5*data block size
Oracle会忽略该文件
如果用重建Controlfile的方法的确可以删除Datafile
但是在数据字典里(V$datafile)会留下MISS FILE / Need recover的记录
这样做没有任何意义,在数据字典里该文件的大小等信息仍然存在
给管理许多不便
给个做法,建议不用
sqlplus:alter database backup controlfile to trace;
Open Trace file & remove the datafile you want to delete
Shutdown database
connect internal
startup nomount
exec sql in trace file which you modified
alter database open resetlogs;
select * from v$datafile; [/B]
谢谢你的建议,我最后还是用的move tablespace,这样比较彻底,干净