只有数据文件情况下恢复数据库
1,创建几个表,进行 log switch
SQL> create table t9 as select * from dba_tables;
Table created.
SQL> alter system switch logfile;
System altered.
SQL> create table t10 as select * from v$session;
Table created.
SQL>
2,杀 oracle 进程,模拟意外关闭
[oracle@g1 gg1]$ kill ‐9 3358
Alert.log
Sun Feb 03 17:26:09 2013
Errors in file u01/app/oracle/diag/rdbms/gg1/gg1/trace/gg1_pmon_3342.trc:
ORA‐00471: DBWR process terminated with error
PMON (ospid: 3342): terminating the instance due to error 471
Instance terminated by PMON, pid = 3342
3,删除所有控制文件和日志文件
[oracle@g1 gg1]$ rm ‐fr *.ctl
[oracle@g1 gg1]$ r