Standby rebuilding

Hello!
I have previously created a standby environment with one primary and one standby with oracle 11g and realtime apply.
After some times we noticed that archives were not being aplpied on standby even though they were shipped, so we decided to rescreate the standby.
we made a cold backup of all data files, archive logs, redo logs ant trasfered them to the standby server. As a standby contorl file we used the one we had generated when we first configured the standby(about 4 weeks ago).
The standby does mount but when we try to open read only it shows an error:
alter database open read only
ERROR at line 1:
ORA-10458: standby database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '...../system_01.dbf'

Hello;
"As a standby contorl file we used the one we had generated when we first configured the standby"
This is probably your issue. You need to recreate the standby control file.
ALTER DATABASE CREATE STANDBY CONTROLFILE AS '/u01/app/oracle/yourstandbycontrolfilename.ctl' REUSE;Best Regards
mseberg

Similar Messages

  • Creating standby database using data guard.

    Current Env:
    Oracle 11.2.0.1
    ASM
    Size 1.7T and growing.
    I'm rebuilding a standby database and need to use rman because of a few factors. In the past, I did a file copy create a standby control file config init.ora and it always worked.
    We have a database and had the stanby build; but someone issued a flashback and corrupted the standby database.
    Because of the size 1.7T and growing and we are now using ASM.
    My research is only showing building standby through rman using dupicate database command.
    I would like to copy the cold backup to a external drive and ship it to the standby site where I'll do the restore. This is because of time and bandwith required to rebuild the standby will interfere with operaitions for the period the files are being copied.
    So what would be the high level steps.
    1) get the cold backup
    2) create the standby control file
    3) ship the data via corrier
    4) restore the database
    5) and this is where i'm not sure. recover the standby control file - but during the restore of the database the "normal" control file will open and perhaps do a checkpoint. therefore the standby controlfile will be usless.
    6) recover the standby database.
    Has anyone accomplished this?
    As much specifics will be helpful. This system is operational and needs to be done right the first time.
    thanks,
    -Rob

    Thank you.
    1) I'm going to off load the cold backup to an external drive and have a courier take it to the DR site.
    Why, we are replicating the SAN over to the DR site. When SAN replication backs up Oracle becomes non-responsive. Therefore; sending the data over the pipe is not an option for the standby rebuild. Yea' that's the easy way to do it. But this system is operational and critical to operations; so we will not risk saturating the pipe for any period of time. The pipe got saturated one time and it was not pretty.
    2) I'm running the test in my lab to make sure I can create the standby database using the cold backup and rman.
    3) In the past it was easy; I got a cold backup of the data files using the same ksh scripts that have been working for 20 years. Copy the files over to the standby site, and put it into managed recovery. This technique has been working fine sense Oracle 8i days. ASM through a huge monkey wrench in the ksh script backup and now I'm forced to use rman. Hey, I'm told it's an okay product but when it comes to backups I never get fancy; that just makes things more complicated. Okay I wont complain about asm anymore, i guess there is an advantage in there somewhere.
    -Rob

  • Change db name in dataguard

    Hello
    Has anyone experience changing database name(including datafile locations),sid,data and control file location in operational dataguard setup
    My understanding following below steps
    1)shutdown primary and standby (stop managed recovery)
    2)change db name in init.ora of primary and standby change database name control file location
    3)create control file for primary from trace(script) make changes for db name and file locations
    4)mount and open primary database
    5)create standby control file
    6) transfer standby control file to standby
    7) mount stand by database and start manage recovery
    let me know if these steps can change database name and file locations without any error
    Thanks

    I would think the control file would have to know about the change.
    I would consider the DBNEWID Utility to change the database name if I had to.
    If you change the database name the DBID will change.
    I'm thinking it would require a standby rebuild.
    Here's some more info:
    http://www.oracle-base.com/articles/9i/DBNEWID.php (Should work in 9 and above)

  • Recovery the database

    Hi,
    I have 2 DBs primary and standby, and i did a full back up on Saturday for the primary DB, and now i am doing recovery for the DB in the standby ( rebuild the standby DB), everything is went smooth but not i have this error which i dont know if it is good or bad
    ORA-00279: change 6555156022 generated at 07/14/2008 12:35:16 needed for thread
    1
    ORA-00289: suggestion :
    /data/oradata/xxxx/archive/xxxx_1_8766_657631822.arc
    ORA-00280: change 6555156022 for thread 1 is in sequence #8766
    ORA-00278: log file
    '/data/oradata/xxxx/archive/xxxx_1_8765_657631822.arc' no longer needed
    for this recovery
    should i become worry or not, and if should i should become worry, what should i do?
    byw, it is stilling running right now
    my DB is oracle 10.1.0.5.0
    OS is linux
    Thank you

    Always post your query in lower case.
    Look at the metalink Note: 419137.1 -- Restoring Database Using rman On a Different Node with Different Backup and Database Directory Strutures
    With best regards
    Shan

  • Is the only way to import large amount of data and database objects into a primary database is to shutdown the standby, turn off archive log mode, do the import, then rebuild the standby?

    I have a primary database that need to import large amount of data and database objects. 1.) Do I shutdown the standby? 2.) Turn off archive log mode? 3.) Perform the import? 4.) Rebuild the standby? or is there a better way or best practice?

    Instead of rebuilding the (whole) standby, you take an incremental (from SCN) backup from the Primary and restore it on the Standby.  That way, if, for example
    a. Only two out of 12 tablespaces are affected by the import, the incremental backup would effectively be only the blocks changed in those two tablespaces (and some other changes in system and undo) {provided that there are no other changes in the other ten tablespaces}
    b. if the size of the import is only 15% of the database, the incremental backup to restore to the standby is small
    Hemant K Chitale

  • Rebuild Standby  in  9i

    Oracle 9i
    Sun Solaris
    Hi
    I need to rebuild one physical standby database from primary. Actually the primary itself was rebuilt using standby database. But instead of opening in NORESETLOGS it was opened in RESETLOGS.
    So primary and standby were again out of sync.
    I am presently copying datafiles from primary location to standby location.
    Is the following procedure correct ?
    (1) Put all tablespaces in primary in BEGIN BEACKUP.
    (2) Copy all datafiles to standby location . Both standby and primary datafiles are in the identically named locations. So no need to change any db_file_name_convert parameter etc.
    (3) After copying is done, create a standby controlfile from primary and move to standby location and edit init file to indicate this new location and new name of controlfile
    (4) Startup standby database using this new init file.
    (5) Start recovery. ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION.
    Is this the correct procedure ? Or Am I making any mistakes regarding standby log files and online log files.

    I recreated the standby database now. But the following is happening. sequence 1 is not applied but all the rest of sequence from 2 to 10 are applied. How is this possible ?
    Shouldn't the sequences be applied one after the other ?
    Does this mean standby is in sync with primary or not ?
    SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# APP
    1 NO
    2 YES
    3 YES
    4 YES
    5 YES
    6 YES
    7 YES
    8 YES
    9 YES
    10 YES
    11 NO
    12 NO
    And managed recovery process is active ...
    SQL> SELECT PROCESS, STATUS, THREAD#, SEQUENCE#, BLOCK#, BLOCKS FROM V$MANAGED_STANDBY;
    PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    RFS RECEIVING 0 0 0 0
    MRP0 APPLYING_LOG 1 11 1064765 2097148

  • Rebuild standby database

    Good morning,
    I am stuck with my rebuild standby now. I am not sure what is wrong with what I am doing. My production database is 2 nodes RAC database and the db version is 10.2.0.4 using ASM (10.2.0.4) on Sun servers SunOS 5.10. The standby is in SunOS 5.10 and single node database. In this server we also have 3 other databases so all 4 databases share the same ASM in this server. Recently we upgraded the ASM home and other databases home from 10.2.0.4 to 10.2.0.5. Only this standby home stays in 10.2.0.4. We also use OMF and all database files are in ASM and archive logs are in ASM as well. The backups are in files system. After I upgrade the ASM I forgot bring up the standby instance/listener so it falls behind on the archive logs applying process. I am now trying to rebuild this standby. The first two times failed due to diskgroup space exhausted. So I deleted old standby data files from ASM. Then I got ORA-15055: unable to connect to ASM instance & ORA-00020: maximum number of processes () exceeded. I increased the processes parameter for ASM from 40 to 85. The last time refresh I got the following errors and I googled these errors online but have not got any useful info yet. Have anybody experienced this before?
    RMAN-00571: ===========================================================
    RMAN-10035: exception raised in RPC:
    RMAN-10031: RPC Error: ORA-19624 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPPIECE
    RMAN-10035: exception raised in RPC:
    RMAN-10031: RPC Error: ORA-19624 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPPIECE
    RMAN-10035: exception raised in RPC:
    RMAN-10031: RPC Error: ORA-19624 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPPIECE
    RMAN-03002: failure of Duplicate Db command at 11/01/2010 15:25:30
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-10038: database session for channel ORA_AUX_DISK_1 terminated unexpectedly
    The rman script for dup is:
    run {
    Duplicate target database for standby dorecover;
    Thanks a lot in advance for your help!
    Shirley

    I do believe the version could be causing your issue. I have always used the exact same version without issue.
    I setup my standby for dup as follows:
    Same directory structure including the flash area.
    I copy the primary password file to the same directory on the standby.
    I defer the primary :
    alter system set log_archive_dest_state_2=defer;
    I create a temp int file for the standby with these set (I'm using Oracle 11)
    db_name
    control_files
    db_recovery_file_dest
    db_recovery_file_dest_size
    compatible
    db_block_size
    undo_tablespace
    undo_management
    undo_retention
    I backup the primary using
    RUN {
    allocate channel d1 type disk;
    backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
    backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
    release channel d1;
    I move the current days archive and this backup to the standby
    I start the standby use the temp init
    startup nomount pfile='/u01/app/oracle/admin/PRIMARY/pfile/init.ora';
    And I dupicate as follows:
    rman target sys/password@PRIMARY auxiliary /
    run {
    allocate channel C1 device type disk;
    allocate auxiliary channel C2 device type disk;
    duplicate target database for standby nofilenamecheck;
    Assuming this flys I copy a pfile version of the primary init over and change it for standby and then create a new spfile if needed.
    Finally I enable
    alter system set log_archive_dest_state_2=enable;
    And start redo apply on the standby and test

  • RAC Standby Database rebuild

    Hi
    Current 10.2.0.4 Setup is with Dataguard Broker (Unix/No OEM Setup):
    Rac Primary 2node cluster
    Rac Standby 2node cluster
    The rac Standby Database are going to be opened read/write.
    Then will require a rebuild of standby ie delete db files and duplicate db using rman
    1) My questions is how do I rebuild of a rac standby database with an existing enabled dg broker?
    2) Are there any documentation on the steps to follow.
    3) Should the dg broker config be dropped or just disabled and if so at which stage?
    Config on Rac primary should be kept to a minimum as its being used so no outage expected here.
    Regards
    Me

    Have you given any thought to using flashback (depending on how long your standby will be open for read/write)? You could (before you open read/write) copy your dr*.dat files (broker config files), stop the broker and create a guarenteed restore point. After you have finished and ready to convert back to standby you would flashback your database to the restore point, convert back to a physical standby, restart the broker and shutdown. Restore the dr*.dat files to their location and then startup the standby. From there it should fetch the logs from the time the broker was down and catch back up.
    If you would rather rebuild, again you would need to take the broker out of the equation and use RMAN to create a clone for standby and then once in place you would reconfigure the broker (may be able to just restore the dr*.dat files from before the open operation but unsure.

  • Rebuild RAC phsical standby with RMAN

    Hi all,
    Can anyone give any advice as to rebuilding an ACTIVATED RAC physical standby using RMAN? We have been able to revert the db with flashback but I need to know the rebuild method.
    Is there any extra steps with the OCR?
    I am guessing the steps might be:
    1. Use DBCA to delete the newly activated standby.
    (The DBCA will clean up the OCR components)
    2. Use RMAN to duplicate a physical standby database.
    3. Register the instances and services with the OCR.
    Can any comment on this and suggest a decent task list from oracle as to the method.
    Thanks in advance,
    jd
    Edited by: jonnyd on 30-May-2010 13:42

    ...anyone...?

  • Rebuild standby question

    Good morning,
    I am puzzled by this in rebuilding standby process. I remember see this:
    Before run “rman dup for standby …” you do “ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=defer..” in primary db.
    After finish RMAN dup and start MRP process you do “ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=enable..” in primary db.
    So during this RMAN dup time period (it can take several hours) we don’t ship any archive logs to standby and when RMAN finishes it inevitably has a lot of logs not in standby side. Does this mean that we definitely are going to have log gap after the RMAN dup? Do we need to manually copy those archive logs from primary to standby in order for MRP to apply them? What is the main reason we disable the log ship during rman dup period?
    Thanks a lot in advance for sharing your insight!!
    Shirley

    The main reason to disable shipping during the dup is nothing exists to apply them to. If you are using RMAN to dup a standby you probably will move the RMAN backup and the current logs over before you issue the dup command which is something like this:
    RMAN> run {
    allocate channel C1 device type disk;
    allocate auxiliary channel C2 device type disk;
    duplicate target database for standby nofilenamecheck;
    Once you have the new Standby you can "enable" shipping again. I generally do a log switch on the primary and used the v$ view v$archived_log to check the results. v$archived_log will show logs on both primary and standby, use the DEST_ID to check just one side and order by sequence#.
    The alert log on both sides are a great source of information.
    Does this answer your question?
    Thoiught about this more. You could also try:
    duplicate target database for standby from active database;
    I have never tested this myself.
    Edited by: mseberg on Nov 17, 2010 5:40 AM

  • Rebuild standby

    Hi,
    How to decide to rebuild the standby in oracle 11.2.
    We tried to sync both primary and standby.But no use.
    Log are shipping to standby,but not applied in standby.
    Br,
    Raj

    Hi,
    Thanks for your reply.
    Due to archive gap,it shown WAIT_FOR_LOG.
    PROCESS                              STATUS      SEQUENCE#     BLOCK#
    ARCH                                 CLOSING          1877       6144
    ARCH                                 CLOSING            28          1
    ARCH                                 CLOSING            27          1
    ARCH                                 CONNECTED           0          0
    ARCH                                 CLOSING            25          1
    ARCH                                 CLOSING          1878          1
    RFS                                  IDLE                0          0
    RFS                                  IDLE             1879     119994
    RFS                                  IDLE                0          0
    MRP0                                 APPLYING_L         29      30785
                                         OG
    PROCESS                              STATUS      SEQUENCE#     BLOCK#
    RFS                                  IDLE                0          0
    RFS                                  IDLE               29      30786
    RFS                                  IDLE                0          0
    Now it works.
    Br,
    Raj

  • Rebuilding Standby - fails looking for current ORL

    Environment:
    Oracle 11.2.0.3 EE on Solaris
    I am trying to rebuild a physical standby database on the standby server.
    I have copied all RMAN files from the most recent Level 0 and Level 1 backups as well as all archived logs.
    I have created and copied a new standby control file and located the copies in the documented places based on my pfile and spfile.
    I have left the parameter 'standby_file_management' equal to 'auto'.
    I have created an RMAN parameter file that looks like this:
    startup nomount
    sql 'alter database mount standby database';
    run{
           allocate channel c1 type disk;
           allocate channel c2 type disk;
           allocate channel c3 type disk;
           allocate channel c4 type disk;
           allocate channel c5 type disk;
           restore database;
    recover database;
    When I run this it restores pretty much everything, but fails looking for what turns out to be the 'CURRENT' online redo log file from the Production database.
    I verified this by running:
    select * from v$log;
    Why would the recovery process be looking for the currently active redo log file from the Production database?
    What do I need to do to make it recover the data I've given it and then let me turn on MRP to pick up anything outstanding?
    Any help is greatly appreciated!!
    -gary

    Thanks for the quick response!!
    Since I have run the 'recover database' command and it has been successful up to the point where it's looking for the latest OLR, can I just start the MRP on the standby as it exists right now?
    I'm not sure what the status of my standby is at this moment.
    When I re-run the above script and look at the log file, I always see several lines of other data files it's recovering.
    Have those been recovered successfully and it's just waiting on me to cancel the recovery?
    Thanks again for your help!!!
    -gary

  • Rebuild RAC standby

    Hi all,
    Can anyone give any insight into the steps to rebuild a RAC standby?
    My guess is as follows:
    The following is all on standby side
    1. activate standby r/w
    2. Test failover
    3. use dbca to delete the database (dbca unregisters instances and services from OCR)
    4. use RMAN to recreate the duplicate standby
    --creation of logs needs to be done..
    5. re-register the instances and services with the OCR
    Does seem about right?
    Can anyone recommend a document detailing the instructions for re-building a RAC standby after activation?
    Thanks in advance.
    john

    I need a high level view... like task list..
    Its a rebuild of an 11gR2 physical RAC standby on Linux RH4.
    My guess is I can use dbca to delete the activated standby and then use RMAN to recreate the standby and then manually register the instances and services to the OCR.
    My query is the steps with the RMAN creation of the new standby, do I do it in single instance mode and then add standby logs then modify the spfile to reflect cluster_database = true and then register the services and instances and put it in managed standby mode etc..
    The bottom line is I need to some offical documentation for the steps involved in recreating an activated RAC standby.
    I will contact oracle support.
    Edited by: user9179270 on 25-May-2010 04:33
    Edited by: user9179270 on 25-May-2010 04:36

  • After I boot up from standby, Firefox won't load any web pages

    If I let the computer go into standby on it's own, once I start it up again and open Firefox, it won't load any webpages...the wireless icon in the taskbar is showing connection, but nothing happens other than the address bar on Firefox says "loading"

    I had this problem too. Running 32 bit Vista on a Toshiba Satellite U305 laptop. When you fold the lid it doesn't matter if Firefox is running or not, when you open it and the system wakes up, then Firefox 7.0.1 doesn't work any longer. Firefox either will not load if it wasn't running when the system went to sleep or it will soon hang if it was running. I started having this problem 2 weeks ago and have since then been uninstalling and reinstalling software that recently updated, checking configurations etc of ZoneAlarm, AVG, Acronis, etc. but nothing I did seemed to resolve the problem. Then this morning I was about to rebuild my system and remembered something I did a couple of weeks ago, install iTunes to support a used iPhone I was given.
    I decided to try removing iTunes before undertaking a rebuild and this fixed the problem. Now that I think about it, I installed iTunes on this laptop when it was new and had to remove it because it slowed it down so much. It looks like they resolved a lot of iTunes performance degradation over the years but iTunes still appears to slow your system down and obviously, now also stops Firefox from working. Whose fault is it, Microsoft, Firefox or iTunes? Good luck having them work it out :-). Removing iTunes resolved my own problem. I can live without iTunes but not without Firefox :-)
    Note: When the problem occurs, firefox.exe is running in the task manager but you can't kill it. Another problem for the research team. My own research found that MS Vista turns out to be one of the few OS's in the world that doesn't always provide for killing a process. (Lucky me for buying a laptop that has no XP drivers and doesn't warrant the expense of upgrading to 7). Reason for the kill problem? From what I understand, a kill instruction requested of Vista has it asking an application for permission before doing so. Problem is, hung applications rarely reply "sure go ahead".
    ///// UPDATE:////////
    After 12 hours and 4 iterations of putting the laptop to sleep and waking it up, the problem has now recurred. So uninstalling iTunes is not the solution (although it seemed to help at first). Sorry if this confused anyone. My plan now it to regress to an older version of Firefox and see if that fixes the problem. However, I probably need a fresh install anyway after 3 years of overcrowding.

  • Is there any impact that apply Oracle CPU on standby and primary DB

    We plan to apply Oracle April CPU on standby DB at this weekend. Then apply the same patch on primary DB next weekend. If I apply the patch on standby, then enable redo apply between primary and standby, is there any impact on primary DB. Theoretically, I don't think so. However, both DBs are production. I want to make sure there is no any impact by applying CPU in different time. Otherwise, I have to apply both DBs at the same time. Please advise. Thanks in advance.

    853153 wrote:
    I hope you read other people's post carefully. Don't pretend yourself is expert so that you can say whatever you want to say. This is the tech forum for Oracle technical people to ask question, seek help and so on. How do you know I didn't review document 278641.1 before I asked my question. Document 278641.1 only provide info on how to apply patch on primary and standby. Didn't say anything about applying the same patch on both DBs with data Guard at the different time. I just want to make sure If I apply patch on both DBs with one week difference, will this affect my primary database? Is there anything wrong here. If you paly in this forum as expert, please help people, not just look down people.
    I suggest you review [url http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way.
    When you ask for help, state the platform, operating system, Oracle version and patch level, no matter whether it seems important to the question or not. It most often is important. You may not know the difference between Itanium and PA-RISC, but that is important for Oracle and important for someone doing administrative work on an Oracle database to know. You should also learn to search the internet for answers to common questions. Everyone here wants to help, but few want to spoon-feed.
    When you have any kind of standby, that constrains what you can do to a primary, if you want the standby to work properly. You need to understand how things get from one to the other, and how to decide when to simply rebuild the standby from scratch - and that decision is based on your configuration and requirements. You don't want to be in some undefined configuration for any period of time.

Maybe you are looking for

  • How do i fix my ipod's screen it looks lik black on white and i can barely c the screen.?!

    how do i fix my ipod's screen it looks lik black on white and i can barely c the screen.?!

  • Help with Z

    Hey I have the original Nomad Jukebox Zen. When I turn the player on, it goes straight to Rescue Mode. I tried Clean Up and Reboot and neither works. Should I Reformat or Reload the OS? Thanks for the help. Lance

  • MaxDB and LiveCache installation

    Hello All, Tying to install LiveCache 7.7 part SCM 5.1 = SCM 2007 I am trying to install liveCache on SuSE 10(Linux) with MaxDB. I would like to know that if I need to install MaxDB before I install the Livecache server using sapinst? Please advice!

  • Database Datafiles Recovery. ORA-01219: database not open:

    Hi, I have a 10g database running on SuSE Linux server. I mistakenly deleted one of my file system's files that contain some of the database datafiles. I can connect to the database but I am failing to run queries: SQL> select * from global_name; sel

  • Iam stuck in the code

    am new java programmer and am student I must add two functionalities to the actual application. 1.     Create an account maximum 5 accounts 2.     Keep record of all transactions that took place and this ist he Client code // The Client code // Java