RESETLOGS后没有备份情况下的数据恢复
2007-05-08 12:10:33 来源:WEB开发网核心提示: (3)当前时刻记为A点,做数据库的一致冷备份,RESETLOGS后没有备份情况下的数据恢复(4),copy f:est*.dbf f:coolcoolacopy f:est1ctl.ctl f:coolctl_a(4)以试验用户demo登录,并插入数据到表a中,create table a
(3)当前时刻记为A点,做数据库的一致冷备份。
copy f: est*.dbf f:coolcoola
copy f: est1ctl.ctl f:coolctl_a
(4)以试验用户demo登录,并插入数据到表a中。
create table a (i number);
commit;
insert into a values(1);
commit;
alter system switch logfile;
insert into a values(2);
commit;
alter system switch logfile;
insert into a values(3);
commit;
alter system switch logfile;
(5)记录当前时刻为B点。
SQL> select to_char(sysdate,'DD-MONTH-YYYY HH24:MI:SS') "DATE" from dual;
DATE
--------------------------
04-OCTOBER -2002 09:18:52
(6)继续由用户demo向表a插入数据。
insert into a values(4);
commit;
alter system switch logfile;
insert into a values(5);
commit;
alter system switch logfile;
insert into a values(6);
commit;
alter system switch logfile;
alter system switch logfile;
alter system switch logfile;
(7)记录当前时刻为B'点。
SQL> select to_char(sysdate,'DD-MONTH-YYYY HH24:MI:SS') "DATE" from dual;
DATE
--------------------------
04-OCTOBER -2002 09:21:13
(8)以SYSDBA身份查看归档日志并关闭数据库。
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination f: est
Oldest online log sequence 27
Next log sequence to archive 28
Current log sequence 28
SQL> shutdown
更多精彩
赞助商链接