question from control_file_record_keep_time in the standby database

Hello

We used to recreate a database waiting for backup to cold after a PROD failover to STANDBY mode. (on a weekly basis)

During the synchronization of the day before with a production that we get under WARNING
-------------------------------------------------------------------------------------------------------
FAL [client]: you cannot request the gap sequence
GAP - thread 1 sequence 45217-45225
FAL [client]: all defined FAL servers have been tried.
-------------------------------------------------------------
Check that the initialization of CONTROL_FILE_RECORD_KEEP_TIME
parameter is set to a value large enough
enough to keep adequate record switch information to solve
ARCHIVELOG gaps.
-------------------------------------------------------------
In my opinion why this happens because
----------------------------------------------------------
During synchronization ARCH process detects that gap archive logs are present in the side watching or we can say that the archive requested connects
[Customer] [SERVER] FAL FAL are already transferred on transferred before failover.
So after showning this warning, it replaces the archive logs that are ever-present in the side watching.


Please me corret I if am wrong...
CONTROL_FILE_RECORD_KEEP_TIME = 7


Please help me on this so that I will no more get the warning above...



Thank you

user9085814 wrote:
Hello

We used to recreate a database waiting for backup to cold after a PROD failover to STANDBY mode. (on a weekly basis)

During the synchronization of the day before with a production that we get under WARNING
-------------------------------------------------------------------------------------------------------
FAL [client]: you cannot request the gap sequence
GAP - thread 1 sequence 45217-45225
FAL [client]: all defined FAL servers have been tried.
-------------------------------------------------------------
Check that the initialization of CONTROL_FILE_RECORD_KEEP_TIME
parameter is set to a value large enough
enough to keep adequate record switch information to solve
ARCHIVELOG gaps.
-------------------------------------------------------------
In my opinion why this happens because
----------------------------------------------------------
During synchronization ARCH process detects that gap archive logs are present in the side watching or we can say that the archive requested connects
[Customer] [SERVER] FAL FAL are already transferred on transferred before failover.
So after showning this warning, it replaces the archive logs that are ever-present in the side watching.

Please me corret I if am wrong...
CONTROL_FILE_RECORD_KEEP_TIME = 7

Please help me on this so that I will no more get the warning above...

Thank you

If you think that the problem with "CONTROL_FILE_RECORD_KEEP_TIME", it means that wrong you ;)
Oracle offering to check if the archives are out of detention, his don't say no not any problems with the parameter. If this parameter too low value and the archives are not applied within that time, then you need to adjust the value.

Now coming to the point, Archives of * 45217-45225 * Miss waiting,.

(1) check whether exist on primary or not
(2) if it is deleted, restore these backups sauvegardΘ
(3) if not accessible to the general public of these backup archives, you must perform the rollforward differential to recover your database pending, using the link below
http://www.Oracle-CKPT.com/RMAN-incremental-backups-to-roll-forward-a-physical-standby-database-2/

Tags: Database

Similar Questions

  • Switching from primary to the standby database

    Hi all

    Please can you give me some advice/comments/documents to help understand the steps that should be applied to move from a primary database to a standby database.
    I'm using Oracle 11 g 2 with Dataguard.

    What are the steps that must be applied from the primary to the standby database.

    Kind regards

    Hello again;

    My paper is a physical standby database. I have NOT tested using a logical standby database.

    The steps documented to perform the failover of the database logical Standby is located in:

    Perform the failover in a Configuration of data hold without the [ID 232240.1] Data Guard Broker

    Look under the heading "the steps to perform the logical passage with the Standby databases:

    I hope this helps.

    There is additional information here:

    http://ayyudba.blogspot.com/2007/10/performing-switchover-in-Data-Guard.html

    Best regards

    mseberg

  • Data file not shipped from the primary database to the standby database

    Hello

    (1) create a new user
    (2) created a new table space and add datafile on the primary database
    (3) the value tablespace default user

    But so far, this new data file is not delivered on the standby database.

    Version of database - 10.2.0.3
    OS - Windows

    Setting of primary and Standby: -.

    SQL > show parameter standby_file_management;

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    standby_file_management string AUTO

    Both have the same file system, but the difference is case sensitive.

    Primary data file location - D:\testdata

    Location of file data at rest - D:\TESTDATA

    Help, please.

    MRP process is running on the standby database?

    If it is then try to pass, log on the primary database and share your result.

  • Effects of the opening of a primary database in resetlogs on the standby database

    Hi all

    Operating system: Solaris

    DB: 11 gR 2

    Can anyone throw some light below the explanation is given in case of recovery through the OPEN RESETLOGS Statement oracle documentation

    If the database pending... Then... Perform these steps...
    Not asked to redo data beyond the new resetlogs SCN (after the start of the new branch of data recovery)Redo apply automatically takes the new branch of the roll forward.No manual intervention is required. The MRP automatically resynchronizes the database pending with the new branch of data recovery.

    Here is the link of the source:

    Manage a database of physical standby

    Kind regards

    Just to give a concrete example, I did a test on one of my VM boxes. The database currently shows:

    SQL > select sequence #, the journal of v status $;

    SEQUENCE # STATUS

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

    34 ACTIVE

    CURRENT 35

    ACTIVE 33

    While on the eve, I stopped the redo apply so the standby status is:

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

    SEQUENCE # APPLIED

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

    YES 30

    31 YES

    32 YES

    33 NO.

    34 NO.

    The database ensures in a few newspapers behind the primary.

    On the primary, I moved the journal a few sequences, close, the bootable media and restored and recovered 37 sequence:

    RMAN > run

    2 > {}

    3 > restore database;

    4 > up 37 sequence;

    5 > restore database;

    6 > alter database open resetlogs;

    {7 >}

    During the open resetlogs operation, I have to tail the log of alerts on the standby database and the following output shown:

    RFS [11]: identified the type of database such as 'physical' standby: customer is ARCH pid 17192

    RFS [11]: new branch archives REDO: 844006029 current: 843649185

    RFS [11]: Journal selected 102 for thread 1 1 dbid-204899919 branch of the 844006029 sequence

    RFS [11]: new Branch (resetlogs_id) of archive REDO: before 844006029: 843649185

    RFS [11]: ID of Activation of archives: current 0xf3d44942: 0xf3cf5ac3

    RFS [11]: effect of primary database OPEN RESETLOGS

    RFS [11]: entry of Incarnation added to Branch (resetlogs_id): 844006029 (ORCL11PS)

    Fri Apr 04 14:07:39 2014

    Definition of embodiment of recovery target 2

    Fri Apr 04 14:07:39 2014

    Archived journal 21 additional for each sequence 1 1 0xf3d44942 dest ID thread entry 1:

    So as you can see, the log shows the standby detects the resetlogs on the primary operation and the new branch of the roll forward and received the next archivelog with sequence 1.

    Audit on the eve, it shows the status following the archivelogs:

    SEQUENCE # APPLIED

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

    31 YES

    32 YES

    33 NO.

    34 NO.

    35 NO.

    36 NO.

    37 NO.

    38 NO.

    1 NO.

    2 NO.

    And after restart the managed recovery process, it now shows:

    SEQUENCE # APPLIED

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

    31 YES

    YES 30

    YES 19

    YES 33

    34 YES

    35 YES

    YES 36

    37 NO.

    38 NO.

    1 YES

    2 YES

    Archivelogs with sequence 37 and 38 were not implemented because of the CAMILLE on the main sequence until (but not including!) 37 and then properly applied the next archivelogs of the new branch of the roll forward, with sequence 1 and 2.

  • failover and failback on the physics of the standby database.

    Hi all

    I use the EE 10.2.0.4.I oracle version have a configuration database and named prim and Everelief. I tried the method of failover. I liquidated low primary eve and convert to the new primary database.


    •Arretez repeat applies.
    Run the following SQL statement on the database waiting for target:
    SQL > ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    Standing by applying all the data received to redo.
    In this we give indication to the standby database primary database is no more.

    SQL > ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;
    Once the order of FINISH is completed, the mode of protection of the primary database is lowered to optimum performance, regardless of its original protection mode. This is done because the new primary can be activated with on a standby
    SQL > select protection_mode, protection_level from database v$
    Level of Protection for the protection Mode
    ——————– ——————–
    PERFORMANCE WITHOUT PROTECTION

    •Check that the standby database target is ready to become a primary database.

    Query column SWITCHOVER_STATUS of the view V$ DATABASE on the database waiting for target.
    •If the physical database ensures the main role.
    SQL > ALTER DATABASE COMMIT to THE MOVE to THE PRIMARY WITH the STOP of the SESSION;
    •Open the new primary database
    SQL > ALTER DATABASE OPEN;
    •At this point the level of protection is passed to Max Performance "Unprotected".
    Circuits the new primary database.



    How can I see this previous situation?

    Hello;

    I can share my test notes (Oracle 11) should work even in 10:

    http://www.Visi.com/~mseberg/Data_Guard_Failover_Test_using_SQL.PDF

    Best regards

    mseberg

  • Archived not getting applied to the standby database.

    Hello

    I turned the parameter standby_file_management to manual and since I created 3 primary data file, but they are not applied to the standby database.
    I turned on the Auto setting and started the MRP process but still not able to apply archive.
    Version Oracle 10.2.0.5


    Please suggest,
    Amit Sharma

    Hello

    Your problem is that the MRP standby automatically when a data file is added on the primary database. The reason would be that the parameter STANDBY_FILE_MANAGEMENT is set to MANUAL on the standby database.

    Please refer to this http://shivanandarao-oracle.com/2012/04/02/managed-recovery-process-mrp-terminates-on-standby-database-upon-adding-datafile-on-the-primary-database/

    It will be useful.

    Kind regards
    Shivananda

  • Backups on the physics of the standby database?

    I use dataguard and standby a physical database. How to assign backups on the physics of the standby database to reduce the load on the primary database.

    environment: windows

    Database version: 11.2.0.1.0


    What are the pro and cons on the allocation of jobs of RMAN backups for the physics of the standby database?

    Hello;

    The backup database is an identical copy of the primary database block.

    Therefore, you just save one of the two (you can choose to only save the day before, however, if you want to remove the load on the primary). But if you are uncomfortable with the primary backup, it is not necessary for the safeguarding of the day before. (Since you can recreate the primary backup before).

    The only important part, is that you use the RMAN catalog. Then only known RMAN, the two are identical and can use the same backup.

    Best regards

    mseberg

  • The physics of the standby database Y2K problem

    Hi all

    I am the passage of primary school to the physics of the standby database. Physical standby is in "recovery management" mode using real-time applies and is in editing mode. I've run alter database commit to switch to sleep mode physical with the logoff command. Now I'm waiting for standby mrp leave after treated RAH recording, but it seems mrp was hanged.

    Here is the content of the database pending:

    Online Redo Log recovery: thread 1 mem Group 5 Seq 620 reading 0
    Mem # 0: /oracle/app/oracle/dbrac/th1-redo5a.log
    Activation reset sleep ID 749049115 (0x2ca5951b)
    Met Media Recovery end Redo indicator
    Media recovery continues
    Media, recovery waiting for thread 1 sequence 621
    Journal archived 14 extra for each thread 1 620 0x2ca5951b dest ID sequence entry 1:


    Need help to solve.

    Thank you
    Sandy.

    Hello;

    After after deliver you (successfully) a:

    alter database commit to switchover to physical standby with session shutdown
    

    You must:

    Shutdown the former primary and mount as a standby database
    

    Check out my step by step:

    http://www.Visi.com/~mseberg/data_guard/Data_Guard_switchover.html

    Read everything (all steps) before continuing.

    Best regards

    mseberg

  • Script of free space for the physics of the standby database

    I need to determine how much free space I have in my physical storage spaces of the standby database. Is there a query for this? Remember that dba_ views are not available in a mounted single standby database so I'm pretty well limited to using the views v$. Thank you

    Why do you think you have to check the free space into a storage ensures physical ?
    You cannot create all segments anyway.

    Kind regards
    Uwe Hesse

    http://uhesse.WordPress.com

  • create the standby database using backup to restore

    Hello

    I'm creating a database ensuring 11g using a manual process of restoring a backup, but nothing helped. I can restore same failed backup.

    Here are the steps that I followed (courtesy of ORACLE-BASE) BASE-ORACLE Data Guard physical standby Setup in Oracle Database 11 g Release 2 -

    I'm confused about these steps:

    Copy the files from the primary to the standby server.

    Copy Standby controlfile to all locations.

    $ scp oracle@ol5-112-dga1:/tmp/db11g_stby.ctl /u01/app/oracle/oradata/DB11G/control01.ctl

    $ cp /u01/app/oracle/oradata/DB11G/control01.ctl /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl

    My question is, for the 2nd copy, I have to stop the primary db? given that control01.ctl is updated all the time?

    Then I have not used the previous day ctl (db11g_stbg.ctl) and copy it into /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl instead?

    Your help is very appreciated.

    Check "ORCL" your backup files will be present in this place.

  • Script to remove applied connects on the physics of the standby database

    Hello

    Our prod DB is configured with Dataguard physical standby Database (10.2.0.4) on Linux.

    I'm trying to write a script to delete the archives that are applied on a standby database to DR (standby server).

    Any help will be appreciated.

    Kind regards
    Viswa08

    viswa08 wrote:
    Hi pavan,.

    I received the script of OTN itself below is the script and I can't understand how the sequence is deleted.

    ******************************************************************************************
    ###################
    #! / usr/bin/ksh

    script = ' basename $0'.

    SID = RW2P
    dir = / u04/oracle / $sid/arch

    Prof = $HOME /'echo ${sid} | AWK ' {print tolower($0)} ".profile
    tmpf=$home/.$script.tmp

    LogCount = 100

    function GetAppliedLogfileSequenceNumber
    {
    sqlplus-s/nolog $tmpf
    Connect / as sysdba
    Go head
    set pages 0
    Select max(sequence#) from v$ archived_log in case of application = 'YES ';
    output
    EXPRESSIONS OF FOLKLORE
    return
    }

    If [f $prof]
    then
    . $prof
    on the other
    print ' $script: $prof no such file or directory ".
    Output 1
    FI
    If [d $dir]

    If there is the $dir

    then
    CD $dir

    change directory to $dir

    GetAppliedLogfileSequenceNumber

    call the GetAppliedLogfileSequenceNumber function

    So [s $tmpf]

    If there is no sequence max

    then
    Count ='cat $tmpf | AWK '{print $1} ' | SED 1 d; »

    Set as maxsequence

    If [${#count} - No 0]

    If the counter is not zero

    then
    Let count = $count - $logcount

    Assign County County-100 the script does not remove the last 100 archivelogs applied.

    If ((County<=>

    If count is less than or equal to zero

    then
    print ' $script: journal count is set to zero (or not) no or newspapers to remove.
    Exit 0
    FI
    on the other
    Exit 0
    FI
    on the other
    print ' $script: no archive or newspapers to remove.
    Exit 0
    FI
    While [http:// f ${sid} _arch_1_$ {number} .arc]

    If $ORACLE_SID_arch_1_count.arc is

    do
    RM-f ${sid} _arch_1_$ {number} .arc

    delete

    RCODE = $?

    RCODE is assigned as the return code of the rm command.

    If ((rcode! = 0))

    If the return code is success

    then
    Print "$script: can't delete: ${sid} _arch_1_$ {number} .arc.
    Output 1
    on the other
    Let count = $count - 1

    reduce the number of 1

    FI
    fact
    RM-f $tmpf

    delete the temporary file.

    on the other
    print ' $script: $dir no such file or directory ".
    Output 1
    FI
    Exit 0

    Hope will help you.

    Kind regards.

  • Question from beginner on the fusion of the Recrords in the Table

    This question is about question 10-b of merger on page 3-41, it says:
    (page 3-41 "Oracle Database 10g SQL Fund. II Vol.1")

    Merge the data into the EMP_DATA table that is created in the lab last in the data in the table emp_hist. assume
    EMP_DATA external table data corresponds to the EMP_HIST of table, update the email column
    table EMP_HIST to match the row in the EMP_DATA table. If a row in the EMP_DATA table is not
    match, to be inserted in the tables of EMP_HIST lines are considered as corresponding whenever his first and
    family name are the same.

    For me, this issue is built wrong. First of all in the last lab we have not been asked to create EMP_DATA. Secondly, EMP_DATA is empty.
    Thirdly, this question asks us to merge into the table EMP_HIST while EMP_DATA is empty.

    Table EMP_HIST currently copied data from the employees table. Structure EMP_HIST:

    FIRST NAME VARCHAR2 (20)
    LAST_NAME NOT NULL VARCHAR2 (25)
    EMAIL NOT NULL VARCHAR2 (45)

    EMP_DATA table is empty. I created it as follows:

    create or replace directory emp_dir
    like 'F:\emp_dir ';

    drop table emp_data;

    CREATE TABLE emp_data
    (first name VARCHAR2 (20))
    , last_name VARCHAR2 (20)
    , email VARCHAR2 (30)
    )
    EXTERNAL ORGANIZATION
    (
    TYPE oracle_loader
    Emp_dir default DIRECTORY
    ACCESS SETTINGS
    (
    RECORDS DELIMITED BY NEWLINE CHARACTERSET US7ASCII
    NOBADFILE
    NOLOGFILE
    FIELDS
    (first name POSITION (01:20) TANK)
    , last_name POSITION (22:41) TANK
    CHAR POSITION (43:72) by email)
    )
    LOCATION ('emp.dat'));

    Back to our question, I've done the merger as follows:

    merge into e emp_hist
    with the help of emp_data d
    on (e.first_name = d.first_name)
    When matched then
    game update
    Select = d.last_name,
    e.email = d.email
    When not matched then
    Insert values (d.first_name, d.last_name, d.email);

    I get this error:

    Error report:
    SQL error: ORA-29913: error in executing ODCIEXTTABLEOPEN legend
    ORA-29400: data cartridge error
    KUP-04040: file emp.dat in EMP_DIR not found
    ORA-06512: at "SYS." ORACLE_LOADER', line 19
    29913 00000 - "error in the execution of %s legend".
    * Cause: The execution of the specified legend caused an error.
    * Action: Examine the error messages take appropriate measures.

    On the other hand, I said I'm going to try this:

    merge into emp_data d
    using e emp_hist
    on (d.first_name = e.first_name)
    When matched then
    game update
    d.last_name = select,
    d.email = e.email
    When not matched then
    Insert values (e.first_name, select, e.email);

    I get this error because the external table's final after its creation (no update, insert, delete authorized) as far as I know:

    Error report:
    SQL error: ORA-30657: operation not supported on external organized table
    30657.0000 - "operation not supported on external-organized table".
    * Cause: User attempted on the operation on an external table which is
    not supported.
    * Action: Don't do that!

    **********************************

    I don't know what to do. I did my best, please help.

    What happens if I want to import large data set in the external table?

    Hmm, external table is just a definition on how you want to watch a file as a table in the database. Think of it as a tool to import data.

    1. first of all, have a ready file (with data).

    2. create an external table using the format of the file.

    3. now you should be able to see the data when you do this. Select * from my_external_table.

    4. now, create an ordinary table where you want the data to insert permanently.

    5 insert into permanent_table select * from my_external_table.

    I hope this helps.

  • Need help on Physics of the standby database

    Currently, our physical database ensures runs in manual mode and newspapers is applied by me manually within 2 days.

    And also when I add a data file in the primary database, I have to manually add the file again to sleep.

    This process becomes too painful, that now I want to automate this process,

    Now my question is
    To automate this process, I need to bounce back to the database?
    I want to have the gap of 2 days for check log to apply the process? How should I do this.

    And all the settings I need to change.

    Please advice...

    Oracle 9.2.0.7 verison
    Solaris 10 operating system

    ORA_DBA2 wrote: for the automatic management of the files that I need to enable these settings,

    For example

    standby_archive_dest = ' / disk1/oracle/oradata/payroll/standby.
    db_file_name_convert = ('/ disk1/oracle/oradata/pay /',)

    db_file_name_convert and redo_file_name_convert are parameters used for databases of relief when waiting for redo log files and data files are in different places of the primary database. If you do a conversion of the locations. If they are the same as the primary, then you don't need the parameters. What do you need to make sure of, is that you have standby_file_management = 'auto', while created for primary data files are also created for sleep.

  • Upgrade to 11.2.0.4 with the physics of the standby database

    Dear gurus,


    We have the obligation to upgrade databases 11.2.0.1 existing 11.2.0.4 and 11.2.0.2 to 11.2.0.4 running on AIX boxes. We have physical databases of Eve configured for these databases of different version.

    During the preparation of the documentation for upgrade, we observed that FORCE_LOGGING is disabled for the production databases and observed, there are objects along 350 + with journaling = No. and logging = NULL and patterns are SYS, SYSMAN, APEX_030200, OLAPSYS, XDB, SYSTEM, OIMDBUSER, MDSYS, EXFSYS, WMSYS, ORDDATA, PERFSTAT.

    My query:

    I can still proceed with the upgrade still under the document indicated for "upgrading a database with a physical Standby database in place" without you connect the data dictionary objects will be not be updated pending database.

    Can you please let me know your suggestions on this please?

    Kind regards

    Kumar

    Hello;

    Quote:

    "Keep the database in LOGGING mode FORCE as long as the backup database is necessary."

    Of

    Oracle® DataGuard of Concepts and Administration 11 g Release 2 (11.2) E10700-02

    I think I FORCE turn on CONNECTING to the primary database and rebuild the eve before doing the upgrade.

    Best regards

    mseberg

  • GoldenGate to replicate physical of the standby database

    Friends,

    I don't have an answer instead of data guard

    Could we use oracle Portal gold to replicate a physical custody ensures data in a new logical basis?

    Or we need to replicate keeps the primary database data in a new logical basis?

    Thank you

    newdba

    Use the extract parameter TRANLOGOPTIONS with the ARCHIVEDLOGONLY option. This

    force option extracts for ALO mode against a primary or logical standby

    database, as determined by the PRIMARY or STANDBY LOGIC value in the db_role

    column in the view v$ database. The default is to read newspapers online.

    TRANLOGOPTIONS with ARCHIVEDLOGONLY is not necessary if you use the ALO mode against a

    standby database physical, as determined by the PHYSICAL INTELLIGENCE value to the

    db_role column of v database $. Extract works automatically in ALO mode if it

    detects that the database is a physical standby.

Maybe you are looking for

  • How can I update the location in Photos?

    I'm trying to update the location of my pictures.  I can change it under "Info" in the menu of the window (set the PIN on the map) and that works fine, but when I go to the Image menu and then click on setting Date and time, and then change the time

  • Airport express in the current state only virtual network

    I I currently don't no cable, dsl, or any other wifi in my house. Can I use Airport express the most convenient to use my iPad for Apple TV AirPlay?

  • HP Pavilion TouchSmart all-in-one Desktpp 21dts

    My office has been 1 hour "restart!" How long should I wait... What can I do?

  • Go to my settings for Windows Live Mail

    I can access and send emails using webmail TWC.  My Windows Live Mail will not send my emails.  Error message.  It seems that maybe I need to change my settings.  I have my incoming Port # and Port out #.  I don't know how to get to my seetings for W

  • Unable to console in SRW2048

    So I decided to buy a SRW2048 to a switching matrix and now I have the owner previous must have changed the port and web gui IP since I can't console in I use HyperTerminal with these settings Bits per second: 38400Data bits: 8 Parity: None Stop bits