您的位置:首页 > 数据库 > Oracle

oracle 删除表空间(tablespace)及数据文件的方法

2014-10-31 16:51 549 查看
oracle 删除表空间(tablespace)及文件的方法

  一、drop user xxxx cascade;

  二、drop tablespace xxxx including contents and datafiles

  1.首先看一下是不是已经使用了OMF

  sql>show parameter db_create

  查看参数db_create_file_dest,如果已经设置

  则:drop tablespace tablespacename 就可以直接删除表空间以及相应的数据文件

  2.如果没使用OMF,则:

  drop tablespace tablespacename including contents and datafiles
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  oracle