Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3902418
  • 博文数量: 534
  • 博客积分: 10470
  • 博客等级: 上将
  • 技术积分: 4800
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-26 14:08
文章分类

全部博文(534)

文章存档

2021年(1)

2019年(1)

2017年(1)

2016年(2)

2013年(2)

2012年(10)

2011年(43)

2010年(10)

2009年(17)

2008年(121)

2007年(253)

2006年(73)

分类: Oracle

2007-02-07 16:22:39

语法:
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了!

阅读(5216) | 评论(0) | 转发(0) |
0

上一篇:ORA-01119 and ORA-27040解决办法

下一篇:坐庄

给主人留下些什么吧!~~