关于删除tablespace中的datafile的问题

[复制链接]
查看11 | 回复5 | 2005-2-28 12:57:00 | 显示全部楼层 |阅读模式
遇到一个问题,tablespace中的datafile不能删除的问题,最后只有使用建立新的tablespace,然后倒入的方法解决的.可是既然oracle 允许在tablespace中加入datafile,而且这些是记录在controlfile中的,理应可以删除的。
找了很多资料,也试过将datafile设置成<5*data block size,可是不行。
希望各位高手帮我解决这个问题,我想oracle会有解决办法的。
谢谢各位!!!




回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
Unfortunately, there is no way to delete a datafile once it is added to a tablespace.Read ithere[/COLOR].
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
You can use recreate controlfile method to set database without the datafiles which you like
delete.
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
谢谢两位的回答,cluster的方法具体如何实现呢?可否讲解讲解。。。


回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
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;
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
最初由 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,这样比较彻底,干净
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行