Board logo

標題: 重建undotbs [打印本頁]

作者: vean0803i    時間: 2012-4-27 14:40     標題: 重建undotbs

CREATE UNDO TABLESPACE "UNDOTBS2"
DATAFILE 'E:\ORCLDATA\oradata\AS40029I\UNDOTBS2A.dbf' SIZE 2048M
AUTOEXTEND ON NEXT   10M MAXSIZE UNLIMITED
/

ALTER SYSTEM set undo_tablespace=undotbs2 SCOPE=BOTH;

DROP TABLESPACE undotbs1 INCLUDING CONTENTS AND DATAFILES;

--關資料庫手動刪datafile
--重新啟動資料庫

CREATE UNDO TABLESPACE "UNDOTBS1"
DATAFILE 'E:\ORCLDATA\oradata\AS40029I\UNDOTBS01.dbf' SIZE 2048M
AUTOEXTEND ON NEXT   10M MAXSIZE UNLIMITED
/

ALTER SYSTEM set undo_tablespace=undotbs1 SCOPE=BOTH;

DROP TABLESPACE undotbs2 INCLUDING CONTENTS AND DATAFILES;

--重新啟動資料庫




歡迎光臨 麻辣家族討論版版 (http://forum.twbts.com/)