Clone a Database

Machine One:
Oracle11g r2 on SUSE Linux 11 standalone server. Created a database db1 on a file system. Database files are backed up in FULL to the hard drive such as /u01/oradata/backup.
Machine Two:
Oracle 11g r2 on SUSE Linux 11 standalone server.
Now, I want to clone the Machine One's backup to Machine Two so that I can use this machine as a testing server. All will be brought over including the users.
I first did the full backup to /u01/oradata/backup. How can I restore it on Machine Two?
Would you show me the detailed steps to complete this task? via dbconsole is preferred, other ways ok, too.
Thanks

To copy the backup from Machine 1 to Machine 2, you could either use
a. Tape Backups -- have the system administrator copy the folder from Machine 1 to tape and then restore to Machine 2
OR
b. FTP or SFTP -- have the system administrator enable the FTP services on Machine 2 so that Machine 1 can use the FTP or SFTP client to copy the files across.
In either case, you need to have the filesystem on Machine 2 created first. The system administrator can create the file system.
Hemant K Chitale

Similar Messages

  • Plz provide me some documents on how to clone a database using cold backup

    Dear All,
    Please provide me some documents on how to clone a database using cold backup which is in archive log.
    Also, please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
    Thanks,
    Mahipal

    Please provide me some documents on how to clone a database using cold >backup which is in archive loghttp://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
    please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
    Oracle9i Installation Guide
    Release 2 (9.2.0.1.0) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, and Sun Solaris -
    http://download.oracle.com/docs/html/A96167_01/toc.htm

  • 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

  • How to Clone the DataBase

    Hi
    How to Clone a Dabase .. ??
    When the Database is Online (Up and Running).
    I want to Clone the Database on the Same System.
    Its a testing scenario.
    In one of the interview I had faced this quesiton.
    Kindly, any one guide me in this regard,
    Thanks,
    Pavan Kumar

    This is a documentation forum.
    You need to read that documentation.
    Specifically, go to http://docs.oracle.com, select the version of the database you are working with, and put 'clone' into the search box. One link for 10gR2 is http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/startup.htm#sthref1874
    IN the future, please have the courtesy to
    1) post in an appropriate forum, as described by the title of the forum
    2) Include product (database) version and operating system
    when asking for assistance

  • Hardware doubts when i clone a database

    dear all
    i want clone my database in manual way (Note:458450.1) but my question is:
    Can i clone a DB if my hardware server destiny have less performance than the production server ???
    Here are my facts:
    source:
    - HP 64 BITS
    - 4 GB RAM
    - RHEL AS VERSION 5 - 64 bits
    - oracle 10g r2
    destiny:
    - hp 32 bits
    - 1GB RAM
    - rhel as version 4 - 32 BITS.
    - ORACLE 10G R2
    If this is possible i must to change what parameters aboot MEMORY in SPFILE.ORA?
    Thanks and apologize my english,
    cesar.

    Yes. You can do that.
    Just follow the steps given in Note:458450.1 to clone the DB to new box.
    also check the metalink Note:62290.1 -- Changing between 32-bit and 64-bit Word Sizes as the source and destination boxes wordsize is different.
    "The on-disk format for database data, redo, and undo is identical for the 32-bit and 64-bit installations of Oracle”
    The only internal structural differences between the 32-bit and 64-bit oracle installations are the following:
    · The compiled format of PL/SQL is different.
    · The storage format of user-defined types (object types, REFs, varrays, and nested tables) is based on the release of Oracle that created the database.
    · The existing storage format will be converted to the correct format transparently when necessary.
    so...
    1. copy all the control , redo , datafiles , init.ora files to destination box
    2. Start the DB in upgrade mode
    SQL>Startup Upgrade
    3. Run @$ORACLE_HOME/rdbms/admin/utlirp.sql to recompile all the pl/sql objects
    4. Check the validity of the packages and recompile If invalid.
    example: select owner, object_name, object_type from dba_objects Where status <> 'VALID'
    5. restart the DB.
    Hope this helps. Let me know if any questions.

  • How do I clone a database but still apply old archivelogs? Getting ORA-1223

    Hi,
    I'm doing a clone from PROD to DEV in 9.2.0.6 for 11.5.10.2 on Solaris 9. I worked through many issues, such as copying the files, changing the init<SID>.ora to the new DEV values, re-editing all of the env files with the new SID on the new (target) machine name, etc.
    The data is about 2 weeks old and so I was hoping to not only recover this database during the clone, but ALSO roll forward, applying all of the old archive logs to date. (Nothing changed in the middle tier save for a few
    paramaters in the xml file which I've already edited).
    Normally when I'm cloning -- I do it with fresh/recent data files so I don't care about reseting the archivelogs, I just reset them and say si-a-nerra!
    But.... now I am trying to both change the database name (SID) and apply a bunch of archvie logs (about 2 weeks worth). Note: I also recreate the control file as part of my whole process too.
    Here's the problem I am having -- after doing a startup nomount in the new location (with my new environment files, data files, etc all in place) and
    then doing @recreate.sql (which is the edited control file script from the 'backup controlfile to trace' on prod) I am getting this message:
    SQL> @recreate.sql
    CREATE CONTROLFILE SET DATABASE "DEV11i" NORESETLOGS
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01223: RESETLOGS must be specified to set a new database name
    - well OK this message makes sense to me - yes I could easily just keep the new name and say RESETLOGS, but I don't want to do this !!! I want to set the new name for the clone, and keep the logs unset so that I can then recover until cancel, applying my 2 weeks worth of logs.
    - What is the solution? Do I have to just bite the bullet and do RESETLOGS instead? (and in effect make my recovery practice seperate from my current cloning tasks)
    - Or should I change everything back to the old (original name) LIVE11i (for Prod), including the env files, data files etc .. on the new (target) machine.., recover the database completely (maybe even disconnect it from the network and rename the (target) machine to the old prod server name), and then do another whole procedure (which I'd have to find - but I know it's similar) for changing the SID...
    Please help. Thanks in advance! Marvin.
    Message was edited by:
    umfan866

    Oviwan,
    Because of getting the error message, the recreate controlfile has not
    gone through, thus I have not yet reset the logs.
    What I'm going to do for now is in fact change the script to SET
    the new name for DEV11i and RESET the logs, just to test my clone. The
    data will be 2 weeks out of date, but I'll have verified that my files from tape
    work (these files had come of the tape, and are now 2 weeks old).
    To make the DB fresher, I can just re-clone with RESET using last night's
    hot backup from PROD. That'll freshen DEV's files up no problem.
    I had wanted to test all these archive logs and see if they apply nicely,
    but I'll just have do that on a separate box (disconnected from the network)
    where I keep the DB name and machine name the same as prod.
    Thanks for your help! Marvin.

  • 10g Rel2  How to clone a database in another machine suggestions

    Hi All,
    We have 2 solaris boxes(prodn & backup) and our new requirement is to clone the production on the backup server.
    a) If my understanding is correct , does the cloning helps to backup the changes in the production database automatically ?
    b) If by any chance if production database server is down will the backup server database take over it automatically ?
    c) Or can we use grid here or any other suggestions?
    This is not a large database and we have max of 1gb Data with 25 users.
    Thanks
    Rajesh ALex

    Hi All,
    We have 2 solaris boxes(prodn & backup) and our new
    requirement is to clone the production on the backup
    server.
    a) If my understanding is correct , does the cloning
    helps to backup the changes in the production
    database automatically ?No. This is the function of RMAN
    >
    b) If by any chance if production database server is
    down will the backup server database take over it
    automatically ?
    No. This is the function of Data Guard
    c) Or can we use grid here or any other
    suggestions?1) Use RMAN (Read the Backup documentation at http://www.oracle.com/pls/db102/homepage
    2) Use Grid Control (which will use RMAN)

  • URGENT HELP How Can I clone the database only?

    Hi all
    I have two database, oracle9.2.0.6 running on RHEL4
    one is testing server and the other for the production server
    how can i clone the testing DATABSE on the productioin DATABASE?
    please help me urgent
    Thank You
    Regards

    Hello Tawfik,
    You can use RMAN duplicate with the following link for 9i.
    http://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
    If you want to clone manually then follow this thread
    Cloning 9i database manually

  • 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'
    ~

  • How to Clone a Database in Linux

    Hi,
    How can I clone my production database (on Linux Redhat) to another host running on Linux Redhat?
    Thanks,

    By searching this forum, preferably before asking this question yet again.
    I agree this includes some effort on your part.
    Here is one solution, which I retrieved by doing what you refused to do:
    Clone Database 9i
    The procedure is basically platform independent.
    Sybrand Bakker
    Senior Oracle DBA

  • During daily refresh/clone alter database rename file genrating logs under $ORACLE_HOME/dbs with name c-1437102747-20130920-16

    Did anyone have seen this behavior?
      DB version : 11.1.0.7
      OS : HP-UX Itanum
      EBS -11.5.10.2
    We are doing daily refresh/clone of a database instance from production. Recently we are seeing the growth of $ORACLE_HOME/dbs directory during this
    refresh.   During investigation we find out that
      1) When we rename the database files after database restoration. Each below command genrating the 24MB of log file under $ORACLE_HOME/dbs.
      Command :
      alter database rename file '/db02/prod/XDB.dbf' to '/db02/test/XDB.dbf';
    alter database rename file '/db02/prod/a_archive01.dbf' to '/db02/test/a_archive01.dbf';
      Logfiles under $ORACLE_HOME/dbs on target :
      -rw-r----- xxxxx 24379392 Sep 20 05:30 ./dbs/c-1437102747-20130920-02
      -rw-r----- xxxxx 24379392 Sep 20 05:30 ./dbs/c-1437102747-20130920-03
      2) After few minutes, these logs got removed from the directory.
      3) Did not find anything unusual in the alert log.

    These are controlfile autobackups.   Every time you make a physical change to the database structure, an autobackup is created.  In 11.2, the frequency is reduced -- for example if you make 5 changes in quick succession, one autobackup is created.
    CONTROLFILE AUTOBACKUP ON    would be visible when you do a SHOW ALL in rman.
    Hemant K Chitale

  • Clones and database links

    Hi,
    I have generally found that after an instance (E-Business Suite) is cloned, the database links do not work in the cloned instance, and have to be recreated.
    Is there a reason why the database links do not work, as the target instance (in the db link) and its credentials remain the same?
    Thanks
    Jai

    Hi Carlo,
    I am not the DBA, so will not be able to answer any of your questions.
    I am in the Development team and just found it odd that a DB link needs to be re-created after a clone, even though all the information remains the same. The DBA team was not able answer my question - they just said that it is a step that needs to be done. I do not know how the tnsnames entries look, but I assume that is somehow having an impact as mentioned in the prior posts.
    Thanks
    Jai

  • Clone ASM database to Non-ASM

    Hello All,
    I take a compressed backup of my ASM (apps) database with the following command
    BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL = 0 TAG = 'WEEKLY_DATABASE'
    FORMAT '/backup/rman_weekly_%d_%T.%t_s%s_p%p' DATABASE;
    I now need to clone this to an non-asm instance. When I try to restore the backup it creates the diskgroup path on the target instance for ex if the disk group is called DG1 it creates the patch '/u02/DG1/datafile/' and copies the files there with file names as 'o1_mf_apps_ts__65zyr174_.dbf'. It is not able to complete the restore as one of the datafiles cannot be restored as it keeps looking for the diskgroup path and errors out with
    'Cannot restore +DG1/datafile/xxx.dbf' no ASM instance available, cannot connect to cluster manager.
    Any pointers/help/steps would be appreciated.
    Regards

    You should rename files before restoring. Try something like the following (change paths/names with yours) :
    run {
            allocate channel d1 type disk;
            set newname for datafile 1 to '/oradata/ORCL/system.dbf';
            set newname for datafile 2 to '/oradata/ORCL/undotbs1.dbf';
            set newname for datafile 3 to '/oradata/ORCL/sysaux.dbf';
            set newname for datafile 4 to '/oradata/ORCL/users.dbf';
            restore database;
            switch datafile all;
            release channel d1;
    }

  • Clone entire database and import to other db

    how can i clone the entire database and import to another oracle database but in different server by using software of SQL Development? (include table structure & package)

    It's also not clear what you want to do. At one point you say "clone database" and in your follow-up post "clone table".
    Using either conventional or data pump export/import to clone a table or schema can be pretty easy. But cloning a database using those utilities is much more difficult. There are tonnes of things in the database that even a FULL exp/imp doesn't pick up on and move. I've posted a list of that in the MOS community.

  • Clone Repository Database

    Hi team,
    I want to copy the EM Grid Database to another server and use it for test purpose.
    We have 11g OMS and 11gR2 database.
    Whats the best method to copy the EM database to another server?
    I have two options
    1. Create new empty database, take full export of current EM DB and import to new DB.
    2. rman clone the DB to new server.
    Thanks,
    Rane

    There were major changes between 8.0 and 8.1. You certainly couldn't just install the 8.0 Context cartridge onto 8.l.

Maybe you are looking for

  • How to import catalog and create new link to folder in a new external disk

    I lost my data in my laptop. I have a back-up into an external hd. Now I would like to import the catalog and change the link of folder to external disk

  • Sales order with project system

    Hi, Is any one can explain for the mentioned scenerio pl: In production cost by Sales order, is production / process order will be linked for production booking or always is it best to implement the make to order with project systems - Sales & Proces

  • Tag library 'not found' in jsp page. why?

    I'm having a big problem with jsp/tag libraries using oc4j. One particular tag library is not being 'found' for some mysterious reason. The particulars follow: kwTags.jar is the jar file containing the tag classes. It definitely exists in WEB-INF/lib

  • NIO on Solaris lost selection key

    Using non-blocking NIO on Solaris 8, when I have read from a channel and switch to writing using key.interestOps(SelectionKey.OP_WRITE) the next time I attempt a select call there are no keys returned. The exact same code running on Win XP works fine

  • Compiling kernel 2.6.7

    I'm compiling my kernel for additioanl support. However, I'm missing something. What selections should I choose to enable the Fn+F1 Fn+F2 on my keyboard to control the brightness. When I do a clean install of archlinux, they work automatically and ve