WEB开发网
开发学院数据库Oracle 使用Oracle10g新特性,跨越Resetlogs时间点进行恢复... 阅读

使用Oracle10g新特性,跨越Resetlogs时间点进行恢复

 2007-07-24 12:34:40 来源:WEB开发网   
核心提示: 2.进行数据更改$ sqlplus "/ as sysdba"SQL*Plus: Release 10.1.0.2.0 - Production on Tue Apr 5 16:32:23 2005Copyright (c) 1982, 2004, Oracle.All

2.进行数据更改

$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.1.0.2.0 - Production on Tue Apr 5 16:32:23 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SYS AS SYSDBA on 2005-04-05 16:32:23 >alter system switch logfile;
System altered.
SYS AS SYSDBA on 2005-04-05 16:32:30 >select count(*) from t;
 COUNT(*)
----------
   18956
SYS AS SYSDBA on 2005-04-05 16:33:03 >insert into t select * from t;
18956 rows created.
SYS AS SYSDBA on 2005-04-05 16:33:17 >commit;
Commit complete.
SYS AS SYSDBA on 2005-04-05 16:33:19 >alter system switch logfile;
System altered.
SYS AS SYSDBA on 2005-04-05 16:33:45 >truncate table t;
Table truncated.
SYS AS SYSDBA on 2005-04-05 16:34:58 >alter system switch logfile;
System altered.

此时的日志序列情况如下:

SYS AS SYSDBA on 2005-04-05 16:35:00 >select * from v$log_history where recid >1811;
   RECID   STAMP  THREAD# SEQUENCE# FIRST_CHANGE# FIRST_TIME     NEXT_CHANGE# RESETLOGS_CHANGE# RESETLOGS_TIME
---------- ---------- ---------- ---------- ------------- ------------------- ------------ ----------------- -------------------
   1812 554813757     1     1   10923677 2005-04-05 09:54:53   10925720     10923677 2005-04-05 09:54:53
   1813 554813974     1     2   10925720 2005-04-05 10:55:57   10925827     10923677 2005-04-05 09:54:53
   1814 554823464     1     3   10925827 2005-04-05 10:59:34   10947409     10923677 2005-04-05 09:54:53
   1815 554828646     1     4   10947409 2005-04-05 13:37:44   10950318     10923677 2005-04-05 09:54:53
   1816 554833748     1     5   10950318 2005-04-05 15:04:06   10953123     10923677 2005-04-05 09:54:53
   1817 554833901     1     6   10953123 2005-04-05 16:29:08   10953187     10923677 2005-04-05 09:54:53
   1818 554833950     1     7   10953187 2005-04-05 16:31:41   10953213     10923677 2005-04-05 09:54:53
   1819 554834005     1     8   10953213 2005-04-05 16:32:30   10953633     10923677 2005-04-05 09:54:53
   1820 554834118     1     9   10953633 2005-04-05 16:33:25   10953726     10923677 2005-04-05 09:54:53
9 rows selected.

上一页  1 2 3 4 5 6  下一页

Tags:使用 Oracleg 特性

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接