ITPub博客

首页 > 数据库 > 数据库开发技术 > 重建UNDO表空间

重建UNDO表空间

原创 数据库开发技术 作者:guyeh 时间:2010-09-08 16:36:15 0 删除 编辑

1)建立临时UNDO表空间
CREATE UNDO TABLESPACE undotbs001 DATAFILE
'/home/oracle/oradata/jw/undo001.dbf' SIZE 500M ;
2)将系统UNDO表空间修改为前面新建的临时UNDO表空间
alter system set undo_tablespace=undotbs001 scope=both;
3)删除undo表空间及其数据文件
drop tablespace undotbs including contents and datafiles;
4)重建临时表空间
CREATE UNDO TABLESPACE undotbs DATAFILE
'/home/oracle/oradata/jw/undo02.dbf' SIZE 300M ;
5)重新将系统UNDO表空间修改为undotbs
alter system set undo_tablespace=undotbs scope=both;
6)重启数据库
reboot database[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/570433/viewspace-1038068/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2007-12-29

  • 博文量
    61
  • 访问量
    459720