Primary restore

Hi,
We have a test setup where in we have 2 node primary and a standby on 11gr2 on Linux
Due to some problem in storage we lost the primary db completely, but we have backup on disk intact.
Since it is a test db, we don't want to activate standby as it is in different DC or copy from there which will take much time.
We want to restore the primary Backup what we have.
In this scenario, after restore of PRIMARY will my standby continue to work in sync with primary ?
Also, we don't till what time the backup is intact, also we have online redo-logs; but we don't know yet to what extent we can recover.
What are the chances of Standby continue to be in sync after primary restore ?  If we have to do Incomplete recovery on Primary, my standby becomes useless ??
Thx.

Hi,
In this case you can ACTIVATE or switch standby database to primary role and can use as primary.(also you can recreate controlfile again).
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/scenarios.htm#i1019396
Thank you

Similar Messages

  • Stop seconday database when it is in restoring state

    Hi All,
    We are planning to perform Switch from primary  to secondary server by using Libelle tool.
    Before switch we have planned to increase the server resources and make it same as primary.
    So for that we need to stop database running on secondary server. and database is in restoring mode.
    So my question is it good to simply stop the database and when resources are increased start the database again.
    If yes: Then database will come to restore stage again?
    If No: Then what other strategy should we take?
    Regards,
    Mohit

    Hi Mohit
    Yes its simple shutdown & start the secondary server during the time primary restore stage. before that you can perform the truncate log backup in primary, check the log truncate completed on both servers and than do the hardware maintenance during this process keep an eye on log DB
    Regards
    Ram

  • Logshipping has been broken after over writing the primary database

    Hi All
    One of DBA by mistakeover writing the primary database which is in logshpping ,Hence logshipping got failed.
    Please some help us to re-configure the log shipping
    Any doc or steps are very help for us..
    Thanks in Advance 

    Could you please explain what exactly happened? What do you mean by overwriting?
    You can always drop logshipping and recreate it.
    Else you can take a full backup from Primary, Restore it in secondary with no recovery, remove all backups from the copy and restore shares and start the log shipping backup job, it should take the log backup, move it and restore it.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • RoboHelp 7 Crash - MS Visual C Runtime Error

    I have been using RH7 for many months. Today, I was using Single Source Layout > Printed Documentation > Properties. And it crashes without doing any more than looking at the dialogue; sometimes when setting the location for the output.
    I get a Microsoft Visual C++ Runtime Library "Runtime Error" - RoboHTML.exe ... "The app has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information."
    This has now happened 3 times in a row.  On one occasion I was warned of a corrupted $StylePrepFile.htm, which I deleted and tried again.
    I have rebooted; I have run Norton SystemWorks diagnostics to repair system errors. But it's still doing it.
    I have tried deleting the CPD file, but it still crashes on this project. When I click on the OK button in the error message dialogue, RH disappears instantly. But you cannot re-open RH and then open the project again because it tells me it is locked by another instance of RH. I looked in Task Manager, and RoboHtml.exe is still loaded. I have to delete it here before I can reopen it and load the project.
    A thought: I have been trying RH8 in Trial mode, and decided not to upgrade just yet; so I uninstalled it. Would this cause problems with RH7? If so, how do I fix it?
    Any ideas anyone?

    Thank you for your suggestion, Peter. I tried it and this is what happened.
    I had trouble with two separate printed doc layouts. So I loaded a recent backup copy of the project, and tried adding a new Print layout. I used the same conditional build tags. I built the output, which went through its normal slow processing, and then, at the end, I got an error message like this:
    The Output View showed a long log of the build:
    ===========================================
    Starting to build Printed Documentation...
    Printed Documentation processor 7.00.145
    Building D:\!Active clients\Client BP Sunbury\Client BPOSS Shipboard\Copy of Backup copy 90610 BPOSS_SB_Source\!SSL!\Inst_Setup_Upgrade_Restore_Guide_BP_-_PDF\Inst_Setup_Upgrade_Restor e_Guide_BP_-_PDF.doc ...
    Preparing to create Printed Documentation...
    Clearing output folder...
    Preparing files for Print Document...
    Copying files...
    Updating files...
    Finished preparing in 11 seconds.
    Preparing environment...
    Printed Document Generator Environment: Word 11.0.8307,  OS 5.1.2600, RAM 1535 M Bytes
    Building Printed Documentation 'Inst Setup Upgrade Restore Guide BP - PDF'...
    Building Single Document 'Inst_Setup_Upgrade_Restore_Guide_BP_-_PDF.doc'...
    Building 'TitlePage Installation & Setup Guide - BP Ships'...
    Warning: The Word Document became corrupt when attempting to append a malformed topic: 'TitlePage_Installation_&_Setup_Guide_-_BP_Ships.htm'
    Failed to build 'TitlePage Installation & Setup Guide - BP Ships'...
    Failed to generate section 'TitlePage Installation & Setup Guide - BP Ships'...
    Building 'Table of Contents'...
    Preparing to build chapters...
    Building 'Installation and Setup Guide'...
    Warning: The Word Document became corrupt when attempting to append a malformed topic: 'Installation_and_Setup_Guide.htm'
    Failed to build 'Installation and Setup Guide'...
    Building 'Installing BPOSS Shipboard.'...
    Processing 'Minimum System Requirements'...
    Processing 'Installation Concepts - BP Ships'...
    Warning: The Word Document became corrupt when attempting to append a malformed topic: 'Minimum_System_Requirements.htm'
    Processing 'Download BPOSS Shipboard Files'...
    Warning: The Word Document became corrupt when attempting to append a malformed topic: 'Installation_Concepts_-_BP_Ships.htm'
    Warning: The Word Document became corrupt when attempting to append a malformed topic: 'Download_BPOSS_Shipboard_Files.htm'
    Failed to process 'Download BPOSS Shipboard Files'...
    Fatal Error: Word Document got corrupt. Abort building 'Installing BPOSS Shipboard.'.
    Failed to build 'Installing BPOSS Shipboard.'...
    Failed to build 'Installing BPOSS Shipboard.'...
    Building 'Configure AMOS Mail'...
    Processing 'Configure AMOS Mail for BPOSS'...
    Warning: The Word Document became corrupt when attempting to append a malformed topic: 'Configure_AMOS_Mail_for_BPOSS.htm'
    Failed to build 'Configure AMOS Mail'...
    Building 'System Setup - BP Ships'...
    Processing 'Initial Setup - Authorisation Codes'...
    Warning: style (p.ListBullet) is not defined and will be mapped to 'Normal'.
    Warning: The Word Document became corrupt when attempting to append a malformed topic: 'Initial_Setup_-_Authorisation.htm'
    Failed to process 'Initial Setup - Authorisation Codes'...
    Fatal Error: Word Document got corrupt. Abort building 'System Setup - BP Ships'.
    Failed to build 'System Setup - BP Ships'...
    Failed to build 'System Setup - BP Ships'...
    Building 'Restore Data from Backup.'...
    Processing 'Primary Restore Data Procedure'...
    Processing 'Secondary Restore Data Procedure'...
    Warning: The Word Document became corrupt when attempting to append a malformed topic: 'Primary_Restore_Data_Procedure.htm'
    Warning: The Word Document became corrupt when attempting to append a malformed topic: 'Secondary_Restore_Data_Procedure.htm'
    Failed to build 'Restore Data from Backup.'...
    Building 'Help Desk'...
    Processing 'Technical Support'...
    Warning: The Word Document became corrupt when attempting to append a malformed topic: 'Technical_Support.htm'
    Failed to process 'Technical Support'...
    Fatal Error: Word Document got corrupt. Abort building 'Help Desk'.
    Failed to build 'Help Desk'...
    Failed to build 'Help Desk'...
    Failed to build one or more chapters.
    Building 'Glossary'...
    Failed to build 'Glossary'...
    Building 'Index'...
    Updating list paragraphs...
    Updating images...
    Updating page numbers...
    Updating page headers...
    Updating Table of Contents...
    Updating Index...
    Saving 'Inst_Setup_Upgrade_Restore_Guide_BP_-_PDF.doc'...
    Generating 'Inst_Setup_Upgrade_Restore_Guide_BP_-_PDF.pdf'...
    Failed the generate PDF file 'D:\!Active clients\Client BP Sunbury\Client BPOSS Shipboard\Copy of Backup copy 90610 BPOSS_SB_Source\!SSL!\Inst_Setup_Upgrade_Restore_Guide_BP_-_PDF\Inst_Setup_Upgrade_Restor e_Guide_BP_-_PDF.pdf'...
    Failed to save 'Inst_Setup_Upgrade_Restore_Guide_BP_-_PDF.doc'...
    Cleaning up temporary files...
    Internal error encountered,  Failed to generate Printed Documentation.
    ===========================================
    As you see, this is full of Warnings - I think it reports every topic as Malformed.
    The final output is a word doc that fails to load when I double-click on the filename.
    If I load MS Word 2003 and load the file, it disables Word such that where the document should view, the area is white all over and the scroll bars are disabled. I can switch between Normal View, Print view etc, but all look the same white area.
    If I load a "good" word document, the same problem - all white and no text. Something has gone badly wrong. See short movie:
    RH7 does not offer the option of a repair, so I would have to uninstall and reinstall.
    This is an important Help project, so I've got to fix it somehow...
    Any idea, anyone?

  • Standby Oracle

    Good morning Gurus,
    We want to implement the Standby on our Oracle Database 10g production.
    We have steps about this procedure. Its like this:
    1- Implement and update Oracle 10g using the OPatch, before we start the Standby configuration.
    2- Create a virtual enviromment for tests before implement directly in enviromment production.
    3- In a date, shutdown the Primary, restore in Standby, configure both init.ora, startup two instances.
    Do you agree with us? Help us with yours comments.
    Thanks for your time and patience.
    Oracle 10g
    Aix 6.1
    SAP Ecc
    Denis
    Brazil

    If I understand the question correctly the answer is no.
    That said, if I'm doing Data Guard I probably would upgrade the database in advance to save trouble down the line.
    A comment on Opatch since I just did the CPU patch on 11 Data Guard systems.
    On the standby server all you do the in run opatch apply. Skip the SQL part as this moves from the primary database.
    Also there's a separate Data Guard area here :
    Data Guard
    The Oracle product manager for Data Guard is on there almost every day and he's the best in the business.
    Does this help?
    mseberg

  • WLC 7.3 and HA

    case :
    1x 5508 112 ap license
    1x 5508 HA sku
    http://www.cisco.com/en/US/products/ps10315/products_tech_note09186a0080bd3504.shtml#combo1
    what does mean:
    With the new WLC coming up, HA SKU at the time of paring will get the AP Count:
    If the new WLC has a higher AP count than the previous, the 90-day counter is reset.
    If the new WLC has a lower AP count than the previous, the 90-day counter is not reset.
    After switchover to a lower AP count, the WLC offset timer will continue and nagging messages will be displayed after time expiry.
    in particular what "an higher AP count than the previous" means?
    after switchover to primary restored wlc (112 licence) the counter is not reset and buying new licences for primary is needed?
    and the difference between HA sku and 50 ap licence for the standby?
    thank you

    N+1 High Availability Overview
    http://www.cisco.com/en/US/docs/wireless/technology/hi_avail/N1_HA_Overview.html
    With Release 7.4, an  HA-SKU secondary controller can be configured as a backup controller for  N+1 HA. For example, the following can be used as an HA-SKU controller:
    –5508 Series Standalone controller with 50 AP license
    but once primary controller fails and all the AP on primary controller gets register on to the HA-SKU secndary WLC till 90 days it works okay but after 90 days you get the warning message that license are not sufficient to serve AP's
    http://www.cisco.com/en/US/docs/wireless/technology/hi_avail/Licensing.html#wp1054850 - license error

  • Restored standby database from primary; now no logs are shipped

    Hi
    We recently had a major network/SAN issue and had to restore our standby database from a backup of the primary. To do this, we restored the database to the standby, created a standby controlfile on the primary, copied this across to the control file locations and started in standby recover and applied the logs manually/registered to get it back up to speed.
    However, no new logs are being shipped across from the primary.
    Have we missed a step somewhere?
    One thing we've noticed is that there is no RFS process running on the standby:
    SQL> SELECT PROCESS, CLIENT_PROCESS, SEQUENCE#, STATUS FROM V$MANAGED_STANDBY;
    PROCESS CLIENT_P SEQUENCE# STATUS
    ARCH ARCH 0 CONNECTED
    ARCH ARCH 0 CONNECTED
    MRP0 N/A 100057 WAIT_FOR_LOG
    How do we start this? Or will it only show if the arc1 process on the primary is sending files?
    The arc1 process is showing at OS level on the primary but I'm wondering if its faulty somehow?
    There are NO errors in the alert logs in the primary or the standby. There's not even the normal FAL gap sequence type error - in the standby it's just saying 'waiting for log' and a number from ages ago. It's like the primary isn't even talking to the standby. The listener is up and running ok though...
    What else can we check/do?
    If we manually copy across files and do an 'alter database register' then they are applied to the standby without issue; there's just no automatic log shipping going on...
    Thanks
    Ross

    Hi all
    Many thanks for all the responses.
    The database is 10.2.0.2.0, on AIX 6.
    I believe the password files are ok; we've had issues previously and this is always flagged in the alert log on the primary - not the case here.
    Not set to DEFER on primary; log_archive_dest_2 is set to service="STBY_PHP" optional delay=720 reopen=30 and log_archive_dest_state_2 is set to ENABLE.
    I ran those troubleshooting scripts, info from standby:
    SQL> @troubleshoot
    NAME DISPLAY_VALUE
    db_file_name_convert
    db_name PHP
    db_unique_name PHP
    dg_broker_config_file1 /oracle/PHP/102_64/dbs/dr1PHP.dat
    dg_broker_config_file2 /oracle/PHP/102_64/dbs/dr2PHP.dat
    dg_broker_start FALSE
    fal_client STBY_PHP
    fal_server PHP
    local_listener
    log_archive_config
    log_archive_dest_2 service=STBY_PHP optional delay=30 reopen=30
    log_archive_dest_state_2 DEFER
    log_archive_max_processes 2
    log_file_name_convert
    remote_login_passwordfile EXCLUSIVE
    standby_archive_dest /oracle/PHP/oraarch/PHParch
    standby_file_management AUTO
    NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE
    PHP PHP MAXIMUM PERFORM PHYSICAL S MOUNTED
    ANCE TANDBY
    THREAD# MAX(SEQUENCE#)
    1 100149
    PROCESS STATUS THREAD# SEQUENCE#
    ARCH CONNECTED 0 0
    ARCH CONNECTED 0 0
    MRP0 WAIT_FOR_LOG 1 100150
    NAME VALUE UNIT TIME_COMPUTED
    apply finish time day(2) to second(1) interval
    apply lag day(2) to second(0) interval
    estimated startup time 8 second
    standby has been open N
    transport lag day(2) to second(0) interval
    NAME Size MB Used MB
    0 0
    On the primary, the script has froze!! How long should it take? Got as far as this:
    SQL> @troubleshoot
    NAME DISPLAY_VALUE
    db_file_name_convert
    db_name PHP
    db_unique_name PHP
    dg_broker_config_file1 /oracle/PHP/102_64/dbs/dr1PHP.dat
    dg_broker_config_file2 /oracle/PHP/102_64/dbs/dr2PHP.dat
    dg_broker_start FALSE
    fal_client STBY_R1P
    fal_server R1P
    local_listener
    log_archive_config
    log_archive_dest_2 service="STBY_PHP" optional delay=720 reopen=30
    log_archive_dest_state_2 ENABLE
    log_archive_max_processes 2
    log_file_name_convert
    remote_login_passwordfile EXCLUSIVE
    standby_archive_dest /oracle/PHP/oraarch/PHParch
    standby_file_management AUTO
    NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE SWITCHOVER_STATUS
    PHP PHP MAXIMUM PERFORMANCE PRIMARY READ WRITE SESSIONS ACTIVE
    THREAD# MAX(SEQUENCE#)
    1 100206
    NOW - before you say it - :) - yes, I'm aware that fal_client as STBY_R1P and fal_server as R1P are incorrect - should be PHP - but it looks like it's always been this way! Well, as least for the last 4 years where it's worked fine, as I found an old SP file and it still has R1P set in there...?!?
    Any ideas?
    Ross

  • How to restore standby from primary after failover.

    HI we have a dr setup but the standby is provided archives through an application not the datagaurd.
    So for applying application patch I cant switchover the database.
    I have to shutdown the primary database and apply failover to the standby database to apply patch.
    Can you please tell how can I restore my standby database to actual primary after failover.
    As our actual activity will be in 2 weeks time. We want to apply patch on saturday.
    DR DRILL is on 8th nov.

    Your earlier statement "Can you please tell how can I restore my standby database to actual primary after failover"
    means something different from "SO have to restore from cold backup of primary database"
    What you seem to want is a procedure to recreate the Standby from a Backup of the Pirmary. (ie FROM Primary TO Standby).
    You haven't specified your Oracle Version. DG has been available since 9i (was even backported to 8i) but I will presume that you are using 9i
    You should follow the same process as used for the first creation of the standby, except that you don't have to repeat some of the setup steps (listener, tnsnames etc)
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96653/create_ps.htm#63563
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • I need to restore old archives in primary, so that I could apply in standby

    Hi All,
    I Need to restore sequence from 135777-138246 before enabling the DG broker configuration (as they are not availble in the primary or standby site).
    So need to restore primary Ist with these missing logs, Please let me know how would i go about it.
    In standby till sequence 135097 have been applied (confirmed from alert log as the DB is down as of now)
    =================
    Fri Mar 23 14:43:38 2012
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[2]: Successfully opened standby log 7: '/u31/pjmagap/oradata/std01a.rdo'
    Fri Mar 23 14:43:40 2012
    Media Recovery Log /oraarc/pjmagap/pjmagap_1_135097_666467537.arc
    Media Recovery Waiting for thread 1 sequence 135098 (in transit)
    Sun Mar 25 20:31:38 2012
    Log Gap is :- 135098-138524 (~3427 logs)

    Log Gap is :- 135098-138524 (~3427 logs)You choose option of ROLLFORWARD.. Hmm is it really necessary ?
    May be you have problem with only archive *135098* , which is not transferred, even though that archive not transferred the next archives of them will be transferred,
    So if you just restore only missing archives(very less) that should be fine.
    If you are sure that above all archives are not transferred then you better to go with RollForward.
    Already you did, still check this link might helpful. http://www.oracle-ckpt.com/rman-incremental-backups-to-roll-forward-a-physical-standby-database-2/

  • After Piecemeal Primary FileGroup Restoration, Database Property Window Shows other FileGroups also

    Hi,
    I have a SQL Server 2008 database with 90 Gigs of Capacity.
    The database consists of a huge table with 80 Gigs of Capacity and these entire 80 Gigs of data is Static in nature.
    We need the to restore the backup of this database frequently in to the Development environment, so we moved this static data into a Secondary File Group.
    Now, the database Consists of 2 Filegroups : Primary & Secondary_fg.
    The entire Static table is moved to the Secondary FileGroup.
    We have taken the backup of Primary FileGroup using the following Backup Command :
    Backup Database MYDB FILEGROUP = 'PRIMARY' to disk = 'E:\SQLBackup\MYDB_Primary_FG_Only.bak'
    WITH NOFORMAT, NOINIT, NAME = N'MYDB - Full Filegroup backup', SKIP, NOREWIND, NOUNLOAD
    The backup went file with the expected capacity of 10 Gigs.
    I have restored this backup in to a New Database : MYDB_PRIMARY_ONLY using the following command
    RESTORE DATABASE [MYDB_PRIMARY_ONLY] FILE = 'MYDB_DATA', FILEGROUP = 'PRIMARY'
    FROM DISK = 'E:\SQLBackup\MYDB_Primary_FG_Only.bak',
    WITH FILE=1,
    MOVE 'MYDB_DATA' TO 'E:\SQLDATA\MYDB_PRIMARY_ONLY_DATA.mdf',
    MOVE 'MYDB_LOG' TO 'E:\SQLDATA\MYDB_PRIMARY_ONLY_LOG.ldf', NOUNLOAD, PARTIAL
    GO
    The Restoration also went fine and the size of the Newly Restored Database : "MYDB_PRIMARY_ONLY" is with 10 Gigs in Capacity.
    But, the gotcha here is whilst checking the Database Properties of this Newly restored database, on the FILES & FILEGROUPS tab, the files & filegroups related to the SECONDARY FILEGROUP is also showing.
    MY ACTUAL QUESTION :
    On the PRIMARY FILEGROUP ONLY RESTORATION HOW THIS SECONDARY FILEGROUP IS COMING INTO PICTURE ?
    MOREOVER, WHEN I TRIED TO REMOVE THE SECONDARY FILEGROUP AND IT'S RESPECTIVE DATA FILE IT THROUGH THE FOLLOWING ERROR :
    COMMAND USED TO REMOVED THE FILE & FILEGROUP :
    USE [MYDB_PRIMARY_ONLY]
    GO
    ALTER DATABASE [MYDB_PRIMARY_ONLY]  REMOVE FILE [SECONDARY_DATA_FILE.ndf]
    GO
    ALTER DATABASE [MYDB_PRIMARY_ONLY] REMOVE FILEGROUP [SECONDARY_FG]
    GO
    Error :
    Msg 5056, Level 16, State 2, Line 1
    Cannot add, remove, or modify a file in filegroup 'SECONDARY_FG' because the filegroup is not online.
    Can anyone explain why such this error message ? Thanks in advance for any guidance in this regard.

    On the PRIMARY FILEGROUP ONLY RESTORATION HOW THIS SECONDARY FILEGROUP IS COMING INTO PICTURE ?
    When you restore only the primary filegroup, all database meta data is restored, including references to the filegroups and files not yet restored.  Filegroups/files not restored will be recovery pending state and data on those filegroups will be inaccessible. 
    Removing the filegroup will change the status to defunct but the meta data will remain.  You'll need to copy the restored objects and data to a new clean database if you want to tidy up.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • I accidentally screwed up my apple id when trying to change my primary email address. Password recovery options and security questions arent working either to restore

    I accidentally screwed up my apple id when trying to change my primary email address. Password recovery options and security questions arent working either to restore. Created a new appleid just to get into forums to ask a question but hesitate to sync itunes and iphone with it as i may lose all purchased music apps etc. can anyone help? i have received no email response frm apple support, it's been over 48 hours

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • Restore primary database using physical standby

    hi,
    i am taking rman backup on production database,we have physical standby.coming month i have to take backup from standby instead of prod db.pls advise me, is it possible to restore and recover production database using standby database backup.if production crashed.pls advise me .i am new to dba.if possible pls provide proper steps.
    Regards
    Faruk

    Faruk.m wrote:
    hi,
    i have to take backup on standby instead of production.failover i can do.but i need to know the recovery procedures from standby.and thank u for reply.i want, is it possible to restore my production controlfile with controlfile backup from standby.
    i tested with my local database ,that below:
    1.backup with controlfile from standby (rman>backup current controlfile)
    2.manual deleted my test db controlfile,tried to restore from backup taken from standby(rman>restore controlfile from '*****************';)
    3.rman>restore database
    3.but it shows error (datafile already exists) ,controlfile tried to create datafiles on standby location.
    my conclusion:above my cmds used to create datafiles on standby becoz i restored with standby controlfile.
    my question:what is wrong with my steps? and how to restore my (prod) controlfile from standby.and bring backup my prod db.
    regards
    farukHi Faruk,
    Sorry my late.
    I can share with you my test.
    It is my standby  database, I connecting with RMAN
    SQL> select database_role, db_unique_name, name from  v$database;
    DATABASE_ROLE      DB_UNIQUE_NAME           NAME
    PHYSICAL STANDBY       stldb                    ADMDB
    [oracle@oel62-x64 oradata]$ rman target /
    Recovery Manager: Release 11.2.0.3.0 - Production on Tue Apr 23 12:23:00 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: ADMDB (DBID=4063877183, not open)
    RMAN> backup current controlfile;
    Starting backup at 23-APR-13
    Starting implicit crosscheck backup at 23-APR-13
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=29 device type=DISK
    Finished implicit crosscheck backup at 23-APR-13
    Starting implicit crosscheck copy at 23-APR-13
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 23-APR-13
    searching for all files in the recovery area
    cataloging files...
    no files cataloged
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    channel ORA_DISK_1: starting piece 1 at 23-APR-13
    channel ORA_DISK_1: finished piece 1 at 23-APR-13
    piece handle=/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_04_23/o1_mf_ncnnf_TAG20130423T122310_8qdfq19x_.bkp tag=TAG20130423T122310 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 23-APR-13
    RMAN> exit
    Recovery Manager complete.
    [oracle@oel62-x64 oradata]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Apr 23 12:23:26 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> shut immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area  551165952 bytes
    Fixed Size              2230232 bytes
    Variable Size            167774248 bytes
    Database Buffers       377487360 bytes
    Redo Buffers              3674112 bytes
    SQL>
    SQL>
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@oel62-x64 oradata]$ rman target /
    Recovery Manager: Release 11.2.0.3.0 - Production on Tue Apr 23 12:34:58 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: ADMDB (not mounted)
    RMAN> restore controlfile  from '/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_04_23/o1_mf_ncnnf_TAG20130423T122310_8qdfq19x_.bkp';
    Starting restore at 23-APR-13
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    output file name=/u01/app/oracle/oradata/stldb/control01.ctl
    Finished restore at 23-APR-13
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    RMAN> exit
    Recovery Manager complete.
    [oracle@oel62-x64 oradata]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Apr 23 12:35:31 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select database_role, db_unique_name, name from  v$database;
    DATABASE_ROLE      DB_UNIQUE_NAME           NAME
    PRIMARY       stldb                    ADMDB
    As show here, you can backup standby control file, and restore as primary .
    Regars
    Mahir M. Quluzade
    http://www.mahir-quluzade.com

  • I replaced my primary hard drive. Time Machine restore didn't work. HELP!

    My 320GB hard drive that came with the mac pro was out of room. I got a new 1T, put it in, formatted the drive, told Time Machine to restore, it did, the information is there....
    BUT, Almost nothing is working. If i click on a program to open (mail, itunes, etc.) the crash window pops up. The info is there but it seems no one is talking to each other inside. Funny thing is that "preview" and "viewer" programs do work, just nothing else. Any ideas????
    Thanks a million...

    Don't panic. Let's re-prep the new drive a little differently. This will add considerable time to the formatting process. Again, I'm assuming you have booted the computer from your old hard drive.
    Extended Hard Drive Preparation
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. SMART info will not be reported on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Please be sure you read the above instructions carefully before proceeding to be sure you don't miss anything such as selecting the GUID partition scheme.
    I will also suggest, just for precautionary reasons, that you do the following before cloning your old drive to the new drive:
    Repairing the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

  • Oracle 10g standby configuration - Restoring primary backup to Standby DB.

    Hi experts,
    This is my first time configuring a Standby (Data Guard) scenario for our Oracle data base. The platform used is Solaris 10 with Oracle 10g.
    After reviewing a lot of documents and tutorials regarding this matter still have some doubts on how to get this scenario finally configured.
    Basically I would like some confirmations regarding the following point. We have the new db already installed in our disaster recovery site and the next step I need to do is to perform an offline backup from our primary data base and then transfer that backup to our standby database. Iu2019m currently stuck in this steps since Iu2019m not completely sure on how proceed with this specific step. According to the following link http://help.sap.com/saphelp_nw04s/helpdata/en/08/5744b84ae611d1894f0000e829fbbd/content.htm , the following steps are necessary:
           1.      Take a backup (online or offline) of the data files of the production database
           2.      Create a control file at the production site to be used at the standby site, by entering the following command:
    alter database create standby controlfile as <filename>
           3.      Archive the current online redo log of the production database, by entering the following command:
    alter system archive log current
           4.      Transfer the backed up data files, the control file and all archived redo log files to the standby site.
    Regarding the above step u201C4u201D... Could someone please detail me what all the data files are? As per SAP System Copy guide in its section u201CRestoring Database Files on the Target Systemu201D the following is indicated...and I think these are the files to transfers to the standby db.
    Files/oracle/<DBSID>/sapdata<x>
    All files/oracle/<DBSID>/origlog<x>
    All files/oracle/<DBSID>/mirrlog<x>
    Is my assumption correct?
    Please let me know which the correct steps are and if any other process is applicable or advisable over the above mentioned....let me know.
    Regards

    Hi,
    As far as cold backup of database is concerned, backup of the folders you have mentioned is enough.
    Hope you have created a parameter file for the standby database and changed the primary parameter file as part of preparation of primary database.
    Here is a sample entry you have to have on standby parameter file apart from other entries..
    db_unique_name='STANDBY'
    fal_client='STANDBY'
    fal_server='PRIMARY'
    log_archive_config='DG_CONFIG=(PRIMARY,STANDBY)'
    Also browse through the following threads...it may help..
    Re: Standby server - WAIT_FOR_GAP error
    Re: Hot DR site preparation
    Regards,
    Anish

  • HT1414 I would like to restore my phone to the IOS 6 operating system.  a primary personal device i have does not support IOS 7

    When i restore my iphone to a backup. will it also restore the operating system to IOS 6?

    No.
    It will always restore to the latest available software version.

Maybe you are looking for

  • Material with Different grades

    Dear Guru's, Here in my client, for one material they are having 5 different grades based on the quality, Like A,B,C,D & E How we need to maintain them in single mmr, because they are procuring @ different prices based on the quality. My PP guy dont

  • How to use abbreviated Pinyin in iOS 6?

    I am delighted that iOS 6 is finally launched.  In its advertisement, it reads that iOS 6 has improved its Chinese input methods, allowing its users to use abbreviated Pinyin.  So I tried but cannot find the way to switch from full Pinyin to abbrevia

  • Grid ALV Output to Screen  as well as to Spool.

    Hi Masters, I have one requirement in which I have to Send the Grid ALV Output to Screen as well as to Spool. Can Anybody suggest any solution? and most Important  Helpful answers will get definitely awarded. Thanks in advance

  • Oracle forms crash aftera spcific record

    Hi all i am sufering from strange problem in oracle forms 6i...I am using forms 6i nad use C/S.......the problem is that some time when i enter new records the forms automatically close when I want to see it by execute query........I press execute qu

  • App store apps and deleting them

    when you buy an app from the mac app store. Is it self contained? If you remove it, does it automatically take with it any preference files, etc..or does it leave them behind?  Just curious, as I haven't used it yet and was thinking about using a few