用户管理的flash功能

flash的几个类别

  • Oracle Flashback Database, which returns your entire database to a previous state without requiring you to restore files from backup;

  • Oracle Flashback Table, which returns one or more tables to their contents at a previous time;

  • Oracle Flashback Drop, which undoes the effects of the DROP TABLE operation;

  • Oracle Flashback Query, which is used to query the contents of the database at a past time;

  • Oracle Flashback Version Query, which lets you view past states of data;

  • Oracle Flashback Transaction Query, which is used to review transactions affecting a table over time.

使用闪回数据库的步骤

1

SELECT CURRENT_SCN FROM V$DATABASE;
2
 SELECT OLDEST_FLASHBACK_SCN, OLDEST_FLASHBACK_TIME 
     FROM V$FLASHBACK_DATABASE_LOG;
3
FLASHBACK DATABASE TO SCN 46963;
FLASHBACK DATABASE TO TIMESTAMP (SYSDATE-1/24);
FLASHBACK DATABASE TO TIMESTAMP timestamp'2002-11-05 14:00:00';
FLASHBACK DATABASE 
  TO TIMESTAMP to_timestamp('2002-11-11 16:00:00', 'YYYY-MM-DD HH24:MI:SS');

你可能感兴趣的:(用户管理的flash功能)