V$archived_log and gv$archived_log

2 node RAC on 10.2.0.4
Archived Logs stored in Local file systems of each node (not in ASM)
To determine the amount of redo generated on each nodes I googled and got the below query.
SELECT ROUND(SUM(blocks*block_size)/1024/1024/1024) arc_size,
TRUNC(first_time) arc_date
FROM v$archived_log
WHERE dest_id=1
GROUP BY TRUNC(first_time)
ORDER BY 2 DESCWhen i checked the actual size of archive logs on each nodes, i realized that the below query is returning the sum of archive logs of both nodes.(accurately though)
When i queried gv$archived_log, it returns
Size of archive logs from both nodes multiplied by 2 (inaccurate)Why can't v$archived_log just show the archivelog size of its own instance? Are there any other RAC related v$views which behaves similarly ?
Edited by: Herbaceous on May 26, 2011 8:13 AM

Hi,
Why can't v$archived_log just show the archivelog size of its own instance? Are there any other RAC related v$views which behaves similarly ?To understand It we need understand the difference between instance and database. An database (files) can be opened by many instances.
Database:
CONTROLFILE
DATAFILE
ONLINELOG
ARCHIVELOG
SPFILE
Instances:
PARAMETERS
MEMORY STRUCTURE
The fact that each instance have its own REDO/UNDO, but not mean they are part only of the instance (nodes).
So, archivelog doesn't have your own instance (node), but it's generate by one of instances and belong to database. So, it's recommended place archivelogs on a shared disk, such as ONLINELOGS.
You not need gv$ to query databases files, because it's the same on all instances.
gv$controlfile = (v$controlfile * qtd instances)
gv$datafile = (v$datafile * qtd instances)
gv$log = (v$log * qtd instances)
gv$archive_log = (v$archive_log * qtd instances)
So, I recommend you running your query specifying THREAD#, but the values can be inaccurate because THREAD# 2 can archive REDO of THREAD# 1.
Also you can use this query to estimate archivelogs size by THREAD.
SELECT distinct(to_char((bytes*0.000001),'9990.999')) size_mb FROM v$log;
  column ord     noprint
   column date_   heading 'Date'         format A15
   column no      heading '#Arch files'  format 9999999
   column no_size heading 'Size Mb'      format 9999999
   compute avg of no      on report
   compute avg of no_size on report
   break on report
   select MAX(first_time) ord, to_char(first_time,'DD-MON-YYYY') date_,
          count(recid) no, count(recid) *  <logfile_size> no_size
   from v$log_history
   group by to_char(first_time,'DD-MON-YYYY') ,THREAD#
   order by ord
   clear breaks
   clear computes
   clear columnsSee this tech note on MOS:
*Determine How Much Disk Space is Needed for the Archive Files [ID 122555.1]*
Regards,
Levi Pereira
Edited by: Levi Pereira on May 26, 2011 4:49 PM

Similar Messages

  • FIRST_TIME and NEXT_TIME columns in v$archived_log view

    Oracle Version      : 11.2
    OS Platform      : Solaris 10
    Could anyone please explain what FIRST_TIME and NEXT_TIME columns in v$archived_log are?
    Oracle Documentation (below) and googling didn't help.
    http://docs.oracle.com/cd/E18283_01/server.112/e17110/dynviews_1016.htm
    Did quite understand what
    FIRST_TIME      DATE      Timestamp of the first change
    NEXT_TIME      DATE      Timestamp of the next changeis.
    Did a search on OTN as well. A similair OTN post unfortunately ended up in Abuse and Insults !
    description of NEXT_TIME colume in V$ARCHIVED_LOG View

    For each archive log file, there would be First_time & Next_time.
    first_time refers to the timestamp when when first SCN is recorded, Also next_time refers to the timestamp of the next archivelog change.
    Here next_change/next_time of archive value is equal to the next logs first_change/first_time.
    SEQUENCE#         FIRST_CHANGE# TO_CHAR(FIRST_TIME,'DD-MON-YYYYHH24:MI:SS')                                          NEXT_CHANGE# TO_CHAR(NEXT_TIME,'DD-MON-YYYYHH24:MI:SS')
        116329            1042518947 16-DEC-2011 04:05:16                                                                   1042534917 16-DEC-2011 04:07:04
        116330            1042534917 16-DEC-2011 04:07:04                                                                   1042550495 16-DEC-2011 04:08:24

  • What are CREATOR and REGISTRAR in the V$ARCHIVED_LOG view?

    Environment: Oracle 11.2.0.3 EE on Solaris 10.5
    I'm not sure exactly where this question belongs since it deals with database processes, RMAN and Data Guard all in one so I'll start here and see where it takes me.
    I have a Data Guard environment set up with 1 primary and 1 standby. I am running some queries against the V$ARCHIVED_LOG view to understand the view so I can better monitor the archive log activity between the databases.
    I have read the documentation but am still confused over a couple of things:
    1- What is the FGRD process and how can it write archive logs as seen in the CREATOR column of the view looking from the primary side? I thought only the ARCn process could do that.
    2- On the standby side all the logs have LGWR as the CREATOR which makes sense since, as I understand it, the LGWR process on the primary is sending the log files to the standby via SQL*Net. I realize this is not a question. :-)
    3- The documentation for the view shows RMAN as a possible value for the CREATOR column. How and where does RMAN create an archive log file?
    4- Finally, for now, what is the meaning of the REGISTRAR column? What exactly is it registering since we already know the source (CREATOR), status and whether the log has been archived, applied and deleted.
    Thanks very much for any light you can shed in my darkness.
    -gary

    garywicke wrote:
    Environment: Oracle 11.2.0.3 EE on Solaris 10.5
    I'm not sure exactly where this question belongs since it deals with database processes, RMAN and Data Guard all in one so I'll start here and see where it takes me.
    I have a Data Guard environment set up with 1 primary and 1 standby. I am running some queries against the V$ARCHIVED_LOG view to understand the view so I can better monitor the archive log activity between the databases.
    I have read the documentation but am still confused over a couple of things:
    1- What is the FGRD process and how can it write archive logs as seen in the CREATOR column of the view looking from the primary side? I thought only the ARCn process could do that.I thinks its the RFS process, when its writes directly to archivelog files when standby redolog are not available and LGWR on standby wait for its confirmation. Thats why acting as forground process.
    >
    2- On the standby side all the logs have LGWR as the CREATOR which makes sense since, as I understand it, the LGWR process on the primary is sending the log files to the standby via SQL*Net. I realize this is not a question. :-)
    3- The documentation for the view shows RMAN as a possible value for the CREATOR column. How and where does RMAN create an archive log file?It might be when you explicitly register archivelog with "REGISTER" command.
    >
    4- Finally, for now, what is the meaning of the REGISTRAR column? What exactly is it registering since we already know the source (CREATOR), status and whether the log has been archived, applied and deleted.
    This might be because archivelog file can be generated from other resource i.e either from RFS or by registering with RMAN command REGISTER.
    >
    Thanks very much for any light you can shed in my darkness.
    -gary

  • What is the difference between v$archived_log and v$log_history.

    what is the difference between v$archived_log and v$log_history.
    thanks

    v$archived_log tracks all archival details for all destinations (including dataguard etc)
    v$log_history only tracks redo log details.

  • Entries in gv$archived_log

    Hello,
    I am using Oracle 11.2.0.3.0
    My primary database is a RAC 2 nodes database with ASM. The Name of the DB is PREPROD
    I have created a single instance physical standby database with normal file system. The Name of the DB is PRESTDBY
    below are some queries on my primary and standby database:
    Primary Database:
    SQL> select * from gv$log;
       INST_ID     GROUP#    THREAD#  SEQUENCE#      BYTES  BLOCKSIZE    MEMBERS ARC STATUS           FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
             1          1          1      37303  943718400        512          2 YES INACTIVE             903149994 12-MAR-15    903166262 12-MAR-15
             1          2          1      37304  943718400        512          2 NO  CURRENT              903166262 12-MAR-15   2.8147E+14
             1          3          2      37520  943718400        512          2 NO  CURRENT              903166253 12-MAR-15   2.8147E+14
             1          4          2      37519  943718400        512          2 YES INACTIVE             903149990 12-MAR-15    903166253 12-MAR-15
             1          5          1      37302  943718400        512          2 YES INACTIVE             903139521 12-MAR-15    903149994 12-MAR-15
             1          6          2      37518  943718400        512          2 YES INACTIVE             903139509 12-MAR-15    903149990 12-MAR-15
             2          1          1      37303  943718400        512          2 YES INACTIVE             903149994 12-MAR-15    903166262 12-MAR-15
             2          2          1      37304  943718400        512          2 NO  CURRENT              903166262 12-MAR-15   2.8147E+14
             2          3          2      37520  943718400        512          2 NO  CURRENT              903166253 12-MAR-15   2.8147E+14
             2          4          2      37519  943718400        512          2 YES INACTIVE             903149990 12-MAR-15    903166253 12-MAR-15
             2          5          1      37302  943718400        512          2 YES INACTIVE             903139521 12-MAR-15    903149994 12-MAR-15
             2          6          2      37518  943718400        512          2 YES INACTIVE             903139509 12-MAR-15    903149990 12-MAR-15
    12 rows selected.
    SQL> select * from gv$standby_log;
       INST_ID     GROUP# DBID                                        THREAD#  SEQUENCE#      BYTES  BLOCKSIZE       USED ARC STATUS     FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME LAST_CHANGE# LAST_TIME
             1          7 UNASSIGNED                                        1          0  943718400        512          0 YES UNASSIGNED
             1          8 UNASSIGNED                                        1          0  943718400        512          0 YES UNASSIGNED
             1          9 UNASSIGNED                                        1          0  943718400        512          0 YES UNASSIGNED
             1         10 UNASSIGNED                                        1          0  943718400        512          0 YES UNASSIGNED
             1         11 UNASSIGNED                                        2          0  943718400        512          0 YES UNASSIGNED
             1         12 UNASSIGNED                                        2          0  943718400        512          0 YES UNASSIGNED
             1         13 UNASSIGNED                                        2          0  943718400        512          0 YES UNASSIGNED
             1         14 UNASSIGNED                                        2          0  943718400        512          0 YES UNASSIGNED
             2          7 UNASSIGNED                                        1          0  943718400        512          0 YES UNASSIGNED
             2          8 UNASSIGNED                                        1          0  943718400        512          0 YES UNASSIGNED
             2          9 UNASSIGNED                                        1          0  943718400        512          0 YES UNASSIGNED
             2         10 UNASSIGNED                                        1          0  943718400        512          0 YES UNASSIGNED
             2         11 UNASSIGNED                                        2          0  943718400        512          0 YES UNASSIGNED
             2         12 UNASSIGNED                                        2          0  943718400        512          0 YES UNASSIGNED
             2         13 UNASSIGNED                                        2          0  943718400        512          0 YES UNASSIGNED
             2         14 UNASSIGNED                                        2          0  943718400        512          0 YES UNASSIGNED
    16 rows selected.
    SQL> select g.INST_ID, g.DEST_ID, g.status, g.TYPE, g.PROTECTION_MODE, g.gap_status from gV$archive_Dest_Status g where dest_id in (1,2);
       INST_ID    DEST_ID STATUS    TYPE           PROTECTION_MODE      GAP_STATUS
             2          1 VALID     LOCAL          MAXIMUM PERFORMANCE
             2          2 VALID     PHYSICAL       MAXIMUM PERFORMANCE  NO GAP
             1          1 VALID     LOCAL          MAXIMUM PERFORMANCE
             1          2 VALID     PHYSICAL       MAXIMUM PERFORMANCE  NO GAP
    SQL> select inst_id, name, value from gv$parameter where name in ( 'log_archive_dest_1', 'log_archive_dest_2');
       INST_ID NAME
    VALUE
             2 log_archive_dest_1
    LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PREPROD
             2 log_archive_dest_2
    SERVICE=PRESTDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PRESTDBY
             1 log_archive_dest_1
    LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PREPROD
             1 log_archive_dest_2
    SERVICE=PRESTDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PRESTDBY
    Standby Database:
    SQL> select * from gv$log;
       INST_ID     GROUP#    THREAD#  SEQUENCE#      BYTES  BLOCKSIZE    MEMBERS ARC STATUS           FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
             1          1          1      37303  943718400        512          3 YES CLEARING             903149994 12-MAR-15    903166262 12-MAR-15
             1          2          1      37304  943718400        512          3 YES CURRENT              903166262 12-MAR-15    903139521 12-MAR-15
             1          3          2      37520  943718400        512          3 YES CURRENT              903166253 12-MAR-15    903139509 12-MAR-15
             1          4          2      37519  943718400        512          3 YES CLEARING             903149990 12-MAR-15    903166253 12-MAR-15
             1          5          1      37302  943718400        512          3 YES CLEARING             903139521 12-MAR-15    903149994 12-MAR-15
             1          6          2      37518  943718400        512          3 YES CLEARING             903139509 12-MAR-15    903149990 12-MAR-15
    6 rows selected.
    SQL> select * from gv$standby_log;
       INST_ID     GROUP# DBID                                        THREAD#  SEQUENCE#      BYTES  BLOCKSIZE       USED ARC STATUS     FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME LAST_CHANGE# LAST_TIME
             1          7 UNASSIGNED                                        1          0  943718400        512          0 NO  UNASSIGNED
             1          8 591853822                                         1      37304  943718400        512    5067776 YES ACTIVE         903166262 12-MAR-15    903174339 12-MAR-15    903174339 12-MAR-15
             1          9 UNASSIGNED                                        1          0  943718400        512          0 YES UNASSIGNED
             1         10 UNASSIGNED                                        1          0  943718400        512          0 YES UNASSIGNED
             1         11 UNASSIGNED                                        2          0  943718400        512          0 NO  UNASSIGNED
             1         12 591853822                                         2      37520  943718400        512    1138688 YES ACTIVE         903166253 12-MAR-15    903174341 12-MAR-15    903174341 12-MAR-15
             1         13 UNASSIGNED                                        2          0  943718400        512          0 YES UNASSIGNED
             1         14 UNASSIGNED                                        2          0  943718400        512          0 YES UNASSIGNED
    8 rows selected.
    SQL> select g.INST_ID, g.DEST_ID, g.status, g.TYPE, g.PROTECTION_MODE, g.gap_status from gV$archive_Dest_Status g where dest_id in (1,2);
       INST_ID    DEST_ID STATUS    TYPE           PROTECTION_MODE      GAP_STATUS
             1          1 VALID     LOCAL          MAXIMUM PERFORMANCE
             1          2 VALID     UNKNOWN        MAXIMUM PERFORMANCE  NO GAP
    SQL> select inst_id, name, value from gv$parameter where name in ( 'log_archive_dest_1', 'log_archive_dest_2');
       INST_ID NAME
    VALUE
             1 log_archive_dest_1
    LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PRESTDBY
             1 log_archive_dest_2
    SERVICE=PREPROD LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PREPROD
    gv$archived_log on primary RAC Database:
    SQL> select g.SEQUENCE#, g.INST_ID,g.thread#, to_char(g.COMPLETION_TIME, 'DD MON YYYY hh:mi:ss AM'), g.recid, g.name, g.DEST_ID, g.CREATOR, g.STANDBY_DEST,g.ARCHIVED, g.applied, g.deleted, g.status  from gv$archived_log g where  g.SEQUENCE#  in (37248, 37249, 37313) order by  sequence#,inst_id, thread#, g.COMPLETION_TIME;
    SEQUENCE#    INST_ID    THREAD# TO_CHAR(G.COMPLETION_TI      RECID NAME        DEST_ID CREATOR STANDBY_DEST ARCHIVED APPLIED   DELETED STATUS
         37248          1          1 11 MAR 2015 11:03:50 AM      86791 PRESTDBY          2      LGWR         YES      YES      YES       NO      A
         37248          1          1 11 MAR 2015 11:03:50 AM      86792                             1      ARCH         NO      YES      NO        YES      D
         37248          1          2 07 MAR 2015 01:00:07 AM      85921 PRESTDBY          2      LGWR         YES      YES      YES       NO      A
         37248          1          2 07 MAR 2015 01:00:07 AM      85922                             1      ARCH         NO      YES      NO        YES      D
         37248          2          1 11 MAR 2015 11:03:50 AM      86792                             1      ARCH         NO      YES      NO        YES      D
         37248          2          1 11 MAR 2015 11:03:50 AM      86791 PRESTDBY          2      LGWR         YES      YES      YES       NO      A
         37248          2          2 07 MAR 2015 01:00:07 AM      85922                             1      ARCH         NO      YES      NO        YES      D
         37248          2          2 07 MAR 2015 01:00:07 AM      85921 PRESTDBY          2      LGWR         YES      YES      YES       NO      A
         37249          1          1 11 MAR 2015 11:33:48 AM      86795 PRESTDBY          2      LGWR         YES      YES      YES       NO      A
         37249          1          1 11 MAR 2015 11:33:48 AM      86796                             1      ARCH         NO      YES      NO        YES      D
         37249          1          2 07 MAR 2015 01:03:47 AM      85926                             1      ARCH         NO      YES      NO        YES      D
         37249          1          2 07 MAR 2015 01:03:47 AM      85925 PRESTDBY          2      LGWR         YES      YES      YES       NO      A
         37249          2          1 11 MAR 2015 11:33:48 AM      86795 PRESTDBY          2      LGWR         YES      YES      YES       NO      A
         37249          2          1 11 MAR 2015 11:33:48 AM      86796                             1      ARCH         NO      YES      NO        YES      D
         37249          2          2 07 MAR 2015 01:03:47 AM      85925 PRESTDBY          2      LGWR         YES      YES      YES       NO      A
         37249          2          2 07 MAR 2015 01:03:47 AM      85926                             1      ARCH         NO      YES      NO        YES      D
         37313          1          2 08 MAR 2015 08:41:17 AM      86181 PRESTDBY          2      LGWR         YES      YES      YES       NO      A
         37313          1          2 08 MAR 2015 08:41:17 AM      86182                             1      ARCH         NO      YES      NO        YES      D
         37313          2          2 08 MAR 2015 08:41:17 AM      86182                             1      ARCH         NO      YES      NO        YES      D
         37313          2          2 08 MAR 2015 08:41:17 AM      86181 PRESTDBY          2      LGWR         YES      YES      YES       NO      A
    20 rows selected.
    SQL>
    My question:
         1.     My v$log and v$log_standby looks ok?
         2.     As shown above in gv$archived_log there are 8 entries for sequences 37248 and 37249, however for sequence 37313 i have only 4 entries:    
                   Why I have this difference in the number of entries?
         3.     Why for 37248 and 37249 I have 2 completion_date Mar 07 and Mar 11  ?
         4.      Is the output correct or do I have an issue in applying the redo logs ? I am expecting it is correct as all the entries of the stanby destination were applied.
         5.      Why the entries of the standby destination were not deleted ? and when it will be deleted ?
         6.     What process deletes the Archive logs on the standby ? I am still having archive logs since March 3rd, how should I automate the deletion of these archive logs?
    Regards,

    Hi,
    I checked some sequence have 4 entries in V$archive_log and some have only 2 entries.
    Below is an example:
    select g.RECID, stamp, name, dest_id, thread#, sequence#, first_time, next_time, creator, standby_dest, archived, applied, deleted, status, completion_time  from v$archived_log g where g.SEQUENCE# in(37716, 37507);
    RECID
    stamp
    name
    dest_id
    thread#
    sequence#
    first_time
    next_time
    creator
    standby_dest
    archived
    applied
    deleted
    status
    completion_time
    87812
    874501675
    +FRA/preprod/archivelog/2015_03_16/thread_1_seq_37507.12440.874501675
    1
    1
    37507
    3/16/2015 12:37
    3/16/2015 13:07
    ARCH
    NO
    YES
    NO
    NO
    A
    3/16/2015 13:07
    87811
    874501674
    PRESTDBY
    2
    1
    37507
    3/16/2015 12:37
    3/16/2015 13:07
    LGWR
    YES
    YES
    YES
    NO
    A
    3/16/2015 13:07
    86961
    874134695
    PRESTDBY
    2
    2
    37507
    3/12/2015 6:41
    3/12/2015 7:11
    LGWR
    YES
    YES
    YES
    NO
    A
    3/12/2015 7:11
    86962
    874134695
    1
    2
    37507
    3/12/2015 6:41
    3/12/2015 7:11
    ARCH
    NO
    YES
    NO
    YES
    D
    3/12/2015 7:11
    87809
    874501674
    PRESTDBY
    2
    2
    37716
    3/16/2015 12:37
    3/16/2015 13:07
    LGWR
    YES
    YES
    YES
    NO
    A
    3/16/2015 13:07
    87810
    874501675
    +FRA/preprod/archivelog/2015_03_16/thread_2_seq_37716.12712.874501675
    1
    2
    37716
    3/16/2015 12:37
    3/16/2015 13:07
    ARCH
    NO
    YES
    NO
    NO
    A
    3/16/2015 13:07

  • Unable to understand meaning of next_time in v$archived_log

    hi all,
    i am working with 10g standby databases. There are column names FIRST_CHANGE#, FIRST_TIME, NEXT_CHANGE#, NEXT_TIME in v$archived_log. I am unable to understand the exact meaning of these columns by reading the oracle document.
    Can somebody explain me the meaning of these columns in v$archived_log.
    Same columns are there in v$log_history also but i think there meanings are different as from columns in v$archived_log.
    thanks in advance.

    Hi,
    See, when you referred to "v$archived_log", by the name it depends on the Online Redo Log. See, the columns
    FIRST_CHANGE#, FIRST_TIME, NEXT_CHANGE#, NEXT_TIME reflects the changes happened with respect to online redolog, Suppose if the online redo log for first time archived then the respect to record will be appeared, in the "v$archived_log" with respect to details like which is first changed started or done in this particular log and time of it, Next change comes to like a link of next log which happened and respective time. By tracking this details itwill help ful for process to apply the necessary logs on data files at the time of recovery.
    Coming to " v$log_history " -> its maintains the history of logs, with respect to SCN numbers, by this we can information which SCN will fall under which log files or existing in which logs. it will have lowest SCN and Highest SCN Numbers with respect to Sequnence number of Log
    - Pavan Kumar N

  • Same Sequence# with different applied value in v$archived_log

    Hi everyone,
    I have an issue with one of the dataguard servers here.
    Basically, looking at the v$managed_standby, it is still applying the latest archived log sequence.
    However when I checked for unapplied archived log from v$archived_log, I found at least 1 sequence# which was quite old (around a few days old) not applied.
    my query to check this is:
    SELECT sequence# from v$archived_log where applied = 'NO';result:
    SEQUENCE#
        40154
        40546with a different query I found an interesting result
    select sequence#, recid, stamp, status, applied from v$archived_log where sequence# in (40154, 40546);result:
    SEQUENCE#      RECID      STAMP S APP
        40154       8093  777156019 D NO
        40154       8095  777156053 D YES
        40546       8486  777673729 D NO
        40546       8487  777673734 D YESAt the time I ran this query, the v$managed_standby are as follow:
    select process, status, sequence# from v$managed_standby;result:
    PROCESS   STATUS        SEQUENCE#
    ARCH      CLOSING           40562
    ARCH      CLOSING           40557
    MRP0      APPLYING_LOG      40563
    RFS       IDLE                  0
    RFS       IDLE              40563A simple solution to get those un-applied archived log to be applied is to restart the standby database instance.
    Another finding from the production database:
    select recid, stamp, sequence#, creator, registrar, standby_dest from v$archived_log where sequence# in (40154, 40546);result:
    RECID      STAMP  SEQUENCE# CREATOR REGISTR STA
    45446  777156011      40154 ARCH    ARCH    NO
    45447  777156017      40154 LGWR    LGWR    YES
    45450  777156051      40154 ARCH    ARCH    YES
    46231  777673709      40546 ARCH    ARCH    NO
    46232  777673728      40546 LGWR    LGWR    YES
    46233  777673733      40546 ARCH    ARCH    YESThe question is of course, why is this happening?
    Can this be prevented?
    Thank you,
    Adhika

    CKPT wrote:
    I have an issue with one of the dataguard servers here.
    Basically, looking at the v$managed_standby, it is still applying the latest archived log sequence.
    However when I checked for unapplied archived log from v$archived_log, I found at least 1 sequence# which was quite old (around a few days old) not applied.
    my query to check this is:
    SELECT sequence# from v$archived_log where applied = 'NO';result:
    SEQUENCE#
    40154
    40546
    Even if old archives applied or not, it will keep transfer the archivelogs from primary. Please confirm that you been executed above query in standby.. is it?Yes I ran it from the standby database
    CKPT wrote:
    with a different query I found an interesting result
    select sequence#, recid, stamp, status, applied from v$archived_log where sequence# in (40154, 40546);result:
    SEQUENCE#      RECID      STAMP S APP
    40154       8093  777156019 D NO
    40154       8095  777156053 D YES
    40546       8486  777673729 D NO
    40546       8487  777673734 D YES
    How many remote/standby destinations you have in your DR setup?
    Might this query you have executed in primary, You should always use DEST_ID when executing from primary (or) do check in standby database, Because the applied column you have to check in standby , If you see above the same sequence showing applied in one destination & not applied on other instance, so please do select for dest_2 or in standby.I have only 1 standby destination.
    The query above was executed in the standby database server as well as to show that the same sequence# has different result in the applied column.
    CKPT wrote:
    The question is of course, why is this happening?
    Can this be prevented?What is your Online redo log file size (or) how much average archive log file size?
    This issue happens when Network glitch while transferring archives from primary to standby RFS , So when is big enough in such conditions it will be in status can be WAIT_FOR_LOG.
    BTW, which redo transport you are using? -- recommended to use LGWR
    Is there any network problem?
    check for exact problem either from primary alert log file or from below query,
    SQL> select severity,error_code,message,to_char(timestamp,'DD-MON-YYYY HH24:MI:SS') from v$dataguard_status;
    SQL> select sequence#, to_char(completion_time,'DD-MON-YYYY HH24:MI:SS') from v$archived_log where sequence# in (40154, 40546);
    HTH.The redolog file size is 100MB and so does the archive log file size.
    I'm using LGWR ASYNC
    these are the result of the query which I modified slightly:
    query:
    select severity,error_code,message,to_char(timestamp,'DD-MON-YYYY HH24:MI:SS') from v$dataguard_status where message like '%40154%' or message like '%40546%';result:
    SEVERITY ERROR_CODE MESSAGE                                                                                              TIMESTAMP
    Warning           0 LNS: Standby redo logfile selected for thread 1 sequence 40546 for destination LOG_ARCHIVE_DEST_2    11-MAR-2012 20:28:44
    Warning           0 ARC1: Standby redo logfile selected for thread 1 sequence 40546 for destination LOG_ARCHIVE_DEST_2   11-MAR-2012 20:28:49The message for the 40154 must have been purged.
    It appeared to me that sequence 40546 has been sent twice, by LNS and ARC1.
    query:
    select sequence#, registrar, creator, standby_dest, dest_id, to_char(completion_time,'DD-MON-YYYY HH24:MI:SS') completion_time from v$archived_log where sequence# in (40154, 40546);result:
    SEQUENCE# REGISTR CREATOR STA    DEST_ID COMPLETION_TIME
        40154 ARCH    ARCH    NO           1 05-MAR-2012 20:40:11
        40154 LGWR    LGWR    YES          2 05-MAR-2012 20:40:17
        40154 ARCH    ARCH    YES          2 05-MAR-2012 20:40:51
        40546 ARCH    ARCH    NO           1 11-MAR-2012 20:28:29
        40546 LGWR    LGWR    YES          2 11-MAR-2012 20:28:48
        40546 ARCH    ARCH    YES          2 11-MAR-2012 20:28:53This query proved that the primary database is actually trying to send twice with a different completion time.
    Why does the primary database has to send twice?
    Thanks for replying,
    Adhika

  • Description of NEXT_TIME colume in V$ARCHIVED_LOG View

    i m new in oracle .. i juut want to know the exact meannig in simple word and uasag of next_time col of V$ARCHIVED_LOG View

    user627401 wrote:
    i m new in oracle .. But your profile says you've been a member of the forum for over 2 years ....
    i juut want to know the exact meannig in simple word and uasag of next_time col of V$ARCHIVED_LOG ViewI don't want to be flippant or rude, but if people want to be professionals in ANY field, the first knowledge they need to acquire is how to locate AND USE+ the fundamental reference materials for that profession. And the most important trait, the one for which they are really hired, is the ability to do independent research. We don't mind helping newbies, and even the most experienced person on this board will run into something they are not familiar with, or occasionally just require a second set of eyes to look at something. But a professional+ needs, above all, a willingness and capability to check the docs. A professional isn't necessarily someone who has all the answers at their fingertips or has a full understanding about every arcane subject in their field. It certainly isn't someone who has an encyclopedia full of memorized answers but little understanding of how it all fits together. It's someone who knows where to find the answers when needed, how to recognize them when he sees them. It's less about knowing than it is about attitude. Everything you've been asking the last couple of days can be answered in the Oracle docs at tahiti.oracle.com. You should bookmark that site.
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to tahiti.oracle.com.
    Drill down to your product and version.
    <b><i><u>BOOKMARK THIS LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.

  • Reg Records Missing in v$archived_log view

    Hi,
    Physically archives are available from sequence 79 to 620
    But in v$archived_log only from sequence 526 and completion date 24 Apr 2010 is available.
    I have not taken any backup of archive log thro rman or i have not set any retention policy.
    Can some explain the reason for this.
    Thanks
    Krishna

    Krishna VV wrote:
    Hi,
    Physically archives are available from sequence 79 to 620
    But in v$archived_log only from sequence 526 and completion date 24 Apr 2010 is available.
    I have not taken any backup of archive log thro rman or i have not set any retention policy.
    Can some explain the reason for this.
    Thanks
    KrishnaDear Krishna
    Are you sure that you're checking the correct database (and archived redo log files)?
    What's the first and last archived redo log sequence number and timestamp?
    Could you check whether you're looking to the correct directory by getting LOG_ARCHIVE_DEST_n parameter?
    You can register missed archived redo log files using the following command:
    alter database register logfile 'log_file_name';

  • Applied Status is "NO" in v$archived_log in 11.2.0.2 Data Guard

    Hi Friends,
    I am using 11.2.0.2 Data Guard .
    I could perform Log Switch multiple times on Primary and the new sequence is getting reflected in Standby and the Archived Logs are also creating
    but i could see that in the v$archived_log the applied status is NO. What is the reason?
    Primary:
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /data/dg/arch1/chicago/
    Oldest online log sequence 1187
    Next log sequence to archive 1189
    Current log sequence 1189
    SQL>
    SQL> host ls -lt /data/dg/arch1/chicago/ | more
    total 25051512
    -rw-r----- 1 oracle oinstall 2560 Mar 19 19:04 1_1187_799437329.arc
    -rw-r----- 1 oracle oinstall 1024 Mar 19 19:04 1_1188_799437329.arc
    -rw-r----- 1 oracle oinstall 3584 Mar 19 19:04 1_1186_799437329.arc
    -rw-r----- 1 oracle oinstall 6144 Mar 19 19:04 1_1185_799437329.arc
    -rw-r----- 1 oracle oinstall 1536 Mar 19 19:04 1_1184_799437329.arc
    SQL> SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP;
    no rows selected
    SQL>SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# APPLIED
    1175 NO
    1175 NO
    1176 NO
    1176 NO
    1177 NO
    1177 NO
    1178 NO
    1178 NO
    1179 NO
    1179 NO
    1180 NO
    SEQUENCE# APPLIED
    1180 NO
    1181 NO
    1181 NO
    1182 NO
    1182 NO
    1183 NO
    1183 NO
    1184 NO
    1184 NO
    1185 NO
    1185 NO
    SEQUENCE# APPLIED
    1186 NO
    1186 NO
    1187 NO
    1187 NO
    1188 NO
    1188 NO
    710 rows selected.
    SQL>
    Standby:
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /data/dg/arch1/boston/
    Oldest online log sequence 1185
    Next log sequence to archive 0
    Current log sequence 1189
    SQL> host ls -lt /data/dg/arch1/boston/ | more
    total 25041236
    -rw-r----- 1 oradg oinstall 1024 Mar 19 19:30 1_1188_799437329.arc
    -rw-r----- 1 oradg oinstall 2560 Mar 19 19:30 1_1187_799437329.arc
    -rw-r----- 1 oradg oinstall 3584 Mar 19 19:30 1_1186_799437329.arc
    -rw-r----- 1 oradg oinstall 6144 Mar 19 19:30 1_1185_799437329.arc
    -rw-r----- 1 oradg oinstall 1536 Mar 19 19:30 1_1184_799437329.arc
    SQL> SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP;
    no rows selected
    SQL>SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# APPLIED
    1175 NO
    1176 NO
    1177 NO
    1178 NO
    1179 NO
    1180 NO
    1181 NO
    1182 NO
    1183 NO
    1184 NO
    1185 NO
    SEQUENCE# APPLIED
    1186 NO
    1187 NO
    1188 NO
    Regards,
    DB

    839396 wrote:
    Hi Friends,
    Today when I re-query the database the status changed from NO to YES on both Primary and Standby(Mount and enable Redo Apply). Not sure how.
    Yesterday both the databases were down and i started both the databases and immeditely i take the query output and i saw NO
    but now it today it becomes YES. It take some time to start some of the process?
    SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    Primary:
    1175 YES
    1175 NO
    1176 NO
    1176 YES
    1177 YES
    1177 NO
    1178 YES
    1178 NO
    SEQUENCE# APPLIED
    1179 YES
    1179 NO
    1180 NO
    1180 YES
    1181 NO
    1181 YES
    1182 YES
    1182 NO
    1183 NO
    1183 YES
    1184 NO
    SEQUENCE# APPLIED
    1184 YES
    1185 YES
    1185 NO
    1186 YES
    1186 NO
    1187 NO
    1187 YES
    1188 NO
    1188 YES
    1189 NO
    1189 YES
    SEQUENCE# APPLIED
    1190 YES
    1190 NO
    1191 NO
    1191 YES
    1192 NO
    1192 NO
    710 rows selected.
    Standby:
    1177 YES
    1178 YES
    1179 YES
    1180 YES
    1181 YES
    1182 YES
    1183 YES
    1184 YES
    1185 YES
    SEQUENCE# APPLIED
    1186 YES
    1187 YES
    1188 YES
    1189 YES
    1190 YES
    1191 YES
    1192 IN-MEMORY
    Regards,
    DBSo probably there are some issues in MRP apply process, Can you check alert log file when the MRP started and stopped last few times? also any errors in alert log?
    Or you can do test as
    1) stop sending redo from primary "log_archive_dest_state_2='defer';
    now perform couple/more of log switches.
    2) stop MRP
    3) start sending redo from primary "log_archive_dest_state_2='enable';
    4) Start MRP
    So that you can see whether it is frequently applying or there is any issues in applying?

  • Detect archivelog gap through gv$archived_log or GV$ARCHIVE_DEST_STATUS

    I am trying to set up a physical standby.
    Version 11.2.0.1,Single instance.
    Platform - Linux     X86-64
    After setting up, when i execute the following queries, there is a difference in the output with reference to archivelog gap. Any inputs why these 2 views report different numbers.
    SQL> SELECT   a.thread#,  b. last_seq, a.applied_seq, a. last_app_timestamp, b.last_seq-a.applied_seq   ARC_DIFF FROM (SELECT  thread#, MAX(sequence#) applied_seq, MAX(next_time) last_app_timestamp FROM gv$archived_log WHERE applied = 'YES' GROUP BY thread#) a,      
    (SELECT  thread#, MAX (sequence#) last_seq FROM gv$archived_log GROUP BY thread#) b WHERE a.thread# = b.thread#;
       THREAD#   LAST_SEQ APPLIED_SEQ LAST_APP_TIMESTAMP
    ARC_DIFF
    1    
    59     
    59 21-JUL-2013 09:09:05     
    0
    SQL> select INST_ID,DEST_NAME,STATUS,RECOVERY_MODE,ARCHIVED_THREAD#,ARCHIVED_SEQ#,APPLIED_THREAD#,APPLIED_SEQ#,DB_UNIQUE_NAME
       from GV$ARCHIVE_DEST_STATUS
    where DEST_NAME in ('LOG_ARCHIVE_DEST_3');
      2
    3
       INST_ID DEST_NAME            
    STATUS
    RECOVERY_MODE      
    ARCHIVED_THREAD# ARCHIVED_SEQ# APPLIED_THREAD# APPLIED_SEQ# DB_UNIQUE_NAME
    1 LOG_ARCHIVE_DEST_3   
    VALID
    MANAGED                           
    1       
    59          
    1      
    57 db101pln

    Hi,
    I checked some sequence have 4 entries in V$archive_log and some have only 2 entries.
    Below is an example:
    select g.RECID, stamp, name, dest_id, thread#, sequence#, first_time, next_time, creator, standby_dest, archived, applied, deleted, status, completion_time  from v$archived_log g where g.SEQUENCE# in(37716, 37507);
    RECID
    stamp
    name
    dest_id
    thread#
    sequence#
    first_time
    next_time
    creator
    standby_dest
    archived
    applied
    deleted
    status
    completion_time
    87812
    874501675
    +FRA/preprod/archivelog/2015_03_16/thread_1_seq_37507.12440.874501675
    1
    1
    37507
    3/16/2015 12:37
    3/16/2015 13:07
    ARCH
    NO
    YES
    NO
    NO
    A
    3/16/2015 13:07
    87811
    874501674
    PRESTDBY
    2
    1
    37507
    3/16/2015 12:37
    3/16/2015 13:07
    LGWR
    YES
    YES
    YES
    NO
    A
    3/16/2015 13:07
    86961
    874134695
    PRESTDBY
    2
    2
    37507
    3/12/2015 6:41
    3/12/2015 7:11
    LGWR
    YES
    YES
    YES
    NO
    A
    3/12/2015 7:11
    86962
    874134695
    1
    2
    37507
    3/12/2015 6:41
    3/12/2015 7:11
    ARCH
    NO
    YES
    NO
    YES
    D
    3/12/2015 7:11
    87809
    874501674
    PRESTDBY
    2
    2
    37716
    3/16/2015 12:37
    3/16/2015 13:07
    LGWR
    YES
    YES
    YES
    NO
    A
    3/16/2015 13:07
    87810
    874501675
    +FRA/preprod/archivelog/2015_03_16/thread_2_seq_37716.12712.874501675
    1
    2
    37716
    3/16/2015 12:37
    3/16/2015 13:07
    ARCH
    NO
    YES
    NO
    NO
    A
    3/16/2015 13:07

  • Two entries for each archive log in v$archived_log

    Hi,
    I have noticied that there are two entries for each archive log. Why this is so...?
    I have fired following command.
    ==================
    set pages 300
    set lines 120
    ALTER SESSION SET nls_date_format='DD-MON-YYYY HH24:MI:SS';
    SELECT sequence#, first_time, next_time
    FROM v$archived_log
    ORDER BY sequence#;
    ==================
    output is as follows.
    ==================
    1436 24-FEB-2012 00:04:09 24-FEB-2012 08:24:21
    1436 24-FEB-2012 00:04:09 24-FEB-2012 08:24:21
    1437 24-FEB-2012 08:24:21 24-FEB-2012 15:45:01
    1437 24-FEB-2012 08:24:21 24-FEB-2012 15:45:01
    1438 24-FEB-2012 15:45:01 24-FEB-2012 15:45:04
    1438 24-FEB-2012 15:45:01 24-FEB-2012 15:45:04
    1439 24-FEB-2012 15:45:04 24-FEB-2012 15:45:57
    1439 24-FEB-2012 15:45:04 24-FEB-2012 15:45:57
    1440 24-FEB-2012 15:45:57 24-FEB-2012 17:26:41
    1440 24-FEB-2012 15:45:57 24-FEB-2012 17:26:41
    1441 24-FEB-2012 17:26:41 24-FEB-2012 18:40:07
    1441 24-FEB-2012 17:26:41 24-FEB-2012 18:40:07
    1442 24-FEB-2012 18:40:07 24-FEB-2012 19:36:17
    1442 24-FEB-2012 18:40:07 24-FEB-2012 19:36:17
    1443 24-FEB-2012 19:36:17 24-FEB-2012 19:36:18
    1443 24-FEB-2012 19:36:17 24-FEB-2012 19:36:18
    ==================
    Regards
    DBA.

    I have noticied that there are two entries for each archive log. Why this is so...?Mseberg already mentioned.. little in detail as below
    Check for the name column in v$archived_log,
    One location refers to Local destination LOG_ARCHIVE_DEST_1
    Other location refers to your standby/DR location, But it will shows you only service name instead of full archive name.
    select dest_id,name from v$archived_log where name is not null and completion_time like '%24%FEB%'
       DEST_ID NAME
             1 +ORAARCHIVE/prod1/archivelogs/arch_0001_0671689302_0000240097.arc
             2 (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=sldb1srv)(POR
               T=9101)))(CONNECT_DATA=(SERVICE_NAME=prod_sldb1srv_XPT)(INSTANCE_N
               AME=prod1)(SERVER=dedicated)))Edited by: CKPT on Feb 24, 2012 8:26 PM

  • Data Guard Standby DB Duplicate entries in v$archived_log - apply stopped

    Hi
    I've got a perplexing problem... I have a number of archive logs that seem to have gotten duplicated (there are no other log files past or prior to this particular point). This duplication however has stopped the apply of the logs to the standby database. (Getting the 'apply' to continue is of paramount importance)
    Any suggestions on how to remove the 'duplicate' entries on the standby database would be appreciated.
    Here is the output from my query on the v$archived_log view:
    1130 20100601 11:02:38 20100601 11:53:05 NO YES YES D
    1131 20100601 11:53:05 20100601 12:21:04 NO YES YES D
    1132 20100601 12:21:04 20100601 12:44:33 NO YES YES D
    1133 20100601 12:44:33 20100601 13:08:52 NO YES NO A <--- Duplication starts
    1133 20100601 12:44:33 20100601 13:08:52 NO YES NO A
    1133 20100601 12:44:33 20100601 13:08:52 NO YES NO A
    1133 20100601 12:44:33 20100601 13:08:52 NO YES NO A
    1133 20100601 12:44:33 20100601 13:08:52 NO YES NO A
    1133 20100601 12:44:33 20100601 13:08:52 NO YES NO A
    1134 20100601 13:08:52 20100601 13:33:32 NO YES NO A
    1134 20100601 13:08:52 20100601 13:33:32 NO YES NO A
    SEQUENCE# First|Time Next|Time STA ARC APP S
    1134 20100601 13:08:52 20100601 13:33:32 NO YES NO A
    1135 20100601 13:33:32 20100601 13:52:01 NO YES NO A
    1135 20100601 13:33:32 20100601 13:52:01 NO YES NO A
    1135 20100601 13:33:32 20100601 13:52:01 NO YES NO A
    1136 20100601 13:52:01 20100601 14:10:55 NO YES NO A
    1136 20100601 13:52:01 20100601 14:10:55 NO YES NO A
    1136 20100601 13:52:01 20100601 14:10:55 NO YES NO A
    1137 20100601 14:10:55 20100601 14:58:02 NO YES NO A
    1137 20100601 14:10:55 20100601 14:58:02 NO YES NO A
    1137 20100601 14:10:55 20100601 14:58:02 NO YES NO A
    1138 20100601 14:58:02 20100601 15:28:56 NO YES NO A
    SEQUENCE# First|Time Next|Time STA ARC APP S
    1138 20100601 14:58:02 20100601 15:28:56 NO YES NO A
    1138 20100601 14:58:02 20100601 15:28:56 NO YES NO A
    1139 20100601 15:28:56 20100601 16:22:01 NO YES NO A
    1139 20100601 15:28:56 20100601 16:22:01 NO YES NO A
    1139 20100601 15:28:56 20100601 16:22:01 NO YES NO A
    1140 20100601 16:22:01 20100601 18:08:30 NO YES NO A
    1140 20100601 16:22:01 20100601 18:08:30 NO YES NO A
    1140 20100601 16:22:01 20100601 18:08:30 NO YES NO A
    1141 20100601 18:08:30 20100601 18:08:31 NO YES NO A
    1141 20100601 18:08:30 20100601 18:08:31 NO YES NO A
    1141 20100601 18:08:30 20100601 18:08:31 NO YES NO A
    SEQUENCE# First|Time Next|Time STA ARC APP S
    1141 20100601 18:08:30 20100601 18:08:31 NO YES NO A
    1141 20100601 18:08:30 20100601 18:08:31 NO YES NO A
    1142 20100601 18:08:31 20100601 22:00:14 NO YES NO A
    1142 20100601 18:08:31 20100601 22:00:14 NO YES NO A
    1142 20100601 18:08:31 20100601 22:00:14 NO YES NO A
    1143 20100601 22:00:14 20100601 22:15:24 NO YES NO A
    1143 20100601 22:00:14 20100601 22:15:24 NO YES NO A
    1143 20100601 22:00:14 20100601 22:15:24 NO YES NO A
    1144 20100601 22:15:24 20100602 02:57:01 NO YES NO A
    1144 20100601 22:15:24 20100602 02:57:01 NO YES NO A
    1144 20100601 22:15:24 20100602 02:57:01 NO YES NO A
    SEQUENCE# First|Time Next|Time STA ARC APP S
    1145 20100602 02:57:01 20100602 03:33:21 NO YES NO A
    1145 20100602 02:57:01 20100602 03:33:21 NO YES NO A
    1145 20100602 02:57:01 20100602 03:33:21 NO YES NO A
    1146 20100602 03:33:21 20100602 07:38:50 NO YES NO A
    1146 20100602 03:33:21 20100602 07:38:50 NO YES NO A
    1146 20100602 03:33:21 20100602 07:38:50 NO YES NO A
    1147 20100602 07:38:50 20100602 08:23:19 NO YES NO A <-- Duplication ends....
    1148 20100602 08:23:19 20100602 08:57:02 NO YES NO A
    1149 20100602 08:57:02 20100602 09:41:02 NO YES NO A
    1150 20100602 09:41:02 20100602 10:30:40 NO YES NO A
    1151 20100602 10:30:40 20100602 10:57:11 NO YES NO A
    Shipping of logs are continuing normally (we had to stop McAfee on the machines -- wrecked havoc with the replicaton -- not sure if the duplication can be attributed to the virus checker too)
    Thanks for the attention to this problem...
    Kind Regards
    Andries

    Thanks for posting - I've not made any changes to this system. The archive log listing I posted is from my standby database and after it got itself out of whatever not it got itself into in the first place, it applied all the logs... even these duplications have updated to YES (in the applied column). Very strange occurence... have not seen it since this. Hope it's a once off aberation.
    since this is no longer a problem... I'll mark this question as answered.
    Thanks to all who looked at it.

  • LGWR v$archived_logs

    Oracle 11.1.0.7 RAC
    3 node cluster PRIMARY
    2 node cluster STANDBY
    After a switchover from PRIMARY to STANDBY v$archived_log is used to verify that logs are applying.
    On the standby we periodically run : RMAN delete noprompt archivelog all completed before ‘sysdate’; to reduce the number of rows in v$archived_log.
    Now we’ve switched over and made the STANDBY our PRIMARY. The new STANDBY still shows a bunch of metadata exists for the archive logs that don’t exist physically (we use ASM). We are thinking these are leftover from when this was PRIMARY, but we are confused as to why.
    Thread Seq# FIRST_TIME NEXT_TIME Creator Regr Arch Applied Del Standby Dest
    2 3148 18-MAR-2013 09:24:50 18-MAR-2013 09:39:51 LGWR LGWR YES YES NO YES
    1 3167 18-MAR-2013 09:39:01 18-MAR-2013 09:54:01 LGWR LGWR YES YES NO YES
    3 3129 18-MAR-2013 09:39:03 18-MAR-2013 09:54:04 LGWR LGWR YES YES NO YES
    2 3149 18-MAR-2013 09:39:51 18-MAR-2013 09:54:52 LGWR LGWR YES YES NO YES
    1 3168 18-MAR-2013 09:54:01 18-MAR-2013 10:09:02 LGWR LGWR YES YES NO YES
    Does anyone have insight into this, and how to get rid of them?

    I misspoke.
    PRIMARY: Every night we run a backup:
    BACKUP INCREMENTAL LEVEL=${lvl} FILESPERSET=1 DATABASE PLUS ARCHIVELOG tag = '${BKPTAG}';
    DELETE NOPROMPT ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE';
    CROSSCHECK ARCHIVELOG ALL;
    However, we don't do a DELETE EXPIRED ARCHIVELOG ALL;
    A few times a week a cleanup job does:
    delete noprompt obsolete;
    delete noprompt expired backup;
    crosscheck backup;
    resync catalog;
    We've added to delete noprompt expired archivelog all; to the cleanup job and will see what happens.
    I tried this on a staging instance but it didn't make much difference, a few were deleted.
    I notice that the Registrar for everything the old logs are always LGWR. The new stuff is RFS.
    The archivelogs don't really exist in ASM, they were deleted a long time ago, but the metadata in v$archived_log hasn't kept up to date.
    Sherrie

  • Oraphan(deleted) entries in the v$archived_log

    1)why I have oraphan(deleted) entries in the v$archived_log
    77338 04-28-2013 22:10:04 04-28-2013 22:10:39
    77489 04-29-2013 18:07:21 04-29-2013 18:07:27
    77489 04-29-2013 18:07:21 04-29-2013 18:07:27
    1 04-30-2013 16:35:28 05-01-2013 08:47:20
    1 04-30-2013 16:35:28 05-01-2013 08:47:20
    5279 05-08-2013 00:05:12 05-08-2013 05:14:19
    5280 05-08-2013 05:14:19 05-08-2013 11:36:16
    5280 05-08-2013 05:14:19 05-08-2013 11:36:16
    I checked my physical stand is in synced with primary.I have a script to monitor arch gap which grab max seq.So in this case it grabs (77497 29 apr) instead of (5280 may 8 2013)

    Thanks a lot to HC and CKPT for finding time and replying me.
    CKPT I really like your article.I think I am facing same issue.
    We have to reset primary on 30 april 2013.
    DEVL PRIMARY          77490     5474 09-MAY/00:06      ####
    Primary:
    select distinct RESETLOGS_CHANGE#, RESETLOGS_TIME from v$archived_log order by RESETLOGS_TIME desc;
    RESETLOGS_CHANGE# RESETLOGS_TIME
    2.2701E+10 05-01-2013 08:47:20
    2.2701E+10 04-30-2013 16:35:28
    1 08-28-2012 16:34:30
    SQL> select distinct RESETLOGS_CHANGE#, RESETLOGS_TIME from v$archived_log order by RESETLOGS_TIME desc;
    RESETLOGS_CHANGE# RESETLOGS_TIME
    2.2701E+10 05-01-2013 08:47:20
    2.2701E+10 04-30-2013 16:35:28
    1 08-28-2012 16:34:30
    SQL> select max(sequence#) from v$archived_log;
    MAX(SEQUENCE#)
    77490
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 5471
    Next log sequence to archive 5476
    Current log sequence 5476
    STANDBY
    SQL> select max(sequence#) from v$archived_log where applied='YES';
    MAX(SEQUENCE#)
    5474

Maybe you are looking for

  • PDF Thumbnails disapear after installed CS3 on XP-Vista

    here is the problem, we have adobe reader on all our computer in the company, we are a printing company so PDF is the file of choice in our workflow. we have CS-CS3 installed on XP,Vista and 2003(automation server) Everyone who has only Reader instal

  • Win32 API error 126

    What to do if message: [Win32 API error 126 ("Dasangegebene Modul wurde nicht gefunden") when calling ::LoadLibrary from getFunction] apears

  • Drag and Drop Interaction with 50+ Drop Targets

    Hello, I'm fairly new to Captivate 7 but very familiar with Flash. I'm tasked with a project that I would like to do with the drag and drop interaction widget from Captivate 7. Basically, we need our learners to identify the locations of our resorts

  • Windows 8 fast startup issues on X220

    Hi everyone - having some troubles with my X220 and windows 8.1 and fast startup. It has been working flawlessly for a few months now with Windows 8 and an SSD but has recently decided it does not want to fast startup - every time I try and boot with

  • Blackberry Desktop Software Version 6.1.036 now receiving Connector Specific Error when sync Calendar

    I have a Blackberry Bold 9930 that has software version 7.1 bundle 457 and my desktop software is listed above, today when I tried to sync my calendar it is giving me the error Connector Specific Error, and won't sync.  What am I doing wrong?  Thank