create the standby database using backup to restore

Hello

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

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

I'm confused about these steps:

Copy the files from the primary to the standby server.

Copy Standby controlfile to all locations.

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

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

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

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

Your help is very appreciated.

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

Tags: Database

Similar Questions

  • Create the remote database using dblink view

    Hello

    I have a small question for you.

    Is it possible to create the remote database using dblink view? Following syntax error

    create discover ViewName@DbLinkDame (ColumnName) as
    (select 1 double)

    "ORA-00905: lack of keyword.

    Is this possible at all?
    And particularly - is this possible when the remote database is MSSQL and I use heterogeneous services?

    I really appreciate your help
    Best regards
    Wojtek

    Published by: wojpik on October 21, 2009 03:59

    This is a workaround for a remote Oracle database (use the queue of work), however:

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:597877500346143250

    but I have no idea if something similar is possible for MSSQL...

  • Cannot create the standby database

    Hello

    OS - Win XP Pro
    Oracle - 10.2.0.1

    I'm creating a database of watch on the same system where I have my primary database.


    When I run the script below, I get the below error:


    RMAN > run {allocate channel prmy1 type disk;}
    2 > allocate channel prmy2 type disk;
    3 > allocate channel prmy3 type disk;
    4 > allocate channel prmy4 type disk;
    5 > allocate auxiliary channel stby type disk;
    6 > duplicate target database for the eve of the active database

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00558: error occurred during parsing of order entry
    RMAN-01009: syntax error: found 'from': expected an of: "dorecover, db_file_na".
    me_convert, nofilenamecheck "
    RMAN-01007: in the file column 39 line 6: entry standard


    What I'm doing wrong here. The same script I used it on an 11G database, and I was able to create the database from the previous day.

    You use an improvement of 11g (for the active database) in a 10g database
    Solution: convert the statement to comply with 10g.
    Order duplicate is documented in the Handbook of Rman for 10g.

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

  • Create the new database of complete hot RMAN, atrchivelog and backup control files

    Hi all

    I'm trying to create the new database U1234 of P1234 of full hot RMAN, atrchivelog and control P1234 file backup.

    Here are my steps

    (1) to restore the control file

    #! / bin/sh
    ORACLE_SID = P1234
    export ORACLE_SID
    RMAN nocatalog target / < < EOF | Tee restorecontrol.out
    startup nomount pfile=/u01/oradba/admin/U1234/scripts/restore/restore071009U1234/initP1234.ora;
    the value of DBID 6767676;
    run
    {
    allocate channel d1 type disk;
    controfile catering to ' / u02/oradba/U1234/control/P1234_control01.ctl';
    Restore controlfile to ' / orarman/restore/P1234/cf_P1234_c-00';
    change the editing of the database;
    }
    EXPRESSIONS OF FOLKLORE

    (2) database stop then restart the database with the new contraol file using pfile.

    (3) restore data files

    #! / bin/sh
    ORACLE_SID = P1234
    export ORACLE_SID
    RMAN nocatalog target / < < EOF | Tee restore_dbfiles.out
    Run {}
    the value of newname for datafile 1 to ' / u05/oradba/U1234/dbfile/U1234_system01.dbf';
    the value of newname for datafile 2 to ' / u05/oradba/U1234/dbfile/U1234_undotbs01.dbf';
    the value of newname for datafile 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
    the value of newname for datafile 4 to ' / u06/oradba/U1234/dbfile/U1234_users_d01.dbf';
    the value of newname for datafile 5 to ' / u06/oradba/U1234/dbfile/U1234_tools_d01.dbf';
    the value of newname for datafile 6 to ' / u08/oradba/U1234/dbfile/U1234_audt_x01.dbf';
    the value of newname for datafile 7 to ' / u07/oradba/U1234/dbfile/U1234_audt_d01.dbf';
    the value of newname for datafile 8 to ' / u07/oradba/U1234/dbfile/U1234_audt_d02.dbf';
    the value of newname for datafile 9 to ' / u08/oradba/U1234/dbfile/U1234_lh_x01.dbf';
    restore the database;
    switch datafile;
    }
    EXPRESSIONS OF FOLKLORE


    ORA-27063: number of bytes read or written is incorrect
    SVR4 error: 28: no space is available on the device

    Now, I missed the space during the restoration of data files and want to restore remaining who is 3 and 4 of datafile datafile.

    Can you please let me know how I can restore it.

    I need to change the names of database after the successful restoration.

    DBVERSION 10.2.0.1
    operating system: solaris 10

    Thanks in advance.

    Hello..

    Do you have free space? If Yes, then you can try: -.

    RUN {}
    SET NEWNAME for DATAFILE 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
    RESTORE THE 3 DATA FILE;
    DATAFILE 3 SWITCH;
    }

    [http://www.oracle-base.com/articles/9i/DBNEWID.php]

    Anand

  • Backups on the physics of the standby database?

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

    environment: windows

    Database version: 11.2.0.1.0


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

    Hello;

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

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

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

    Best regards

    mseberg

  • RECOVER, DATABASE using backup controlfile until the

    Hello
    in 10g R2, may this work:
    RECOVER DATABASE using backup controlfile until '2009-05-21:12:47:30';
    Thank you.

    GregX wrote:
    In fact, it should say something like this:

    until time ' to_date (May 19, 2009 10:30 "," dd-mm-yyyy hh24:mi:ss') ";

    No, you needn't.
    Doc http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osrecov.htm#i1007361
    "+ If recovery up to one hour, the time is always specified using the following format, delimited by single quotes: 'YYYY-MM-' DD:HH24:MI:SS. '. + »

    Nicolas.

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

    Hi all

    Operating system: Solaris

    DB: 11 gR 2

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

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

    Here is the link of the source:

    Manage a database of physical standby

    Kind regards

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

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

    SEQUENCE # STATUS

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

    34 ACTIVE

    CURRENT 35

    ACTIVE 33

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

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

    SEQUENCE # APPLIED

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

    YES 30

    31 YES

    32 YES

    33 NO.

    34 NO.

    The database ensures in a few newspapers behind the primary.

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

    RMAN > run

    2 > {}

    3 > restore database;

    4 > up 37 sequence;

    5 > restore database;

    6 > alter database open resetlogs;

    {7 >}

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

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

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

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

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

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

    RFS [11]: effect of primary database OPEN RESETLOGS

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

    Fri Apr 04 14:07:39 2014

    Definition of embodiment of recovery target 2

    Fri Apr 04 14:07:39 2014

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

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

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

    SEQUENCE # APPLIED

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

    31 YES

    32 YES

    33 NO.

    34 NO.

    35 NO.

    36 NO.

    37 NO.

    38 NO.

    1 NO.

    2 NO.

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

    SEQUENCE # APPLIED

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

    31 YES

    YES 30

    YES 19

    YES 33

    34 YES

    35 YES

    YES 36

    37 NO.

    38 NO.

    1 YES

    2 YES

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

  • Archived not getting applied to the standby database.

    Hello

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


    Please suggest,
    Amit Sharma

    Hello

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

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

    It will be useful.

    Kind regards
    Shivananda

  • Standby database using RMAN

    Hello

    If the primary database is configured with ASM and Eve has normal file system. Can we create standby database to the primary database with RMAN?


    Kind regards...
    Sandra

    Hello;

    Ton of information on MOS

    Step by step guide on the physical creation sleep by using RMAN Duplicate in filesystem ASM ASM primary [ID 837102.1]
    Creating a physical standby to primary ASM [787793.1 ID]
    Physical creation sleep by using RMAN Duplicate without stopping primary [789370.1 ID]
    Step by step Guide to create physical standby on Normal file system for ASM primary with RMAN [838828.1 ID]
    Step by step guide to create physical standby database with RMAN [ID 469493.1]
    RMAN Duplicate to default to standby with Rman-06024 [ID 881674.1]

    and

    http://blog.yannickjaquier.com/Oracle/how-to-create-a-physical-standby-database-with-RMAN-duplicate-command.html

    Create a database waiting for a database with RMAN

    http://www.Visi.com/~mseberg/standby_creation_from_active_database_using_rman.html

    Best regards

    mseberg

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

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

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

    Kind regards
    Uwe Hesse

    http://uhesse.WordPress.com

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

    Hello

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

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

    Version of database - 10.2.0.3
    OS - Windows

    Setting of primary and Standby: -.

    SQL > show parameter standby_file_management;

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

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

    Primary data file location - D:\testdata

    Location of file data at rest - D:\TESTDATA

    Help, please.

    MRP process is running on the standby database?

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

  • The physics of the standby database Y2K problem

    Hi all

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

    Here is the content of the database pending:

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


    Need help to solve.

    Thank you
    Sandy.

    Hello;

    After after deliver you (successfully) a:

    alter database commit to switchover to physical standby with session shutdown
    

    You must:

    Shutdown the former primary and mount as a standby database
    

    Check out my step by step:

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

    Read everything (all steps) before continuing.

    Best regards

    mseberg

  • Connection to the remote database using Oracle 11 g Builder

    Hi all

    This could me stupid question, but I have installed Oracle Forms and reports 11g on Win 7 machine. I copied the file "tnsnames.ora' on the record ' ORACLE_HOME/Network/Admin". We use Oracle EBS R12 and I want to create a new report using 11 g.

    Using the report wizard after providing a simple query, we need to connect to the database. And even after the entry of TNS, I am getting error connecting to the database, following
    "REP-0501: the specified database can be connected.
    "ORA-12154: TNS: could not resolve the connect identifier specified.

    I am able to connect to the same database using the Report Builder (10.1.2.0). Is there another place where I need to set the TNS entry? How can I solve this error? Please guide...

    Kind regards
    Priyanka

    Hello

    In forms and reports 11g, default defined in tnsnames.ora is: ORACLE_INSTANCE\config.
    Please note that the ORACLE_INSTANCE is not the same as ORACLE_HOME.
    Example:
    ORACLE_HOME = D:\Oracle\Middleware\as_1
    ORACLE_INSTANCE = D:\Oracle\Middleware\instances\asinst_1

    If you set the admin TNS_ADMIN variable in the registry, you can point to a new location for tnsnames.ora

    Kind regards
    Alex

    If someone useful or appropriate please mark accordingly.

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

    Hi all

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


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

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

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

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



    How can I see this previous situation?

    Hello;

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

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

    Best regards

    mseberg

  • Switching from primary to the standby database

    Hi all

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

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

    Kind regards

    Hello again;

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

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

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

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

    I hope this helps.

    There is additional information here:

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

    Best regards

    mseberg

Maybe you are looking for