系統環境
模擬現象
可通過重建數據文件來恢復
先將數據庫設置為歸檔模式
SQL*Plus
conn system/manager
create tablespace test datafile
AUTOEXTEND ON NEXT
default storage (initial
/
drop user test cascade;
create user test identified by test default tablespace test;
grant connect
conn test/test
create table a(a number);
insert into a values(
insert into a select * from a;
commit;
SVRMGR> connect internal
SVRMGR> alter system switch logfile;
SVRMGR> alter system switch logfile;
SVRMGR> alter system switch logfile;
SVRMGR> shutdown
SVRMGR> connect internal
SVRMGR> startup
這時
顯示錯誤如下
ORA
ORA
SVRMGR> connect internal
SVRMGR> startup mount
SVRMGR> alter database create datafile
SVRMGR> set autorecovery on
SVRMGR> recover datafile
SVRMGR> alter database open;
conn test/test
select count(*) from a;
conn system/manager
alter tablespace test offline;
drop tablespace test INCLUDING CONTENTS;
drop user test;
From:http://tw.wingwit.com/Article/program/Oracle/201311/18468.html