首頁  >  文章  >  資料庫  >  undo表空间

undo表空间

WBOY
WBOY原創
2016-06-07 16:06:081087瀏覽

UNDO表空间数据文件切换 1 新建一UNDO表空间 CREATE UNDO TABLESPACE UNDOTBS DATAFILE '/dev/vx/rdsk/vgora/lv_undo' SIZE 10M AUTOEXTEND ON RETENTION NOGUARANTEE; 2 切换表空间 alter system set undo_tablespace='UNDOTBS1'; shutdown immediate; start

UNDO表空间数据文件切换
1 新建一UNDO表空间
CREATE UNDO TABLESPACE UNDOTBS DATAFILE '/dev/vx/rdsk/vgora/lv_undo' SIZE 10M AUTOEXTEND ON RETENTION NOGUARANTEE;
2 切换表空间
alter system set undo_tablespace='UNDOTBS1';
shutdown immediate;
startup
drop tablespace UNDOTBS2 including contents and datafiles;
CREATE UNDO TABLESPACE UNDOTBS1 DATAFILE '/dev/vx/rdsk/vgora/lv_undo' size 6000M;
alter tablespace UNDOTBS1 add datafile '/dev/vx/rdsk/vgora/lv_undo1' size 8000M;
alter system set undo_tablespace='UNDOTBS1';
drop tablespace UNDOTBS including contents and datafiles;
shutdown immediate;
startup
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn