Aplicar Archivelog StandBy DataGuard

Hola a todos,
Estoy intentando aplicar los archive en el servidor de standby pero en el alert log de producción  tengo este error:
ARC1: Archive log rejected (thread 1 sequence 93578) at host 'STBY'
FAL[server, ARC1]: FAL archive failed, see trace file.
ARCH: FAL archive failed. Archiver continuing
ORACLE Instance PROD - Archival Error. Archiver continuing.
Datos Generales
Base de datos:  11g Enterprise Edition Release 11.2.0.3.0 con ASM
Sistema operativo: AIX 5
Stasnby Query
SQL> SELECT sequence#, first_time, next_time, applied FROM   v$archived_log ORDER BY sequence#;
SEQUENCE# FIRST_TIM NEXT_TIME APPLIED
     93578 07-APR-15 07-APR-15 NO
     93590 07-APR-15 07-APR-15 NO
     93591 07-APR-15 07-APR-15 NO
     93592 07-APR-15 07-APR-15 NO
     93593 07-APR-15 07-APR-15 NO
     93594 07-APR-15 07-APR-15 NO
     93595 07-APR-15 07-APR-15 NO
     93596 07-APR-15 07-APR-15 NO
     93597 07-APR-15 07-APR-15 NO
     93598 07-APR-15 07-APR-15 NO
     93599 07-APR-15 07-APR-15 NO
Los archivos de claves entre ambos servidores son correctos y los archivelogs se pueden pasar sin complicación es inconveniente es al aplicarlos
Espero me puedan ayudar,

Alert Log StandBy
Wed Apr 08 06:26:21 2015
Archived Log entry 492 added for thread 1 sequence 94083 ID 0x5b342646 dest 1:
Wed Apr 08 07:19:39 2015
Archived Log entry 493 added for thread 1 sequence 94084 rlc 820552742 ID 0x5b342646 dest 2:
RFS[1]: Selected log 7 for thread 1 sequence 94085 dbid 1528939555 branch 820552742
Wed Apr 08 08:23:45 2015
RFS[1]: No standby redo logfiles available for thread 1
RFS[1]: Opened log for thread 1 sequence 94086 dbid 1528939555 branch 820552742
Wed Apr 08 08:23:45 2015
Archived Log entry 494 added for thread 1 sequence 94085 ID 0x5b342646 dest 1:
Wed Apr 08 08:58:36 2015
Archived Log entry 495 added for thread 1 sequence 94086 rlc 820552742 ID 0x5b342646 dest 2:
RFS[1]: Selected log 7 for thread 1 sequence 94087 dbid 1528939555 branch 820552742
Wed Apr 08 09:44:31 2015
RFS[1]: No standby redo logfiles available for thread 1
RFS[1]: Opened log for thread 1 sequence 94088 dbid 1528939555 branch 820552742
Wed Apr 08 09:44:31 2015
Archived Log entry 496 added for thread 1 sequence 94087 ID 0x5b342646 dest 1:
Wed Apr 08 10:25:37 2015
Archived Log entry 497 added for thread 1 sequence 94088 rlc 820552742 ID 0x5b342646 dest 2:
RFS[1]: Selected log 7 for thread 1 sequence 94089 dbid 1528939555 branch 820552742
Wed Apr 08 10:39:31 2015
RFS[1]: No standby redo logfiles available for thread 1
RFS[1]: Opened log for thread 1 sequence 94090 dbid 1528939555 branch 820552742
Wed Apr 08 10:39:31 2015
Archived Log entry 498 added for thread 1 sequence 94089 ID 0x5b342646 dest 1:
Wed Apr 08 10:42:19 2015
Archived Log entry 499 added for thread 1 sequence 94090 rlc 820552742 ID 0x5b342646 dest 2:
RFS[1]: Selected log 7 for thread 1 sequence 94091 dbid 1528939555 branch 820552742
Wed Apr 08 10:48:31 2015
RFS[1]: No standby redo logfiles available for thread 1
RFS[1]: Opened log for thread 1 sequence 94092 dbid 1528939555 branch 820552742
Wed Apr 08 10:48:31 2015
Archived Log entry 500 added for thread 1 sequence 94091 ID 0x5b342646 dest 1:
Wed Apr 08 11:16:46 2015
Archived Log entry 501 added for thread 1 sequence 94092 rlc 820552742 ID 0x5b342646 dest 2:
RFS[1]: Selected log 7 for thread 1 sequence 94093 dbid 1528939555 branch 820552742
Alert Log PROD
Wed Apr 08 06:05:02 2015
DM00 started with pid=95, OS id=26345576, job RESPALDO.EXPDPFULL02
Wed Apr 08 06:05:05 2015
DW00 started with pid=97, OS id=18612390, wid=1, job RESPALDO.EXPDPFULL02
Wed Apr 08 06:06:21 2015
Thread 1 cannot allocate new log, sequence 94081
Private strand flush not complete
  Current log# 3 seq# 94080 mem# 0: +DATA/uif/onlinelog/group_3.264.820552743
  Current log# 3 seq# 94080 mem# 1: +FRA/uif/onlinelog/group_3.259.820552743
Thread 1 advanced to log sequence 94081 (LGWR switch)
  Current log# 1 seq# 94081 mem# 0: +DATA/uif/onlinelog/group_1.262.820552743
  Current log# 1 seq# 94081 mem# 1: +FRA/uif/onlinelog/group_1.257.820552743
Wed Apr 08 06:06:24 2015
Archived Log entry 128185 added for thread 1 sequence 94080 ID 0x5b342646 dest 1:
Wed Apr 08 06:06:24 2015
LNS: Standby redo logfile selected for thread 1 sequence 94081 for destination LOG_ARCHIVE_DEST_2
Wed Apr 08 06:06:45 2015
Thread 1 cannot allocate new log, sequence 94082
Private strand flush not complete
  Current log# 1 seq# 94081 mem# 0: +DATA/uif/onlinelog/group_1.262.820552743
  Current log# 1 seq# 94081 mem# 1: +FRA/uif/onlinelog/group_1.257.820552743
Thread 1 advanced to log sequence 94082 (LGWR switch)
  Current log# 2 seq# 94082 mem# 0: +DATA/uif/onlinelog/group_2.263.820552743
  Current log# 2 seq# 94082 mem# 1: +FRA/uif/onlinelog/group_2.258.820552743
Wed Apr 08 06:06:48 2015
Archived Log entry 128187 added for thread 1 sequence 94081 ID 0x5b342646 dest 1:
Wed Apr 08 06:07:45 2015
Thread 1 cannot allocate new log, sequence 94083
Checkpoint not complete
  Current log# 2 seq# 94082 mem# 0: +DATA/uif/onlinelog/group_2.263.820552743
  Current log# 2 seq# 94082 mem# 1: +FRA/uif/onlinelog/group_2.258.820552743
Thread 1 advanced to log sequence 94083 (LGWR switch)
  Current log# 3 seq# 94083 mem# 0: +DATA/uif/onlinelog/group_3.264.820552743
  Current log# 3 seq# 94083 mem# 1: +FRA/uif/onlinelog/group_3.259.820552743
Wed Apr 08 06:07:48 2015
Archived Log entry 128189 added for thread 1 sequence 94082 ID 0x5b342646 dest 1:
Wed Apr 08 06:07:48 2015
LNS: Standby redo logfile selected for thread 1 sequence 94083 for destination LOG_ARCHIVE_DEST_2
Wed Apr 08 06:27:30 2015
Thread 1 cannot allocate new log, sequence 94084
Private strand flush not complete
  Current log# 3 seq# 94083 mem# 0: +DATA/uif/onlinelog/group_3.264.820552743
  Current log# 3 seq# 94083 mem# 1: +FRA/uif/onlinelog/group_3.259.820552743
Thread 1 advanced to log sequence 94084 (LGWR switch)
  Current log# 1 seq# 94084 mem# 0: +DATA/uif/onlinelog/group_1.262.820552743
  Current log# 1 seq# 94084 mem# 1: +FRA/uif/onlinelog/group_1.257.820552743
Wed Apr 08 06:27:33 2015
Archived Log entry 128192 added for thread 1 sequence 94083 ID 0x5b342646 dest 1:
Wed Apr 08 07:05:01 2015
DM00 started with pid=86, OS id=33357990, job RESPALDO.EXPDPGDOC
Wed Apr 08 07:05:02 2015
DW00 started with pid=95, OS id=11403480, wid=1, job RESPALDO.EXPDPGDOC
Wed Apr 08 07:20:48 2015
Thread 1 cannot allocate new log, sequence 94085
Private strand flush not complete
  Current log# 1 seq# 94084 mem# 0: +DATA/uif/onlinelog/group_1.262.820552743
  Current log# 1 seq# 94084 mem# 1: +FRA/uif/onlinelog/group_1.257.820552743
Thread 1 advanced to log sequence 94085 (LGWR switch)
  Current log# 2 seq# 94085 mem# 0: +DATA/uif/onlinelog/group_2.263.820552743
  Current log# 2 seq# 94085 mem# 1: +FRA/uif/onlinelog/group_2.258.820552743
Wed Apr 08 07:20:52 2015
Archived Log entry 128194 added for thread 1 sequence 94084 ID 0x5b342646 dest 1:
Wed Apr 08 07:20:52 2015
LNS: Standby redo logfile selected for thread 1 sequence 94085 for destination LOG_ARCHIVE_DEST_2
Wed Apr 08 08:24:55 2015
Thread 1 cannot allocate new log, sequence 94086
Private strand flush not complete
  Current log# 2 seq# 94085 mem# 0: +DATA/uif/onlinelog/group_2.263.820552743
  Current log# 2 seq# 94085 mem# 1: +FRA/uif/onlinelog/group_2.258.820552743
Thread 1 advanced to log sequence 94086 (LGWR switch)
  Current log# 3 seq# 94086 mem# 0: +DATA/uif/onlinelog/group_3.264.820552743
  Current log# 3 seq# 94086 mem# 1: +FRA/uif/onlinelog/group_3.259.820552743
Wed Apr 08 08:24:58 2015
Archived Log entry 128195 added for thread 1 sequence 94085 ID 0x5b342646 dest 1:
Wed Apr 08 08:59:46 2015
Thread 1 cannot allocate new log, sequence 94087
Private strand flush not complete
  Current log# 3 seq# 94086 mem# 0: +DATA/uif/onlinelog/group_3.264.820552743
  Current log# 3 seq# 94086 mem# 1: +FRA/uif/onlinelog/group_3.259.820552743
Thread 1 advanced to log sequence 94087 (LGWR switch)
  Current log# 1 seq# 94087 mem# 0: +DATA/uif/onlinelog/group_1.262.820552743
  Current log# 1 seq# 94087 mem# 1: +FRA/uif/onlinelog/group_1.257.820552743
Wed Apr 08 08:59:49 2015
Archived Log entry 128197 added for thread 1 sequence 94086 ID 0x5b342646 dest 1:
Wed Apr 08 08:59:49 2015
LNS: Standby redo logfile selected for thread 1 sequence 94087 for destination LOG_ARCHIVE_DEST_2
Wed Apr 08 09:45:40 2015
Thread 1 cannot allocate new log, sequence 94088
Private strand flush not complete
  Current log# 1 seq# 94087 mem# 0: +DATA/uif/onlinelog/group_1.262.820552743
  Current log# 1 seq# 94087 mem# 1: +FRA/uif/onlinelog/group_1.257.820552743
Thread 1 advanced to log sequence 94088 (LGWR switch)
  Current log# 2 seq# 94088 mem# 0: +DATA/uif/onlinelog/group_2.263.820552743
  Current log# 2 seq# 94088 mem# 1: +FRA/uif/onlinelog/group_2.258.820552743
Wed Apr 08 09:45:43 2015
Archived Log entry 128200 added for thread 1 sequence 94087 ID 0x5b342646 dest 1:
Wed Apr 08 10:26:49 2015
Thread 1 advanced to log sequence 94089 (LGWR switch)
  Current log# 3 seq# 94089 mem# 0: +DATA/uif/onlinelog/group_3.264.820552743
  Current log# 3 seq# 94089 mem# 1: +FRA/uif/onlinelog/group_3.259.820552743
Wed Apr 08 10:26:50 2015
Archived Log entry 128201 added for thread 1 sequence 94088 ID 0x5b342646 dest 1:
Wed Apr 08 10:26:50 2015
LNS: Standby redo logfile selected for thread 1 sequence 94089 for destination LOG_ARCHIVE_DEST_2
Wed Apr 08 10:40:44 2015
Thread 1 advanced to log sequence 94090 (LGWR switch)
  Current log# 1 seq# 94090 mem# 0: +DATA/uif/onlinelog/group_1.262.820552743
  Current log# 1 seq# 94090 mem# 1: +FRA/uif/onlinelog/group_1.257.820552743
Wed Apr 08 10:40:44 2015
Archived Log entry 128203 added for thread 1 sequence 94089 ID 0x5b342646 dest 1:
Wed Apr 08 10:43:32 2015
Thread 1 advanced to log sequence 94091 (LGWR switch)
  Current log# 2 seq# 94091 mem# 0: +DATA/uif/onlinelog/group_2.263.820552743
  Current log# 2 seq# 94091 mem# 1: +FRA/uif/onlinelog/group_2.258.820552743
Wed Apr 08 10:43:32 2015
Archived Log entry 128206 added for thread 1 sequence 94090 ID 0x5b342646 dest 1:
Wed Apr 08 10:43:32 2015
LNS: Standby redo logfile selected for thread 1 sequence 94091 for destination LOG_ARCHIVE_DEST_2
Wed Apr 08 10:49:41 2015
Thread 1 cannot allocate new log, sequence 94092
Private strand flush not complete
  Current log# 2 seq# 94091 mem# 0: +DATA/uif/onlinelog/group_2.263.820552743
  Current log# 2 seq# 94091 mem# 1: +FRA/uif/onlinelog/group_2.258.820552743
Thread 1 advanced to log sequence 94092 (LGWR switch)
  Current log# 3 seq# 94092 mem# 0: +DATA/uif/onlinelog/group_3.264.820552743
  Current log# 3 seq# 94092 mem# 1: +FRA/uif/onlinelog/group_3.259.820552743
Wed Apr 08 10:49:44 2015
Archived Log entry 128208 added for thread 1 sequence 94091 ID 0x5b342646 dest 1:
Wed Apr 08 11:17:59 2015
Thread 1 advanced to log sequence 94093 (LGWR switch)
  Current log# 1 seq# 94093 mem# 0: +DATA/uif/onlinelog/group_1.262.820552743
  Current log# 1 seq# 94093 mem# 1: +FRA/uif/onlinelog/group_1.257.820552743
Wed Apr 08 11:17:59 2015
Archived Log entry 128209 added for thread 1 sequence 94092 ID 0x5b342646 dest 1:
Wed Apr 08 11:17:59 2015
LNS: Standby redo logfile selected for thread 1 sequence 94093 for destination LOG_ARCHIVE_DEST_2
Wed Apr 08 11:45:02 2015
Thread 1 cannot allocate new log, sequence 94094
Private strand flush not complete
  Current log# 1 seq# 94093 mem# 0: +DATA/uif/onlinelog/group_1.262.820552743
  Current log# 1 seq# 94093 mem# 1: +FRA/uif/onlinelog/group_1.257.820552743
Thread 1 advanced to log sequence 94094 (LGWR switch)
  Current log# 2 seq# 94094 mem# 0: +DATA/uif/onlinelog/group_2.263.820552743
  Current log# 2 seq# 94094 mem# 1: +FRA/uif/onlinelog/group_2.258.820552743
Wed Apr 08 11:45:05 2015
Archived Log entry 128212 added for thread 1 sequence 94093 ID 0x5b342646 dest 1:

Similar Messages

  • Logical Standby Dataguard experience. Robust? Reliable?

    DBAs,
    Need sharing from all of your experience using logical standby Dataguard in 10gR2 or 11gR1. Do you feel that this logical standby technology requires high operational overhead (e.g. lots of problems, bugs, not so robust, error prone, etc). Transaction load is rather high for my environment.
    I only use physical standby so far.
    Thanks in advance

    Hi - first you need to know the purpose of requiring a logical standby.
    If it's for active standby - you might consider active dataguard in 11g.
    Also you have to go through the doc for the list of limitation/s (regarding db objects) on logical standby - there's quite a few of them.
    A well maintained/monitored system will have no additional admin overhead (maybe not initially) than the orhers.
    cheers.
    Lovell.

  • Oracle 9i database software upgrade issue with standby (Dataguard) database

    All,
    I have encountered a problem in upgrading the Oracle software on 2 of our databases in-house. The databases in question here are using Dataguard, so one is set to primary and one is set to standby. The version that they are/were starting at is 9.2.0.7.
    I was able to install and complete the 9.2.0.8 and 9.2.0.8 OCT CPU patches on the primary database, however when I moved to working on the standby database, I am got an error when attempting to follow step 6 of the post installation tasks:
    Enter the following SQL*Plus commands:
    SQL> STARTUP MIGRATE
    SQL> SPOOL patch.log
    SQL> @ORACLE_BASE\ORACLE_HOME\rdbms\admin\catpatch.sql
    SQL> SPOOL OFF
    (Please note that this is my first experience with working with Dataguard, so my methods in updating might have been a bit off-base.)
    If I attempt to startup the standby database in MIGRADE mode, I get the following error (which is expected):
    ORA-01666: controlfile is for a standby database
    If I try to run the catpatch.sql script, even after mounting the database in standby mode, I receive the additional error:
    ORA-01219: database not open: queries allowed on fixed tables/views only
    My question here is, how do I get the standby database to allow me to finish the software upgrade process, so that both versions of Oracle match on the primary and standby databases? :)
    (I did try some research on Metalink, but only found an article detailing how to upgrade your dataguard database from 9i to 10g, which did not look especially helpful in this case...)
    Thank you!
    -Sabrina

    Depending on the kind of Dataguard you currently have, physical or logical, there are two useful metalinks notes:
    Upgrading to 10g with a Physical Standby in Place
         Doc ID:      Note:278521.1
    Upgrading to 10g with a Logical Standby in Place
         Doc ID:      Note:278108.1
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Standby/Dataguard - how is it, really...

    My organization is conservative. We are wondering who is using Standy/Dataguard as a true DR solution at a remote DR vendor. I am interested in 1) type of circuit to DR (T1, T3, bandwidth, etc.), 2)distance from primary to standby (approx. mi./city names), 3) Oracle version and OS/version, 4) how many DBs, 5) how much "peak" archive log are you pushing (MB/GB per hr, 6) what is the best/average/worst latency, 7) general opinions/comments.
    Thank you very much for your time.

    DELETED
    Sorry. Read that as system password the first time. The wifi password needs to be reset in your router, then on your devices. How to do it depends on which router you have.
    In the Airport Extreme, use Airport Utility to get into the router. Double click the base station then choose edit. Select the wireless tab. Enter the new password there.

  • Standby-dataguard

    Hi
    people talk about the standby database and the dataguard.what is the actual difference between the standby database and the datagaurd.Does both of them indicate the same or there is any difference between them in their name and in their functionality.
    Regards
    Aram

    When people talk about a standby database they are referring to a "physical" or "logical" replica of the primary database. A physical standby database is one that is an exact match to the primary. Oracle "redo" logs are copied and applied to the standby so they are identical block for block. A logical standby database is not identical structurally. It could have the same data but the databases themselves could be different (different OS, different Oracle versions,etc)
    Now when people talk about Data Guard, they are talking about an Oracle product to create, administer, and monitor a physical standby database.
    Standby databases are a solution. Data Guard is software to support it, but you don't necessarily have to use Data Guard to have a standby database.
    Look here for more details:
    http://www.oracle.com/technology/deploy/availability/htdocs/DataGuardOverview.html

  • Switchover logical standby dataguard

    hi
    we are using oracle9i on enterprise linux 3 . our primary and logical database are not located remotely but are two different servers.
    now i need to know the steps that i need to perform in order to switch my primary database to standby database and vice versa . i tried few things but was unsuccessful.
    according to my concept what we need to do is
    Make sure no data is arriving and the applied and newest_scn are equal.
    change the database role of the respective database .
    make changes in initialization parameter file to change the primary dest as standby and vice versa .
    and then start logical standby apply .
    Is thier something that i am missing i tried few things from net but was not able to understand the logic and was unsuccessful .
    THANKS

    OEM>Tools>Database Applications>Dataguard Manager.
    Select primary>Disable
    Select secondary>Enable

  • Multiple Standby Dataguard Configuration

    Hi,
    Sorry if this has been posted before, but I could not find the answer.
    I have a Primary site (PRIM) and one Standby site(STBY1). The standby receives archive log changes from the primary. Also using dataguard to manage the Standby.
    I would like to create another standby (STBY2) and use the current standby (STBY1) to send changes to the other standby (STBY2).
    I've read the section on Cascade Redo Log Destinations in Section D of the Dataguard doc, but it really doesnt show how this is configured.
    I assume that my standby (STBY1) would need a the log_archive_dest_2 set to the service that points to the second standby (STBY2).
    My question is.. Do I need to be using Maximum Availibilty and send redo logs vice archive logs? How do I configure dataguard? Is the second standby (STBY2) another site in the dataguard configuration?
    Thanks,
    Roland

    I'm curious, is there a reason that you wouldn't want PRIM to supply the changes to both STBY1 and STBY2? In the configuration you're describing, if there was a failure on STBY1, you couldn't fail over from PRIM to STBY2...
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Archivelogs in Dataguard

    Hi,
    how can i confirm that there is no delay in transfer of archivelogs to the standby database.
    and if there is any delay in archivelogs how do we recover that archivelogs.
    please let me know.
    thanks a lot

    venky wrote:
    Hi,
    how can i confirm that there is no delay in transfer of archivelogs to the standby database.
    Monitor standby database frequently!.So execute below query from primary
    select max(sequence#) from v$log where archived='YES'and below from standby
    select max(sequence#) from v$archived_log where applied='YES'So they results should be same,if not then some archive logs was not applied,then investigate reason.
    and if there is any delay in archivelogs how do we recover that archivelogs.
    There are may be several situation.If some logs was not applied and still available on primary side then you can transfer these to standby and
    recover standby database until cancel and apply these logs.If they are not available then you can refresh/recover standby database using incremental backup.Refer below link.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#BGBCEBJG

  • Backup Physical Standby (Dataguard) using RMAN : Issues

    Hello All,
    I am running a RMAN backup on standby server using the command below. The RMAN backup is actually connecting to the primary database on another server, I found this very confusing and to reassure, i shutdown the primary database and ran the backup again. It fails with not able to conenct to target database. Can you please explain?
    run {
    allocate channel t1 type disk format '/backup/oracle/PRODCDW/RMAN/DBFILES_%d_t%t_s%s_p%p';
    allocate channel t2 type disk format '/backup/oracle/PRODCDW/RMAN/DBFILES_%d_t%t_s%s_p%p';
    recover copy of database with tag 'STDBY_PRODCDW';
    backup as compressed backupset format '/backup/oracle/PRODCDW/RMAN/DBFILES_%d_t%t_s%s_p%p' tag 'STDBY_PRODCDW' incremental level 1 for recover of copy with tag 'STDBY_PRODCDW' database plus archivelog delete input;
    }

    I am not doing the image copy anymore, I am taking the RMAN incremental backups for the database. I am not getting any errors now but, Here is what I want to achieve:
    I am running the RMAN backups on the standby database. I want to :
    1) Delete archivelogs on my PRIMARY server only when these logs are successfully TRANSFERED/APPLIED to all my standby databases?
    2) Delete archivelogs on my STANDBY server only when these logs are sucessfully APPLIED to the database?
    Regards

  • In my standby dataguard configuration

    Hi All,
    I observed one strange thing in my database is that my archives are getting shipped regularly to DR site but in night time only it starts to getting applied. Some time, it starts to apply but its very slow. I confirmed with network team and they said that there is no problem in connectivity.
    Could anyone tell me about this please ?
    My email # [email protected]
    Regards,
    Star Nirav
    +91 9227258878

    I'm curious, is there a reason that you wouldn't want PRIM to supply the changes to both STBY1 and STBY2? In the configuration you're describing, if there was a failure on STBY1, you couldn't fail over from PRIM to STBY2...
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Gaps in Oracle Dataguard Standby

    Hello,
    The system is a Logical Standby Dataguard.
    With the following query it is possible to see that there are gaps:
    SQL> set numformat 99999999999
    SQL> set linesize 2000
    SQL> set pagesize 20000
    SQL> select thread# trd, sequence#,
    2 first_change#, next_change#,
    3 dict_begin beg, dict_end end,
    4 to_char(timestamp, 'DD-MON-YYYY HH24:MI:SS') timestamp,
    5 (case when l.next_change# < p.read_scn then 'YES'
    6 when l.first_change# < p.applied_scn then 'CURRENT'
    7 else 'NO' end) applied
    8 from dba_logstdby_log l, dba_logstdby_progress p
    9 order by thread#, first_change#;
    1 614 18542918309 18542918429 NO NO 04-DEC-2009 09:31:11 YES
    1 633 18543602669 18543836687 NO NO 04-DEC-2009 09:31:10 YES
    1 637 18543836687 18544028244 NO NO 04-DEC-2009 09:31:10 YES
    1 12832 203846572934 203846572944 NO NO 22-DEC-2009 09:31:10 YES
    Although all of them are APPLIED, and it is still receiving and applying the redo, it seems like there are some gaps.
    How can I check that the Standby is totally synchronized? How can I check if the Standby has still those archive logs that haven't been applied?
    Thanks in advance.

    There are errors in the alert of the Primary on the 4th of Dec. and it seems like the Primary had problems trying to do the archive in the Standby:
    Error 1034 received logging on to the standby
    Errors in file /opt/oracle/diag/rdbms/db_s2/DB1/trace/DB1_arc5_15720.trc:
    ORA-01034: ORACLE not available
    FAL[server, ARC5]: FAL archive failed, see trace file.
    Errors in file /opt/oracle/diag/rdbms/db_s2/DB1/trace/DB1_arc5_15720.trc:
    ORA-16055: FAL request rejected
    ARCH: FAL archive failed. Archiver continuing
    ORACLE Instance DB1 - Archival Error. Archiver continuing.
    The thing is that I don't know if those archive logs where sent or not to the Standby and if the Standby applied them or not.
    By the following query, it seems like there are some archive logs that weren't applied, but the strange thing is that the Standby is still working and applying and that there are archive logs from today which have been received and applied, and as far as I know, the DG stops applying if there are gaps...
    1 633 18543602669 18543836687 NO NO 04-DEC-2009 09:31:10 YES
    1 637 18543836687 18544028244 NO NO 04-DEC-2009 09:31:10 YES
    1 12832 203846572934 203846572944 NO NO 22-DEC-2009 09:31:10 YES
    ...

  • Generate log sequence 1 at standby database everyday

    Hi All,
    We have standby dataguard set up namely CRMSTDY of 3 node RAC clusterware. It has been observed that log sequence number 1 is generated since last 4 days on standby database. There is nothing more information in alert_standby.log file and the same file is visible when we checked with ASMCMD utility. Below mentioned details:
    ASMCMD> ls -ltr*
    Type        Redund  Striped  Time             Sys  Name*
    N    ARCHIVELOG/*
    N    AUTOBACKUP/*
    N    ONLINELOG/*
    N    controlfile/*
    N    primarch/*
    N    1_1_748661470.dbf => FRA/CRMSTBY/ARCHIVELOG/2011_04_17/thread_1_seq_1.6721.748666233+*
    N    1_1_748747875.dbf => FRA/CRMSTBY/ARCHIVELOG/2011_04_18/thread_1_seq_1.6142.748752703+*
    N    1_1_748834274.dbf => FRA/CRMSTBY/ARCHIVELOG/2011_04_19/thread_1_seq_1.4771.748839479+*
    N    1_1_748920673.dbf => FRA/CRMSTBY/ARCHIVELOG/2011_04_20/thread_1_seq_1.656.748925823+*
    N    1_1_749007075.dbf => FRA/CRMSTBY/ARCHIVELOG/2011_04_21/thread_1_seq_1.1768.749012141+*
    Below mentioned system information.
    DB : Release 10.2.0.4.0
    OS : Linux Enterprise release 5.2 (Carthage)
    Regards,
    Vishal

    Hi All,
    We have standby dataguard set up namely CRMSTDY of 3 node RAC clusterware. It has been observed that log sequence number 1 is generated since last 4 days on standby database. There is nothing more information in alert_standby.log file and the same file is visible when we checked with ASMCMD utility. Below mentioned details:
    ASMCMD> ls -ltr*
    Type        Redund  Striped  Time             Sys  Name*
    N    ARCHIVELOG/*
    N    AUTOBACKUP/*
    N    ONLINELOG/*
    N    controlfile/*
    N    primarch/*
    N    1_1_748661470.dbf => FRA/CRMSTBY/ARCHIVELOG/2011_04_17/thread_1_seq_1.6721.748666233+*
    N    1_1_748747875.dbf => FRA/CRMSTBY/ARCHIVELOG/2011_04_18/thread_1_seq_1.6142.748752703+*
    N    1_1_748834274.dbf => FRA/CRMSTBY/ARCHIVELOG/2011_04_19/thread_1_seq_1.4771.748839479+*
    N    1_1_748920673.dbf => FRA/CRMSTBY/ARCHIVELOG/2011_04_20/thread_1_seq_1.656.748925823+*
    N    1_1_749007075.dbf => FRA/CRMSTBY/ARCHIVELOG/2011_04_21/thread_1_seq_1.1768.749012141+*
    Below mentioned system information.
    DB : Release 10.2.0.4.0
    OS : Linux Enterprise release 5.2 (Carthage)
    Regards,
    Vishal

  • Error raised when opening physical standby in read only

    Hi,
    I've a physical standby 11.2.0.2 created using RMAN duplicate from active database which is configured with data guard. When I open the database in READ ONLY mode
    SQL> alter database open read only;
    Database altered.
    SQL> select open_mode from v$database;
    OPEN_MODE
    READ ONLY
    I get this error in the alert log
    Physical standby database opened for read only access.
    Fri Aug 12 15:14:01 2011
    db_recovery_file_dest_size of 256000 MB is 4.72% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Errors in file /oradata/admin/ORAINT/diag/diag/rdbms/oraintsb/oraintsb/trace/ora intsb_ora_8692.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00931: missing identifier
    ORA-06512: at "SYS.DBMS_UTILITY", line 156
    ORA-06512: at "SYS.DBMS_SHARED_POOL", line 72
    ORA-06512: at "SYS.DBMS_SHARED_POOL", line 84
    ORA-06512: at "SYS.PROC_PKGS_KEEP", line 26
    ORA-06512: at line 2
    Completed: alter database open read only
    the tracefile is showing this,
    Trace file /oradata/admin/ORAINT/diag/diag/rdbms/oraintsb/oraintsb/trace/oraintsb_ora_8692.trc
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /opt/oracle/product/11.2.0/ORAINT
    System name: Linux
    Node name: c4p-db01
    Release: 2.6.18-194.0.0.0.3.el5xen
    Version: #1 SMP Mon Mar 29 18:27:00 EDT 2010
    Machine: x86_64
    VM name: Xen Version: 3.4 (PVM)
    Instance name: oraintsb
    Redo thread mounted by this instance: 1
    Oracle process number: 17
    Unix process pid: 8692, image: oracle@c4p-db01 (TNS V1-V3)
    *** 2011-08-12 15:14:03.367
    *** SESSION ID:(24.1) 2011-08-12 15:14:03.367
    *** CLIENT ID:() 2011-08-12 15:14:03.367
    *** SERVICE NAME:(SYS$USERS) 2011-08-12 15:14:03.367
    *** MODULE NAME:(sqlplus@c4p-db01 (TNS V1-V3)) 2011-08-12 15:14:03.367
    *** ACTION NAME:() 2011-08-12 15:14:03.367
    Error in executing triggers on database startup
    *** 2011-08-12 15:14:03.367
    dbkedDefDump(): Starting a non-incident diagnostic dump (flags=0x0, level=0, mask=0x0)
    ----- Error Stack Dump -----
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00931: missing identifier
    ORA-06512: at "SYS.DBMS_UTILITY", line 156
    ORA-06512: at "SYS.DBMS_SHARED_POOL", line 72
    ORA-06512: at "SYS.DBMS_SHARED_POOL", line 84
    ORA-06512: at "SYS.PROC_PKGS_KEEP", line 26
    ORA-06512: at line 2
    if I disable the system triggers using
    ALTER SYSTEM SET "_system_trig_enabled"=FALSE scope=both;
    The error doesn't appear but when trying to switch to active dataguard the open_mode goes from READ ONLY to MOUNTED rather than READ ONLY WITH APPLY
    Any help much appreciated
    Edited by: phil74 on 12-Aug-2011 07:22

    Have you checked what your guard status is set to?
    SQL> SELECT guard_status from v$database;I've had a similar issue before but with a standby, whereby the status was set to ALL. This means all users apart from SYS are unable to make changes on the database.
    My resolution was to set the status to standby:
    SQL> ALTER DATABASE GUARD STANDBY;You may wish to set the guard status to NONE however.
    I took some notes:
    http://juniororacledba.wordpress.com/2011/07/17/oracle-logical-standby-dataguard-error However, I do not have a link to any Oracle documentation on the subject to hand. But might give you a head start.

  • DB link for physical standby database

    Hi All ,
    I'm facing the below error on primary while trying to create a db link pointing to the 10g standby database which is in mount stage.
    SQL> create database link synct connect to system identified by 123 using 'stdby';
    Database link created.
    SQL> select max(sequence#) from v$archived_log@synct where applied='YES';
    select max(sequence#) from v$archived_log@synct where applied='YES'
    ERROR at line 1:
    ORA-02068: following severe error from SYNCT
    ORA-01033: ORACLE initialization or shutdown in progress
    Database version is 10.2 standard edition
    My requirement is i need to get max(sequence#) of standby database from primary database using db link.
    what i was trying to do is
    on primary get max(sequence#) & get max(sequence#) of standby using db link and compare both if the gap differene is more than 10 send a mail.
    Any suggestions will be really helpful

    976422 wrote:
    Hi All ,
    I'm facing the below error on primary while trying to create a db link pointing to the 10g standby database which is in mount stage.
    SQL> create database link synct connect to system identified by 123 using 'stdby';
    Database link created.
    SQL> select max(sequence#) from v$archived_log@synct where applied='YES';
    select max(sequence#) from v$archived_log@synct where applied='YES'
    ERROR at line 1:
    ORA-02068: following severe error from SYNCT
    ORA-01033: ORACLE initialization or shutdown in progress
    Post Standby/DataGuard/ADG all questions further in Oracle Discussion Forums » High Availability » Data Guard
    If you try to connect any users other than SYS in standby the error is very much expected. Of course you can connect with other users if you open database in OPEN READ ONLY mode, from 11gRx you can connect with other users even MRP is running if you are using ADG(active Data Guard licensed) .
    I like to know, what you want to achieve by creating DB Link on physical standby database? Which is not allowed.
    Database version is 10.2 standard edition
    My requirement is i need to get max(sequence#) of standby database from primary database using db link.
    what i was trying to do is
    on primary get max(sequence#) & get max(sequence#) of standby using db link and compare both if the gap differene is more than 10 send a mail.
    Any suggestions will be really helpfulNote:- Standard edition, Data Guard not enabled.
    To use this you should use Oracle Net Service, you no need of DB Links.
    Ex:- sqlplus sys/****@standby as sysdba
    Here standby refers to Oracle net service, Where you will have entries in $ORACLE_HOME/network/admin/tnsnames.ora file.
    Edited by: CKPT on Dec 12, 2012 2:01 PM

  • Standby database unable to fetch missing archive sequence from primary

    Hi,
    My primary oracle db version is 10.2.0.5 which is n Windows 2003 server 32 bit in file system
    My standby database version is 10.2.0.5 which in wondows 2008 server in ASM instance.
    some of the archivelogs are not fetching by standby database from primary db.because of that recovery is not happening and it waits for missing archive logs but its not transfering on satndby database.
    I tried many time by doing manuall..manuall its hapening but again sometimes its stucks and waits for next missing archivelog.
    standby alert log mesage
    Sun Jul 08 21:33:13 Pacific Daylight Time 2012
    FAL[client]: Failed to request gap sequence
    GAP - thread 1 sequence 128945-128945
    DBID 4176230406 branch 617106566
    FAL[client]: All defined FAL servers have been attempted.
    Check that the CONTROL_FILE_RECORD_KEEP_TIME initialization
    parameter is defined to a value that is sufficiently large
    enough to maintain adequate log switch information to resolve
    archivelog gaps.
    Sun Jul 08 21:44:03 Pacific Daylight Time 2012
    db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    trace file of standby
    Dump file d:\oracle\admin\mks01p\bdump\mks01p_mrp0_6628.trc
    Sun Jul 08 21:30:23 2012
    ORACLE V10.2.0.5.0 - 64bit Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Oracle Label Security, OLAP, Data Mining and Real Application Testing options
    Windows NT Version V6.1 Service Pack 1
    CPU : 8 - type 8664, 4 Physical Cores
    Process Affinity : 0x0000000000000000
    Memory (Avail/Total): Ph:37019M/49108M, Ph+PgF:87277M/103214M
    Instance name: mks01p
    Redo thread mounted by this instance: 1
    Oracle process number: 19
    Windows thread id: 6628, image: ORACLE.EXE (MRP0)
    *** SERVICE NAME:() 2012-07-08 21:30:23.422
    *** SESSION ID:(95.1) 2012-07-08 21:30:23.422
    *** 2012-07-08 21:30:23.422 64949 kcrr.c
    MRP0: Background Managed Standby Recovery process started
    *** 2012-07-08 21:30:28.445 1170 krsm.c
    Managed Recovery: Initialization posted.
    *** 2012-07-08 21:30:28.445 64949 kcrr.c
    Managed Standby Recovery not using Real Time Apply
    *** 2012-07-08 21:30:39.833
    Recovery target incarnation = 1, activation ID = -118713082
    Influx buffer limit = 10000 min(50% x 191963, 10000)
    Successfully allocated 7 recovery slaves
    Using 158 overflow buffers per recovery slave
    Start recovery at thread 1 ckpt scn 7982577982885 logseq 128945 block 2
    *** 2012-07-08 21:30:40.784
    Media Recovery add redo thread 1
    *** 2012-07-08 21:30:40.784 1170 krsm.c
    Managed Recovery: Active posted.
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '+ORAREDO3/mks01p/mks01p_redo01b.rdo'
    ORA-17503: ksfdopn:2 Failed to open file +ORAREDO3/mks01p/mks01p_redo01b.rdo
    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mounted
    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mounted
    ORA-00312: online log 1 thread 1: '+ORAREDO1/mks01p/mks01p_redo01a.rdo'
    ORA-17503: ksfdopn:2 Failed to open file +ORAREDO1/mks01p/mks01p_redo01a.rdo
    ORA-15001: diskgroup "ORAREDO1" does not exist or is not mounted
    ORA-15001: diskgroup "ORAREDO1" does not exist or is not mounted
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '+ORAREDO3/mks01p/mks01p_redo01b.rdo'
    ORA-17503: ksfdopn:2 Failed to open file +ORAREDO3/mks01p/mks01p_redo01b.rdo
    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mounted
    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mounted
    ORA-00312: online log 1 thread 1: '+ORAREDO1/mks01p/mks01p_redo01a.rdo'
    ORA-17503: ksfdopn:2 Failed to open file +ORAREDO1/mks01p/mks01p_redo01a.rdo
    ORA-15001: diskgroup "ORAREDO1" does not exist or is not mounted
    ORA-15001: diskgroup "ORAREDO1" does not exist or is not mounted
    *** 2012-07-08 21:30:40.940 64949 kcrr.c
    Clearing online redo logfile 1 +ORAREDO1/mks01p/mks01p_redo01a.rdo
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '+ORAREDO3/mks01p/mks01p_redo01b.rdo'
    ORA-17503: ksfdopn:2 Failed to open file +ORAREDO3/mks01p/mks01p_redo01b.rdo
    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mounted
    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mounted
    ORA-00312: online log 1 thread 1: '+ORAREDO1/mks01p/mks01p_redo01a.rdo'
    ORA-17503: ksfdopn:2 Failed to open file +ORAREDO1/mks01p/mks01p_redo01a.rdo
    ORA-15001: diskgroup "ORAREDO1" does not exist or is not mounted
    ORA-15001: diskgroup "ORAREDO1" does not exist or is not mounted
    ORA-00349: failure obtaining block size for '+ORAREDO1/mks01p/mks01p_redo01a.rdo'
    ORA-15001: diskgroup "ORAREDO1" does not exist or is not mounted
    Error 349 creating/clearing online redo logfile 1
    *** 2012-07-08 21:30:40.987 64949 kcrr.c
    Clearing online redo logfile 1 complete
    *** 2012-07-08 21:30:41.034 64949 kcrr.c
    Media Recovery Waiting for thread 1 sequence 128945
    *** 2012-07-08 21:30:41.050 64949 kcrr.c
    Fetching gap sequence in thread 1, gap sequence 128945-128945
    Redo shipping client performing standby login
    OCISessionBegin failed -1
    .. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
    *** 2012-07-08 21:30:41.533 64949 kcrr.c
    Error 1031 received logging on to the standby
    *** 2012-07-08 21:30:41.533 64949 kcrr.c
    FAL[client, MRP0]: Error 1031 connecting to MKS01P_PRD for fetching gap sequence
    ORA-01031: insufficient privileges
    *** 2012-07-08 21:31:11.610
    Redo shipping client performing standby login
    OCISessionBegin failed -1
    .. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
    *** 2012-07-08 21:31:12.094 64949 kcrr.c
    Error 1031 received logging on to the standby
    *** 2012-07-08 21:31:12.094 64949 kcrr.c
    FAL[client, MRP0]: Error 1031 connecting to MKS01P_PRD for fetching gap sequence
    ORA-01031: insufficient privileges
    *** 2012-07-08 21:31:42.186
    Redo shipping client performing standby login
    OCISessionBegin failed -1
    .. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
    *** 2012-07-08 21:31:42.654 64949 kcrr.c
    Error 1031 received logging on to the standby
    *** 2012-07-08 21:31:42.670 64949 kcrr.c
    FAL[client, MRP0]: Error 1031 connecting to MKS01P_PRD for fetching gap sequence
    ORA-01031: insufficient privileges
    *** 2012-07-08 21:32:12.747
    Redo shipping client performing standby login
    OCISessionBegin failed -1
    .. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
    *** 2012-07-08 21:32:13.215 64949 kcrr.c
    Error 1031 received logging on to the standby
    *** 2012-07-08 21:32:13.230 64949 kcrr.c
    FAL[client, MRP0]: Error 1031 connecting to MKS01P_PRD for fetching gap sequence
    ORA-01031: insufficient privileges
    *** 2012-07-08 21:32:43.276
    Redo shipping client performing standby login
    OCISessionBegin failed -1
    .. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
    *** 2012-07-08 21:32:43.759 64949 kcrr.c
    Error 1031 received logging on to the standby
    *** 2012-07-08 21:32:43.775 64949 kcrr.c
    FAL[client, MRP0]: Error 1031 connecting to MKS01P_PRD for fetching gap sequence
    ORA-01031: insufficient privileges
    *** 2012-07-08 21:33:13.821
    Check that the CONTROL_FILE_RECORD_KEEP_TIME initialization
    parameter is defined to a value that is sufficiently large
    enough to maintain adequate log switch information to resolve
    archivelog gaps.
    i created new password fle on bith primary and standby database also.
    Please help me to resolve this issue.

    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mounted
    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mountedhave you mentioned parameter LOG_FILE_NAME_CONVERT in standby when online redo log locations are different?
    post from standby:-
    SQL> select name, state From v$asm_diskgroup;
    FAL[client, MRP0]: Error 1031 connecting to MKS01P_PRD for fetching gap sequence
    ORA-01031: insufficient privilegesPost from primary & standby
    SQL> select * from v$pwfile_users;
    User Profile for 919131
    919131     
    Handle:     919131  
    Status Level:     Newbie
    Registered:     Mar 6, 2012
    Total Posts:     16
    Total Questions:     8 (8 unresolved)
    OTN failed 100% to help you, then why you posted another question?
    First close all your old answered threads and then better continue your updates in your thread.
    Edited by: CKPT on Jul 9, 2012 11:45 AM

Maybe you are looking for