Clone from standby  ended in ARC: Cannot archive online log based on backup

Hi
I m into scenario where my prod db is in one data center and standby is in other data center.
Both are geographically separated. I have to get a copy of prod on to standby data center side.
Sending data over the network is taking long time either with duplicate db from active db or take backup and copy over standby side and restore it.
so i thought of duplicate db from standby db which is in same data center, using 11g RMAN duplicate from active standby command.
I have simulated scenario which is as below
oracle version 11.2.0.1
os version REHL 5.4
My procedure & parameter are as below.
on standby side from where i m copying (TARGET)
1) on standby
alter database recover managed standby db cancel;
2)alter database convert to snapshot standby;
which gave me
/u01/data/DGSTD/archive/1_152_750425930.dbf
/u01/data/DGSTD/archive/1_153_750425930.dbf
*/u01/data/DGSTD/archive/1_1_752604441.dbf*
*/u01/data/DGSTD/archive/1_2_752604441.dbf*
3) alter database open;
4) alter system switch logfile;
now from rman
RMAN> connect target sys/system@DGSTD
connect auxiliary sys/system@GGR
connected to target database: DGPRM (DBID=578436102)
RMAN>
connected to auxiliary database: NOTREAL (not mounted)
RMAN>
run{
allocate channel prmy1 type disk;
allocate channel prmy2 type disk;
allocate channel prmy3 type disk;
allocate channel prmy4 type disk;
allocate channel prmy5 type disk;
allocate auxiliary channel stby1 type disk;
duplicate target database to ggr from active database
spfile
parameter_value_convert='DGSTD','GGR','/u01/data/DGSTD/','/u01/data/ggr/'
set db_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
set log_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
set 'db_unique_name'='ggr'
set 'audit_file_dest'='/u00/app/oracle/admin/ggr/adump'
set 'sga_max_size'='140m'
set 'pga_aggregate_target'='28940697'
nofilenamecheck;
and when output of rman reaches up below
Starting backup at 31-MAY-11
channel prmy1: starting datafile copy
input datafile file number=00001 name=/u01/data/DGSTD/datafile/system01.dbf
channel prmy2: starting datafile copy
input datafile file number=00002 name=/u01/data/DGSTD/datafile/sysaux01.dbf
in alert log of clone db it gives massive error saying
ARC3: Cannot archive online log based on backup controlfile
ARC2: Cannot archive online log based on backup controlfile
ARC3: Cannot archive online log based on backup controlfile
ARC2: Cannot archive online log based on backup controlfile
and it fill up whole fs. and finally duplicate command throws error.
not sure what i m missing of inside duplicate command or is it valid to duplicate database from snapshot standby.
can somebody light on it please
Edited by: user12281508 on Jun 1, 2011 10:26 AM
Edited by: user12281508 on Jun 1, 2011 10:28 AM

duplicate target database to ggr from active database
spfile
parameter_value_convert='DGSTD','GGR','/u01/data/DGSTD/','/u01/data/ggr/'
set db_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
set log_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
set 'db_unique_name'='ggr'
set 'audit_file_dest'='/u00/app/oracle/admin/ggr/adump'
set 'sga_max_size'='140m'
set 'pga_aggregate_target'='28940697'
nofilenamecheck;
}I think you should use standby cluase as
DUPLICATE TARGET DATABASE TO dup1 FOR STANDBY FROM ACTIVE DATABASE;

Similar Messages

  • Cannot find acsbackup_instance.log in the backup file

    hi,
    I had ACS 5.2 ( Evalution License ) setup installed on VMware with patch 11 when I try to restore earlier backup of ACS gives me  error "Cannot find acsbackup_instance.log in the backup file"
    I am using Filezilla FTP sever for backup transfer.
    suggest... Thanks in advance..
    Regards,
    Avi.

    That is strange!! Just make sure you are using the TFTP and not the DESK in the repository. It looks to me that you are trying to restore from the DESK and not the TFTP and it could not find the backup file int he DESK.
    If you double check the repository and you are 100% sure that the TFTP is being used then I would recommend to open a TAC case and feedback us about what the issue was if the TAC discovered the root cause of this.
    btw, what you see if you apply this command on CLI:
    show backup history
    Thanks.
    Amjad
    Rating useful replies is more useful than saying "Thank you"

  • ORA-00313: cannot open online log

    Hi All !!!
    Please Help
    % sqldba startup
    SQL*DBA: Version 6.0.33.1.1 - Production on Wed Jul 11 15:40:37 2013
    Copyright (c) Oracle Corporation 1979, 1989.  All rights reserved.
    ORACLE RDBMS V6.0.33.1.1, transaction processing option - Production
    ORACLE instance started.
    Database mounted.
    ORA-00313: cannot open online log '/u1/oradata/orac/log2orac.dbf' (log # 2, log)
    ORA-00320: cannot read log file header
    ORA-07362: sfifi: open error, unable to open file.
    UNIX System V 386/486 Error: 13: Permission denied
    Attempting to dismount database........Database dismounted.
    Attempting to shutdown instance........ORACLE instance shut down.
    SQL*DBA complete.
    Idea ?

    987301 wrote:
    Hi All !!!
    Please Help
    % sqldba startup
    SQL*DBA: Version 6.0.33.1.1 - Production on Wed Jul 11 15:40:37 2013
    Copyright (c) Oracle Corporation 1979, 1989.  All rights reserved.
    ORACLE RDBMS V6.0.33.1.1, transaction processing option - Production
    ORACLE instance started.
    Database mounted.
    ORA-00313: cannot open online log '/u1/oradata/orac/log2orac.dbf' (log # 2, log)
    ORA-00320: cannot read log file header
    ORA-07362: sfifi: open error, unable to open file.
    UNIX System V 386/486 Error: 13: Permission denied
    Attempting to dismount database........Database dismounted.
    Attempting to shutdown instance........ORACLE instance shut down.
    SQL*DBA complete.
    Idea ?
    ANCIENT Oracle  (V6?)!
    does file /u1/oradata/orac/log2orac.dbf' really exist now?
    when was last time Oracle started without error/
    What happened since then?

  • Clone from standby backup

    I have an 11g database with standby database.
    1. Can i take RMAN backup from the standby database for Cloning. (Due to some network issues i cannot use the primary backup or connect to primary )
    2. Can i use this RMAN backup to clone for development purpose.
    Thanks
    Sunil

    Sunil;
    Yes.
    The "Database Backup and Recovery Advanced User's Guide" should cover this.
    I have the Oracle 10 link and I believe this all work on Oracle 11
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm
    Also I noticed you have a ton of open questions. Please consider marking some of them closed.
    Best Regards
    mseberg

  • How to create a clone of database from STANDBY?

    How can i clone a database from physical standby database?

    Steps to clone from standby:
    1. cancle the managed recovery process on standby
    sql>alter database recover managed standby database cancel;
    2. Remember your standby databse would be in mount mode.
    3. Connect to the auxiliary instance and to the standby database through RMAN
    rman target sys/<pwd>@standby auxiliary sys/<pwd>@auxiliary-connection
    4. If 11g, then run directly duplicate from active database
    rman>duplicate target database to 'auxiliary_db_name' from active database nofilenamecheck;
    5. Once, the duplication is done, start the MRP on the standby again
    sql>alter database recover managed standby database disconnect from session;
    Ok..You are on 10g.
    Perform the above steps, but only thing is 1st you need to take the backup of the standby database first.
    Refer this Create dev database from standby database
    Already steps are given here
    Edited by: Shivananda Rao on Mar 9, 2012 9:56 AM

  • Clone from recovery catalog

    Hi,
    Every month i am doing duplicate from prod to test database,from coming month i have to change my strategy to do clone from standby instead of production.so i have created recovery catalog and registered my standby.my queston ,is it possible to do duplicate from recovery catalog to test database.if possible,this is my connection
    rman catalog rman/rman123@catdb auxiliary /;,and i should do any modification in Recovery catalog. pls suggest me to do the cloning from RC.if possible
    my database 10.2.aix server.
    Regards
    Faruk

    You can use a recovery catalog when doing a cloning / DUPLICATE.
    Note, however, the 10.2 restrictions on the DUPLICATE Command : http://docs.oracle.com/cd/B19306_01/backup.102/b14194/rcmsynta028.htm#RCMRF126
    You must be connected to both the target database and auxiliary instance. The auxiliary instance must be started with the NOMOUNT option, and the target database must be mounted or open. The target database cannot be a standby database.
    Hemant K Chitale

  • Getting time when online log switches; archiver start, ends

    Hi
    I am using "Oracle Database 10g Release 10.2.0.2.0 - 64bit Production"
    Is there a possibility to check the exact time
    -when do online redo log switch
    -when does Archiver start and finish his archiving online logs
    I would like to tune archiver performance.
    Thanks for answers
    Groxy

    In my current configuration I am getting a lot of "waits" (processes waiting form commit)
    I would like to see if there is any relation of archiving process with "waits" in my application. Redo logs currently siwtch upto 6 times /hour. My ideas is to increase redo log size from 150MB to e.g 300MB and give archiver less priority, so there are no peaks, which consumes significant amount of disk I/O and the process of archiving will be spreaded.
    Groxy

  • Clone DB from standby DB

    Hi,
    I want to clone (make a copy) of production DB, by using standby DB. How can I archive it?
    I have tried to open standby DB as "read-only" mode. Then make a backup of control file. I shutdown the standby DB, make an image copy of all data files of the standby DB to other machine. When I use the backup of control file (after modifying it to change database name, path of data files etc) to create new control file and open the database, it always asks for applying archived log, which does not exist.
    Example:
    SQL> RECOVER DATABASE USING BACKUP CONTROLFILE;
    ORA-00279: change 1099186239 generated at 05/04/2007 09:02:42 needed for thread1
    ORA-00289: suggestion : /test/arch/590619969_1_67929.arc
    ORA-00280: change 1099186239 for thread 1 is in sequence #67929
    Any ideal?

    Hi,
    You dont need to shutdown the standby to make a copy. You can do the copying while it is in read only. After you finish the copy, make the backup controlfile from production and copy it to the clone database.
    recover until a certain time for eg.,
    recover database until time '2007-05-04 00:00:00' using backup controlfile;
    apply the logs
    open the clone database using
    alter database open resetlogs;
    dont forget to put the standby in recovery.
    hth

  • Script remove archives from standby after applied

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

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

  • Deleting applied archives from standby

    Hello Guys,
    We have oracle 10g rel 2 on hp-ux
    I feel this common question for dataguard implementation
    Just want to check best way of deleting archives automatically from standby database,i have 2 methods in mind
    as below
    1)At os level shell script-finding last seqno from alert log at standby/or query v$views(select max(sequence#) from v$archived_log) ,passing it to script
    using rman as :*delete archivelog until sequence seqno;*
    or deleting at os level upto this seqno
    (Making script is not issue with this functionality and scheduling it in cron)
    2)by RMAN at standby
    set alter system set "_log_deletion_policy"='ALL' scope=spfile;
    set CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    however i have no plans to take backup at standby,still can i use above command
    is it reliable i faced some issues in past inspite of this configurations archives were not deleted at standby
    Please give your views is there any other method to delete archives automatically ,and which one is more preferred
    and reliable method/best method
    Thanks

    804719 wrote:
    Hello Guys,
    We have oracle 10g rel 2 on hp-ux
    I feel this common question for dataguard implementation
    Just want to check best way of deleting archives automatically from standby database,i have 2 methods in mind
    as below
    1)At os level shell script-finding last seqno from alert log at standby/or query v$views(select max(sequence#) from v$archived_log) ,passing it to script
    using rman as :*delete archivelog until sequence seqno;*
    or deleting at os level upto this seqno
    (Making script is not issue with this functionality and scheduling it in cron)
    2)by RMAN at standby
    set alter system set "_log_deletion_policy"='ALL' scope=spfile;
    set CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    however i have no plans to take backup at standby,still can i use above command
    is it reliable i faced some issues in past inspite of this configurations archives were not deleted at standby
    Please give your views is there any other method to delete archives automatically ,and which one is more preferred
    and reliable method/best method
    ThanksConfigure RMAN to purge archivelogs after applied on standby [ID 728053.1]
    logdeletion_policy parameter is static, so which you cant change dynamically, PRimary should bounce, If it is fine then you can go ahead.
    If you do not have time, then prepare an RMAN script to delete the archives.

  • Archive sequence number from standby does not match primary

    I have two unix servers configured, one as primary and one as standby, both in 11.2.0.2. When I run the verification scripts, I noticed that my standby's archive log sequence does not match the primary.
    From standby:
    select database_role, open_mode from v$database; Result: PHYSICAL STANDBY, MOUNTED
    select max(sequence#) from v$archived_log; Result is null
    archive log list;Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /arch/standby
    Oldest online log sequence 0
    Next log sequence to archive 0
    Current log sequence 0

    Hello;
    I don't think you have Data Guard working.
    select max(sequence#) from v$archived_log; This should return a number.
    Do an alter system switch logfile; on the primary, I'm thinking the new log never makes it to your standby.
    Once you have this working consider running something like this from your Primary:
    SELECT name as STANDBY, SEQUENCE#, applied, completion_time from v$archived_log WHERE DEST_ID = 2 AND NEXT_TIME > SYSDATE -1;
    select max(sequence#) from v$archived_log where NEXT_TIME > sysdate -1;
    You can change the first query to include both the Primary and the Standby.
    Best Regards
    mseberg

  • Procedure to delete archive log from standby server

    Hi
    We are using oracle10g(10.2.0.3) and we configured dataguard .
    I want to know procedure to delete applied archive log from standby server?
    Thanks
    With Regards
    umair

    [Delete Applied Archivelogs on Standby Database |http://emrebaransel.blogspot.com/2009/03/delete-applied-archivelogs-on-standby.html]
    http://tinyurl.com/p2krga
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Cannot power up from standby with remote

    Using the microsoft remote with XP MCE2005 I cannot wake the computer up when in standby mode, are there any settings which I need to adjust?

    the way i have it set up is to have only one user with no password set. that way, when windows starts up, it will bypass welcome screen and go to desktop of default user. if you have downloaded the .net framework, you should go into Administrative Tools and in the Users settings, disable the ASP.NET user that has been created
    as for your other query i'm not sure what else to suggest - MCE05 could restart fine from standby usng the remote when i had my mega 651 - it doesn't on my current mega-less media center setup (prays for mega 180 to arrive soon) as it won't go to standby manually (??) - but i know the remote can't wake the computer if shut down or in hibernate

  • Standby database Error in applying archives

    Hi All
    Environment:
    Oracle 8i
    Platform- HP-UX
    I have production database on HPUX box and standby database on anothe HPUX box.
    I am applying archive to standby everyday manually.
    In last week, I have added ney datafile webapp03 in Production database tablespace.
    When I apply archive to standby database. It says archive apply sucessfully but give below warning:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01195: online backup of file 25 needs more recovery to be consistent
    ORA-01110: data file 25: '/u06/oradata/vestcom/webapp03.dbf'
    Yesterday I have copied datafile from production to standby database.
    But still I am getting same warning:
    Please let me know in detail, I am totally new in this admin field.
    Please help me out for this issue:
    Thanks in Advance.
    R M

    Absolutely. First place the tablespace space in backup mode, then copy over the datafile and then end the backup mode - applying the log files should be fine now.
    HTH
    Thanks
    Chandra

  • Create dev database from standby database

    Hi folks,
    I need to create a dev database by using RMAN's method of cloning. But, since it is business hours and the production database is being used at a very high rate, I cannot carryout the cloning by connecting the primary database as it may cause performance slowness.
    The time allotted for the activity is also very short. We have a standby database created for the primary database. So, my question is it possible for me to create the dev database using the standby database ?
    Database version is 11.1.0.6 and I can go ahead with the active database feature.

    Yes, you can clone from the standby database. Follow the below steps.
    1. Check if your standby database is in sync with the primary database.
    2. Cancel the MRP on the standby database.
    alter database recover managed standby database cancel;3. connect to standby as target database and dev database as auxiliary
    rman target sys/<pwd>@<standby-alias> auxiliary sys/pwd@<dev-alias>4. Your standby database would be in mount stage and dev in nomount stage.
    5. Run the duplicate command
    rman>duplicate target database to 'dev' nofilenamecheck;6. Once done, start the MRP on the standby database
    alter database recover managed standby database disconnect from session;

Maybe you are looking for