Skip to Main Content
  • Questions
  • sync flash back database with standby

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, saeed.

Asked: December 16, 2015 - 11:38 am UTC

Last updated: December 21, 2015 - 12:54 am UTC

Version: 11.2.0.3

Viewed 1000+ times

You Asked

Can we continue sync out standby data base from primary database after we done flash back data base on it and how. Our database is 11g
Our standby database is not set to be as auto managed standby nor data guard configured on it.
We ship the generated of lined redo logs to standby database and then use command recover standby database to apply them on standby site.


Can you be more specific - did you flashback your primary database or did you flashback your standby database ?

We are flashing back our primary database.

and Connor said...

OK, when you flashed back your primary data, it would have been opened with a resetlogs. You can get the SCN for that event using:

select resetlogs_change# from v$database;

So then, flashback your *standby* to the same scn

flashback database to scn ????;

and then resume the normal recovery

Hope this helps.

Rating

  (3 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

From the Documentation

Hemant K Chitale, December 18, 2015 - 4:11 am UTC

See 13.3.1 at http://docs.oracle.com/cd/E11882_01/server.112/e41134/scenarios.htm#SBYDB4893

This will work with a manual standby as well.

The guidance did not work

saeed Amoudi, December 20, 2015 - 5:19 am UTC

we could not run the flash back command we get the below error
SQL> FLASHBACK DATABASE TO SCN 168585386;
FLASHBACK DATABASE TO SCN 168585386
*
ERROR at line 1:
ORA-38726: Flashback database logging is not on.

Connor McDonald
December 21, 2015 - 12:54 am UTC

Since you flashed back the primary database, I had assumed you had enabled flashback on the standby (and when I say enabled, I mean that it was enabled on the standby *at the time* of the flashback on the primary).

If you've only enabled it 'now', then it isnt going to help.

In this case, you'll need to restore an older backup (before scn 168585386) and start from there (or recreate the standby)


The guidance did not work

saeed Amoudi, December 20, 2015 - 10:00 am UTC

the solution does not work further more we have configure the flash back on both primary and standby but with no help.