关于Flashback database --闪回数据库

地址:http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_9011.htm#SQLRF01801

FLASHBACKDATABASE

Purpose---目的

 

 

Use the FLASHBACK DATABASEstatement to return the database to a past time or system changenumber (SCN). This statement provides a fast alternative toperforming incomplete database recovery.

Following a FLASHBACK DATABASEoperation, in order to have write access to the flashed backdatabase, you must reopen it with anALTERDATABASE OPEN RESETLOGSstatement.

 

注意:使用FLASHBACKDATABASE来闪回数据库,其实是相当一个不完全恢复。但如果文件因介质损坏而丢失,那么只能使用RMAN来恢复,任何闪回的方法都毫无用处,包括flashbackdatabase的不完全恢复。

 

Prerequisites----应用它的先决条件

 

You must have the SYSDBA system privilege.A flash recovery area must have been prepared for the database. Thedatabase must have been put inFLASHBACK mode with anALTER DATABASE FLASHBACKON statement unless you are flashing the database backto a guaranteed restore point. The database must be mounted but notopen.

 

 

Syntax

flashback_database::=

Description of flashback_database.gif follows
Description of the illustrationflashback_database.gif

TO TIMESTAMPClause

Specify a valid datetime expression.

  • TO TIMESTAMP reverts the database back to its stateat the specified timestamp.

  • TO BEFORE TIMESTAMP reverts the database back toits state one second before the specified timestamp.

You can represent the timestamp as an offset from adeterminate value, such asSYSDATE, or as an absolutesystem timestamp.--你可以指定一个确定的类型的值,比如SYSDATA,或者一个绝对系统时间戳来作为TIMESTAMP的值。

 

文档地址:http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_1004.htm#i2155821

 

 

FLASHBACKON Use this clause to putthe database inFLASHBACK mode. When the database isin FLASHBACK mode, Oracle Database automaticallycreates and manages Flashback Database logs in the flash recoveryarea. Users withSYSDBA system privilege can thenissue a FLASHBACK DATABASE statement.

 

FLASHBACKOFF Use this clause to take the database out ofFLASHBACK mode. Oracle Database stops loggingFlashback data and deletes all existing Flashback Database logs.Any attempt to issue a FLASHBACK DATABASEwill fail with an error.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值