当前位置: 首页 > 图文教程 > 数据库 > Oracle > 解决Oracle下的undo空间过大的问题

Oracle
Oracle常用dump命令,记录一下备查。
Oracle存储过程之数据库中获取数据实例
Oracle存储过程入门学习基本语法
java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified input
Oracle 函数大全[字符串函数,数学函数,日期函数]
Oracle 自增(auto increment) 或 标识字段的建立方法
oracle 存储过程加密的方法
Oracle针对数据库某一行进行操作的时候,如何将这一行加行锁
Oracle 忘记密码的找回方法
Oracle 数据库导出(exp)导入(imp)说明
oracle 常见等待事件及处理方法
Oracle9i 动态SGA,PGA特性探索
PDO取Oracle lob大字段,当数据量太大无法取出的问题的解决办法
ORACLE 数据库RMAN备份恢复
用Mimer Validator检查SQL查询
oracle执行cmd的实现方法
ORACLE 正则解决初使化数据格式不一致
Oracle 触发器的使用小结
oracle 时间格式的调整
Oracle 10g的DBA无法登录解决方案

解决Oracle下的undo空间过大的问题


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-31   浏览: 67 ::
收藏到网摘: n/a

    -- 如果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
    /