Gap in the sequence of the Archive

Hello

I have a Setup primary and physical the previous day. However, there seems to be a gap in my journal sequence archive, resulting the issue ORA-16724 Broker cannot solve gap

I narrowed down it to 1 sequence archive is missing on my primary. I think that this may have arisen because the following command has been issued on the primary

change the database clear no archived logfile Group 1;

Q1. Is - what the reason for the gap of newspaper archive?

I have no way to restore the missing log archiving (because it was never created in the first place because of the above command)

Q2. How can I get my primary and Standby back in harmony? I'm not worried about the loss of data, I want to just the pair of primary / secondary working again

I had no Flashback database enabled on the primary at the time loss of archive (I do now!)

any help appreciated,

Jim


change the database clear no archived logfile Group 1;

Q1. Is - what the reason for the gap of newspaper archive?

I have no way to restore the missing log archiving (because it was never created in the first place because of the above command)

Is it intentional or database was not able to check when issuing this command? whatever if you clear a log file that is necessary for recovery and then you cannot recover. Because the specific data in the redo log were not archived and thus caused archive GAP.

Q2. How can I get my primary and Standby back in harmony? I'm not worried about the loss of data, I want to just the pair of primary / secondary working again

I had no Flashback database enabled on the primary at the time loss of archive (I do now!)

Still even if you have not enabled flashback database, you can synchronize primary and standby databases, check out this link to perform differentials rolls forward in sleep mode

http://www.Oracle-CKPT.com/RMAN-incremental-backups-to-roll-forward-a-physical-standby-database-2/

HTH.

Tags: Database

Similar Questions

  • gap in the archiving log

    Hello
    What happens if there is a gap of 100 archivelogs between database and relief.
    How to fill this gap?
    Please someone make me know

    Hello

    We can say that there is a GAP, but first of all, you should check out some info for the solution.

    1 check the alerts log, because alert.log contains the IDs of archivelog GAP sequence.
    2. check the Max of Archivelog PROD and Stand By time sequence (you already check)
    Select max(sequence#) from v$ archived_log in case of application = 'YES ';

    If the different sequence ID you can use several ways for the solution.
    1. use RMAN;

    RESTORE the ARCHIVELOG OF SEQUENCE to the SEQUENCE ;

    2. you can restore that according to the SNA. You can follow this post on below.
    http://emrebaransel.blogspot.com/2008/12/recover-DataGuard-from-lost-ARCHIVELOG.html

    3 copy Archivelog FTP or SCP It is ancient, but it is useful sometimes. After this process, you must save newspapers.

    4. If three sections does not solve your problem, you can use last and method hard is restoring full :)

    B.R

    Ozgur

  • find the gaps between the sequences

    Hi all

    I have a request to find the gap between the sequences.

    Here's my table structure

    user_number | seq_number

    1            |   101

    1            |      102

    1            |    109

    1            |    110

    1            |    111

    2            |    201

    2            |    202

    2            |    203

    2            |    207

    2            |    208

    .            |    .

    .            |    .

    .            |    .

    .            |    .

    Now I have to find the gap between sequences, what I mean by gap's user_number 1 ' 6 between seq_number gap ' 102 'and 109'.

    Here's the query that I'm writing, but not giving the correct answer, he always gives the gap of 2:

    Select gap_start - gap_end gap

    de)

    Select a.seq_number + 1 as gap_start, b.seq_number - 1 as gap_end

    from my_table a, b from my_table

    where a.seq_number = b.seq_number

    and a.seq_number - (select c.seq_number

    from my_table c

    where c.seq_number = a.seq_number - 1) is set to null

    and a.user_number = '1'

    order of a.seq_number

    );

    Thank you.

    Hello

    Whenever you have a question, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the accurate results you want from this data, so that people who want to help you can recreate the problem and test their ideas.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

    Maybe you want something like this:

    WITH got_prev_seq_number AS

    (

    SELECT user_number, seq_number

    LAG (seq_numebr) OVER (PARTITION BY user_number

    ORDER BY seq_number

    ) AS prev_seq_number

    FROM my_table

    )

    SELECT user_number, seq_number, prev_seq_number

    OF got_prev_seq_number

    WHERE seq_number > prev_seq_number + 1

    ORDER BY user_number, seq_number

    ;

    .

  • gaps in the sequences being cached

    Would like to know if the sequences are defined the cache is it possible to see gaps in the sequence if a process such as rman or a long period of time accures.

    I'm trying to identify why we have gaps. I read a little, if the system boils then the sequence in the cache would be lost and Oracle would get the next set of numbers.

    10.2.0.4
    Linux

    Thank you
    Steve

    user12551219 wrote:

    Would like to know if the sequences are defined the cache is it possible to see gaps in the sequence if a process such as rman or a long period of time accures.

    I'm trying to identify why we have gaps. I have

    Oracle sequences will always be gaps for various reasons, a restoration is one, caching and data base closures are others. Caching of the sequences produced better performance.

    The answer is to not care that there are gaps in sequence.

    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:4343369880986

    A sequence is a unique identifier and not a counter, store a number of rows in a table is non-relational and not to carry out or scaling. If the lines are to be counted, they should be counted when they are selected.

    If you are concerned about the number of losing because you can escape, I worry for some time or the other.

    Re: What kind of operation on the inside?

  • for the archive sequence # generated two days back

    What is point of view? script to check the archives (sequence #) generated two days back and are applied in settlement by then delete?

    Hello..

    I guess it would make on primary: -.

    select THREAD#, SEQUENCE#,COMPLETION_TIME,APPLIED,DELETED from  V$ARCHIVED_LOG where completion_time between '31-OCT-09' and '02-NOV-09'
    

    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1016.htm#REFRN30011]

    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1035245]

    NOTE:-change according to your need.

    HTH
    Anand

    Published by: Anand... November 2, 2009 10:48

  • The archive logs shipped but more old logs do not applied...

    Environment:

    Oracle on Solaris 11.2.0.3 10.5

    The Data Guard environment working fine for 6 months.

    I recently had problems with disk space on the day before and had to copy some files from newspapers of the archives to a mount point different that had been shipped to the waiting, but not yet applied because I had to cancel the paper application process.

    After having cleared the space problem and start log shipping and return application log on (change database recovery managed to sleep...) I have the new logs shipped but my watch is a bunch of log files behind. I can see it in the V$ ARCHIVED_LOG on intelligence, where the last seq # applied is 8083 in my case and the more current seq # is currently more than 8200.

    I have all the archives always connects in 'other' the mount point and can move back the directory the correct archive according to needs.

    Since the next file that the application requires is seq # 8084, I moved this file in the/arch directory awaits the day before 'see' and apply it. No luck.

    By searching in the alert log just before after execution of the 'alter database recover managed standby database disconnect;' I see the following:
    Media Recovery Waiting for thread 1 sequence 8084
    and also:
    Fetching gap sequence in thread 1, gap sequence 8084-8084
    and just below that:
    FAL[client]: Error fetching gap sequence, no FAL server specified
    I thought I read in the docs that the FAL_SERVER and the FAL_CLIENT are no longer needed. (?)

    I also found a CKPT script that lists information about DG Environment. For the primary side to hang on, but the day before one produces this output:
    NAME                           DISPLAY_VALUE
    ------------------------------ ------------------------------
    db_file_name_convert           /u01/oradata/APSMDMP1, /u01/or
                                   adata/APSMDMP1, /u02/oradata/A
                                   PSMDMP1, /u02/oradata/APSMDMP1
                                   , /u03/oradata/APSMDMP1, /u03/
                                   oradata/APSMDMP1, /u04/oradata
                                   /APSMDMP1, /u04/oradata/APSMDM
                                   P1
    
    db_name                        APSMDMP1
    db_unique_name                 APSMDMP1STBY
    dg_broker_config_file1         /u01/app/oracle/product/11203/
                                   db_2/dbs/dr1APSMDMP1STBY.dat
    
    dg_broker_config_file2         /u01/app/oracle/product/11203/
                                   db_2/dbs/dr2APSMDMP1STBY.dat
    
    dg_broker_start                FALSE
    fal_client
    fal_server
    local_listener
    log_archive_config             DG_CONFIG=(APSMDMP1,APSMDMP1ST
                                   BY)
    
    log_archive_dest_2             SERVICE=APSMDMP1 ASYNC VALID_F
                                   OR=(ONLINE_LOGFILES,PRIMARY_RO
                                   LE) DB_UNIQUE_NAME=APSMDMP1 MA
                                   X_CONNECTIONS=2
    
    log_archive_dest_state_2       ENABLE
    log_archive_max_processes      4
    log_file_name_convert          /u01/oradata/APSMDMP1, /u01/or
                                   adata/APSMDMP1
    
    remote_login_passwordfile      EXCLUSIVE
    standby_archive_dest           ?/dbs/arch
    standby_file_management        AUTO
    
    NAME       DB_UNIQUE_NAME                 PROTECTION_MODE DATABASE_R OPEN_MODE
    ---------- ------------------------------ --------------- ---------- --------------------
    APSMDMP1   APSMDMP1STBY                   MAXIMUM PERFORM PHYSICAL S READ ONLY WITH APPLY
                                              ANCE            TANDBY
    
    
       THREAD# MAX(SEQUENCE#)
    ---------- --------------
             1           8083
    
    PROCESS   STATUS          THREAD#  SEQUENCE#
    --------- ------------ ---------- ----------
    ARCH      CLOSING               1       7585
    ARCH      CLOSING               1       7588
    ARCH      CLOSING               1       6726
    ARCH      CLOSING               1       7581
    RFS       RECEIVING             1       8462
    MRP0      WAIT_FOR_GAP          1       8084
    RFS       IDLE                  0          0
    
    NAME                           VALUE      UNIT                           TIME_COMPUTED                  DATUM_TIME
    ------------------------------ ---------- ------------------------------ ------------------------------ ------------------------------
    transport lag                  +00 00:01: day(2) to second(0) interval   08/16/2012 13:24:04            08/16/2012 13:23:35
                                   59
    
    apply lag                      +01 23:08: day(2) to second(0) interval   08/16/2012 13:24:04            08/16/2012 13:23:35
                                   43
    
    apply finish time              +00 00:17: day(2) to second(3) interval   08/16/2012 13:24:04
                                   21.072
    
    estimated startup time         15         second                         08/16/2012 13:24:04
    
    NAME                                                            Size MB    Used MB
    ------------------------------------------------------------ ---------- ----------
                                                                          0          0
    I do not use a fast recovery area.

    What should I do to get the old logs to check-in begins to apply again?

    The alert log says something about "Adding value to the media", but I don't know why I would need that since I have the log files itself.

    Any help is appreciated.

    Also, I spend a significant amount of time to read through this forum and many articles on the web but couldn't find exactly the solution I was looking for.

    Thank you very much!!

    -gary

    Try to save the log file

    alter database register logfile 'full path for the 8074 sequence.

    and check select message from v$ dataguard_status;

  • Problem with the archive log when you use RMAN for backup and restore (11g 2)

    Hello world
    Please help me solve this problem.
    I'm just beginner in Oracle Database (11 g 2). Today, I had a problem, I tried to back up and restore my db by RMAN. I delete all the files in /u01/app/oracle/oradata/orcl / * , then I restore them easily, but the point is I have a table, I can restore Hungarian, but cannot restore anything ranks in it (something wrong with step restore database). I'll tell the detail below.
    -First, I create a 'Day' with command table create table hr.day (varchar (20)) day. Then I backup complete by this:
    run{
    allocate channel bkp device type DISK FORMAT '/u01/backup/DB_FULL_%d_%T_s%s_p%p' ;
    backup as compressed backupset incremental level 0 tag 'DB_FULL' database include current controlfile;
    backup as compressed backupset tag 'ARCL_BKP_FULL' archivelog all delete input;
    crosscheck archivelog all;
    crosscheck backup;
    delete noprompt obsolete;
    release channel bkp;
    }


    D ' other hand, I have insert 'Monday' to table. then do an incremental backup by this:

    run{
    allocate channel bkp device type DISK FORMAT '/u01/backup/DB_INC_%d_%T_s%s_p%p' ;
    backup as compressed backupset incremental level 1 tag 'DB_INC' database include current controlfile;
    backup as compressed backupset tag 'ARCL_BKP_INC' archivelog all delete input;
    crosscheck archivelog all;
    crosscheck backup;
    delete noprompt obsolete;
    release channel bkp;
    }

    Repeat 7 times (Monday-> Saturday). And I got these files:

    [oracle@rac ~]$ ls -l /u01/backup/
    total 400280
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 07:23 c-1428943247-20160120-01
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:04 c-1428943247-20160120-02
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:05 c-1428943247-20160120-03
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:06 c-1428943247-20160120-04
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:08 c-1428943247-20160120-05
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:08 c-1428943247-20160120-06
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:09 c-1428943247-20160120-07
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:32 c-1428943247-20160120-08
    -rw-r----- 1 oracle oinstall 296337408 Jan 20 07:23 DB_FULL_ORCL_20160120_s89_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 07:23 DB_FULL_ORCL_20160120_s90_p1
    -rw-r----- 1 oracle oinstall   2266624 Jan 20 07:23 DB_FULL_ORCL_20160120_s91_p1
    -rw-r----- 1 oracle oinstall   4073984 Jan 20 07:23 DB_FULL_ORCL_20160120_s92_p1
    -rw-r----- 1 oracle oinstall  11201536 Jan 20 07:23 DB_FULL_ORCL_20160120_s93_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:05 DB_INC_ORCL_20160120_s100_p1
    -rw-r----- 1 oracle oinstall    146944 Jan 20 08:05 DB_INC_ORCL_20160120_s101_p1
    -rw-r----- 1 oracle oinstall    884736 Jan 20 08:06 DB_INC_ORCL_20160120_s103_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:06 DB_INC_ORCL_20160120_s104_p1
    -rw-r----- 1 oracle oinstall     82432 Jan 20 08:06 DB_INC_ORCL_20160120_s105_p1
    -rw-r----- 1 oracle oinstall    294912 Jan 20 08:07 DB_INC_ORCL_20160120_s107_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:07 DB_INC_ORCL_20160120_s108_p1
    -rw-r----- 1 oracle oinstall     18944 Jan 20 08:08 DB_INC_ORCL_20160120_s109_p1
    -rw-r----- 1 oracle oinstall    155648 Jan 20 08:08 DB_INC_ORCL_20160120_s111_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:08 DB_INC_ORCL_20160120_s112_p1
    -rw-r----- 1 oracle oinstall    131584 Jan 20 08:08 DB_INC_ORCL_20160120_s113_p1
    -rw-r----- 1 oracle oinstall    647168 Jan 20 08:09 DB_INC_ORCL_20160120_s115_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:09 DB_INC_ORCL_20160120_s116_p1
    -rw-r----- 1 oracle oinstall      8704 Jan 20 08:09 DB_INC_ORCL_20160120_s117_p1
    -rw-r----- 1 oracle oinstall   2203648 Jan 20 08:04 DB_INC_ORCL_20160120_s95_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:04 DB_INC_ORCL_20160120_s96_p1
    -rw-r----- 1 oracle oinstall   1899008 Jan 20 08:04 DB_INC_ORCL_20160120_s97_p1
    -rw-r----- 1 oracle oinstall    327680 Jan 20 08:05 DB_INC_ORCL_20160120_s99_p1

    And
    RMAN> list backup summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    ------- -- -- - ----------- --------------- ------- ------- ---------- ---
    80      B  0  A DISK        20-JAN-16       1       1       YES        DB_FULL
    81      B  0  A DISK        20-JAN-16       1       1       YES        DB_FULL
    82      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_FULL
    83      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_FULL
    84      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_FULL
    85      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T072332
    86      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    87      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    88      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    89      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080440
    90      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    91      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    92      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    93      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080545
    94      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    95      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    96      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    97      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080657
    98      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    99      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    100     B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    101     B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080801
    102     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    103     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    104     B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    105     B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080844
    106     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    107     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    108     B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC

    My configuration of rman:
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name ORCL are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u01/backup/%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/u01/backup/backup_df%t_s%s_s%p';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome/dbs/snapcf_orcl.f'; # default

    - Thirdly, i removed all file in /u01/app/oracle/oradata/orcl/*. then restore control file from the newest backup control file (saturday backup) + restore database. Seem nothing's wrong here.
    RMAN> restore controlfile from '/u01/backup/c-1428943247-20160120-08';
    Starting restore at 20-JAN-16
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=18 device type=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: SID=20 device type=DISK
    channel ORA_DISK_2: skipped, AUTOBACKUP already found
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:09
    output file name=/u01/app/oracle/oradata/orcl/control01.ctl
    output file name=/u01/app/oracle/flash_recovery_area/orcl/control02.ctl
    Finished restore at 20-JAN-16

    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    released channel: ORA_DISK_2

    RMAN> restore database;
    Starting restore at 20-JAN-16
    Starting implicit crosscheck backup at 20-JAN-16
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=20 device type=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: SID=18 device type=DISK
    Crosschecked 29 objects
    Finished implicit crosscheck backup at 20-JAN-16

    Starting implicit crosscheck copy at 20-JAN-16
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    Finished implicit crosscheck copy at 20-JAN-16

    searching for all files in the recovery area
    cataloging files...
    no files cataloged

    using channel ORA_DISK_1
    using channel ORA_DISK_2

    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/orcl/system01.dbf
    channel ORA_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/orcl/sysaux01.dbf
    channel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/orcl/undotbs01.dbf
    channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/orcl/users01.dbf
    channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/orcl/example01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/backup/DB_FULL_ORCL_20160120_s89_p1
    channel ORA_DISK_1: piece handle=/u01/backup/DB_FULL_ORCL_20160120_s89_p1 tag=DB_FULL
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:15
    Finished restore at 20-JAN-16

    -Fourth, the problem here, I got the database;
    .. .every oky until this line...
    starting media recovery

    channel ORA_DISK_1: starting archived log restore to default destination
    channel ORA_DISK_1: restoring archived log
    archived log thread=1 sequence=15
    channel ORA_DISK_1: reading from backup piece /u01/backup/DB_INC_ORCL_20160120_s117_p1
    channel ORA_DISK_1: piece handle=/u01/backup/DB_INC_ORCL_20160120_s117_p1 tag=ARCL_BKP_INC
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    archived log file name=/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_20/o1_mf_1_15_c9xsyx9k_.arc thread=1 sequence=15
    unable to find archived log
    archived log thread=1 sequence=1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 01/20/2016 08:50:22
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 1205841

    The error said that it is impossible to find the archived log thread = 1 sequence = 1. Then I check it with this command always there (oh, I'm wrong?)
    RMAN> list backup of archivelog all;
    List of Backup Sets
    ===================
    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    82      2.16M      DISK        00:00:00     20-JAN-16     
            BP Key: 82   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_FULL
            Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s91_p1

      List of Archived Logs in backup set 82
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
    1    1       1154833    20-JAN-16 1177422    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    83      3.88M      DISK        00:00:00     20-JAN-16     
            BP Key: 83   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_FULL
            Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s92_p1

      List of Archived Logs in backup set 83
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
    1    1       1162729    20-JAN-16 1188784    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    84      10.68M     DISK        00:00:01     20-JAN-16     
            BP Key: 84   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_FULL
            Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s93_p1

      List of Archived Logs in backup set 84
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    2       1177422    20-JAN-16 1201833    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    88      1.81M      DISK        00:00:01     20-JAN-16     
            BP Key: 88   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s97_p1

      List of Archived Logs in backup set 88
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    3       1201833    20-JAN-16 1204844    20-JAN-16
      1    4       1204844    20-JAN-16 1204893    20-JAN-16
      1    5       1204893    20-JAN-16 1204958    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    92      143.00K    DISK        00:00:00     20-JAN-16     
            BP Key: 92   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s101_p1

      List of Archived Logs in backup set 92
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    6       1204958    20-JAN-16 1205034    20-JAN-16
      1    7       1205034    20-JAN-16 1205253    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    96      80.00K     DISK        00:00:00     20-JAN-16     
            BP Key: 96   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s105_p1

      List of Archived Logs in backup set 96
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    8       1205253    20-JAN-16 1205354    20-JAN-16
      1    9       1205354    20-JAN-16 1205433    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    100     18.00K     DISK        00:00:00     20-JAN-16     
            BP Key: 100   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s109_p1

      List of Archived Logs in backup set 100
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    10      1205433    20-JAN-16 1205519    20-JAN-16
      1    11      1205519    20-JAN-16 1205559    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    104     128.00K    DISK        00:00:00     20-JAN-16     
            BP Key: 104   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s113_p1

      List of Archived Logs in backup set 104
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    12      1205559    20-JAN-16 1205624    20-JAN-16
      1    13      1205624    20-JAN-16 1205739    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    108     8.00K      DISK        00:00:00     20-JAN-16     
            BP Key: 108   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s117_p1

      List of Archived Logs in backup set 108
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    14      1205739    20-JAN-16 1205796    20-JAN-16
      1    15      1205796    20-JAN-16 1205840    20-JAN-16


    If i ignore it and open the database, just my table in full backup come back but rows was not restored. I'm sure the problem is my archive log backup but i don't know how to solve it. Plz help me.

    Sorry for a long post.

    > 1 and from the 1205841 SNA sequence

    The SCN that indicates Oracle is above the range of SNA that you have in the ArchiveLog backups for sequence 1 to 15 (15 sequence ends at 1205840).

    The message

    channel ORA_DISK_1: restoring archives Journal

    Archives journal thread = 1 sequence = 15

    channel ORA_DISK_1: backup/u01/backup/DB_INC_ORCL_20160120_s117_p1 piece reading

    channel ORA_DISK_1: piece handle = / u01/backup/DB_INC_ORCL_20160120_s117_p1 tag = ARCL_BKP_INC

    indicates that he has restored the sequence up to 15

    You can check the log file alert database instance for messages on the fact of recovery.

    He is now asking sequence #1 it seems you did a RESETLOGS after sequence #15.

    Note: If you have NOT issued a COMMIT after the line is INSERTED in the table 'Day', the recovery of the database will have no * transactions * to retrieve.  An uncomitted transaction is cancelled.

    Hemant K Collette

  • Can someone please tell me what is the problem here? There is a blank gap in the timeline.

    Hey,.

    There is a gap in the main sequence. It is visible with activation video once again, but disappears quickly after that. I think the problem is luma key in the subsequence or new update. A project which was started a year ago. Can someone help me with this please?

    What happens when you turn off hardware MPE?

  • Need to find gaps in the data

    Hi all

    I have the following documents:

    -Drop Table
    drop table agreement;
    drop table GRP_INFO;
    -Create table
    create table agreement
    (
    Agreement_Id Number (5),
    Date of Coverage_Effective_Date,
    Date of COVERAGE_termination_date
    );
    Create Table GRP_INFO
    (
    Agreement_Id Number (5),
    Grp_Id Number (5),
    Date of Effective_Date,
    Date TERMINATION_DATE
    );
    ------------

    -Insertion
    Insert into the agreement
    Select 100,'01 JAN - 2013", December 31, 2013"
    From Dual;

    Insert into the agreement
    Select 200,'01 JAN - 2013", December 31, 2013"
    From Dual;

    Insert into the agreement
    Select 300,'01 JAN - 2013", December 31, 2013"
    From Dual;

    Insert into the agreement
    Select 400,'01 JAN - 2013", December 31, 2013"
    From Dual;
    ----------
    Insert into Grp_Info
    Select 100.1, 1 January 2013 ", 31 March 2013"
    Of the double
    UNION ALL
    Select 100.2, April 1, 2013 ", April 2, 2013"
    Of the double
    UNION ALL
    Select 100.3, April 3, 2013 ", April 15, 2013"
    Of the double
    UNION ALL
    Select 100.4, April 3, 2013 ", April 15, 2013"
    Of the double
    UNION ALL
    Select 100.5, 1 June 2013 ", December 31, 2013"
    Of the double
    Union All
    Select 200.6, 1 January 2013 ", April 2, 2013"
    Of the double
    Union All
    Select 200,7, April 3, 2013 ", April 15, 2013"
    Of the double
    Union All
    Select 200,8, April 3, 2013 ", April 15, 2013"
    Of the double
    Union All
    Select 200,9, June 1, 2013 ", November 30, 2013"
    Of the double
    Union All
    Select 300,10, 1 January 2013 ", April 15, 2013"
    Of the double
    Union All
    Select 300,11, April 16, 2013 ", December 31, 2013"
    Of the double
    Union All
    Select 400,12, January 2, 2013 ", December 31, 2013"
    From Dual;

    COMMIT;

    -------------------

    -Queries on the table of the agreement

    Select * agree;

    -Result of the query

    agreement_id coverage_effective_date coverage_termination_date

    100                                         01-JAN-13                                                   31-DEC-13

    200                                         01-JAN-13                                                   31-DEC-13

    300                                         01-JAN-13                                                   31-DEC-13

    400                                         01-JAN-13                                                   31-DEC-13

    -----------------------

    -Queries on grp_info table

    agreement_id grp_id effective_date termination_date

    100                                              1                     01-JAN-13                       31-MAR-13

    100                                              2                     01-APR-13                       02-APR-13

    100                                              3                     03-APR-13                       15-APR-13

    100                                              4                     03-APR-13                       15-APR-13

    100                                              5                     01-JUN-13                        31-DEC-13

    200                                              6                     01-JAN-13                        02-APR-13

    200                                              7                     03-APR-13                        15-APR-13

    200                                              8                     03-APR-13                        15-APR-13

    200                                              9                     01-JUN-13                         30-NOV-13

    300                                              10                   01-JAN-13                         15-APR-13

    300                                              11                   16-APR-13                         31-DEC-13

    400                                              12                   02-JAN-13                          31-DEC-13

    -------------

    -Result

    agreement_id

    100

    200

    400

    ----------------------

    -Logic for the above result

    Each agreement_id have several grp_id and grp_id all or at least one should cover all the period agreement_id for example:

    -Agreement_id 100 a protection from the date is January 1, 2013 and coverage_termination_date is December 31, 2013, and if you look in all the archives against agreement_id 100 so you can find the period from April 16, 2013 until 31 May 2013 are missing so I need this agreement_id.

    -Agreement_id 200 a protection from the date is January 1, 2013 and coverage_termination_date is December 31, 2013, and if you look in all the archives against agreement_id 200 then you can find that the period from December 1, 2013 until 31 December 2013 are missing so I need this agreement_id.

    -Agreement_id 300 a protection from the date is January 1, 2013 and coverage_termination_date is December 31, 2013, and if you look in all the archives against agreement_id 300 then you can find that no period is missing, I don't need this agreement_id.

    -Agreement_id 400 a protection from the date is January 1, 2013 and coverage_termination_date is December 31, 2013, and if you look in all the archives against agreement_id 300 then you can find that the period from January 1, 2013, until January 1, 2013 is missing, so I need this agreement_id.

    --------------

    Please let me know if you have any related questions my script and I really appreciate if someone can give me the solution for this problem.

    Concerning

    Line

    Hello

    Here's one way:

    WITH got_gap AS

    (

    SELECT agreement_id, effective_date, termination_date

    CASE

    WHEN effective_date >

    1 + MAX (termination_date) OVER (PARTITION BY agreement_id

    ORDER BY effective_date

    ROWS BETWEEN UNBOUNDED PRECEDING

    AND 1 PRECEDING

    )

    THEN 1

    Difference in the END as the

    OF grp_info

    )

    SELECT g.agreement_id

    OF got_gap g

    JOIN agreement has ON a.agreement_id = g.agreement_id

    GROUP BY g.agreement_id

    GIVEN the NUMBER (g.gap) > 0

    MIN (g.effective_date) OR > MIN (a.coverage_effective_date)

    OR MAX (g.termination_date)< max="">

    ORDER BY g.agreement_id

    ;

    Output:

    AGREEMENT_ID

    ------------

    100

    200

    400

    Makes no assumptions about effective_date and termination_date, except that effective_date<= termination_date="" on="" each="" row. ="" it's="" okay="" if="" different="" rows="" for="" the="" same="" agreement_id="" overlap,="" or="" if="" one="" encompasses="">

    Do not attempt to insert VARCHAR2 values (like January 1, 2013 "") in the DATE columns.  Use TO_DATE, either DATE literals.

  • ORA-19504: failed to create the file, ORA-00270: creation of the archiving log error

    Hello

    Oracle 11 g 2 on windows 7, I of primary and standby on the same system (learning).

    When I check on status of primary and secondary use under request it gives applied log is 'NO '.

    SQL > select sequence #, used from v$ archived_log;

    SEQUENCE # APPLIED
    ---------- ---------
    516 NO.
    517 NO.
    NO. 523
    NO. 524
    525 NO.
    531 NO.
    NO. 532
    533 NO.
    NO. 541
    544 NO.

    When I checked error on DB primary .he give me more erro.
    SQL > SELECT 'ID', 'DB_status' STATUS DEST_ID, EXCURSION place "Archive_dest', 'ERROR' OF V$ ARCHIVE_DEST WHERE DEST_ID < = 5;
    ---------- ---------
    Error Archive_dest
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    1 D:\app\kamdarvg\flash_recovery_area\test\ARCHIVELOG ORA-19504: cannot create the file «»

    2 STAND ORA-00270: creation of the archiving log error

    I checked the space on the system... is there enough free space on the disk.

    On primary DB (destination of the journal archive)

    SQL > list of archive logs
    Database log mode Archive Mode
    Active AutoArchive
    Destination of archive D:\app\kamdarvg\flash_recovery_area\test\ARCHIVELOG
    More old sequence of journal online 564
    Log sequence archive 566
    Current log sequence 566

    On standby DB (list of newspapers of record)

    SQL > list of archive logs
    Database log mode Archive Mode
    Active AutoArchive
    Destination of archive D:\app\kamdarvg\flash_recovery_area\test\ARCHIVELOG
    More old sequence of journal online 564
    Log sequence archive 566
    Current log sequence 566

    Please guide it's because of the destination of the journal archive even shared by the standby and primary?

    If yes how do I change the destination of the newspaper archive on standby DB?

    Thank you.

    Edited by: 977220 April 18, 2013 20:49

    change initialization parameter

  • How can I close a gap on the timeline?

    I recently move to Adobe Premiere Final Cut Pro Studio 7 CS6 (wasn't feeling X) and I was wondering is there a way to fill a gap in the chronology?  I removed a few sequences and rather have to highlight all of the remaining sequences and bring it back on, is there a way I can just click on a type of "bridge the gap" button similar to Final Cut Pro for this problem?

    Thank you!

    Select Gap > shift > delete

    (Deletion of undulation)

  • are the archived newspaper applied pending

    Hello
    on 9.2.0. on Linux, I don't know whether or not the archived logs are applied pending:
    on standby
    SQL> select count(*) from v$archived_log;
    
      COUNT(*)
    ----------
             0
    
    SQL> select CHECKPOINT_CHANGE# from v$database;
    
    CHECKPOINT_CHANGE#
    ------------------
              87831132
    And in the alertlog standby:
    Wed Jul  6 06:03:26 2011
    Media Recovery Log /mydb_log_arch/arcmydb27648.arc
    Terminal Recovery: done UNTIL CHANGE 136790677
    Media Recovery Complete
    And primary:
    SQL> select CHECKPOINT_CHANGE# from v$database;
    
    CHECKPOINT_CHANGE#
    ------------------
             136799632
    Thanks for the help.

    On the primary database

    SQL > select max(sequence#) from v$ archived_log;

    Is the backup database

    SQL > select max(sequence#) from v$ log_history;

  • Remove the archive logs from before the resetlogs

    Hello

    I use a cleanupscript to my archive logs. I work with a database of return of flame and running of tests, so I did a bit of resetlogs open in my DB.

    However, this script does not seem to take the archive logs away from before the resetlogs. Is there a way I can always make a backup of these easily?


    Run {}
    allocate channel t1 type disk;
    OVERLAP archivelog all;
    format of entry archivelog backup to remove sequences 5 ' / oracle/RMAN/backups/${SID}/backups/DISK_ARC_%d_%s.%p';
    current backup controlfile as ' / oracle/RMAN/backups/${SID}/backups/DISK_CTL_%d_%s.%p';
    output channel t1;
    }


    (until the 5:5 sequence is the last log applied on standby)

    If, once that you the database in resetlogs. can no longer needed the repository information, you tell me what you will do with these archives?

    still, you can keep in the repository as

    RMAN > catalogue archivelog 'archive_file ';

    then it will be registered in the repository

  • reactivation of the archiver

    We have a 2 node 10g RAC db. The db has been recently revived, before it has been restarted, log control happening every hour. After the db has been restarted, I noticed in the alert log journal control occurs every half hour and with the reactivation of the archiver like 8 minutes before the passage of the newspaper, please explain why there is another sequence of journal for the reactivation of the archiver, what is it for?


    Sun Oct 11 10:08:36 2009
    Thread 2 Advanced to record the sequence 10753 (reactivation of the archiver)
    Sun Oct 11 10:17:33 2009
    Thread 1 Advanced to record the sequence 10956 (switch LGWR)
    Currently Journal # 3 seq # 10956 mem #0: /oradata/SID/redo1_3.log
    Sun Oct 11 10:39:37 2009
    Thread 2 Advanced to record the sequence 10754 (reactivation of the archiver)
    Sun Oct 11 10:47:32 2009
    Thread 1 Advanced to record the sequence 10957 (switch LGWR)
    Currently journal # 1, seq # 10957 mem #0: /oradata/SID/redo1_1.log
    Sun Oct 11 11:10:38 2009
    Thread 2 Advanced to record the sequence 10755 (reactivation of the archiver)
    Sun Oct 11 11:17:34 2009
    Thread 1 Advanced to record the sequence 10958 (switch LGWR)
    Currently Journal # 2 seq # 10958 mem #0: /oradata/SID/redo1_2.log

    Thanks in advance

    2-node RAC, 2 cases, 2-wire, 2 sequence numbers different.

    Werner

  • Two questions relating to the archive redo logs with RMAN backup

    DB version: 11g

    I am new to RMAN.

    My database is in ARCHIVELOG mode. I intend to make a weekly backup for my db (02:00 every Monday). There will be all the incremental backups between these windows(Monday-to-Monday) of backup that I have would function for retrieving archived redo logs.


    Question1.
    I want to save the archived logs every day (for example at 23:00). How can I configure that?

    These are the configuration setting, that I intend to implement. I don't know how to set up the archive log backup
    configure default device type to disk;
    configure retention policy to redundancy;
    configure device type disk parallelism 1;
    configure channel 1 device type disk clear;
    configure channel 2 device type disk clear;
    configure channel 1 device type disk format '/u05/rman1/datafiles/rmnabackup1_%U';
    configure channel 2 device type disk format '/u05/rman2/datafiles/rmnabackup2_%U';
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/u05/rman1/control_files/rmnabackup1_%U';
    Question2.
    After that a new full backup is taken at 02:00 on Mondays, the archived redo logs accumulated since the last 7 days become unnecessary. How can I automate the removal of the archive redo logs with RMAN?

    Archive the log delete them all input command will take the destination of the log archiving log backup archive and delete this destination.

    In the log archive destination he has archived log in the sequence 1 to 100 then will he take the backup and delete any of the destination (Monday 23:00).

    In the log archive destination he has archived sequence journal 101 to 150 then will he take the backup and remove those in the destination (Tuesday 23:00).

    In the log archive destination he has archived log in the sequence from 151 to 180 so will he take the backup and delete any of the destination (Wednesday 10:00).

    It will continue like that.

    Concerning
    Asif Kabir

    -If you help brand the response as correct/useful.

  • How to fill a gap in the UK?

    Greetings.  I'm working on a project of Garageband and I was wondering how we can bridge a gap between the two tracks.  I cut a part of the end of a runway and I want to connect it to the next track without changing all its place.  Hope it makes sense.  I could just find an answer to my research.  Thank you very much.

    There are different ways to do you project:

    Suppose that bar 15-17 is the range that you want to cut (bridge)

    Manually move

    Make sure that all parts are cut at bar 17. Now select all regions beyond this 17 bar and drag them to bar 15 as an entire selection

    Markers of the arrangement

    A more elegant solution is to the Arrangement of markers (follow ➤ display Arrangement track). However, this technique requires that you know how to use them. In the screenshot, I created a marker of Arrangement (named 'X') for the section I want to cut out (bar 15-17). If I delete this marker of Arrangement (select this Arrangement marker and press the delete key), that 'time' section is cut, which means that all regions after 17 bar are moved two bars to the left (without having to first select regions).

    If there is any region at the bar 15-17, while the article is cut first by hitting the delete key, when you hit the delete command. Now you have to hit the delete key again and the "time" will be cut.

    Hope that helps

    Edgar Rothermich - LogicProGEM.com

    (Author of "Graphically improved manuals")

    http://DingDingMusic.com/manuals/

    "I could receive some form of compensation, financial or otherwise, my recommendation or link."

Maybe you are looking for