RMAN backup of STANDBY database

I have just created a STANDBY database using Oracle 8.1.7 which I am trying to backup using RMAN. This would then not impact on the PRODUCTION database, yet still give a valid backup. The problem I am having is that contrary to what I have been told and read about the `duplicate for standby` command, it does not reset the DB_ID. This has the effect that you canot register your new STANDBY database in the RMAN catalog as it sees it as the PRODUCTION instance that was used to create it. I have found several `solutions` on Metalink, which all require the use of a `resetlogs` command, so invalidating the STANDBY database. Does anyone know of a way that I can bypass this problem and carry out valid backups of the STANDBY database ?
TIA
Mark Tindall
Email: [email protected]

Mark,
The STANDBY database must have the same DBID as the production or you could not use the backups taken at a standby
database to recover the production database.
To backup the standby database with RMAN, you must use a recovery catalog. Take at look at http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96566/rcmbackp.htm#445993
for information on how to backup the standby with RMAN.
Tammy

Similar Messages

  • Rman backup with  standby database

    Hi All,
    I am looking for some suggestions for rman backup with standby  database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at  sql 'alter system archive log current' in rman  with standby as target. which gives following errors  with or without noswitch clause
    RMAN> sql 'alter system archive log current noswitch';
    sql statement: alter system archive log current noswitch
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
    RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
    ORA-01109: database not open
    Recovery Manager: Release 11.2.0.1.0
    Oracle databaes  Release 11.2.0.1.0 64 bit
    OS:RHEL 6 x86-64 bit
    Secondly, do I need to cancel manged recovery while taking rman backups on standby.
    I scanned thru MOS but could find solutions for rman with active DG.
    Thanks in advance

    726d07e6-b870-431f-8c22-a499c3ec4e0c wrote:
    Hi All,
    I am looking for some suggestions for rman backup with standby  database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at  sql 'alter system archive log current' in rman  with standby as target. which gives following errors  with or without noswitch clause
    RMAN> sql 'alter system archive log current noswitch';
    sql statement: alter system archive log current noswitch
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
    RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
    ORA-01109: database not open
    Recovery Manager: Release 11.2.0.1.0
    Oracle databaes  Release 11.2.0.1.0 64 bit
    OS:RHEL 6 x86-64 bit
    Secondly, do I need to cancel manged recovery while taking rman backups on standby.
    I scanned thru MOS but could find solutions for rman with active DG.
    Thanks in advance
    "I scanned thru MOS but could find solutions for rman with active DG."
    Howto make a consistent RMAN backup in an Standby database in Active DataGuard mode (Doc ID 1419923.1)

  • What are the steps applying incremental backups to standby database 11g

    Hi All,
    I have built 11g none ASM standby database from ASM RAC Database. Now I want to apply incremental backup to the standby database from primary but not sure how to do it. I tried following and I had an error “ORA-01103: database name 'ins-prim' in control file is not 'ins-sec'”
    1- I have configured standby database with RMAN backup.
    2- After finishing installation, I took a incremental backup from primary server(ins-prim) and moved incremental backup and control file to the standby (ins-sec) database
    3- I stared standby database nomount mode
    4- restore controlfile from “incremental backup location in standby database”
    5- alter database mount; and got this error
    “ORA-01103: database name 'ins-prim' in control file is not 'ins-sec'”
    What are the steps applying incremental backups to standby database with 11g?
    Thank you

    I build the database from backup and changed from ASM to none ASM and changed location of data files and logfiles. I think this changes makes the standby database as logical one.
    You can a have a physical standby with different locations for everything (redo/controlfiles/datafiles), ASM and no ASM etc. I have a such a configuration in production (10gR2)
    I build the database from backup
    Are you sure you have a standby ? Ins-sec receives the archivelog files from the primary ? How did you proceed to build this database ? I suspect you don't have a standby at all ! If you have duplicated the database ins-sec and ins-pri are independent databases and you won't be able to apply an incremental backup (your script was not correct but it is another story)

  • How can i do a RMAN backup of my database from the network ?

    i'm using oracle 8i.1.7.3 with win server 2003
    i want to know how can i do a RMAN backup of my database (sever machine A) from the network.
    i'd like to save the backup in another machine (the same LAN, the same OS ).
    to do that i've mapped a logical device in my comptur (z):
    when i run rman command i got this error:
    channel ORA_DISK_1: starting piece 1 at .......
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command ON ORA_DISK_1 channel at .......
    00
    ORA-19504: failed TO CREATE file "\\remote\save\"
    ORA-27040: skgfrcre: create error, unable to create file
    OSD-04002: unable to open file
    O/S-Error: (OS 123) The filename, directory name, or volume label syntax is inco
    rrect.

    Hi,
    ORA-19504: failed TO CREATE file "\\remote\save\"make sure you have created this directory and change it's ownership (chown command)to oracle.
    also make sure that oracle user has permission to write to this direcotry (chmod command)
    hope this helps
    cheers, walrus

  • Rman backup on standby - not in catalog

    I am trying to backup a standby database using a recover catalog. I connect with target as the standby database, the backup completes and finishes with:
    warning - controlfile is not current, controlfile autobackup skipped
    Recovery Manager complete.
    Which is the way it is supposed to be (I think). The prblem is that this backup does not exist in the catalog so I can't use it. Can anyone tell me how to get these backups in the catalog, or why they are not in the catalog so that the backup might actually be usefull? Thanks

    id di another backup and resync'd the catalog as part of the script and it worked.

  • RMAN backup for two databases with similar DBID

    We have two databases with SID 'uiivc' and 'uiivc1' running from one of the HP Unix 11.11 PA-RISC server. I did configured RMAN backup for both databases. But it is found that both databases have same DBID [connected to target database: UIIVC (DBID=3005194057) for UIIVC & connected to target database: UIIVC1 (DBID=3005194057) for UIIVC1] and backup configured via crontab seen running fine with full backup at weekend and archivelog backup at daily for both databases. Now my query is that will it create any issues at time of restoration since both databases have similar DBID? Does RMAN uses DBID to distinguish databases?
    Kindly help to clarifiy
    Regards
    Manoj Thakkan
    [email protected]

    Hi Tycho,
    I configured RMAN to store controlfile backups in different folders on each database.
    UIIVC database:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/hot_backups/rmanbkp/uiivc/cf%F';
    UIIVC1 database:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/hot_backups/rmanbkp/uiivc1/cf%F';
    Server output:
    uii-79:uiivc1 > ls -lrt /hot_backups/rmanbkp/uiivc
    total 43904816
    -rw-r----- 1 oracle dba 21144928256 Jul 15 10:58 8rkk68p5_1_1
    -rw-r----- 1 oracle dba 287110144 Jul 15 13:41 8tkk6sfv_1_1
    -rw-r----- 1 oracle dba 862700544 Jul 16 08:00 90kk8sel_1_1
    -rw-r----- 1 oracle dba 152350720 Jul 16 08:09 92kk8tgg_1_1
    -rw-r----- 1 oracle dba 32145408 Jul 16 08:09 cfc-3005194057-20090716-01
    uii-79:uiivc1 > ls -lrt /hot_backups/rmanbkp/uiivc1
    total 24186112
    -rw-r----- 1 oracle dba 6373965824 Jul 13 13:10 83kk1ftf_1_1
    -rw-r----- 1 oracle dba 784803840 Jul 13 13:46 85kk1j5e_1_1
    -rw-r----- 1 oracle dba 1022674944 Jul 13 23:07 87kk2kjs_1_1
    -rw-r----- 1 oracle dba 1814230016 Jul 14 23:46 89kk591i_1_1
    -rw-r----- 1 oracle dba 1211042816 Jul 15 23:06 8bkk7tc0_1_1
    -rw-r----- 1 oracle dba 1165975552 Jul 15 23:10 8ckk7tnr_1_1
    -rw-r----- 1 oracle dba 10534912 Jul 15 23:10 cfc-3005194057-20090715-00
    And I saw backups are placing in the respective folders too. So with these settings, can I safely assume there is no issues with RMAN backup and restore having similar DBID for two databases running on same server?
    Regards
    Manoj Thakkan

  • DG backup advisory , backup from standby database 11gr2

    Hi everyone
    I'm having a bit of issues with how the backups are setup in my DG environment. I have searched high and low and not really found a easy answer to how to setup your DG backups.
    One says this, another says that. So i'm asking here in the forum.
    What is the correct way to backup a DG environment? Some discussions just shows do a normal backup on the standby only, another says you must backup the controlfiles from the primary as well (this is where my problem starts)
    We recently upgraded a 11gr1 DB to 11gr2 and now the old setup does not work anymore. The old setup was doing backup on standby , and spfile + controlfile backup on primary node. this now fails with  ANU2614E Invalid sequence of function calls to Data Protection for Oracle (backup to tape)
    This particular error happens when I run a backup controlfile on the primary before the backup on the standby. If I skip the controlfile backup on the primary, the standby will backup correctly, including the controlfile + spfile.
    There is also a delete obsolete script running within each script (controlfile backup etc), might also cause issues I guess. But this worked fine in 11gr1.
    So i'm reaching out, trying to figure out the proper way to do backup, everyone says different.
    Sincerely
    Johnny

    What is the correct way to backup a DG environment?
    Neither backing from Primary or Standby is more correct than the other.
    You can use a backup taken on the Standby in order to restore and recover a Primary Database and vice versa.
    Datafiles, Control files and archive backups are interchangeable in a Data Guard environment.
    Where you backup should depend upon load. If the Primary can handle the load without causing a SLA issue then I would backup there.
    The main things I would do with Data Guard and RMAN are as follows:
    Enable Block Change Tracking.
    Always use Autobackup.
    Always use a FRA.
    Keep Flashback Database on.
    And always set this on the Primary  ( CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY; )
    ANU2614E Invalid sequence.
    Odd, If you are using Third party software along with RMAN I might check this:
    Rman fails ORA-19511 ANU2614E Invalid sequence of function calls to Data Protection for Oracle (Doc ID 1300134.1)
    Otherwise I would open a support ticket ASAP.
    Best Regards
    mseberg

  • RMAN-06053 RMAN-06025 on Standby Database

    Dear community,
    we have an problem on our standby database (11.2.0.3 64Bit). We use the following RMAN script on the standby side:
    connect target *
    crosscheck archivelog all;
    crosscheck backup;
    delete noprompt expired archivelog all;
    delete noprompt expired backup;
    recover database;
    exit;In the alertlog of the standby database we found following:
    Thu Sep 20 12:05:33 2012
    alter database recover datafile list clear
    Completed: alter database recover datafile list clear
    alter database recover datafile list
    1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20
    Completed: alter database recover datafile list
    1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20
    alter database recover datafile list
    241 , 242 , 243 , 244 , 245 , 246 , 247 , 248 , 249 , 250 , 251 , 252 , 253 , 254
    Completed: alter database recover datafile list
    241 , 242 , 243 , 244 , 245 , 246 , 247 , 248 , 249 , 250 , 251 , 252 , 253 , 254
    alter database recover if needed
    start until cancel using backup controlfile
    Media Recovery Start
    started logmerger process
    Parallel Media Recovery started with 12 slaves
    ORA-279 signalled during: alter database recover if needed
    start until cancel using backup controlfile
    Thu Sep 20 12:05:58 2012
    alter database recover cancel
    Media Recovery Canceled
    Completed: alter database recover cancel In the RMAN Logfile will be logged:
    archived log for thread 2 with sequence 3693 is already on disk as file /u03/fast_recovery_area/DBDB/archivelog/2012_09_20/2_3693_766974880.dbf
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 09/20/2012 12:05:52
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of archived log for thread 2 with sequence 2984 and starting SCN of 840244104 found to restore
    RMAN-06025: no backup of archived log for thread 2 with sequence 2983 and starting SCN of 840041348 found to restore
    RMAN-06025: no backup of archived log for thread 2 with sequence 2982 and starting SCN of 840021178 found to restore
    RMAN-06025: no backup of archived log for thread 2 with sequence 2981 and starting SCN of 839974659 found to restoreCan you please help me to understand why protocoll the database these RMAN-Errors and what is false configured?
    Best regards

    Do you mean the backup on the primary side was not been done?No. Backups created at primary site are not available to the standby of course, so that wont see them.
    The standby database is left behind and the required archivelogs for recovery are not available anymore, and it doesnt know anything about the backups.
    - you can restore the archivelogs on primary site from backups then let the standby fetch and apply them - can take a lot of time
    - you can make the backups made at primary site available to the standby and register the backup pieces - can be problematic with 3rd party backup solutions
    - you can create and incremental backup of primary site to roll forward the standby: http://docs.oracle.com/cd/E11882_01/server.112/e10700/rman.htm#CIHIAADC

  • Backup physical standby database

    Hi,
    as for a backup & restore concept we are planning to implement a physical standby database using Oracle 10g on Sun Solaris.
    The idea is to use the standby database as backup source.
    What are the required steps and constraints, do i have to stop log apply during backups or change the database state from recovery mode ?
    Thanks,
    Robert

    Hi,
    Its a good way to reduce load of backup on Live node.
    According to the your plan:
    If the live node has failes Standby will be failed over or switched over to production.
    Then through RMAN we can restore the standby database from It's backup , and the standby is back.
    Is this correct/Feasible....?
    Regards,
    Ven.

  • RMAN Backup of Standby by Grid Control

    Hello Friends,
    i am trying to take backup of standby..by rman..but when i am trying to create customize backup in grid control, it is saying that you should connect to the recovery catalog. Now i set the recovery catalog in primary database, but still it is giving same message. What should i do..?
    Vivek

    I am using seperate instance for catalog on separate machine...These are the steps ---
    1) Register primary database to the recovery catalog (REP its on other node)
    2) Now i assume that the standby will also register to the catalog, because my SID and DBID is same for primary and standby.
    3) But when i go to the grid control, and try to schedule the backup..then customize backup...i got error message--- Error - Backing up a physical standby database requires a recovery catalog.
    Please suggest solution..?

  • Manually register rman backup with oracle database 10g

    Dear All.
    I want to restore full backup of database.
    I have not configure flash_recovery_area.
    how i can manually register full rman backup of database with oracle database 10g.?
    Please help me.
    Thanks & Regards
    Ravi Kumar

    This is the 10gR2 documentation on the CATALOG command :
    http://docs.oracle.com/cd/B19306_01/backup.102/b14194/rcmsynta011.htm#sthref230
    You must be specific when stating the version you are running.  Commands may be limited or unavailable in older versions versus more recent versions of Oracle.
    Hemant K Chitale

  • Restoring backup of standby database

    Hi,
    I have an issue logging into my database as sysdba. I'm getting the error ORA-01031: Insufficient priveleges. Here are the facts surrounding the issue:
    1. I have a backup (not a clone) of my standby database.
    2. I am restoring this backup to a new server I just built.
    3. The O/S version and directory structure is exactly the same as my source.
    4. I've restored my backup to my new server. When I set the DB environment variable and then try to logon with sqlplus '/ as sysdba', I get ORA-01031.
    Here's what I've already tried:
    1. I've verified my SID and ORACLE_HOME are being set properly.
    2. TWO_TASK is not set.
    3. I have confirmed $ORACLE_HOME/rdbms/lib/config.c is correct.
    4. I've performed all the checks on Metalink Note 69642.1.
    I'm completely stumped at this time. I even rebuilt the whole thing from scratch just to ensure that I wasn't missing something. The only thing I can think of is that this is a standby database and it needs to be 'failed over'. However, I would still need to logon as sysdba for that so I'm still stuck.
    Can anyone shed some light on what else I can check? My DB version is 10.2.0.4. running RHEL 4 Update 7. I'm also running EBS 11.5.10.2.
    Thanks.
    Aliyah.

    Problem has been resolved. It turned out that I overlooked my config.c file. In there, my oracle user was not set to the dba group. So I had to change it, and relink the link. All is well now. Thanks.

  • Rman backup for oracle11g database

    Hi,
    I want to take the rman backup of 11.2.0.1.0 database, but my catalog database is 10.2.0.1. So Is it possible to take it.
    Please suggest me.
    My target database : 11.2.0.1.0
    OS: windows 2003 R2 server
    My catalog database: 10.2.0.1
    OS: windows 2003 R2 server

    here you go : http://www.comp.dit.ie/btierney/oracle11gdoc/backup.111/b28273/compat.htm

  • RMAN backups : versions of database

    I have been trying to restore an 11.1.0.7 backup to a 11.2 database. I've been having a few problems with this - it complaians about the contents of the undo tablespace. Am I capable of recovering from this situation ?
    what are the general rules about restoring backupsets from one version of oracle into another ? I've not been able to find much documentation.
    johnnied

    Hi,
    I thought that an upgrade might be necessary.Yes you have to do an upgrade if you go from 11.1.0.7 to 11.2.
    in short:
    restore
    recover
    Than start the upgrade.
    However I thought/was hoping that rman backups might have been backward compatibleYour backups are forward compatible only you have to upgrade the database.
    ( I think correctly ? that rman backups are platform independent)No this is not true (which makes me think the error you get is caused because you restored to a different OS platform?)
    You have to use the convert command in rman if you want to restore to a different OS platform.
    Please follow the link.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta018.htm#i88628
    Regards,
    Tycho

  • Slow rman backup and slow database

    Hello all,
    Whenever I run rman backup to sbt_tape, the complete database becomes slow. Also RMAN takes more than 12 hours to complete.
    RMAN script is:
    run {
    allocate channel t1 type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
    sql 'alter system switch logfile';
    backup incremental level 2 tag 'db_level2_backup'
    format'%d/INC2/%t/%s/%p'
    database diskratio=0;
    backup
    format '%d/LOG_INC2/%t/%s/%p'
    archivelog all
    delete all input;
    release channel t1;
    }The AWR shows following "Top 5 timed events"
    Event                                      Waits     Time(s)     Avg Wait(ms)     % Total Call Time     Wait Class
    db file sequential read                    817,467     17,419         21                         28.6         User I/O
    CPU time                                  14,294                              23.5     
    log file sync                            141,642     8,570         61                         14.1          Commit
    enq: TX - row lock contention              3,371     7,171       2,127                          11.8         Application
    log file parallel write                     149,486     5,356         36                           8.8           System I/OWhat can be done? Can anyone tell what wrong is happening here?
    Database is 10.2.0.4
    OS is AIX 5.3
    SGA_TARGET is 6G
    PGA_AGGREGATE_TARGET is 2G
    Total physical RAM is 12G
    EBiz application is running in the same server
    Regards,
    SA

    On my server, we needed to adjust the vmm on aix for oracle to run best. Before I did that it was really slow.
    http://www.ibm.com/developerworks/aix/library/au-aixoracle/index.html
    Specifically these as outlined in the document linked above:
    Listing 3. Changing the default setting for the lru_file_repage parameter using vmo
    root@lpar21ml16ed_pub[] > vmo -o lru_file_repage=0
    Setting lru_file_repage to 0
    root@lpar21ml16ed_pub[] >
    Setting this to 0 tells the VMM that you want to steal only file pages and not computational pages. As this will change if the numperm < minperm or > maxperm, we will make maxperm high and minperm very low. Years ago, before the lru_file_repage parameter was introduced, we used to make maxperm low. If we did this now, we would stop the application caching programs that are currently running.
    Listing 4 shows how we'll set these parameters:
    Listing 4. Setting the minperm, maxperm and maxclient parameters
    vmo -p -o minperm%=5
    vmo -p -o maxperm%=90
    vmo -p -o maxclient%=90
    We also want to take a look at minfree and maxfree. When the pages on our free list fall below minfree, the VMM will start to steal pages, which we don't want to happen until the free list has beefed up the number in maxfree. The values should be similar to the ones shown in Listing 5.
    Listing 5. Setting the minfree and maxfree parameters
    vmo -p -o minfree=960
    vmo -p -o maxfree=1088
    Edited by: user455434 on Oct 12, 2010 1:14 PM

Maybe you are looking for