dbTalk Databases Forums  

Physical Standby Database and v$Recover_file Query

comp.databases.oracle.server comp.databases.oracle.server


Discuss Physical Standby Database and v$Recover_file Query in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Johne_uk
 
Posts: n/a

Default Physical Standby Database and v$Recover_file Query - 02-05-2010 , 11:11 AM






Hi

I have created a traditional physical standby instance from a hot
backup using a standby controlfile etc. from the primary db
(10.2.0.4). Not using dataguard but there were no issues during
creation.

In standby mode if I querry v$recover file I receive the following.

FILE# ONLINE ONLINE_STATUS ERROR CHANGE# TIME
1 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
2 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
3 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
4 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
5 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
6 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
7 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
8 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
9 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55

If I bring up the instance in read-only mode executing the same query
returns nothing and there are no datafiles etc offline.

Is it normal to receive this output from v$recover_file when an
instance is running in standby mode. I need to have confidence that it
can be activated in the event of a primary instance failure.

I'm wondering if its because I used a standby controlfile and applied
about 40-50 archive logs that were generated after it was created from
primary.

There is no archive gap either.

Thanks in advance

John

Reply With Quote
  #2  
Old   
vsevolod afanassiev
 
Posts: n/a

Default Re: Physical Standby Database and v$Recover_file Query - 02-06-2010 , 12:38 AM






If standby database opened in read inly mode then select from v
$recoverf_file will return no rows as there is nothing to recover -
all files are consistent.

What exactly is 'standby mode' - managed recovery mode?

Check V$DATABASE, you should gave

OPEN_MODE = 'MOUNTED'
DATABASE_ROLE = 'PHYSICAL STANDBY'

Are you able to test activation?

Reply With Quote
  #3  
Old   
Johne_uk
 
Posts: n/a

Default Re: Physical Standby Database and v$Recover_file Query - 02-08-2010 , 08:51 AM



On 6 Feb, 06:38, vsevolod afanassiev <vsevolod.afanass... (AT) gmail (DOT) com>
wrote:
Quote:
If standby database opened in read inly mode then select from v
$recoverf_file will return no rows as there is nothing to recover -
all files are consistent.

What exactly is 'standby mode' - managed recovery mode?

Check V$DATABASE, you should gave

OPEN_MODE = 'MOUNTED'
DATABASE_ROLE = 'PHYSICAL STANDBY'

Are you able to test activation?
Hi,

It is a physical standby instance running in managed receovery mode as
you suggest above.

I have scripts that copy the generated archive logs to the remote
standby location and applied manually.

i.e. alter database register physical logfile xxxxxxxx;

As well as the issue above, I have just realised something else is
incorrect (this is the first time I've created a standby database).

The archives logs are being registered but not applied. The sql below
returned all archive logs I had registed since the instance was
created from primary.

select sequence#, applied from v$archived_log
where applied <> 'YES'

I automatically purge archive logs files older than 3 days on the
standby server so as they have not actually been applied then it
cannot be activated (no logs to recover from). I'm aware the Dataguard
looks after this process but in this scenario I cannot use Dataguard.

So I obviously have missed something that will apply the logs after
they have been registered.

I'm wondering if I need to issue the following command periodically to
apply logs:-

alter database recover managed standby database cancel;
alter database recover standby database until cancel;
alter database recover managed standby database disconnect from
session;

Would this then apply all the logs that had been registered ?

Many thanks

Reply With Quote
  #4  
Old   
Johne_uk
 
Posts: n/a

Default Re: Physical Standby Database and v$Recover_file Query - 02-08-2010 , 09:15 AM



On 8 Feb, 14:51, Johne_uk <edg... (AT) tiscali (DOT) co.uk> wrote:
Quote:
On 6 Feb, 06:38, vsevolod afanassiev <vsevolod.afanass... (AT) gmail (DOT) com
wrote:

If standby database opened in read inly mode then select from v
$recoverf_file will return no rows as there is nothing to recover -
all files are consistent.

What exactly is 'standby mode' - managed recovery mode?

Check V$DATABASE, you should gave

OPEN_MODE = 'MOUNTED'
DATABASE_ROLE = 'PHYSICAL STANDBY'

Are you able to test activation?

Hi,

It is a physical standby instance running in managed receovery mode as
you suggest above.

I have scripts that copy the generated archive logs to the remote
standby location and applied manually.

i.e. alter database register physical logfile xxxxxxxx;

As well as the issue above, I have just realised something else is
incorrect (this is the first time I've created a standby database).

The archives logs are being registered but not applied. The sql below
returned all archive logs I had registed since the instance was
created from primary.

select sequence#, applied from v$archived_log
where applied <> 'YES'

I automatically purge archive logs files older than 3 days on the
standby server so as they have not actually been applied then it
cannot be activated (no logs to recover from). I'm aware the Dataguard
looks after this process but in this scenario I cannot use Dataguard.

So I obviously have missed something that will apply the logs after
they have been registered.

I'm wondering if I need to issue the following command periodically to
apply logs:-

alter database recover managed standby database cancel;
alter database recover standby database until cancel;
alter database recover managed standby database disconnect from
session;

Would this then apply all the logs that had been registered ?

Many thanks
FYI the last command I issued was :-

alter database recover managed standby database disconnect from
session;

(then I start registering logs via cron jobs)

cheers

Reply With Quote
  #5  
Old   
Pratheep
 
Posts: n/a

Default Re: FYI the last command I issued was :-alter database recover managedstandby - 11-28-2010 , 08:09 PM



Hi,

I have got the same situation in one of my new manual standby database (log transfer & apply using scripts), v$recover_file query showing all datafiles. But in alert log and traces no errors reported.

Are you try to activate the mentioned standby database. Please update the status.

Thank you
Pratheep

Quote:
On Friday, February 05, 2010 12:11 PM Johne_uk wrote:

Hi

I have created a traditional physical standby instance from a hot
backup using a standby controlfile etc. from the primary db
(10.2.0.4). Not using dataguard but there were no issues during
creation.

In standby mode if I querry v$recover file I receive the following.

FILE# ONLINE ONLINE_STATUS ERROR CHANGE# TIME
1 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
2 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
3 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
4 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
5 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
6 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
7 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
8 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55
9 ONLINE ONLINE 8185278196312 05/02/2010 14:11:55

If I bring up the instance in read-only mode executing the same query
returns nothing and there are no datafiles etc offline.

Is it normal to receive this output from v$recover_file when an
instance is running in standby mode. I need to have confidence that it
can be activated in the event of a primary instance failure.

I am wondering if its because I used a standby controlfile and applied
about 40-50 archive logs that were generated after it was created from
primary.

There is no archive gap either.

Thanks in advance

John

Quote:
On Saturday, February 06, 2010 1:38 AM vsevolod afanassiev wrote:

If standby database opened in read inly mode then select from v
$recoverf_file will return no rows as there is nothing to recover -
all files are consistent.

What exactly is 'standby mode' - managed recovery mode?

Check V$DATABASE, you should gave

OPEN_MODE = 'MOUNTED'
DATABASE_ROLE = 'PHYSICAL STANDBY'

Are you able to test activation?

Quote:
On Monday, February 08, 2010 9:51 AM Johne_uk wrote:

wrote:

Hi,

It is a physical standby instance running in managed receovery mode as
you suggest above.

I have scripts that copy the generated archive logs to the remote
standby location and applied manually.

i.e. alter database register physical logfile xxxxxxxx;

As well as the issue above, I have just realised something else is
incorrect (this is the first time I have created a standby database).

The archives logs are being registered but not applied. The sql below
returned all archive logs I had registed since the instance was
created from primary.

select sequence#, applied from v$archived_log
where applied <> 'YES'

I automatically purge archive logs files older than 3 days on the
standby server so as they have not actually been applied then it
cannot be activated (no logs to recover from). I am aware the Dataguard
looks after this process but in this scenario I cannot use Dataguard.

So I obviously have missed something that will apply the logs after
they have been registered.

I am wondering if I need to issue the following command periodically to
apply logs:-

alter database recover managed standby database cancel;
alter database recover standby database until cancel;
alter database recover managed standby database disconnect from
session;

Would this then apply all the logs that had been registered ?

Many thanks

Quote:
On Monday, February 08, 2010 10:15 AM Johne_uk wrote:

FYI the last command I issued was :-

alter database recover managed standby database disconnect from
session;

(then I start registering logs via cron jobs)

cheers

Quote:
Submitted via EggHeadCafe
Using DataList to List Category/Subcategory with expand - collapse facility via javascript
http://www.eggheadcafe.com/tutorials...avascript.aspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.