create tablespace users
datafile '/opt/ora9/oradata/big58/users01.dbf' size 26M autoextend on
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
//这样的表空间段空间是手动管理的
drop tablespace users including contents and datafiles;
连物理文件一起删除。
create tablespace users
datafile '/opt/ora9/oradata/big58/users01.dbf' size 26M autoextend on
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
alter tablespace users add
2 datafile '/opt/ora9/oradata/big58/users02.dbf' size 20M;
alter tablespace users offline;
//在操作系统下删除users02.dbf
alter tablespace users online;
alter tablespace users online
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
ORA-01110: data file 9: '/opt/ora9/oradata/big58/users02.dbf'
quote:
最初由 huakaibird 发布
表空间有8,9两个数据文件,删除9。
由于表空间是offline的,所以生成的trace文件文件中没有该表空间的datafile 8和9,
在trace文件中添加未删除的表空间数据文件8,alter database open resetlogs,会报 file 8(未删除的) was not restored from a sufficiently old backup。然后dba_data_files中两个数据文件变成MISSING00008,MISSING00009。
[@more@]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/545828/viewspace-872080/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/545828/viewspace-872080/