Restore user errors using the Flashback database feature in Oracle

Source: Internet
Author: User
Tags dba log

ORACLE10G has a new feature flashback Database that, when you start it, periodically writes the changed chunks to the log file of the flashback log. Note that these logs are not written by the traditional log Writer (LGWR) procedure, but by a new process called recovery Writer.

$ ps -ef|grep rvwr|grep -v grep
oracle 27231   1 0 17:10:30 ?    0:00 ora_rvwr_eygle

Note: Unlike regular redo logs, the flash logs do not require DBA creation or DBA maintenance, and they are automatically created by Oracle Managed Files (OMF) in the directory specified in the Flashback recovery area. Note that these files are not archived, so if there is a media failure in the directory, it is not possible to recover.

(1) First enable the Flash back database feature

SYS as SYSDBA on 2005-03-29 16:42:19 >startup mount;
ORACLE instance started.
Total System Global area 314572800 bytes
Fixed Size 1301704 bytes
Variable Size 261890872 bytes
Database buffers 50331648 bytes
Redo buffers 1048576 bytes
Database mounted.
SYS as SYSDBA on 29-mar-05 >alter database archivelog;
Database altered.
SYS as SYSDBA on 29-mar-05 >alter the database flashback on;
Database altered.
SYS as SYSDBA on 29-mar-05 >alter database open;
Database altered.
SYS as SYSDBA on 29-mar-05 >alter session set nls_date_format=
' Yyyy-mm-dd hh24:mi:ss ';
Session altered.
SYS as SYSDBA on 2005-03-29 17:01:42 >select OLDEST_FLASHBACK_SCN,
oldest_flashback_time 2 from V$flashback_database_log;
Oldest_flashback_scn oldest_flashback_ti
---------------------------------------
10642627 2005-03-29 1 7:01:02

(2) Flash back log

Note: Oracle will log logs in the Flash-back area.

$ pwd
/data5/flash_recovery_area/EYGLE/flashback
$ ls -l
total 32064
-rw-r-----  1 oracle  dba   8200192 Mar 29 16:49 o1_mf_14l5bclp_.flb
-rw-r-----  1 oracle  dba   8200192 Mar 29 17:31 o1_mf_14l6w5h4_.flb

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.