Resync standby after ORA-26040

Hi guys!
primary db was in no force logging mode :(
On standby db appears ORA-26040. So I'm trying to resync primary and standby db.
I'm doing these steps:
1. primary:
SQL> alter database force logging;
SQL> alter system archive log current;
2. standby
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL IMMEDIATE;
SQL> SELECT MIN(FIRST_NONLOGGED_SCN) FROM V$DATAFILE WHERE FIRST_NONLOGGED_SCN>0;
-- got some SCN
3. primary
RMAN> BACKUP INCREMENTAL FROM SCN <I've got from 2nd step> DATABASE FORMAT '/FRA/tmp/ForStandby_%U' tag 'FOR STANDBY';
4. copy backupsets from primary to standby
5. standby
RMAN> CATALOG START WITH '/FRA/tmp/ForStandby_';
RMAN> RECOVER DATABASE NOREDO;
-- OK
6. check standby:
SQL> SELECT FILE#, FIRST_NONLOGGED_SCN FROM V$DATAFILE WHERE FIRST_NONLOGGED_SCN > 0;
-- here must be no rows, BUT instead of I've got SCN. This SCN greater than SCN form 1st step, but still it here!
Why? What I did wrong?
Edited by: bas_ua on 15.02.2013 12:05
Edited by: bas_ua on 15.02.2013 12:06

in general, it looks like FORCE NOLOGGING mode doesn't turned on (but it turned). Because after steps I posted, FIRST_NONLOGGED_SCN changed to greater value, and difference between it and current_scn on primary DB much shorter.
So, I'd say that while I doing incremental backup and restoring it on standby db, NOLOGGING operations continue playing on primary db, so by the time I mount standby I have new FIRST_NONLOGGED_SCN.
I read somewhere, can't remeber exactly, but something like 'alter database force logging waits nologging operation to complete'. Is it possible that I need to restart primary db in turn to FORCE LOGGING mode take effect?

Similar Messages

  • Is that normal? My iPod touch G5 standby after fully charge 2 hr 58 min. then level battery is 68.5%. (use voice over to read battery level)

    Is that normal? My iPod touch G5 standby after fully charge 2 hr 58 min. then level battery is 68.5%. (use voice over to read battery level)

    I do not understand what "My iPod touch G5 standby after fully charge 2 hr 58 min." means.
    Also % battery is not accurate for an iPod. It fluctuates.
    Maybe this will help:
    iPod Toch 5G (iOS 7.0.3) charges way...: Apple Support Communities

  • Ora-26040 : data block was loaded using the NOLOGGING option

    i have restored full back up database using RMAN sucessfully from one server to another .Restoration process do not contain any error.
    New Database contain job when it executes then it leaves mesaage in alert log.
    "ORA-01578 oracle data block corrupted file # 6 block # 6888812"
    "ORA-26040 data block was loaded using nologging option".
    please let me know how it could recovered and prevented.
    regards
    prabhat

    In short, your full backup has happened when a NOLOGGING transaction was on flight. Hence the recovery process should get the transaction's data out of archive logs. BUT the data doesn't exist in archivelog beause the transaction was NOLOGGING. For comprehensive detail read the documents above.
    To prevent this situation, backup the database when no NOLOGGING transaction is running.

  • S540 Wake up from Standby after moving the device?

    Hy, I have a problem with my S540. It turns into standby after closing, but wakes up if I move the device. Is that normally? Can anybody prove that with ist own device?

    Hey Zyzx,
    I have seen this type of condition before in a USB connected printer.  How do you have the printer connected to the Windows XP Home Edition desktop PC?  (USB or Network connected)
    If the printer is connected by a USB cable, then you may try a different USB port on the PC and uninstalling/re-installing the USB Controller on the PC.
    To perform the uninstall/re-install of the USB controll follow the steps listed below.
    Boot into Safe Mode on the PC
    Click on the Start menu of the PC
    Right Click on My Computer
    Select Manage out of the list
    Select Device Manager in the list on the left
    Right click on the section titled "Universal Serial Bus controllers" and select Properties
    Uninstall the section and restart the PC to perform the re-install
    I will look into this issue more for you and get back with you.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • Satellite P10 automatically goes into Standby after 15 minutes

    My Satellite P10 automatically goes into Standby after 15 minutes. This is a setting that is controlled by the Toshiba Power Management settings, or the Toshiba Console.
    When I change the settings there the system still goes into Standby after 15 minutes. When I go to Control Panel/Performance and Maintenance/Power Options, it tells me to go to the Toshiba Power Management to change the settings, but I can still see the settings in grey stating 15 minutes standby time.
    But in the Toshiba Power Management I can't seem to be able to ajust Standby settings so that they actually work. There must be a trick to it..
    Can anyone help me figure it out?
    Thanks a lot,
    Lerak

    Thank you for your replies. As I now understand it there are 3 power management utilities fighting for control of the power management settings:
    1) The windows OS power options("Power Option Properties, from the control panel/performance and maintenance/power options);
    this utility is overridden by:
    2) Toshiba Power management;
    and
    3) the "power save modes", activated by pressing the Function key and the F2 key, which in turn can override the Toshiba Power management.
    If this last Function/F2 combination is used to change the power save modes, the windows OS power settings (which are shown in grey and cannot be changed because this is overridden by the Toshiba Power management) DO actually change.
    Hold down the Function key (Fn) and press F2, holding down the Fn key. Each time you then press the F2 key again you scroll down the different "Power Schemes". The last mode is called: Toshiba Power Management. One would think that by choosing this setting the Toshiba Power management utility would effectively take over control of the power settings. Unfortunately this does not seem to be the case..
    At least using this last option provides a workaround. Some of the "Power Schemes" disable the standby options.

  • System freezes after extended time in standby after 10.6.2 update.

    After updating to 10.6.2 my laptop freezes if left in standby for an extended time...say 45 minutes. I then have to force the system to crash / shut down in order to restart. I have to do this several times per day. Any one else with this problem...and / or a fix?
    Thanx, Mark

    Sorry, topperharly, but I've tried everything suggested with no luck. I did the PRAM ~ NVRAM and SMC resets, I also tried the safe boot....no go. For now I have merely resorted to setting the laptop "energy saver" sleep time to "never." I don 't particularly like doing this to the computer, but it is better than having to force if off several times a day. Even when I shut it down manually, the next time I turn it on there is no video. So, I have to force it off, and the second time the video usually comes up. I'm afraid that one of these times it won't.
    I hope Apple is aware of this. There are not many people posting to this thread. I have an extended warranty, and will call Apple tomorrow. If I learn anything, I'll pass it on.
    Good luck, mark

  • Help, MBP 2,2 won't turn into Standby after upgrade to 10.7.2

    Recently I've upgraded from 10.7.1 to 10.7.2 via the Software-update utility, however now my MBP model 2,2 won't turn into standby mode when it is connected to the power adapter. Not when I close the lid, or when I select Standby via Apple -> Standby.
    On the other hand, when my MBP is running on battery there is no problem with going into Standby mode, so I thing it has something to do with the settings that are suddenly changed...
    Does anyone now if the settings have changed somehow? Or where I can change the settings?
    Thanks in advance!

    Hello Bastiaan,
    The first two days after installation of 10.7.2 and the Aperture update my laptop also refused to go to sleep, but that behaviour stopped recently all by its own. When I looked at the Activity monitor I saw the mac was indexing spotlight and rebuilding libraries, so probably it did not want to go to sleep while there still was critical work to be done to migrate properly to iCloud.
    I do not know of any other preference settings that might prevent sleep.
    So perhaps you should look at the Activity Monitor, if some high priority process is running, that might prevent sleep.
    If closing the lid does not work, that might be a hardware problem, but it seems to be unlikely, since it works when on battery power. Does your computer go to sleep when on power adapter, if you set the computer sleep interval to a very short time?
    Regards
    Léonie

  • 10g standard edition, create a manual standby without ORA-279 and ORA-308.

    Hi,
    I have a 10 g database 10g r2 on linux rhel 5.2. I've create a standby database from an rman backup on another server (same name, same path....).
    every 10 minutes , i switch log on primary database and rsync them to the stanby path on stanby server.
    every 10 minutes, i apply the new received archive to the standby database with this script :
    sqlplus /nolog
    connect / as sysdba
    recover database until cancel using backup controlfile;
    AUTO
    recover database until cancel using backup controlfile;
    CANCEL
    exit
    this script gives some ORA errors like this :
    2010/03/31 Wed 11:30:03 Media Recovery Log /v4/db/oradata/LFEX/archives/1_61705_640182036.dbf
    2010/03/31 Wed 11:30:03 ORA-308 signalled during: ALTER DATABASE RECOVER CONTINUE DEFAULT ...
    2010/03/31 Wed 11:30:04 ORA-279 signalled during: ALTER DATABASE RECOVER database until cancel using backup controlfile ...
    2010/03/31 Wed 11:40:01 ORA-279 signalled during: ALTER DATABASE RECOVER database until cancel using backup controlfile ...
    I understand this error, the script is searching the next archive, which doesn't exist at this time, that's OK.
    To avoid to have this error, i believe that i can do something like that:
    sqlplus /nolog
    connect / as sysdba
    recover database until time 'sysdate-1/(24*4)' using backup controlfile;
    AUTO
    exit
    i'm searching to replay the archive and stop 15 minutes before sysdate, Is it possible?
    when i try this, i have this message :
    SQL> recover database until time 'sysdate-1/(24*4)' using backup controlfile;
    ORA-01841: L'année (complète) doit être comprise entre -4713 et +9999 et être
    différente de 0.
    I'm trying to change nls_date_format, nls_lang without any success.
    thx.
    Antoine.

    i found a script to do an automatic recover script like this :
    recover database until time '2010-04-01:16:49:05' using backup controlfile;
    ORA-00279: changement 2456430208 généré à 04/01/2010 16:31:01 requis pour thread 1
    ORA-00289: suggestion : /v4/db/oradata/LFEX/archives/1_61853_640182036.dbf
    ORA-00280: le changement 2456430208 pour le thread 1 se trouve au no de séquence 61853
    ORA-00279: changement 2456432030 généré à 04/01/2010 16:39:01 requis pour thread 1
    ORA-00289: suggestion : /v4/db/oradata/LFEX/archives/1_61854_640182036.dbf
    ORA-00280: le changement 2456432030 pour le thread 1 se trouve au no de séquence 61854
    ORA-00278: le fichier journal
    '/v4/db/oradata/LFEX/archives/1_61853_640182036.dbf' n'est plus nécessaire pour cette récupération
    So i continue to have some error like ORA-278.... but no more ORA-308 error, it's better, because ORA-278 279 and 280 are only information messages, so i can ignore it in alert.log files.
    Only ORA-308 in this case interresting me, to see if an archive is really missing.
    thx.
    PS : the script standby_recover generate the recover.sql script :
    [dblegu@dbback SQL]$ cat $PGLEGU/SQL/standby_recover.sql
    connect sys/password as sysdba
    set trimspool on linesize 200 head off feedback off sqlprompt "--" verify off
    spool &1/SQL/recover.sql
    select 'connect sys/password as sysdba'||chr(10)||
    'set autorecovery on'||chr(10)||
    'recover database until time '''||
    to_char(sysdate - 1/(24*4),'YYYY-MM-DD:HH24:MI:SS')||''' using backup controlfile;'||chr(10)||
    'exit;' from dual;
    spool off
    exit
    the resul in recover.sql is :
    connect sys/password as sysdba
    set autorecovery on
    recover database until time '2010-04-01:16:49:05' using backup controlfile;
    exit;
    i found this on site : http://erkanorclog.blogspot.com/2007/08/batch-scripts-to-set-up-asyncronous.html.
    Edited by: fleuron on 1 avr. 2010 09:04

  • No database table exists for table ZTAB1 after ORA-01438

    Dear friends,
    We have a problem in our test system.
    One developer performed a transport which tried to change column from length 11 to 10 and after the transport, table is missing from database. We observed ABAP dumps DBIF_RSQL_SQL_ERROR with ORA-01438 which suggested us that there was some problem with field lenght change. After discussin, we have find out the culprate filed.
    But, with me now problem is Partially active table which Does not exist in the database.
    So now, what i should do to fix this problem.. Shuld i again increase filed length manually in test system and then try to perform SE14>Continue adjustment or what ?
    In SE14 : Analyze Adjustment provide this information :
    Seq of steps
       1 Initialization
       2 Dropping of indexes, renaming of original table
       3 No action
       4 Activation of transparent table
       5 Conversion of data to new table, deletion of renamed table
       6 Creation of sec. indexes
        Adjustment terminated in step 5
    Initial table                         Table type                 Status
    ZTAB1 Transparent                Renamed
    Renamed original table
    QCMZTAB1                        transparent                Existent
    Tgt.table
    ZTAB1 Transparent                Renamed
    thanks
    ashish

    I had tried to reactivate table.. but it will not work as I had Terminated conversion : Adjustment terminated in step 5.
    database object itself was not existent.. so consistency check is not helpful.
    We recognized the problem.. at present, we have DDIC object for table with a field length 10(new lenght), a QCMtable which contains original data with filed lenght 11(Old value) and a conversion table QCM8table which has filed lenght 10(new value).
    Now, in my case, original table had some Rows for that column lenght 11 and it was unable to transfer them to QCM8table.
    I had raised an OSS to SAP.
    thanks
    ashish

  • Standby instance: Ora-01033 when changing passwort

    Hello
    I build up an standby instance which I would like to as^dd in Grid Control. As you know, the standby instances is mounted, but not opened.
    This state leads to an error when trying to change dbsnmp's password:
    oracle@sksta90271 [IARTSBY]:~> sqlplus sys as sysdba
    SQL*Plus: Release 10.2.0.3.0 - Production on Mon May 26 09:13:36 2008
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> alter user dbsnmp identified by test;
    alter user dbsnmp identified by test
    ERROR at line 1:
    ORA-01109: database not open
    SQL>
    I need to set dbsnmp's password to add the instance in Grid control. How to do this?
    Thanks Casi

    The procedure above (setting pw for dbsnmp, switching logfiles and having them
    applied to standby) was not succesful.Can you be more specific at what point did it fail??
    On Primary Database:
    ====================
    SQL> alter user scott identified by scott123;
    User altered.
    SQL> conn scott/scott123
    Connected.
    SQL> conn /as sysdba
    Connected.
    SQL> alter system switch logfile;
    System altered.
    On Physical Standby Database:
    =============================
    SQL> conn scott/scott123
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Warning: You are no longer connected to ORACLE.
    SQL> conn /as sysdba
    Connected.
    SQL>
    SQL> alter database recover managed standby database cancel;
    Database altered.
    SQL> alter database open ;
    Database altered.
    SQL> conn scott/scott123
    Connected.

  • Standby db ORA-10567:

    Hi,
    We have data guard setup in 11.2 on aix.We got the following errors in standby db.
    Media Recovery Log +P10_ARCHGROUP01/P10/arch/arch_1_1763_815128087.arc
    Media Recovery Log +P10_ARCHGROUP01/P10/arch/arch_1_1764_815128087.arc
    Mon Jun 03 13:10:49 2013
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[15]: Assigned to RFS process 63504552
    RFS[15]: Selected log 9 for thread 1 sequence 1779 dbid 148599395 branch 815128087
    Mon Jun 03 13:10:50 2013
    RFS[16]: Assigned to RFS process 37486880
    RFS[16]: Selected log 10 for thread 1 sequence 1778 dbid 148599395 branch 815128087
    Mon Jun 03 13:10:50 2013
    Archived Log entry 2350 added for thread 1 sequence 1778 ID 0x10f38120 dest 2:
    Mon Jun 03 13:11:15 2013
    Errors in file /u01/app/oracle/admin/P10/diag/rdbms/P10dg/P10DG/trace/P10DG_pr0a_61079852.trc (incident=83785):
    ORA-00600: internal error code, arguments: [3020], [52], [591479], [218695287], [], [], [], [], [], [], [], []
    ORA-10567: Redo is inconsistent with data block (file# 52, block# 591479, file offset is unknown bytes)
    ORA-10564: tablespace UNDOTBS1
    ORA-01110: data file 52: '+P10_DATAGROUP01/P10/undotbs03.dbf'
    ORA-10560: block type 'KTU UNDO BLOCK'
    Is it possible to sync with primary?
    Any suggestions.
    Br,

    972788 wrote:
    Hi,
    We didn't find error in primary alert log.
    Br,
    972788 wrote:Hi,
    We didn't find error in primary alert log.
    Br,
    10567, 00000, "Redo is inconsistent with data block (file# %s, block# %s, file offset is %s bytes)"
    // *Cause:  There are two possible causes of this error: (1) A write issued
    //          by Oracle was lost by the underlying OS or storage system.
    //          (2) an Oracle internal error.
    // *Action: Investigate why the error occurred and how important is the data
    //          block. Media and standby database recovery usually can continue
    //          if user allows recovery to corrupt this data block.

  • DBCA step 12 hangs in 74% after ora-28010

    Hi guys,
    I'm running an oracle10g database EE on a UNIX SOLARIS 10 SPARC box, and trying to recreate a database from a DBCA template.
    When I do all steps, the process claims for an ora-28010 error when it completes 74% and after that DBCA never ends.
    If I check unix processes, database is up and running, however the DBCA screen seems to be running.
    I kill dbca process and now my database is up and running but I'm not sure if its all created.
    Can you tell me if:
    1. It's a refreshing problem with dbca??
    2. If there's something in my database missing??
    3. The way I can check if everything is ok by logs or some other procedure???
    Thanks in advance.
    ED.

    Hi,
    ORA-28010: cannot expire external or global accounts
    Cause: If a user account is created as IDENTIFIED EXTERNALLY, or IDENTIFIED GLOBALLY, this account cannot be expired
    Action: Try to expire the password of the user that has database password
    I think your database is created first check.
    oracle@linux]$sqlplus " / as sysdba"
    select status from v$instance;
    regards
    Taj

  • RMAN backup fails atlast during resync catalog with ORA-00001

    Hi Everyone,
    Database version:10.2.0.2.0
    single instance database
    My Rman backups were running fine but today i got the error , almost at the end of backup
    Finished Control File and SPFILE Autobackup
    released channel: t1
    released channel: t2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03008: error while performing automatic resync of recovery catalog
    ORA-00001: unique constraint (RMAN.CKP_P) violated
    Recovery Manager complete.
    This problem occured 2 days before.I connected to catalog and ran a resync catalog and the backup worked fine for next day.
    Now again today iam experiencing the same problem.
    Any help would be great

    Thanks for the reply
    SQL> select * from rman.rcver;
    VERSION
    10.02.00.00
    10.02.00.02
    when i do the resync catalog manually it works fine.only during the end of backup it throws me the error;
    was wondering whether can i disable the primary key constraint on CKP table so that i can avoid the error.
    since its a live system im thinking lot before i do anything
    Thanks
    Edited by: centerB on 14-Apr-2011 06:40
    Edited by: centerB on 14-Apr-2011 06:57
    Edited by: centerB on 14-Apr-2011 07:03

  • Script remove archives from standby after applied

    Hello,
    I am looking for a script to remove archivelog files from the standby flash recovery area after beeing applied.
    My database is 11.2.0.3.3 on Linux Redhat 5.
    Can someone kindly proovide me an example?
    Thank you

    RMAN does that for you :
    RMAN>CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    Then set the date to what you need and run as often as you need.
    http://docs.oracle.com/cd/E18283_01/server.112/e17022/rman.htm#BAJHHAEB
    #!/bin/bash
    # Name: db_rman_arch_standby.sh
    # Purpose: Delete archive from standby
    # Usage : db_rman_arch_standby <DBNAME>
    if [ "$1" ]
    then DBNAME=$1
    else
    echo "basename $0 : Syntax error : use . db_rman_full <DBNAME> "
    exit 1
    fi
    . /u01/app/oracle/dba_tool/env/${DBNAME}.env
    echo ${DBNAME}
    MAILHEADER="Archive_cleanup_on_STANDBY_${DBNAME}"
    echo "Starting RMAN..."
    $ORACLE_HOME/bin/rman target / catalog rmancat/rmancat@rcatalog << EOF
    delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-1';
    exit
    EOF
    echo `date`
    echo
    echo 'End of archive cleanup on STANDBY'
    mailx -s ${MAILHEADER} $MAILTO < /tmp/rmandbarchstandby.out
    . /u01/app/oracle/dba_tool/bin/rmemptyfolders.sh ${DBNAME}
    # End of ScriptUses an ENV file ( standby.env ) for each database. Use Linux ENV to compare to your settings
    ORACLE_BASE=/u01/app/oracle
    ULIMIT=unlimited
    ORACLE_SID=STANDBY
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0.2
    ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    LIBPATH=$LD_LIBRARY_PATH:/usr/lib
    TNS_ADMIN=$ORACLE_HOME/network/admin
    PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:.
    export TERM=vt100
    export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
    export ORACLE_HOME
    export LIBPATH LD_LIBRARY_PATH ORA_NLS33
    export TNS_ADMIN
    export PATHBest Regards
    mseberg
    Edited by: mseberg on Oct 25, 2012 4:58 AM

  • Recreate standby after failover test

    Hi -
    I'm doing a failover test for the customer:
    1. Disconnect all network between Primary and Standby
    2. On the Standby - do a failover and open it to perform application tests.
    3. After finish we need to re-create Standby again.
    Is there a way to re-create Standby again without bringing it all from backup? it's a large 2TB database and it will take hours.
    Is there a way like using flashback or other technology to do it?
    We are talking 10.2.0.3 here...
    Thanks
    Edited by: 912294 on 04:07 06/02/2012

    Is there a way to re-create Standby again without bringing it all from backup? it's a large 2TB database and it will take hours.
    Is there a way like using flashback or other technology to do it?
    We are talking 10.2.0.3 here...Its called "open the Standby database in read write mode for any reporting or testing and then move it back to standby database using the flashback technology".
    In detail check this MOS note *How To Open Physical Standby For Read Write Testing and Flashback [ID 805438.1]*
    Thanks.

Maybe you are looking for