Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1211308
  • 博文数量: 1211
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 14340
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-09 11:20
文章分类

全部博文(1211)

文章存档

2011年(1)

2008年(1210)

我的朋友

分类: 服务器与存储

2008-06-14 14:15:09

 -- 如果undo表空间undotbs不能释放空间,重建之
    -- 创建备用undo表空间
    create undo tablespace newundotbs datafile '$ORA_DATA/newundotbs01.dbf' size 1000m
    /    
    -- 切换undo表空间
    alter system set undo_tablespace=newundotbs scope=spfile
    /
    shutdown immediate
    /
    startup
    /
    -- drop原表空间
    drop tablespace undotbs including contents and datafiles
    /
    -- 创建原undo表空间
    create undo tablespace undotbs datafile '$ORA_DATA/undotbs01.dbf' size 1000m
    /
    -- 切换undo表空间
    alter system set undo_tablespace=undotbs scope=spfile
    /
    -- 关闭重起并把备用undo表空间drop
    shutdown immediate
    /
    startup
    /
    drop tablespace newundotbs including contents and datafiles
    /
阅读(548) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~