Invalid state online redo log on backup database

Hi all

I'm new here with a little problem with Oracle Dataguard.
After the double, redo log files and log files online pending
are equal in major databases and relief.
But now, in the database of relief, some redologs online are missing.
So, I created files of online journals on the standby database.
But the State is not valid:
    GROUP# STATUS  TYPE    MEMBER                                                                           IS_
---------- ------- ------- -------------------------------------------------------------------------------- ---
         1 INVALID ONLINE  +DATA/PROJ_STD/onlinelog/group_1.392.123263579                                  NO
         1         ONLINE  +FRA/PROJ_STD/onlinelog/group_1.948.123234493                                   YES
         2         ONLINE  +FRA/PROJ_STD/onlinelog/group_2.852.123234495                                   YES
         2 INVALID ONLINE  +DATA/PROJ_STD/onlinelog/group_2.393.123263607                                  NO
         3         ONLINE  +FRA/PROJ_STD/onlinelog/group_3.946.123234495                                   YES
         3 INVALID ONLINE  +DATA/PROJ_STD/onlinelog/group_3.394.123263613                                  NO
         4 INVALID ONLINE  +DATA/PROJ_STD/onlinelog/group_4.395.123263615                                  NO
         4         ONLINE  +FRA/PROJ_STD/onlinelog/group_4.933.123234497                                   YES
         5         STANDBY +FRA/PROJ_STD/onlinelog/group_5.989.123262059                                   NO
         5         STANDBY +DATA/PROJ_STD/onlinelog/group_5.387.123262055                                  NO
         6         STANDBY +FRA/PROJ_STD/onlinelog/group_6.990.123262075                                   NO
         6         STANDBY +DATA/PROJ_STD/onlinelog/group_6.388.123262073                                  NO
         7         STANDBY +DATA/PROJ_STD/onlinelog/group_7.389.123262081                                  NO
         7         STANDBY +FRA/PROJ_STD/onlinelog/group_7.991.123262085                                   NO
         8         STANDBY +DATA/PROJ_STD/onlinelog/group_8.390.123262091                                  NO
         8         STANDBY +FRA/PROJ_STD/onlinelog/group_8.992.123262093                                   NO
         9         STANDBY +DATA/PROJ_STD/onlinelog/group_9.391.123262103                                  NO
         9         STANDBY +FRA/PROJ_STD/onlinelog/group_9.993.123262105                                   NO
the newspaper of the alerts:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00313: open failed for members of log group 4 of thread 1
Is this correct? What's wrong? What I can do to solve this problem and all newspapers in restoration online in the two databases are equal?

Thank you very much!!!

Hello;

Check out this note first:

ORA-00313, ORA-00312, ORA-27037 Standby Database [601835.1 ID]

OR

On implementing standby

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

And then, for each group of newspaper

change the database group claire logfile 1;

After this verification, the v$ log view to confirm the size and status.

Also check v$ standby_log and make sure that you have the day before newspapers too.

Finally, check the alerts log and make sure that no more errors have occurred after that you have disabled the logfile group.

Best regards

mseberg

Published by: mseberg on November 3, 2011 18:41

Tags: Database

Similar Questions

  • Cold backup with online redo logs

    I'm working on 10G in AIX for a single instance
    It's just a general db backup & restore issue, but I have something confused.

    I'll take a cold backup with my database ARCHIVELOG.
    No wonder why make a backup of cold because it's a test database that can suffer from loss of data and the time during backup.
    I read some guides. They all mentioned to back up all the data files and control files.
    When restoring I copy all saved data files and control files to the default location.
    Then mount boot;
    Is the last step before opening the database recover database until cancel;
    For the acknowledgement, I do the database recovery command, because again the online newspapers were not saved, so we must recover in order to reset the redo logs.
    For my question, I would be in a position of order recovery of database, then directly the database starts, if I backed up online redo logs and copy the default location when restoring?
    However, I have read a lot of documents that mentions that it is not proposed to backup online redo logs. Is it simply the case that ONLY applied in the backup hot? Do you think all that for my case, cold backup online redo logs is recommended?

    Thank you all

    Hello

    read the response of Hemant ==> Re: restoration of noarchive

    Anand

  • can u we take online redo log backups using RMAN... can you guide me

    can u we take online redo logs using RMAN backups... in 1og

    RMAN does not backup online redo logs.

  • Clearing Online redo logs on the physical standby of the target

    Hello

    Version 11202.

    Primer on computer a.
    Watch on computer b.

    Later note: 11.2 Data Guard physical standby failover best practices using SQL * Plus [1304939.1 ID].
     
    Online redo logs on the target physical standby need to be cleared before that standby database can become a primary database. 
    And later:
     
    On the target physical standby run the following query to determine if the online redo logs have not been cleared... 
    (1) I did not understand where I have to run the query. On computer A, computer B or?
    2)
     
             Online redo logs on the target physical standby need to be CLEARED 
            
    Which means that it must be DELETED? Does transaction could be lost by running the command of compensation?

    Thank you

    Hello again;

    I would NOT use a script. The reason is that you are not sure what "switchover_status" will be returned by the database of v$.

    Oracle a broker data available for a quick pass, but I'm from the old school and I want to see how thing works in SQL for awhile first.

    Best regards

    mseberg

  • Online Redo Log

    Hi all

    I have a question about the online redo logs.
    If the database is out of service information on recovery online logs will be lost?
    What happens if the entire database server is low because of the blackout? online redo logs is deleted? taking into account the fact that their records were not damaged.

    So my question is: the online redo logs fade in all cases? on the database shutdown or restart the database server?

    Kind regards

    I have a question about the online redo logs.
    If the database is out of service information on recovery online logs will be lost?

    NO.

    What happens if the entire database server is low because of the blackout? online redo logs is deleted? taking into account the fact that their records were not damaged.
    NO.

    So my question is: the online redo logs fade in all cases? on the database shutdown or restart the database server?

    They fade is an administrator issues the command
    change the database to clear log file group;

    They are your life insurance, so Oracle erase.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

  • Separate ASM diskgroup Online redo logs

    Version: 11.2.0.3

    Platform: Solaris 10

    One of the guys support Hitachi suggested to create a group of separate drives for the online redo logs. His reasoning was that ORLs was writing only the files and it would be better to put into a group of separate disk.

    What do you think guys?

    Tom wrote:

    Version: 11.2.0.3

    Platform: Solaris 10

    One of the guys support Hitachi suggested to create a group of separate drives for the online redo logs. His reasoning was that ORLs was writing only the files and it would be better to put into a group of separate disk.

    What do you think guys?

    Well, one additional DG would require additional disks.  Hmm.  And who is the seller who would be purchased these discs?

    I guess that in a situation of extreme performance, there may be some merit in placing redo it online on a separate ASM disk group so that the underlying disks could be managed in a higher priority of the Hitachi (?) SAN.  But that would only be justified if written again online has been the major bottleneck in your system.

  • new with OMF online redo log files

    Hi all

    I'm using Oracle 11 g 2, I created my DB using Oracle managed (OMF) files.

    I wanted to re size my recovery connects so I went in an old redo logs fall and create a new.

    That was how my redo logs resembles. It was created by the creation of the DB with OMF format:
    .../app/oradata/ORCL11/onlinelog/o1_mf_1_6pfncw81_.log
    .../app/flash_recovery_area/ORCL11/onlinelog/o1_mf_1_6pfncx5z_.log
    .../app/oradata/ORCL11/onlinelog/o1_mf_2_6pfncxps_.log
    .../app/flash_recovery_area/ORCL11/onlinelog/o1_mf_2_6pfncz1v_.log
    .../app/oradata/ORCL11/onlinelog/o1_mf_3_6pfnczhd_.log
    .../app/flash_recovery_area/ORCL11/onlinelog/o1_mf_3_6pfnd0vw_.log
    using the script I created new below redo logs
    alter database add logfile group 1 (
    '.../app/oradata/ORCL11/onlinelog/redo1.log',  
    '.../app/flash_recovery_area/ORCL11/onlinelog/redo1.log') size 76m reuse;
    .........
    and I added the new redo log group
    alter database add logfile group 4 (
    '.../app/oradata/ORCL11/onlinelog/redo4.log',  
    '.../app/flash_recovery_area/ORCL11/onlinelog/redo4.log') size 76m reuse;
    I was not able to create the recovery logs, where is the name of the redo log file: o1_mf_1_6pfncw81_.log, since this is the format OMF.

    My question by creating my recovery connects the way does it have an impact? on the archiving of newspapers of recovery? any impact on the database for now, this isn't OMF?

    How can I create my redo logs with OMF format?

    Kind regards

    try: -.
    alter database add logfile Group 4;

    for example; -.

    SQL> alter database add logfile group 4;
    
    Database altered.
    
    SQL> select member from v$Logfile;
    
    MEMBER
    --------------------------------------------------------------------------------
    /home/u01/app/oracle/oradata/dbtest/redo03.log
    /home/u01/app/oracle/oradata/dbtest/redo02.log
    /home/u01/app/oracle/oradata/dbtest/redo01.log
    /home/u01/app/oracle/flash_recovery_area/DBTEST/onlinelog/o1_mf_4_75nmw33l_.log
    
    SQL> alter database add logfile group 5 size 100m;
    
    Database altered.
    
    SQL> select member from v$logfile;
    
    MEMBER
    --------------------------------------------------------------------------------
    /home/u01/app/oracle/oradata/dbtest/redo03.log
    /home/u01/app/oracle/oradata/dbtest/redo02.log
    /home/u01/app/oracle/oradata/dbtest/redo01.log
    /home/u01/app/oracle/flash_recovery_area/DBTEST/onlinelog/o1_mf_4_75nmw33l_.log
    /home/u01/app/oracle/flash_recovery_area/DBTEST/onlinelog/o1_mf_5_75nmyvjg_.log
    

    Published by: rajeysh on August 28, 2011 20:00

  • Will be online Redo Logs to sleep never used?

    Version: 11 GR 2

    OS: Oracle Linux 6.5

    Pending a physical DB, newspapers online redo will be ever written because the author of newspaper on the standby site will be inactive. Right?

    In the DB in waiting, only forward Redo logs will be written to by RFS. Right?

    Pending a physical DB, newspapers online redo will be ever written because the author of newspaper on the standby site will be inactive. Right?

    ORL will be used when the database starts to behave like a primary database and LGWR writes the data to the newspaper for the ORL buffer again.

    They are not used while the database behaves like a physical standby.

    In the DB in waiting, only forward Redo logs will be written to by RFS. Right?

    Yes, the process RFS writes that data to the standby redo redo logs on the standby database.

    Just for your reference https://docs.oracle.com/cd/B19306_01/server.102/b14239/log_apply.htm#i1022881

    HTH

    -Jonathan Rolland

  • What are the causes of archivedlog of size to be different from the size of the online redo log?

    11 GR 2 on RHEL 6.2

    4 GB is our size of Redo Log online.

    SQL > select bytes/1024/1024/1024 GB of log v$.

    GB

    ----------

    4

    4

    4

    4

    But the archive logs are 3.55 GB in size instead of 4 GB. Some of the archivelogs that are smaller than 3.55 below must be caused by

    Archive log backup RMAN offers jobs at 10:00, 16:00 and 22:00 that initiates log switching (I guess)

    SQL > select (blocks * block_size/1024/1024/1024) GB of v$ archived_log where status = 'A ';

    GB

    ----------

    3.55978966

    3.31046581

    3.55826092

    3.55963707

    1.39474106

    3.561553

    3.55736685

    3.55881786

    .135155678

    3.55546999

    .054887295

    1.88027525

    .078295708

    1.97425985

    3.55703735

    3.55765438

    .421986103

    3.55839968

    < snipped >

    It has something to do with the parameter FAST_START_MTTR_TARGET ? It is set to zero in this PB anyway.

    SQL > show parameter mtt

    VALUE OF TYPE NAME

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

    fast_start_mttr_target integer 0

    SQL >

    He could carry on public discussions and private discussions as Jonathan Lewis points out in the other discussion that Mihael provides a link to.

    It could concern the parameter archive_lag_target

    It could be the result of the BACKUP of RMAN commands

    It may be a programmed script / who commands ALTER SYSTEM ARCHIVE LOG of employment issues.

    Oracle can create an archivelog that is smaller than the redo log, if it isn't a switch or command before archive the redo log is full.

    Hemant K Collette

  • How to find the configuration state of REDO logs files?

    I'm trying to move the redo log files.
    Before that, I want to know if it is set as a duplex or any other configuration.

    How to find the REDO log configurations.

    Oracle 10g R2

    Thank you
    Smith

    Example:

    Not in duplex redo log - if the number of members is 1, it is not duplex:

    SQL> select group#, members from v$log;
    
        GROUP#    MEMBERS
    ---------- ----------
             1          1
             2          1
             3          1
    
    SQL> select group#, member from v$logfile;
    
        GROUP# MEMBER
    ---------- --------------------------------------------------
             1 /u01/app/oracle/oradata/db1/redo01.log
             2 /u01/app/oracle/oradata/db1/redo02.log
             3 /u01/app/oracle/oradata/db1/redo03.log
    
    SQL> alter database add logfile member '/u01/app/oracle/oradata/db1/redo01_2.log' to group 1;
    
    Database altered.
    
    SQL> alter database add logfile member '/u01/app/oracle/oradata/db1/redo02_2.log' to group 2;
    
    Database altered.
    
    SQL> alter database add logfile member '/u01/app/oracle/oradata/db1/redo03_2.log' to group 3;
    
    Database altered.
    

    Duplex redolog

    SQL> select group#, members from v$log;
    
        GROUP#    MEMBERS
    ---------- ----------
             1          2
             2          2
             3          2
    
    SQL> select group#, member from v$logfile;
    
        GROUP# MEMBER
    ---------- --------------------------------------------------
             1 /u01/app/oracle/oradata/db1/redo01.log
             2 /u01/app/oracle/oradata/db1/redo02.log
             3 /u01/app/oracle/oradata/db1/redo03.log
             1 /u01/app/oracle/oradata/db1/redo01_2.log
             2 /u01/app/oracle/oradata/db1/redo02_2.log
             3 /u01/app/oracle/oradata/db1/redo03_2.log
    
  • Redo log entries to the online redo log files

    Hello

    I'm a little confused about the redo log entries.

    I learned that LGWR writes redo log entries in the SGA, in redo log files in the following situation:

    -3 seconds after the last validation

    -redo log buffer has 1 MB

    -redo log buffer data 1/3

    When I take a transaction and if I change the wrong data, I have to cancel this transaction BUT the right now,

    What happens if the LGWR writes redo log disk entries?

    Is the bad transaction committed at all times?

    2791011 wrote:

    Hello

    I'm a little confused about the redo log entries.

    I learned that LGWR writes redo log entries in the SGA, in redo log files in the following situation:

    -3 seconds after the last validation

    -redo log buffer has 1 MB

    -redo log buffer data 1/3

    When I take a transaction and if I change erroneous data, I have to cancel this transaction at this time, BUT

    What happens if the LGWR writes redo log disk entries?

    Is the bad transaction committed at all times?

    DML changes are "permanent" after that VALIDATION is issued.

    When any COMMIT is issued, then changes can be undone.

  • Recreate the Member lost/damaged redo log in a group

    DB version: 11.2.0.4

    OS: Oracle Linux 6.5

    In this particular PB we have multiplexes recovery logs (2 members from each group of redo).

    If one member of a group of Redo log is corrupted then, regardless of whether the Member belonged to the Group that is CURRENT, ACTIVE or INACTIVE, can we just let GO and CREATE the file journal lost this group member by following the steps below?

    -Find the corrupted Member

    SELECT GROUP #, STATUS, MEMBER OF V$ LOGFILE WHERE STATUS = 'INVALID ';

    1 back UP the DB

    2. CHANGE THE SYSTEM CHECKPOINT;

    3 ALTER DATABASE CLEAR LOGFILE GROUP 3;  - , This step should not be executed. Right?

    4. ALTER DATABASE DROP LOGFILE MEMBER ' / oracle/oradata/wms/redo02.log';

    (Apparently, this removes not the logfile at the OS level, only the control file is updated in the DB)

    5 ALTER DATABASE ADD LOGFILE MEMBER ' / oracle/oradata/wms/redo02b.log' to GROUP 3.

    When I googled for steps, I found the table below in the official documentation of the Oracle. This table is applicable only if the ENTIRE REDO LOG disappeared.

    http://docs.Oracle.com/CD/E25054_01/backup.1111/e10642/osadvsce.htm#CACFJDBG

    I want just the steps if only 1 member of a multiplex group is lost/damaged.

    3. ALTER DATABASE CLEAR LOGFILE GROUP 3;  -This step should not be executed. Right?

    Yes. It's true. You can refer to the section 'Recovery after losing a member of the a multiplex online Redo Log group' under recovery after the loss of online redo log files: scenarios

    HTH

    -Jonathan Rolland

  • Loss of all Redo Log files

    Hello

    It's for testing purposes and practice of recovery scenarios. Database is in log mode archive. My question would be on the scenario in which we loose that redo all online log files available.

    Now after doing a lot of research on the internet I could find two scenarios.

    CASES1

    My recovery logs have been lost. But I could stop normal or immediate of the database. In this case I could perform incomplete recovery using my archived logs and re create the logs online redo with the resetlogs option.

    CAS2 (my question)

    My recovery logs have been lost and the system crashed. Now, oracle would need perform a recovery of proceeding on re start, however there is no present setpoint recovery to perform this restore.

    Is it not possible to recover the database, even if I have a valid backup? If there is, how do you do that?

    Thank you

    If you lose all copies of online redo logs, you lost all those transactions. Data files may or may not have some or all of the data of those redo logs. You need restore the database and retrieve it at the point in time of the last series of archive logs (at the latest) and go from there.

    But guess what? Oracle expected that someone might have a question like that, and actually (gasp) has documented the scenario:

    http://docs.Oracle.com/CD/B19306_01/backup.102/b14191/recoscen.htm#i1006437

  • DB restore Archives not lost mode redo log file... restore from controlfile tr

    I have a 11g database I had taken an archive backup but has failed to take redo backup of log files...
    so, while I restored the PB... after formatting the machine... the oracle instance does not start.


    I create controlfile track but when I run it I get errors.
    given that I don't have the old log files... How can I get around this issue
    Thank you
    Here is the example of trace control file... Note that I can't create the redo log file
    given that the db will not climb up, it must be in mode nonmount
    and here's my created controlfile...
    CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1
    ' C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_. JOURNAL"
    SIZE 50 M 512 BLOCKSIZE,
    GROUP 2
    ' C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_. JOURNAL"
    SIZE 50 M BLOCKSIZE 512
    -STANDBY LOGFILE
    DATA FILE
    ' C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM. DBF',.
    ' C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS1. DBF',.
    ' C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX. DBF',.
    ' C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS. DBF'
    CHARACTER SET AL32UTF8
    ;

    I do not have these 2 files... what should I do to work around this situation
    ' C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_. JOURNAL"
    SIZE 50 M 512 BLOCKSIZE,
    GROUP 2
    ' C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_. JOURNAL"
    SIZE 50 M BLOCKSIZE 512
    -STANDBY LOGFILE
    DATA FILE

    Published by: zycoz100 on February 27, 2013 22:57

    If you have a backup to cold (closing correctly database) without the redo logs, change this:

    CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOG
    

    TO

    CREATE CONTROLFILE REUSE DATABASE "XE" RESETLOGS NOARCHIVELOG
    

    You need to change the NORESETLOGS RESETLOGS for Oracle to recreate online redo logs.

    Hemant K Collette

  • Create the REDO Logs after restoration of RMAN

    Version 11.2
    Platform: Solaris 10

    We restore the cold RMAN backup to a new server. It's a basic restore RMAN where DB name remains the same.

    I understand that RMAN backup online redo logs, and for good reason.

    We have restored our datafiles successfully. The control file still has the old entries so the query below shows old information about recovery logs

    -Display of the configuration of the log file the old control file data
    SYS > select * from v$logfile;         ------------> The below output shows the result of the source server
    
        GROUP# STATUS  TYPE    MEMBER                              IS_
    ---------- ------- ------- ----------------------------------- ---
             1         ONLINE  /DATAM/DB/oradata/slmps/redo1.log      NO
             2         ONLINE  /DATAM/DB/oradata/slmps/redo2.log      NO
             3         ONLINE  /DATAM/DB/oradata/slmps/redo3.log      NO
    I have to use ALTER DATABASE RENAME FILE command as below to update the control file.
    alter database rename file '/DATAM/DB/oradata/slmps/redo1.log' to '/data/oradata/slmps/slmps_log01.dbf' ;
    alter database rename file '/DATAM/DB/oradata/slmps/redo2.log' to '/data/oradata/slmps/slmps_log02.dbf' ;
    alter database rename file '/DATAM/DB/oradata/slmps/redo3.log' to '/data/oradata/slmps/slmps_log03.dbf' ;  
    Currently, in the new server, at the level of the BONE there is no physical file above to
    /data/oradata/slmps
    I need to create physically redo new logs using the command or the command ALTER DATABASE RENAME above key create a physical file at the level of the BONE?

    Salvation in spiral,

    Surely, RMAN will search for redo logs when RECOVER is issued.

    When you issue the command RECOVER after restore, RMAN does not check online redo logs. During RECOVERY, RMAN will try to apply the archivelogs or incremental L1 if it has been saved on the source server. RMAN Backup restorations online redo logs or never.

    Here OP tries to restore the backup from the cold to a new server. In this case the RECOVER command is not necessary. The example of the Oracle doc you mentioned should do a restore, recovery of a backup hot. In this case, during the RESTORATION, RMAN will try to apply archivelogs or L1 of the incremental backups.

    In both cases (cold backup restore or restore, recover from Hot Backup), it is the

    alter database open resetlogs
    

    command that will create the online redo log, so it is absent in the location specified by the control file. Because it is a restoration to a new server, recovery logs is missing because it has not been restored (because it has not been saved)

Maybe you are looking for