Cloning a database from data guard

Hi Gurus,
I have a situation where I am using 11g R1 11.1.0.7
Primary database in server prodsrv and active data guard read only db in drsrv host.
I have to clone a new dev database in drsrv database. since 11g R1 supports clone from active database, i thought we can use active data guard to clone a new database.
is that possible? my trial didn't work out.
released channel: s8
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 08/17/2010 01:32:36
RMAN-05531: a mounted database cannot be duplicated while data files are fuzzy
RMAN>
is that possible to run Rman active clone script to clone from active data guard? any help much appreciated.
duplicate target database to 'devdb' from active
database ;
thank you.

Hi,
Before doing any experiment.Read the concept and proceed further.Can you please go through the below link:
http://www.databasejournal.com/features/oracle/article.php/3834931/Using-Oracle-11gs-Active-Data-Guard-and-Snapshot-Standby-Features.htm
Best regards,
Rafi.
http://rafioracledba.blogspot.com

Similar Messages

  • Use of Flashback Database in Data guard environments

    11.2.0.3/RHEL 5.8
    I've come across several docs which talk about configuring FLASHBACK DATABASE in dataguard environments. We have several
    Physical standby DBs (Single Instance & RAC) running in our shop.I would like to know two or three major(common) use of FLASHBACK DATABASE in data guard environments.
    I understood one use mentioned in the below URL ie. recovering from a logical mistake
    http://uhesse.com/2010/08/06/using-flashback-in-a-data-guard-environment/
    I would like to know what are the other major/common use of Flashback Database feauture in DataGuard environment

    A couple of other uses:
    1) You can use flashback to test your DR. So you can activate your standby. Test application/network connectivity and functionality on your DR site and when done revert this database back to a physical standby. You do however have to ensure that this is allowed in your environment. In some places I have worked this would be a big no no as there were zero data loss requirements. However some companies will allow this as long as the standby is back in place within a certain time period.
    2) In the case that you have to do a failover for whatever reason, but then what was the primary site becomes available, you can flashback what was your primary to make it the standby rather than re-instatiating the database from scratch.
    Eg. You have a power outage at your primary site so you perform a failover and your standby becomes the primary. Once what was your primary site is back online, you can convert your previous primary into a standby by doing a full back/restore (or whatever method you choose) to recreate your standby again. However you also have the option of using flashback on this database and then convert it into a standby as this would potentially be quicker than re-instantiating the standby.

  • Info on licensing issues of standby databases/Oracle Data Guard

    Hi All,
    Could anyone possibly give me some information on licensing issues of standby databases/Oracle Data Guard? Links to some electronic articles or journals might be useful. I am unable to find the appropriate info and need this quite urgently for my dissertation asap as my deadline is this approaching.
    Thanks in advance

    Paul Drake posted a reply to a similar question on the Oracle-L mailing list that pointed out that the License Agreement
    http://oraclestore.oracle.com/OA_HTML/ibeCCtpSctDspRte.jsp?media=os_local_license_agreement&section=11365&minisite=10021&respid=22372&grp=STORE&language=US
    states, in part,
    "Failover: Your license for the following programs, Oracle Database (Enterprise Edition, Standard Edition or Standard Edition One) and Oracle Internet Application Server (Enterprise Edition, Standard Edition, Standard Edition One or Java Edition) includes the right to run the licensed program(s) on an unlicensed spare computer in a failover environment for up to a total of ten separate days in any given calendar year. Any use beyond the right granted in the previous sentence must be licensed separately and the same license metric must be used when licensing the program(s)."
    which seems to open a bit of wiggle room depending on how the term "run" is defined. This is probably also an area where your Oracle sales rep may have a little more flexibility to negotiate
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Flashback Database on Data Guard setup

    Hello!
    Win 2003 server - 64 bit
    Oracle 10.2.0.4
    As i have noticed Flashback Database is popular in Data Guard setups for the reinstate reason; you dont need to rebuild.
    However, im looking at Flashback for 'flashback database' reasons. Some developers has asked for a method to rollback if an release has gone bad, so my questions is;
    If i flashback database primary database, will standby also change due to redo log shipment?
    Thank u!

    After flashing primary database check CURRENT_SCN in Standby. If flashback scn is greater then current_scn, then do nothing. Otherwise, on standby:
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    FLASHBACK STANDBY DATABASE TO SCN "flashback_scn_number -1";
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

  • How to switch from data guard really time apply (redo) to archive log

    Hi
    Standby database configured with broker and applying the redo in really time; however, I want to change this to archive log apply mode without losing the broker configuration. Is it possible? If it is not possible to use broker to do archive log apply, can I remove the broker and use data guard to set up the standby to use archive log apply?
    Regards

    user3076922 wrote:
    Hi
    Standby database configured with broker and applying the redo in really time; however, I want to change this to archive log apply mode without losing the broker configuration. Is it possible? If it is not possible to use broker to do archive log apply, can I remove the broker and use data guard to set up the standby to use archive log apply?
    RegardsHi
    I think mseberg is answered correct, you can use enable/disable apply log with change of state on standby database with DGMGRL, as writen mseberg.
    or you can disable recover standby database with following script from SQL*Plus.
    SQL> alter database recover managed standby database cancel;Regards
    Mahir M. Quluzade
    www.mahir-quluzade.com

  • Rman clone ? duplicate database ? data guard ? standby database?

    hey there !!
    What is the difference between Rman clone , duplicate database , data Guard , standby db?
    1 more thing , standby database and duplicate database are same??

    RMAN Clone : you take backup of a database on one server ,then take it to other server ,again use RMAN to restore the database,A lot manual intervention is needed in this method
    RMAN DUPLICATE: same as above just that manual intervention is less. With 11gR2 there active database duplication in which you can clone your test database directly from production database without taking and then transferring the backup to test server.
    Standby Database :they are of two types Physical and logical.The setup is done using RMAN with any of the above methods.Standby is the in-sync (can have some delay) version of primary database either block by block which is physical standby configuration or SQL statment wise which is logical standby.
    Data Guard:This is also a standby configuration.Here the failover and switchover are automated with the help of DGMGRL utility.In manual standby this same can be done via SQL*PLUS using sql commands

  • Difference between physical standby database and Data Guard

    Hi guys,
    Today I attended one interview. They asked me a difference between the Oracle Physical Standby database and Oracle Dataguard?
    Upto my knowledge Oracle Physical Standby Database is one type of Standby Database can be configured using Oracle Databaguard Feature.
    Can you people calrify me on this.
    Regards,
    Vijayaraghavan K

    hello,
    yes you are right upto some extent...here is para form oracle doc
    Oracle Data Guard is the most effective and comprehensive
    data availability, data protection, and disaster recovery solution
    for enterprise databases. It provides the management, monitoring,
    and automation software infrastructure to create and maintain one
    or more synchronized standby databases to protect data from failures,
    disasters, errors, and corruptions.
    Data Guard standby databases can be located at remote disaster
    recovery sites thousands of miles away from the production data center,
    or they may be located in the same city, same campus,
    or even in the same building. If the production database
    becomes unavailable because of a planned or an unplanned outage,
    Data Guard can switch any standby database to the production role,
    thus minimizing downtime and preventing any data loss.oracle data guard is maximum availiblity solution which maintain physical standby databases and in case of failure of production can switch production role to and standby database.
    read it here
    http://www.oracle.com/technology/deploy/availability/htdocs/DataGuardOverview.html
    thanks and regards
    VD
    Edited by: Dixit on Aug 31, 2009 1:35 AM
    Edited by: Dixit on Aug 31, 2009 1:36 AM

  • OS and DB upgrades to databases under data guard

    Hello,
    Here is the scenario. I have an OPS db and a physical standby of OPS. Platform is solaris 9 with both a 9i instance and a 10g instance. I want to be able to do a switchover of the ops to the standby and then upgrade the standby. I believe that I can upgrade the OS to solaris 10 with no problems. However, I also want to be able to upgrade the 9i instance to 10gR2. Is it possible to do an upgrade of this degree to a standby under data guard? At the point that the db upgrade has completed data guard will no longer have the same configuration. This scenario is starting to send off alarms to me. Thanks in advance for your responses.

    Hi,
    Is it possible to do an upgrade of this degree to a standby under data guard? Yes. Steve Karam does it all the time, and he has these notes:
    "Dataguard's physical backups are a GREAT DR situation for a failed upgrade. You will have an exact physical copy of your database ready to switchover to if anything goes wrong with the upgrade. Basically you switch your final archive log and shut down your primary, then begin the standard upgrade.
    If something goes wrong, you can perform a failover on your standby server and you're back up with no possibility of inconsistencies since it's a physical backup. In my opinion, the only method better than DataGuard for a backup for upgrade scenario would be to use SAN tools like NetApp's snapMirror or Sun's
    Availability Suite in order to back it up; these tools can snapshot a DB in a matter of seconds and are good for this sort of situation: if the upgrade goes wrong, simply restore the snapshot.
    If you do it right, you can set up dataguard with only 5 minutes of downtime, then perform your database upgrade with only 5 minutes of downtime. I have done this method for clients in the past and they have been very happy with the results."
    Bipul Kumar has a book devoted to using Data Guard, that you may find helpful, and he notes the steps for a Data Guard-based upgrade:
    http://www.rampant-books.com/book_2004_2_dataguard.htm
    "Upgrading to Oracle10g database software in a Data Guard environment involves the following activities:
    If the Data Guard configuration is managed by Data Guard broker, the broker configuration needs to be removed using the existing version of database software. In other words, remove the Oracle9i configuration before upgrading to Oracle10g. Execute the following command after connecting to any site in the configuration using DGMGRL to remove the configuration:
    REMOVE CONFIGURATION;
    Install Oracle10g database software. The Data Guard feature is not available with the Standard edition, so the Enterprise edition must be installed. Additionally, install Oracle Enterprise Manager (OEM) 10.1 in order to manage the configuration using Data Guard Manager GUI interface, which is tightly integrated with OEM.
    The primary and standby databases should be upgraded to Oracle10g. The log management services should be stopped during the primary database upgrade. All of the redo logs generated during the database upgrade should be applied manually on each standby database. For more information on upgrading to Oracle10g, refer to the documentation, “Oracle Database Upgrade Guide 10g Release 1(10.1)”.
    Update the initialization parameter files or server parameter files on the primary database and all the standby databases to include the parameter db_unique_name. The database unique name must be identical on all the databases in a configuration.
    Once all the databases in the Data Guard configuration are upgraded to Oracle10g, the broker configuration file will have to be created in order to manage it using Data Guard broker. Execute the following command, connecting to the primary database using DGMGRL, to recreate the broker configuration file and to add standby databases"
    Also, see the docs, with their instructions:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/upgrades.htm
    Hope this helps. . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference":
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • Error in DBCA when cloning a database from template

    After answering all the questions in Database Configuration Assistant, I am getting ORA-03114 Not connected to Oracle. The cloning actually starts but stops after about 40% of the progress. I am using a template generated by the DBCA on another machine. I guess that there are some constraints about the compatibility with the target machine. Both are Windows servers, the original database is 10.2.0.4.0 and the target is 10.2.0.3.0. The log file doesn't say anything more than ORA-01092: ORACLE instance terminated. Disconnection forced, and ERROR: ORA-03114: not connected to ORACLE.

    You should better ask this question in the Database - General forum ( General Database Discussions )
    Here in this Migration forum we are pleased to answer questions about migrations from foreign databases to Oracle.
    Regards
    Wolfgang

  • Cloning of Database from RAC to non-RAC

    We have 9i RAC database with Oracle 11.5.9 application,
    Our management wants one new non-rac instance for Reporting purpose. They want Reporting instance should be re-fresh every night with automated process. I am looking for the help is there any way we can refresh the databse from RAC enviornement to non-rac enviornment. Please help us.
    Thanks
    Regards
    Raj Sachdeva
    Oracle Certified Master.

    Hi;
    Presently we are following RMAN duplicate database cloning from RAC asm to (non RAC)non asm database of size 1TB.
    If suppose if our databse is 3TB or More. then is there method that we can minimize the cloning time. If so please let me know.We have 4 Tb RAC+ASM and we also follow same method. I belive there is no faster method, at least we can not find :)
    Regard
    Helios

  • Creating standby database using data guard.

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

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

  • Switchover of a manual standby database (no data guard)

    Hi all,
    I have a standby database .
    I am using Oracle Standard Edition 10.2.0.4 / 10.2.0.5 so I have build a manual standby .
    I am able to do a failover in the case something goes wrong; I was thinking if it is possible to do a manual switchover . and failback.
    Do you thick that mounting the primary database and applying ALL archivelogs and online redolog to the standby database is enough ?
    Do you think this is a supported operation?
    How can I check the current scn of a mounted database? (v$database.current_scn shows 0 until the database is opened )
    thnk you for every answer
    Andrea

    helter_skelter wrote:
    hi,
    You can see current_scn of standby database in v$database.current_scn. It is null only on primary database if it's in mount state.that's the problem: I am unable to mount both database and to check they have the same current_scn
    not all changes are written to ARL so you can't recover standby database to exact the same SCN as primaryI thinks this is because the last changes are only recorder in online redolog, so I was thinking that a possible way to simulate a clean switchover could be as follow:
    1 - shutdown immediate the primary database on server prod1
    2 - shutdown abort the (manual) standby database on server dr2
    3 - copy archivelog, controlfiles, tempfiles, onlinelogs from primary to the standby database
    3 - copy controlfiles from standby database to primary database
    4 - open the database on server dr2. It should open "read write" cleanly (mount + recover from archivelog + recover from onlinelog + open noresetlogs )
    5 - mount the database on server prod1. It should mount as a physical standby database.
    What do you think about it?
    thanks,
    andrea

  • SID NAME FOR PRODUCTION & STANDBY DATABASE IN DATA GUARD

    Hi all,
    we are trying to implement Standby database (Physical) between two
    sites. We have a specific question regarding this:
    ==> Can we have SID of both the Database SAME..? If not, why.?
    -- We have two HOST & DB Details like this and would like to implement StandBy
    Database:
    Site-1:
    Host OS: Solaris-10 3/05 SPARC
    Host DB: Oracle10g R-2 10.2.0.2.0
    Host DB1: IGFL
    Site-2:
    Host OS: Solaris-10 3/05 SPARC
    Host DB: Oracle10g R-2 10.2.0.2.0
    Host DB2: IGFL
    Thanks & Regards,
    Rishikesh

    My 2 Cents:-
    SID can be same.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm

  • Database is configured for Data Guard

    I am run a UTF8 conversion on a development database that has been cloned from Data Guard. There is a warning in Migration Status: "Database is configured for Data Guard" What is the DMU looking at to determine this? The database is open in read-write mode and it behaving like a primary database (I run the DMU scan and run updates to fix invalid representations). I would like to know what settings I need to update.
    Is this preventing me from converting tables using CTAS? When I try to select this for all tables I get the message, "The DMU does not support the conversion method "Copy data using CREATE TABLE AS SELECT" for tables that are involved in an Oracle Streams process, like capture or apply. Use another available conversion method for the table"
    Thanks,
    Ben

    The DMU checks if the parameter DG_BROKER_START is set to true.
    The problem with CTAS is independent from Data Guard. The DMU checks for tables that:
    - are source of asynchronous Streams capture, or
    - have update conflict handlers, or
    - have DML handlers, or
    - have conflict resolution parameters
    The above tables are considered configured for Oracle Streams and are not supported by CTAS conversion method. This is because the CTAS method creates a converted copy of the table and drops the original. The DMU is not capable of moving the Streams configuration information from the old table to the new one.
    Thanks,
    Sergiusz

  • EM Job scheduling with Data Guard Database

    Hi there,
    I have an "Issue" on efficient scheduling Enterprise Manager (12.1.0.3) Jobs again databases which are protected with Oracle Data Guard.
    What I want:
    A Job should be run against the database, which has the "Primary Database Role" from Data Guard point of view.
    When I'm scheduling the job with the Database System as job target, where the Primary and Standby Databases are exisitng in, the Job is executed against all databases.
    I can put check-step as first step in the job to check the role by sql, but when I let 2 of 3 job executions ( 2 standby 1, primary ) fail, I will have o mange these failed jobs all time.
    Creating an dynamic group also isn't helping, as the property of database role can't be used for defining the group membership.
    I have taken a look at emcli but also there I dont find a possibility tho check for database role.
    Any one a idea on this topic?
    br
    Jörg

    These notes just show duplicating dbs without datagurd, i am looking for Creating a Data Guard DB with RMAN in 10 &11g.

Maybe you are looking for

  • Error Message for "Media Pending" or "Media Offline"

    This is INCREDIBLY frustrating. It is my job at a church to produce broadcast-quality segments for our local tv stations for 28 minute slots. I am working with HD-quality videos, bumpers, audio files, etc. It takes my PC about 30 minutes to render ea

  • Primary&foreign key rerlation ship

    hi folks, i am going to pick material in mm03 transaction after that i selected  classification tab choose batches for class type it displays values and clisifications now i want to find tables which is having the relation ship (primary key and forei

  • Populate Combo box on runtime

    Hi all, Please help me to populate a combo box on runtime. vcclient_no:=FK_SPLIT(vcBuffer); vcpol_ref:=FK_SPLIT(vcBuffer); vcmake:=FK_SPLIT(vcBuffer); vcmodel:=FK_SPLIT(vcBuffer); vcchassis:=FK_SPLIT(vcBuffer); i need to populate the values in these

  • 4s 6.0.1 apple id on itunes not working

    While attempting to restore my iPhone 4s 6.0.1  after backing up, i got notifcation on itunes to update 6.0.1 for bug fixes etc...when the update and restore was completed, itunes asked me for my apple id password. i tried everything and unfortunatel

  • HT2490 I want my macbook air to ask me which folder I want to download documents into. Running OS X Lion.

    Can I set my computer to ask me which folder I want to download into?