- 最后登录
- 2015-4-22
- 在线时间
- 122 小时
- 威望
- 133
- 金钱
- 1304
- 注册时间
- 2012-2-22
- 阅读权限
- 50
- 帖子
- 144
- 精华
- 1
- 积分
- 133
- UID
- 254
|
2#
发表于 2013-1-16 18:34:05
本帖最后由 saup007 于 2013-1-16 18:36 编辑
没有备份,这个还能恢复不,除了使用闪回。使用闪回。- 18:36:58 sys@TEST10G>
- select * from
- 18:37:16 2 v$flashback_database_log;
- OLDEST_FLASHBACK_SCN OLDEST_FLASHBACK_TI RETENTION_TARGET FLASHBACK_SIZE ESTIMATED_FLASHBACK_SIZE
- -------------------- ------------------- ---------------- -------------- ------------------------
- 615690 2013-01-16 16:23:23 1440 24576000 25681920
- 18:37:18 sys@TEST10G>
- 18:37:18 sys@TEST10G> flashback database to scn 621452;
- Flashback complete.
- 18:37:48 sys@TEST10G> alter database open read only;
- Database altered.
- 18:38:02 sys@TEST10G> conn saup/saup
- Connected.
- 18:38:05 saup@TEST10G> select * from tab;
- TNAME TABTYPE CLUSTERID
- ------------------------------ ------- ----------
- TES_FLASHBACK2 TABLE
- TES_FLASHBACK4 TABLE
- TES_FLASHBACK3 TABLE
- FLASHBACK_RECOVER2 TABLE
- 18:38:09 saup@TEST10G> select file#,name,status from v$datafile;
- FILE# NAME STATUS
- ---------- ------------------------------------------------------------------------------------------ -------
- 1 /u01/oradata/TEST10G/system01.dbf SYSTEM
- 2 /u01/oradata/TEST10G/undotbs01.dbf RECOVER
- 3 /u01/oradata/TEST10G/sysaux01.dbf RECOVER
- 4 /u01/oradata/TEST10G/users01.dbf RECOVER
- 5 /u01/oradata/TEST10G/ts_dba.dbf RECOVER
- 6 /u01/oradata/TEST10G/test_flashback.dbf RECOVER
- 6 rows selected.
- 18:38:19 saup@TEST10G> select file#,name,status from v$datafile_header;
- FILE# NAME STATUS
- ---------- ------------------------------------------------------------------------------------------ -------
- 1 /u01/oradata/TEST10G/system01.dbf ONLINE
- 2 /u01/oradata/TEST10G/undotbs01.dbf ONLINE
- 3 /u01/oradata/TEST10G/sysaux01.dbf ONLINE
- 4 /u01/oradata/TEST10G/users01.dbf ONLINE
- 5 /u01/oradata/TEST10G/ts_dba.dbf ONLINE
- 6 /u01/oradata/TEST10G/test_flashback.dbf ONLINE
- 6 rows selected.
复制代码 |
|