Quick Database Clonning

We move our production data into test environments quite often with oracle datapump and rman. Backups are not an issue but the actual time consumed is in transferring backup to test environments. Can someone suggest preparing test environments quickly and reduce the backup copy time.
Buying third party tools would be secondary option.

If you have Enterprise Edition, then you should try doing incremental backups. In order to save time, you need a block change tracking file, then do a weekly level 0 incremental and a daily level 1 incremental backup. You would then need to copy the latest level 1 incremental backup every day, and the level 0 backup weekly. You need the block change tracking file to get a true incremental backup, and you need Enterprise edition to create a block change tracking file.
Another option is to keep a standby database in your test environment that you can clone from, but you need to see how well that database keeps up as a standby. It would be an optional standby, which could be used for cloning.

Similar Messages

  • Database clone error

    Hi,
    I make a database clone.
    I copied all files from start database.
    After what I recreate controlfiles into the new database, and I have an error which I don't know what is it :
    Wed Jul 28 13:22:28 2004
    CREATE CONTROLFILE SET DATABASE "IPUMAS" RESETLOGS NOARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 4
    MAXDATAFILES 250
    MAXINSTANCES 8
    MAXLOGHISTORY 907
    LOGFILE
    GROUP 1 (
    '/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo1_1.rdo',
    '/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo1_2.rdo'
    ) SIZE 100M,
    GROUP 2 (
    '/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo2_1.rdo',
    '/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo2_2.rdo'
    ) SIZE 100M,
    GROUP 3 (
    '/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo3_1.rdo',
    '/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo3_2.rdo'
    ) SIZE 100M,
    GROUP 4 (
    '/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo4_1.rdo',
    '/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo4_2.rdo'
    ) SIZE 100M
    DATAFILE
    '/appli/oradata/IPUMAS/rep01/IPUMAS_system_01.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_rollback_01.dbf',
    '/appli/oradata/IPUMAS/rep16/IPUMAS_rollback_02.dbf',
    '/appli/oradata/IPUMAS/rep01/IPUMAS_temp_01.dbf',
    '/appli/oradata/IPUMAS/rep02/IPUMAS_temp_02.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_BOREF_01.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_01.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_02.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_03.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_04.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_05.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_06.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_07.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_08.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_09.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_10.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_11.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_12.dbf',
    '/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_01.dbf',
    '/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_02.dbf',
    '/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_03.dbf',
    '/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_04.dbf',
    '/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_05.dbf',
    '/appli/oradata/IPUMAS/rep16/IPUMAS_TAB_DATA02_06.dbf',
    '/appli/oradata/IPUMAS/rep06/IPUMAS_TAB_DATA03_01.dbf',
    '/appli/oradata/IPUMAS/rep06/IPUMAS_TAB_DATA04_01.dbf',
    '/appli/oradata/IPUMAS/rep08/IPUMAS_TAB_MVT01_01.dbf',
    '/appli/oradata/IPUMAS/rep08/IPUMAS_TAB_MVT02_01.dbf',
    '/appli/oradata/IPUMAS/rep08/IPUMAS_TAB_REJ_01.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_WORK_01.dbf',
    '/appli/oradata/IPUMAS/rep12/IPUMAS_IDX_WORK_01.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_01.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_02.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_03.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_04.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_05.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_06.dbf',
    '/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_01.dbf',
    '/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_02.dbf',
    '/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_03.dbf',
    '/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_04.dbf',
    '/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_05.dbf',
    '/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_06.dbf',
    '/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_07.dbf',
    '/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_08.dbf',
    '/appli/oradata/IPUMAS/rep16/IPUMAS_IDX_DATA01_09.dbf',
    '/appli/oradata/IPUMAS/rep16/IPUMAS_IDX_DATA01_10.dbf',
    '/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_DATA02_01.dbf',
    '/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_DATA02_02.dbf',
    '/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_DATA02_03.dbf',
    '/appli/oradata/IPUMAS/rep15/IPUMAS_IDX_MVT_01.dbf',
    '/appli/oradata/IPUMAS/rep14/IPUMAS_IDX_MAS_01.dbf',
    '/appli/oradata/IPUMAS/rep14/IPUMAS_IDX_MAS_02.dbf',
    '/appli/oradata/IPUMAS/rep13/IPUMAS_IDX_MAS_03.dbf',
    '/appli/oradata/IPUMAS/rep13/IPUMAS_IDX_MAS_04.dbf',
    '/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_MAS_05.dbf',
    '/appli/oradata/IPUMAS/rep12/IPUMAS_IDX_MAS_06.dbf',
    '/appli/oradata/IPUMAS/rep01/IPUMAS_tools_01.dbf',
    '/appli/oradata/IPUMAS/rep16/IPUMAS_TAB_BLOB01_01.dbf'
    CHARACTER SET WE8ISO8859P15
    Wed Jul 28 13:22:28 2004
    ORA-1503 signalled during: CREATE CONTROLFILE SET DATABASE "IPUMAS" RESETLOGS...
    Wed Jul 28 13:22:28 2004
    alter database open resetlogs
    ORA-1507 signalled during: alter database open resetlogs
    Thank you for your help
    Nicolas.

    Hi Alurich,
    I deleted controlfile, I verified init.ora the controlfile directories is correct...
    I have always this error :
    Total System Global Area 1442754452 bytes
    Fixed Size 73620 bytes
    Variable Size 99921920 bytes
    Database Buffers 1342177280 bytes
    Redo Buffers 581632 bytes
    CREATE CONTROLFILE SET DATABASE "IPUMAS" RESETLOGS NOARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01161: database name IPMAS in file header does not match given name of
    IPUMAS
    ORA-01110: data file 56: '/appli/oradata/IPUMAS/rep16/IPUMAS_rollback_02.dbf'
    IPMAS is my start database, I copied all file, and rename database from IPMAS to IPUMAS with command line create controlfile...
    Nicolas.

  • Unable to display page after database clone

    We are currently running Application Express 4.02 using Oracle Web Logic on a Suse Linux 11 server. We had a new database set up for APEXPRD port 1542 that was working correctly with application express. We also had a database set up for APEXTST port 1542 (on a different database server). We removed the APEXPRD database from the database server using DBCA and then used OEM to clone the APEXTST instance to the production server. Our new database instance has the name APEXPRD with the port 1542. We have recycled all services on the APEX server but our APEX Production site no longer runs -- just getting unable to display page error 404. We checked our dads.conf file to ensure no changes were needed but everything appears correct there since the database name and port did not change.
    Is there anything within the database or any other configuration files that I would need to change to get APEX to work after a database clone?
    Thank you!
    Amber

    We got this resolved...We modified the dads.conf file to show the debug information in the browser window. From this we found where our cloned database had no temporary datafile. Once this datafile was created the APEX works correctly.
    Thanks!

  • DFSR Database Clone Error 0x00002336

    Hi. On my second downstream server (where I want the clone imported), I get this error message:
    Import-DfsrClone : Could not import the database clone. Error code: 0x00002336
    At line:1 char:1
    + Import-DfsrClone -Volume d:\ -Path D:\DBCLONE
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidResult: (d:\:String) [Import-DfsrClone], DfsrException
        + FullyQualifiedErrorId : Import-DfsrClone.ImportDBCloneMethodFailed,Microsoft.DistributedFileSystemReplication.Co
       mmands.ImportDfsrCloneCommand
    I followed Ned Pyle's tutorial and followed his tutorial:
    https://www.youtube.com/watch?v=0kPob4IKY_U
    The only thing different I did modify the config.xml file because on the downstream server, the paths are different. For example, D:\Shared\Public is instead, D:\Public so that is all I changed.
    What am I doing wrong?

    Hi,
    Thanks for your posting.
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support. 
    Best Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • What is Database clone? what are the ways in MS SQL Server?

    No ,I am looking for Database cloning. Is there any feature in sqlserver like this.
    Bz someone ask me that What is Database cloning in Sqlserver.

    No ,I am looking for Database cloning. Is there any feature in sqlserver like this.
    Bz someone ask me that What is Database cloning in Sqlserver.
    No there is no feature exactly to clone a database.Or a command or GUI for *cloning* specifically.
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Oracle 9i database CLONE

    Hi all,
    Can any one tell me how to clone oracle 9i database. I am new in DBA post plz help me. Or plz give me any document ID in metalink.

    You could use RMAN to clone a database:
    Steps for Creating Duplicate Database using Rman:
    •     Create an Oracle Password file for the Auxiliary (Duplicate) db.
    •     Create an entry for the duplicate db in listener.ora & tnsnames.ora
    •     Create an Initialization file for the Duplicate db & modify the following parameters:
    DB_FILE_NAME_CONVERT='/u01/oradata','/u01/oradata1/' [ specify primary db dbf location & duplicate db dbf location ]
    LOG_FILE_NAME_CONVERT='/u02/oradata/','/u02/oradata1/' [ specify primary db redolog location & duplicate db redolog location] CONTROL_FILES=(/dup/oracle/oradata/trgt/control01.ctl)
    •     Create spfile for the duplicate db
    •     Startup nomount - - - duplicate db
    •     Mount or open the primary db
    •     Take a backup of primary db including archivelogs using rman
    •     Duplicating a Database on a Remote Host with the Same Directory Structure: rman catalog=rman/17rman05@t920_ant target=/ auxiliary=sys/dbsys@dupdb
    run { DUPLICATE TARGET DATABASE TO dupdb                                            NOFILENAMECHECK; }
    •     Duplicating a Database on a Remote Host with the Different Directory Structure: DUPLICATE TARGET DATABASE TO dupdb

  • 11gR1 backup for 11gR2 database clone.

    Hi all,
    Our OS is 64 bit RHEL 5.7. On this we have EBS R12.1.3. with db version 11.1. Recently I installed EBS 12.1.3 (actually installed 12.1.1 and upgraded to 12.1.3) on a VM and upgraded its 11.1.0.7 db to 11.2.0.3. Now as I want to test the CPU patches on this instance I decided to clone the production instance here. Since this is a higher version oracle home (11.2.0), I will have to do some new steps here but am not sure what they are. I have restored the controlfile, restored and recovered the database and opened the database with STARTUP UPGRADE command. What steps should I perform next?
    Regards,
    Vinod

    I believe this is what you need to do:
    - Clone your application tier node only
    Cloning Oracle Applications Release 12 with Rapid Clone [ID 406982.1]
    Rapid Clone Documentation Resources For Release 11i and 12 [ID 799735.1]
    - Re-apply the application patches you applied for 11.2.0.3 upgrade using "nodatabaseportion"
    Interoperability Notes EBS 12.0 and 12.1 with Database 11gR2 [ID 1058763.1]
    AD Command Line Options for Release R12 [ID 1078973.1]
    - Apply CPU patches
    Oracle E-Business Suite Releases 11i and 12 Critical Patch Update Knowledge Document (April 2013) [ID 1530756.1]
    Thanks,
    Hussein

  • Can I restore the database (clone) to different Host/User account?

    Hi,
    We use RMAN catalog that backup our production database using "oracle" user (OS user is "oracle") account. We wanted to clone this database to different host and to different OS user (for example is "oradev") account. Both user has same group (oradba). Can I able to restore the control fies/data files to different user account (the account that wasn't backed up).
    Please update if you know of any documents/pdfs/links that explains this detail.
    Thanks in advance for your assistance,
    Ranga.

    Yes, the user account should be transparent assuming the backuppieces have the appropriate user/group permissions.

  • Database Clone

    Hello -
    I am running Oracle 8.1.7.4 on Solaris. I am attempting to clone a database on the same server. For example, use online backups of db1 and recover as db2 on the same server. I need to recover using the backup controlfile because I have to recover the archived logs. My problem is the database name. I am receiving an error stating that the database name in the init file is not the same as the controlfile. However, to give a new database name you have to create a new controlfile from trace. I can't do that though because I need the backup controlfile.
    Does anyone know how this can be done?
    Thanks.

    Hey Mike, you can do the following:-
    1) In the initdb2.ora (the parameter file of the cloned Database) set instance_name = db2.
    2) startup mount the clone database.
    3) Rename datafiles of db2, this is very important. Or if you are using trace of the Controlfile, make sure that you give the new locations for the datafiles.
    4) than do the shutdown immediate.
    5) at the command prompt use, "nid" utility to rename the database - db2
    6) shutdown the database again, and set db_name=db2 in the parameter file.
    7) startup the database again for users.
    Note : Just make sure that ORACLE_SID=db2 is all time during the database rename.
    -Sameer.

  • RMAN Database Clone

    When cloning a database with RMAN do all the old datafiles, control files and redo logs need to be removed or will Oracle overwrite these files
    with the backup ? I seen some documention that says to remove the old files first.
    Thanks

    user771256 wrote:
    So what your saying using the same number of datafiles and same file names just keep them all in the same directory including control files and redo logs etc..
    Does it wipe the whole file clean first then re-write the file. This database is 500GB and I do this often for our test enviroment.
    If seems like this would make more work for Oracle to do.
    What happens to the datafile if its larger then what is being restored ?
    Does Oracle clean out the old data blocks in each datafile during the clone process ?
    Thanks-I'd bet a round at the local pub that rman is simply asking the OS to open the file for output, then asking the os to write to said file, passing it the blocks to be written. Point being that rman itself is not really writing the file, but asking the OS to do it with standard I/O calls to the OS. And I believe that if the OS is asked to open a file for output, and a file with that name already exists, the OS will simply de-allocate the space occupied by the existing file, then start allocating space by its normal mechanism, having no bearing on where the pieces of the original file were located.
    So the answer would be no it does not wipe the old file (at least not in the sense of preserving the space but deleting the contents), it simply deallocates the space that it occupied. And then starts allocating space for the new file, with said space may or may not include all or parts of the space previously occupied by the old file.

  • Database clonning

    hi friends.
    we need to clone our production db to test db.test db is allready exists but it is very old. now we need to update test db to the current time
    setup is like this
    production : sun solaris 9,oracle 9i,
    test: sun solaris 9,oracle9i
    production db and test db are on different file system
    production: datafiles are on /d1
    logfiles and control files on /d2
    test: everything is in /test mount poing
    on both side db is in noarchivelog mode.
    i m trying to use exp/imp but the db size is 27 gb so i think exp/imp wont workout
    so how do i clone my db plz suggest me its realy urgent.
    Thanks in advance

    I used the following document from metalink last week.
    Note 174226.1
    How To Copy an Oracle Database To Another Machine

  • Rac to Non RAC DAtabase clone

    Hi All,
    I have a requirement to clone 2 RAC Database to Non-RAC.
    Db and Clusterware version --->10.2.0.4
    OS version -->OEL 4.6
    Nodes in cluster ---> 2
    Shared storage type --> ocfs
    I have already prepared target server with OS 4.6 linux and database specific settings.
    thanks in advance.

    on source db:
    1. alter system switch logfile; alter database begin backup;
    2. Copy all database files (ie. datafile, tempfile, control file, spfile/pfile, redo ... etc) to target server
    3. alter database end backup;
    On target server:
    0. Set cluster_database=false in the pfile
    1. Startup mount;
    2. alter database datafile '<datafile>' end backup;
    3. alter database open;
    if you want to rename datafile & rename database, you need to recreate control file.
    Edited by: user5544520 on Feb 15, 2011 3:47 AM

  • Scheduled process flows are not running automaticaly-OWB database clonning

    What I did:
    1.     Cloned the entire OWB repository database from live (bidb01.bh.xyz.com) server to new (green1.bh.xyz.com) server.
    ******     Source     New
    Physical Hostname     bidb01.bh.xyz.com     green1.bh.xyz.com
    DB Logical Hostname     xyzbidb      bidb-lh
    Service Name     BIPROD     BIPROD
    Listener Port     1521     1521
    Oracle Home of RDBMS     /app/oracle/home/product/10.2.0     /orabidb/oracle/product/10.2.0
    Oracle Home of OWB     /app/oracle/home/product/10.2.0/owb /orabidb/oracle/product/10.2.0/owb
    2.     Followed the Metalink Note 434272.1 (How To Update Warehouse Builder After A Database Cloning)
    Issue:
    Before doing the step-2, every time we put the new database up the normal process flows which run every day (10 AM, 1 AM , 2 AM , 2 PM, etc.) got executed on the production environment and hung the original processes that are being run on the production environment.
    After following the note 434272, scheduled process flows in production is working fine but in the new server it is not at all working.
    Could anyone please help me to fix this?
    Edited by: Padmanaban G on May 7, 2010 5:15 PM

    The issue was resolved by renaming the workflow. What is learned here is, we should not have same workflow name for two different workspace.

  • Quick Vector Clone Question

    The documentation for the clone() method in the Vector class says that the method will
    /**   The copy will contain a
         * reference to a clone of the internal data array, not a reference
         * to the original internal data array of this Vector object.
    */I wanted to confirm that according to the above documentation, AFTER changing or modifying the original Vector, those changes will NOT be seen / reflected in the cloned Vector.
    Furthermore, what about 2D and 3D Vectors. Vectors that may contain other Vectors as their objects. Do I need a "deepClone()" method... or will "clone() " handle all the copying for me?
    -Thanks in advance

    Hey thanks for the clarification... so this
    mutability term is a somewhat "looser" definition
    than what I had originally assumed it to be. It's certainly not part of the Java language, but it is pretty widely accepted to refer only to objects, and to mean that the state cannot be changed (or cannot be changed in a way that will be visible publicly) afte the object has been created.
    So
    getting back to the clone part of this discussion. Is
    there a relationship between how Suns choice of their
    Objects mutability vs. Suns choice of their
    respective clone() implementation? .. or are they two
    different, and/or unrelated things?Not sure what you mean here, but there would be no reason to ever make an immutable object cloneable. String, all the wrapper classes, BigInteger, these are all immutable, and so it's pointless to clone them*. Since the copies will be indistinguishable from the original, and the state can never change, there's no reason to clone them.
    Furtheremore, If I remember correctly, a Vectors
    clone method JavaDoc describes the method as
    follows:
    /** The copy will contain a reference to a
    clone of the internal data array,
    not a reference to the original internal data array
    of the Vector object.
    */...which suggests that a call such as:
    (Assume for example I have a Vector ("myOldVector")
    with 12 elements)
    Vector myNewVector = myOldVector.clone();... would produce 2 Vectors and a total of 24
    distinct Objects...No. There wil be two Vectors. Each Vector will have a reference to an array. The two arrays will be distinct. Each array will refer to the same group of objects.
    So if you clone a Vector of 12 dates, you'll still have 12 dates, but now you'll have two different arrays referring to those 12 dates. If you change the contents of one of the Dates, both Vectors will see it. If you change the contents of one of the arrays (i.e., remove an element, or point it at a different Date objectd), it will only be seen by one Vector.
    I know that the "toString()" method for a Vector will
    call each of its elements respective toString()
    method during its process, I was assuming that a
    clone() method would do the same thing after creating
    a new Vector. .. which would recursively handle any
    nested Vectors appropriately as well.Why would you assume that? The docs for Vector's toString say that it toStrings each element. The docs for Vector's clone method don't say that--they say it just clones the array (not the objects referred to by the array).
    Is this or is this not how the clone operation
    executes? ... from reading the Cloneable interface
    documentation, it suggests to me that this could be
    the case...Why not peruse the source code for Vector's clone method? It's in src.zip in the JDK download.
    *Okay, there could be a reason to clone them, but it's not something would normally be an issue when coding. For generational issues related to GC, it could theoretically be beneficial to create a new object, to be referred to by other new objects, rather than letting new objects refer to an old object. I only add this for thorughness' sake, not because it really matters for your purposes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to clone a database

    hi all
    1.how to clone a oracle database?
    2.what is the difference between cloned database and restored back up of a particular database?

    Hi.. I am giving procedure for cloning a database
    Regards
    sai
    Task :Creating cloning database
    ================================
    S no Task Result
    ===================================================================================================
    1 Shut the database & open in SQL>shut immediate
    the restric mode. SQL>startup restrict
    2 Take controlfile backup SQL>alter database backup controlfile to trace;
    3 shut cleanshutdown SQL>shut normal
    4 Go to the trace files $cd admin/jay/udump
    5 copy the reset logs file $vi clone.sql
    information & paste in
    new .sql file
    6 Change the sid sid change jay to clone
    7 Create file of environment $vi clone.env                variable
    8 Change the SID of the clone.env SID is clone
    9 Run the bashrc . clone.env
    10 Go to the admin&create directory admin$mkdir clone
    directory
    11 Create cdump bdump udump dir clone$mkdir cdump udump bdump
    ectory in the clone
    12      Create clone directory in the oradata$ mkdir clone
    oradata and copy all files which
    are in the previous directory
    (another database sid name)
    except control files
    13 Copy initjay.ora initclone.ora initclone.ora
    and change sid and comment of EXCLUSIVE
    14 Open the database in nomount SQL>startup nomount
    15 Run the script SQL>@clone.sql
    16 Open the database SQL>alter database open resetlogs
    clone.sql:
    CREATE CONTROLFILE SET DATABASE "CLONE" RESETLOGS ARCHIVELOG
    -- SET STANDBY TO MAXIMIZE PERFORMANCE
    MAXLOGFILES 50
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 226
    LOGFILE
    GROUP 1 '/ora2/oracle9/oradata/clone/redo01.log' SIZE 100M,
    GROUP 2 '/ora2/oracle9/oradata/clone/redo02.log' SIZE 100M,
    GROUP 3 '/ora2/oracle9/oradata/clone/redo03.log' SIZE 100M
    -- STANDBY LOGFILE
    DATAFILE
    '/ora2/oracle9/oradata/clone/system01.dbf',
    '/ora2/oracle9/oradata/clone/undotbs01.dbf',
    '/ora2/oracle9/oradata/clone/cwmlite01.dbf',
    '/ora2/oracle9/oradata/clone/drsys01.dbf',
    '/ora2/oracle9/oradata/clone/example01.dbf',
    '/ora2/oracle9/oradata/clone/indx01.dbf',
    '/ora2/oracle9/oradata/clone/odm01.dbf',
    '/ora2/oracle9/oradata/clone/tools01.dbf',
    '/ora2/oracle9/oradata/clone/users01.dbf',
    '/ora2/oracle9/oradata/clone/xd
    [oracle9@of32 clone]$ ls
    drsys01.dbf indx01.dbf redo01.log redo03.log temp01.dbf undotbs01.dbf xdb01.dbf
    cwmlite01.dbf example01.dbf odm01.dbf redo02.log system01.dbf tools01.dbf users01.dbf
    initclone.ora
    =============
    *.aq_tm_processes=1
    *.background_dump_dest='/ora2/oracle9/admin/clone/bdump'
    *.compatible='9.2.0.0.0'
    *.control_files='/ora2/oracle9/oradata/clone/control01.ctl','/ora2/oracle9/oradata/clone/control02.ctl','/ora2/oracle9/oradata/clone/control03.ctl'
    *.core_dump_dest='/ora2/oracle9/admin/clone/cdump'
    *.db_block_size=8192
    *.db_cache_size=33554432
    *.db_domain='orafact.com'
    *.db_file_multiblock_read_count=16
    *.db_name='clone'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=cloneXDB)','(PROTOCOL=TCP)'
    *.fast_start_mttr_target=300
    *.hash_join_enabled=TRUE
    *.instance_name='clone'
    *.java_pool_size=83886080
    *.job_queue_processes=10
    *.large_pool_size=16777216
    *.open_cursors=300
    *.pga_aggregate_target=25165824
    *.processes=150
    *.query_rewrite_enabled='FALSE'
    # *.remote_login_passwordfile='EXCLUSIVE'
    *.shared_pool_size=83886080
    *.sort_area_size=524288
    *.star_transformation_enabled='FALSE'
    *.timed_statistics=TRUE
    *.undo_management='AUTO'
    *.undo_retention=10800
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/ora2/oracle9/admin/clone/udump'
    ~

Maybe you are looking for