语法:
drop tablespace tablespace
[ including contents [ {and | keep} datafiles ]
[ cascade constraints ]
] ;
直接使用:
drop tablespace 会出现如下错误:
ora-01116: error in opening database file 89
ora-01110: data file 89: '/templv/osm/osm_tabp_00.dbf'
ora-27041: unable to open file
linux error: 2: no such file or directory
additional information: 3
首先将表空间文件改为offline就可以了!
sql>alter database datafile '/templv/osm/osm_tabp_00.dbf' offline drop;
是每一个文件都要offline采可以删除.
现在使用:
drop tablespace osm_tabp_0 including contents
就ok了!
阅读(5246) | 评论(0) | 转发(0) |