ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 重建undo和temp的方法

重建undo和temp的方法

原创 Linux操作系统 作者:smartbaohua 时间:2009-07-01 17:09:54 0 删除 编辑

--UNDO
create  undo tablespace  UNDOTBS2  datafile '/arrayapp/oracle/oradata/newindb/temp.dbf'  size 50M reuse
ALTER SYSTEM SET undo_tablespace='UNDOTBS2' ;
drop tablespace UNDOTBS1
create UNDO tablespace UNDOTBS1 datafile  '/dev/vgdata4/rv4_rbs01' size 4159M;
ALTER SYSTEM SET undo_tablespace='UNDOTBS1' ;
drop  tablespace  UNDOTBS2 including contents and datafiles;


---temp

create temporary tablespace TEMP2 TEMPFILE '/arrayapp/oracle/oradata/newindb/temp.dbf' size 50M;
alter database default temporary tablespace temp2;
drop tablespace temp including contents and datafiles;
create temporary tablespace TEMP TEMPFILE '/dev/vgdata4/rv4_temp01' size 4159M;
alter database default temporary tablespace temp;
drop tablespace temp2 including contents and datafiles

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

上一篇: 增加或者扩redo
请登录后发表评论 登录
全部评论

注册时间:2008-03-10

  • 博文量
    44
  • 访问量
    368130