0% found this document useful (0 votes)
23 views2 pages

Flashback Database

The document provides steps to configure and test flashback database functionality in Oracle. It demonstrates creating a restore point, dropping and recreating tables, and using flashback commands like flashback database and flashback to scn to restore dropped or modified data. Key steps include enabling archivelog mode, creating a restore point, dropping tables, and using flashback database and flashback to scn to restore the dropped tables.

Uploaded by

Mahbubul Alam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

Flashback Database

The document provides steps to configure and test flashback database functionality in Oracle. It demonstrates creating a restore point, dropping and recreating tables, and using flashback commands like flashback database and flashback to scn to restore dropped or modified data. Key steps include enabling archivelog mode, creating a restore point, dropping tables, and using flashback database and flashback to scn to restore the dropped tables.

Uploaded by

Mahbubul Alam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Flashback Database=====================

Sqlplus /nolog

Select flashback_on , log_mode from v$database;

SQL> set time on

If yes and archivelog then proceed this code

SQL> show parameter flashback;

Otherwise follow this

Shutdown immediate;

Startup mount;

Alter database archivelog;

Alter system set db_flashback_retention_target=2400 scope=both;

Alter database open;

SQL> create table scott.dept_fb_db as select * from scott.dept;

SQL> select count(*) from scott.dept_fb_db;

SQL> select current_scn from v$database;

SQL> drop table scott.dept_fb_db purge;

SQL> select count(*) from scott.dept_fb_db;

SQL> create table scott.dept_fb_db1 as select * from scott.dept;

SQL> select * from v$restore_point;

SQL> desc v$restore_point;

SQL> create restore point FIRST guarantee flashback database;

SQL> select * from v$restore_point;

SQL> drop table scott.dept_fb_db1 purge;

SQL> select count(*) from scott.dept_fb_db1;


SQL> shuntdown immediate;

SQL> startup mount;

SQL> flashback database to restore point first;

SQL> alter database open resetlogs;

SQL> select count(*) from scott.dept_fb_db1;

Another work

SQL> select count(*) from scott.dept_fb_db;

SQL> shuntdown immediate;

SQL> startup mount;

SQL> exit;

C:\Users\Administrator>rman target /

RMAN> flashback database to scn = ;

Exit;

Cmd> sqlplus /nolog

SQL> alter database open resetlogs;

SQL> select * from scott.dept_fb_db;

SQL> select * from scott.dept_fb_db1;

Another way

SQL> flashback database to timestamp to_timestamp(’07-apr-19 10:00:00’,’dd-mon-yy hh24:mi:ss’);

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy