Cloning with RMAN; Which method is easy?

DB version: 10.2.0.4
OS: Sun OS 5.10

We need to clone a DB in a new server of SunOS.

Which of the following method is fast and easy?

1. take an rman backup backup items and copy to the new database server, restore and recover.

or

2 using the command in RMAN duplicate (as shown here http://www.akadia.com/services/ora_duplicate_database_rman.html)

Method 2 is 'easier '. However, method 1 is something you need to know and practice: it will be useful for situations like "I want to restore the database from 36 days ago on another server to check some data.

Hemant K Collette

Tags: Database

Similar Questions

  • How to restore the tablespaces only 4 while cloning with RMAN?

    Hello
    How to restore the tablespaces only 4 not all areas of storage in one database to the new database of cloned all cloning with RMAN?

    I don't think it's possible to restore only 4 storage space for the database 'auxiliary '. Instead, you can use the "SKIP TABLESPACE" cloning while clause.

    You can exclude the tablespaces that you don't want the database duplicate with the SKIP TABLESPACE clause. You can exclude any tablespace except the SYSTEM tablespace or tablespaces containing rollback or undo segments.

    Refer to this http://docs.oracle.com/cd/B14117_01/server.101/b10770/rcmsynta28.htm

  • Apps cloning with RMAN

    Hello

    I do applications 11i cloning with rapidclone.

    I cloned the database with RMAN.

    According to the metalink notes 230672.1 I have to run after the script on node DB.

    Perl adcfgclone.pl dbconfig < context target file >

    However I do not have the file of context for the new instance.

    Do I have to copy the file from the source instance context (for DB), rename it and use it?

    If I run the adcfgclone.pl using the context file of source (present in the db target node) instance, it throws

    Error connection to the base.

    Platform - Oracle Ebusiness Suite 11.5.10 on Oracle enterprise Linux 4 and Oracle 9i database.

    Pls advice.

    Thank you
    Rane

    However I do not have the file of context for the new instance.

    Have you run 'perl adcfgclone.pl dbTechStack' before issuing 'perl adcfgclone.pl dbconfig '? This should create the file of context for you.

    Do I have to copy the file from the source instance context (for DB), rename it and use it?

    N °

    If I run the adcfgclone.pl using the context file of source (present in the db target node) instance, it throws
    Error connection to the base.

    This is an expected behavior given the context of the source node file cannot be used on the target node.

  • Cloning with RMAN on two different OS

    DB version: 10 gr 2

    Can I clone DB on AIX 5.3 with RMAN and re-create it in a Solaris machine (5.9)?

    Using transportable tablespaces.

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14231/tspaces.htm#i1007169

    Read the link.

    Concerning
    Asif Kabir

  • Cloning of RMAN database

    (1) while cloning with RMAN, when we say "target database testdb duplicaicate" will be RMAN apply archives that are not archived (uning "backup database archivelog all") or not.

    (2) why do we need to connect to the target (rman auxiliary target=prod@toprod = / catalog=cat@tocat (IE source db... this db we are cloning form).)

    We backup the backup in a Word with NFS must and we have information about the back of the catalog?

    Hello;

    Version of Dan is important because Oracle 11 has many additional options of duplication.

    That is to say that if you copy archive on the remote server, it will use them in Oracle 10 and 11.

    Here is my Oracle 11 - duplicating a database on a remote host with the same Directory Structure summary notes:

    http://www.Visi.com/~mseberg/RMAN/active_database_duplicating.html

    and with the structure of different directories:

    http://www.Visi.com/~mseberg/RMAN/diff_database_duplicating.html

    Best regards

    mseberg

  • Cloning by rman on a different server with the directory structure different and different DBNAME in EBS 11i using quick Clone

    Hello

    We want only DB (not apps) cloning through PROD rman, step TEST EBS 11i using quick Clone without taking downtime of PROD (i.e. No. BKP COLD).

    Source and target are on different servers, different file structure and the different database name.

    Kindly let me know the detailed procedure?

    Kind regards

    RR


    You can use this simple method that I am.


    Take backup of production with rman:

    {

    overlap archivelog all;

    backup format compressed backupset database tag PROD_FULLBKP ' / u10/PROD1_L0_BKUP_20131125/PROD_DB_set%s_piece%p_%T_%U' filesperset 15;

    SQL 'alter database backup controlfile to trace. "

    SQL 'alter system switch logfile;

    SQL 'alter system switch logfile;

    SQL 'alter system switch logfile;

    overlap archivelog all;

    backup as compressed backupset archivelog all delete input PROD_ARCHBKP format tag ' / u10//PROD1_L0_BKUP_20131125/ARCH_PROD_set%s_piece%p_%T_%U' filesperset 20;

    backup format ' / u10/PROD1_L0_BKUP_20131125/PROD_ctl_%T_%U' current controlfile;

    }


    Move the backup on the test server:

    SCP /ftp

    Modify the pfile to the test server:

    Parameters such as:

    db_name

    control_files

    modify the pfile to match the location of the test server

    Add this parameter

    db_file_name_convert = ' / PROD_datafile_location/datafile ', ' / test_datafile_location / data ', ' / PROD_datafile_location/tempfile ', ' / test_datafile_location / data.

    log_file_name_convert = ' / PROD_redofile_location/ONLINELOG ', ' / test_redofile_location / data ".

    Start the DB:

    Start the db in nomount:

    startup nomount.

    Connecting to rman and start to restore:

    Auxiliary RMAN.

    RMAN > run

    {

    allocate auxiliary channel a1 device type disk;

    allocate auxiliary channels a2 device type disk;

    allocate auxiliary channel a3 device type disk;

    allocate auxiliary channel a4 device type disk;

    data duplicated in the PREPRODUCTION backup location ' / u10/PREPRODUCTION/oraR12/clone_backup/PROD1_L0_BKUP_20131125 ";

    }

    OR

    If you specify time/perform a recovery of time based, like below:

    RMAN > run

    {

    allocate auxiliary channel a1 device type disk;

    allocate auxiliary channels a2 device type disk;

    allocate auxiliary channel a3 device type disk;

    allocate auxiliary channel a4 device type disk;

    data duplicated in PREPRODUCTION backup location 'LOCATION_OF_BACKUP', until ' TO_DATE (7 July 2012 09:45 ',' DD/MM/YYYY HH24:MI:SS') ";

    }

    Concerning

    Karim

  • Cloning of Oracle database with RMAN

    Hello dear colleagues,

    I intend to clone my PROD database to create a database of emergency with RMAN, the situation in the present case, it is that I want to use the same db_name so create spfile scp to the target server, run a level 0 backup dB, create the same file structure as well, but I'm confused because when I connect to RMAN to perform cloning as you can see...

    RMAN> connect auxiliary /
    connected to auxiliary database: prod1 (not mounted)
    
    RMAN> connect target sys/passprod1@prod1_ORI
    connected to target database: PROD1 (DBID=somenumber)
    

    RMAN> run {
    allocate auxiliary channel c1 device type disk;
    allocate channel c2 device type disk;
    duplicate target database to 'prod1';
    }
    

    -Is it possible that crushes my source PROD1 database

    -C' is ok, if I run the clone with the database of the source open with few users working? Even he will operate a backup, this will obviously have a performance impact but also the integrity of the data? I'm not sure what other files of this procedure will be used in clonning.

    -Should I enter into channel c2 backup full path to the source server?

    I enjoy any help and thanks in advance.

    Documentation:

    http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmdupdb.htm#i1008564

    Backup the basic replication does not require the same password (file)

    If duplication to a host remote and demanding that the same file names and paths created, then integrate the NOFILENAMECHECK.

    Hemant K Collette

  • Cloning of a database from 3.5 to with RMAN

    RDBMS version: 10gRel2

    We have active 3.5 to database on solaris. We need to clone this DB to another machine. We can not stop the primary DB. Thus, the cold backup is out of the question.

    We believe from a full backup of RMAN overnight. 05:00 early morning it will be done.
    I reach Office only at 09:30. So, I need all the changes (logs archived) generated after 05:00 to apply on the DB newly created.

    How you guys do this with RMAN, because backup control file in the full backup does not know about the Archives of logs generated after 05:00?

    Take the simple path: take a backup costs the controlfile (and all new ArchiveLogs) at 05:00 and copy the backup to the new server. Use this new backup controlfile.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • Which method is the best transfer songs (in Garageband) of an old, beginning to a 2013 09 macbook pro?

    Which method is the best transfer songs (in Garageband) of an older, early 09 to a 2011 macbook pro?

    Presentation of the material:

    FOR a Macbook pro 15 beginning 2011, intel core i7 at 2 ghz, memory 4 GB OS X ElCapitan

    Model name: MacBook

    Model identifier: MacBook4, 1

    Processor name: Intel Core 2 Duo

    Processor speed: 2.1 GHz

    Number of processors: 1

    Total number of cores: 2

    L2 Cache: 3 MB

    Memory: 2 GB

    Bus speed: 800 MHz

    You have the same version of GarageBand on Mac?

    Otherwise, some sounds from the old version of GarageBand may be missing in the new Mac.

    But you can simply copy the GarageBand project on a thumb drive or an external drive with enough storage and copy them on.  Or use your network - put the songs in the Public folder on the old Mac and from there copy them to your music on the recent Mac folder.

  • database clone with RMAN

    We use the Oracle 10 g R2 on Linux.

    We have a database of development which is mode without archival value. Can clone us this database without stopping it with RMAN.

    No, you can't take any form of online backup without in archivelog mode. BackupSets would be blurred as data files are backed up to the different SNA.

  • Problem creating physical standby with RMAN

    Hi guru

    Perhaps this impact that all face you when creating physical standby DB. I'm trying to create a physical standby database Using RMAN double order a server

    (pri machine) machine on standby.

    Here are the steps I followed to create the above:

    Step 1:-activate forced logging

    SQL > ALTER DATABASE FORCE LOGGING;

    Step 2:-set up a standby Redo Log

    SQL > ALTER DATABASE ADD STANDBY LOGFILE GROUP 10

    2 > ('/ oracle/dbs/log1c.rdo','/oracle/dbs/log2c.rdo') SIZE 500 M;

    Step 3:-set the parameters of primary database initialization

    SQL > create pfile='?/dbs/pfileorcl.ora' of spfile;

    Edit the pfile to add the sleep settings, shown here:

    db_unique_name = "orcl".

    LOG_ARCHIVE_CONFIG = 'DG_CONFIG = (ORCL, orcldr)'

    LOG_ARCHIVE_DEST_2 = "SERVICE = orcldr LGWR ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = orcldr'"

    * .fal_server = orcldr

    * .fal_client = orcl

    * .standby_file_management = auto

    Step 4:-activate archiving

    SQL > SHUTDOWN IMMEDIATE;

    SQL > STARTUP MOUNT;

    SQL > ALTER DATABASE ARCHIVELOG;

    SQL > ALTER DATABASE OPEN;

    Step 5:-tnsnames for eve of the configuration database

    This should be done on the primary database to edit tnsnames.ora or using the command NetCA and create by the name orcldr

    orcldr =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = Eve-svr)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = orcldr)

    )

    )

    Step 6:-backup of database and copy it to standby mode

    This backup script must be run on primary and copied to sleep on the same mount point, run these scripts with RMAN, all files in /rman_backup need to be copied in /rman_backup on the standby server.

    $rman target.

    RMAN > run

    {

    allocate channel c1 type disk;

    allocate channel c2 type disk;

    backup of database format ' / rman_backup/%U';

    ARCHIVELOG backup all the format ' / rman_backup %U ';

    backup current controlfile to Eve format ' / rman_backup/%U';

    }

    Step 7:-availability of measures database

    Installation of Oracle software

    This should be the same version and patch group with exactly same ORACLE_HOME mount point.

    Commissioning of the listener

    Create and start a listener on the database of sleep by using NetCA, or create listener.ora in $ORACLE_HOME/network/admin

    LISTENER =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = Eve-svr)(PORT = 1521))

    )

    Step 8:-set of backup database initialization parameters

    Copy the pfile file created in the database primary it renames in initorcldr.ora and change these settings:

    db_unique_name = "orcldr".

    LOG_ARCHIVE_CONFIG = 'DG_CONFIG = (orcldr, ORCL)'

    LOG_ARCHIVE_DEST_2 = "SERVICE = orcl LGWR ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = orcl'"

    * .fal_server = orcl

    * .fal_client = orcldr

    *. LOG_ARCHIVE_DEST_STATE_2 = 'ENABLE '.

    Step 9:-installation tnsnames for the primary database

    This should be done on the pending change tnsnames.ora or using the command NetCA database and create it in the name orcl

    ORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = primary-svr)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = orcl)

    )

    )

    Step 10:-copy a password file

    A password file must be created on the primary and copied to the standby site. The sys password must be the same on both sites. Copy orapworcl in $ORACLE_HOME/dbs and rename the file in orapworcldr

    Step 11:-create for Oracle mount points

    Mount point must be created on the standby server with the same convention used in primary education, which includes the location for controlfiles, redo logs, data files, destination of the newspaper Archives and alert logs.

    $ mkdir Pei/u01/app/oracle/oradata/orcl /.

    $ mkdir Pei/u01/app/oracle/flash_recovery_area /.

    $ mkdir Pei/u01/app/oracle/admin/orcl/adump

    $ mkdir Pei/u01/app/oracle/admin/orcl/bdump

    $ mkdir Pei/u01/app/oracle/admin/orcl/cdump

    $ mkdir Pei/u01/app/oracle/admin/orcl/udump

    Step 12:-use RMAN to restore the backup and standby configuration

    Connecting to RMAN and run the following command to create the database pending, this must be performed on the standby server after the backup copy and the tnsnames parameter.

    $ export ORACLE_SID = orcldr

    $ rman target sys/tiger@orcl auxiliary sys/tiger@orcldr

    RMAN > target double standby database dorecover;

    Here, I'm getting problem such as:

    While he was trying to connect to databases traget and auxiliary, I noticed that when RMAN is connected across the two databases it shows

    ORCL (DBID xyz)

    ORCL (unmounted)

    Here, in my opinion the second database must be the name of the standby database or auxiiary db name is Eve db which is orcldr in my case

    After this issue, I am faced with the second issues such as:

    in command

    target double standby database dorecover;

    After you change the command to

    RMAN > duplicate target database "sleep."

    RMAN-05520 database name mismatch

    Can u please let me know where I can be wrong

    Finally I have the problem after all this googling and thinking the same thing.

    Thanks to you all

  • With RMAN for backup, but not with the archive logs

    We run a 10.2.0.4 database and the rest 11.2.0.3. All databases are on RHEL 5.7.

    Our backups are via RMAN, with the data files, controlfiles and spfile saved to disk, then each day, it is copied off site to a backup server.

    My question is around logs archiving and RMAN.
    Our current situation is:
    -We do not save the logs to archive via RMAN. for example: backup of the list of the archivelog all; gives "specification does not match backups in the repository.
    -We set the archive_lag_target so archiving logs is produced every 30 minutes.
    -a cron job running on a remote server runs periodically to synchronize data (rsync server) the directory of archives with a remote control.
    -daily archive logs on the server host are bzip. Purge of these newspapers is scheduled for more than 3 days rman 'window of recovery '.

    I'm interested in feedback as to if our strategy around archiving logs is correct or not.

    Should we be backup logs archiving via RMAN? Are there potential problems with our approach?
    We just kept our backups in this way the DBA in the past want to see newspapers archived as opposed to it while a backupset.

    Curious to know what others are doing.

    Hello

    Welcome to OTN!

    Archivelogs with RMAN backup is a better option. When the archives are supported by RMAN, RMAN would be aware of the backup items which are required at the time of the recovery archives. You don't have to do it manually.

    On the disk space, you can delete the archives once they were saved by RMAN.

    RMAN > delete any backup archivelog entry;

    This supports the archivelogs and then remove the archives from the disk.

    If you have a dataguard configured, you can set the deletion policy 'applied on Eve', which removes the archives as and when they are applied to the database ensures there by the management of disk space again.

    RMAN > configure archivelog political of deletion to applied pending;

  • with RMAN to create ensures only one instance of node 2 rac

    Any advice on the RMAN command to take a rman full catalog not saving a rac two node 11 GR 2 and use it to create the single instance of the day BEFORE.

    The two-node RAC instance is in ASM (Linux)
    The physics of the day before is Normal (Linux) file system

    The command I get from Metalink suggests:
    RMAN target sys/passwd@primary catalog RMAN/RMAN@RMAN auxiliary sys/passwd
    RMAN > run {}
    allocate auxiliary channel C1 device type disk;
    target database duplicate for standby;
    }

    When I took the rman backup I did not catalog. Please suggest how to accomplish the same task without a catalog. Thank you

    ORA-19870: error while restoring the backup +FRA/kemetrac/autobackup/2012_01_15/s_772671393.343.7 piece
    Cannot open file + FRA/kemetrac/autobackup/2012_01_15/s_772671393.343.
    There is no such thing as "FRA".

    This isn't a connectivity problem. This error indicates that there is no such thing as the required backup file.

    First of all, it looks like you do a double normal to RMAN. In order to follow this, you should take backup of the primary database before and later, copy it to the standby server and mention the exact path in the db_file_name_convert and log_file_name_convert database settings waiting.

    You can see MOS * no step-by-step Guide to creating a physical document Eve on Normal file system for ASM primary with RMAN [838828.1 ID] *.

    Second, since you are on 11.2, you can make use of the active database feature of Oracle 11 g 2, which does not require you to initially last backup of the primary database create standby database.

  • which method is better for performance?

    Using SQLs to the front or stored procedures on the back, which method is preferable to the performance?

    I agree with Justin.

    The main performance benefits is that it is useless to send back data on the network, in addition, stored procedures are strongly coupled with the database and stored in port form. This means that data manipulation commands are treated much more effectively, that would be the case if an external program has been used. The other advantage is that stored procedures will run on the server hosting your Oracle database and that is usually much more powerful than computers running the client software.

  • headers block (block media recovery with rman)

    Hi Im following this tutorial (sound on media with rman block recovery) - im using 11 GR 2 on oel 5.5

    http://kamranagayev.WordPress.com/2010/03/18/RMAN-video-tutorial-series-performing-block-media-recovery-with-RMAN/

    I created 2 spaces and storage within an array, for example I have a table space called "users02", composed of a data file called "users02.dbf", which currently holds a table called "tbl_test01".

    If I query the table to select * from him, he returns the data inside, but when I use the following statement to determine the block header (for the purpose of the tutorial) no row is returned...
    select header_block from dba_segments where segmemt_name='tbl_test01';
    can someone help me on hwo I can find the header of the table,... is block - it possible that segment name is different in the name of the table?

    Any help would be appreciated

    806595 wrote:
    Hi Im following this tutorial (sound on media with rman block recovery) - im using 11 GR 2 on oel 5.5

    http://kamranagayev.WordPress.com/2010/03/18/RMAN-video-tutorial-series-performing-block-media-recovery-with-RMAN/

    I created 2 spaces and storage within an array, for example I have a table space called "users02", composed of a data file called "users02.dbf", which currently holds a table called "tbl_test01".

    If I query the table to select * from him, he returns the data inside, but when I use the following statement to determine the block header (for the purpose of the tutorial) no row is returned...

    select header_block from dba_segments where segmemt_name='tbl_test01';
    

    can someone help me on hwo I can find the header of the table,... is block - it possible that segment name is different in the name of the table?

    Any help would be appreciated

    PLS, try:

    select header_block from dba_segments where segment_name='TBL_TEST01';
    

Maybe you are looking for

  • On a public computer, no download to desktp, how can I get Firefox on my thimb drive?

    I recently had to switch to Firefox to access my e-mail with ATT.net , but Firefox has been corrupted and will not load. I can't access the Internet to get another download because I deleted the Explorer, it was useless to me. Now, I have no browser

  • Lenovo W540 poor network performance

    My company recently bought a Lenovo W540 (Intel i7-4700MQ @ 2.4 Ghz, 16 GB RAM, Windows 8.1 pro 64-bit) for me to use when I work remotely. I must say that this thing has been an albatross on the first day. While he usually makes evil, wifi is the wo

  • Cannot download mode xp and virtual pc for windows 7

    My old laptop died.  A new one with win 7 pro.  Try to download windows xp mode and virtual pc.  Site bloody Web keeps telling me to download and run WindowsActivationUpdate.exe.  I do, and when I click on the button continue, he wants to download me

  • Not the Droid phone transmit as well as receive WiFi?

    I buy a new IPAD device and do not use the ATT 3G connection. I was told on the Apple store if my phone could transmit Wifi I could use the network through my phone connection to access the net with my IPAD. does anyone know if the Droid is also capa

  • Excerpts recorded for INTEGRATED capture / extract of re-registration

    Hi, in the dev database recorded excerpts for INTEGRATED capture. How I can to find the list of all registrants of the excerpts? If extract processes was recorded only with command like: affects REGISTRY EXTRACT DATABASE INTEXT1 on what is it?