Copy / Clone of database on different hosts

Hello

We have a database on a production server and need to copy / clone on another server to test an upgrade of the application. Here's our backup script:
alter database backup controlfile to 'F:\BACKUP\SID\pre_bkp_control.ctl';
                                                                                                          
alter tablespace SYSTEM begin backup;
host cmd /c copy E:\ORADATA\SID\SYSTEM01.DBF F:\BACKUP\SID\SYSTEM01.DBF
alter tablespace SYSTEM end backup;

alter tablespace UNDOTBS1 begin backup;
host cmd /c copy E:\ORADATA\SID\UNDOTBS01.DBF F:\BACKUP\SID\UNDOTBS01.DBF
alter tablespace UNDOTBS1 end backup;

alter tablespace SYSAUX begin backup;
host cmd /c copy E:\ORADATA\SID\SYSAUX01.DBF F:\BACKUP\SID\SYSAUX01.DBF
alter tablespace SYSAUX end backup;

alter tablespace TEMP begin backup;                                                                       
alter tablespace TEMP end backup;  

alter tablespace INDX begin backup;
host cmd /c copy E:\ORADATA\SID\INDX01.DBF F:\BACKUP\SID\INDX01.DBF
alter tablespace INDX end backup;

alter tablespace MY_APP_TBL begin backup;
host cmd /c copy F:\ORADATA\SID\MY_APP_TBL.DBF F:\BACKUP\SID\MY_APP_TBL.DBF
alter tablespace MY_APP_TBL end backup;

alter system switch logfile;

alter database backup controlfile to 'F:\BACKUP\SID\post_bkp_control.ctl';
Now, how can I take these saved files to recreate the database to another host?

Our system on the source and the target platform is:
-Windows 2003 Server SP2
-Oracle 10g R2 (10.2.0.3)

Hope you can help me, but cordially.

http://www.Oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php

Tags: Database

Similar Questions

  • Copy Clone VM on the remote host?

    We currently have a Vcenter configuration limited to 3 guests.  I am creating a system for disaster, assuming that our main centre of recovery should fail.

    So, I need to program a clone of the VM are held every week - but then I need to copy this clone to a remote host which is not in the same data center, although it IS on the same network.

    Is there a way to achieve side manually remove a host to Vcenter and adding remote host (4th) whenever I want to copy?

    If I copy the clone on an external drive, I have to copy it again to the remote host.  It is 2 instances of copy on the network and which can last for hours.

    I want to reduce it to a single copy and perhaps even automate it with a script, but I don't know everything that the CLI in ESXi.

    Any ideas are appreciated.

    Understandable, I thought you wanted to just copy of VMDK but a clone first takes a snapshot of the virtual machine. This removes the lock on the base VMDK. ESXi can run rsync, but it is not supported. It is perhaps a bit over your head because you have no experience with Linux.

    http://www.virtuallyghetto.com/2011/02/how-to-compile-statically-linked-rsync.html

    What you could do is however if sure the source host and destination have access to the same storage. Then plan a clone to the virtual machine, but leave it turned off permanently. In the case of DR, on the other host, go to the data store, select the virtual machine folder, right-click the .vmx and say file added to the inventory. You can then restart it on another host. Or the DR host only has local storage?

  • Copy/Clone virtual computers to one ESXi host to another

    Hello world

    I am new to virtualization of questions and I would like to copy/clone VMs
    to an ESXi host to another, but I don't know what is the best way
    to achieve this is.

    The background is as follows:

    • Two identical ESXi hosts (hardware/software) running ESXi v5.1.
    • An active VM (Windows 2008 R2) on each host

    The goal is to have on the host 'A' sleep copy of the virtual machine
    running on host 'B' and 'B' have a copy sunset
    on "A".

    Ideally, the copy/clone should take place without turning off the virtual machine running and
    can be automated / on demand.

    I tried to clone a virtual machine running, and it seems to work but the VM cloned
    had lost the original network configuration.

    We want that exact copies of virtual machines ready to be awakened in the case of an ESXi
    loss of the host.

    Thank you for your help.

    Hey,.

    with licensing, I meant edition, standard, Enterprise, Enterprise Plus, to see what features are available to you. If you have answered the question

    With the server vCenter Server, shared storage and 2 guests with Standard license, you have everything you need for vSphere VMware High Availability (HA)

    Your virtual machines must be running on the shared storage. If the host fails, the virtual machine running on it will start automatically on host B. If you do not need to copy clone anything because the original VM starts right on the other host.

    Downtime virtual machine in case of a crash of the host will be the time for HA to recognize the crash (a few seconds) + at the same time that the virtual machine must start to a new host.

    Concerning

  • Duplication duplicate a database with RMAN, different host database different withou

    Hello

    I want to duplicate a database with RMAN, different host, a different database without RMAN Duplicate Technic.

    I HOST1 with a database DB1 and
    HOST2 with a DB2 database

    I have a complete backup of the DB1 in host HOST2. How can I use this backup to clone the database?

    Thank you

    see the links: -.
    http://kamranagayev.WordPress.com/2010/03/29/RMAN-video-tutorial-series-performing-disaster-recovery-with-RMAN/ (Video Tutorial)
    http://oracleinstance.blogspot.com/2010/08/disaster-recovery-using-RMAN-demo.html
    http://gavinsoorma.com/recovery-scenarios/

  • Create the copy of database no ASM to ASM database to different server

    I am looking for the way the more faster/easier create a copy of a large database (230 GB).
    The situation is the following:

    The source database is on an instance not Oracle ASM (on the machine).

    I would like to create a copy of this database and place it on computer B.

    Machine B has an ASM instance on this and I would like to as the database to use the
    Groups of ASM disks that are configured on this computer.

    I've seen examples of using "rman duplicate" to create a copy of a database
    but they do not seem to take into account cases where the source database is
    ASM no and the destination database uses ASM.

    Database for the source and destination versions are 10.2.0.1.0.

    I would appreciate any advice on how to achieve this.

    Thank you very much.

    See duplication of a database for the storage of the DSO and

    RMAN DUPLICATE DATABASE to the file system to the DSO: example

    under http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#BGBEHADD

    Hemant K Collette

  • Copy/clone DB for Oracle 11 g (need help)

    Hello guys,.

    I am a developer Oracle and prompt to convert the script to copy/clone oracle 9i and oracle 11g db. (without using RMAN)

    I spent using oracle9i db scripts and the steps are as follows

    (1) the control of the script file creation
    ALTER database backup controlfile to trace noresetlogs

    (2) creating the LINK for udump, cdump and bdump

    LN - sf/apps/oracle/diag/rdbms/SOURCEDB/SOURCEDB/bdump/apps/oracle/admin/SOURCEDB/bdump
    LN - sf/apps/oracle/diag/rdbms/SOURCEDB/SOURCEDB/cdump/apps/oracle/admin/SOURCEDB/cdump
    LN - sf/apps/oracle/diag/rdbms/SOURCEDB/SOURCEDB/udump/apps/oracle/admin/SOURCEDB/udump
    (2) take the info from the data path files in a file of source db
    Select file_name in sys.dba_data_files
    Union select sys.dba_temp_files file_name
    Union select name from v$ controlfile
    Union select Member from v$ logfile;
    (3) TURN OFF THE SOURCE DB
    (4) amending the control file

    CREATE CONTROLFILE
    ....
    LOGFILE
    DATA FILE
    RECOVER THE DATABASE
    -Database can now be opened normally.
    ALTER DATABASE OPEN;
    (5) changing the queue (STEP1) control replacing the SOURCE db DB TARGET
    Change the file data (from step2) 6) and copy of the DBfiles in the new location
    (7) COPY init.ora, init_batch.ora, init_tp.ora
    (8) run the file control (created from step 5)
    9) creating the LINK for (TARGETDB) bdump, cdump, udump
    LN - sf/apps/oracle/diag/rdbms/TARGETDB/TARGETDB/trace/apps/oracle/admin/TARGETDB/bdump
    LN - sf/apps/oracle/diag/rdbms/TARGETDB/TARGETDB/cdump/apps/oracle/admin/TARGETDB/cdump
    LN - sf/apps/oracle/diag/rdbms/TARGETDB/TARGETDB/trace/apps/oracle/admin/TARGETDB/udump
    (10) CREATE TARGETDB TO SPFILE
    (11) START UP targetDB

    Fortunately, I ran the same script for ORACLE11G it works and DB is also copied to 11G.

    Team,

    What worries me is... same scenario for 9i works very well in 11g means what's the features I can include for 11g (what I might have missed)

    NOTE: WITHOUT RMAN

    Please suggest.
    Oracle 11g backup/cloning is the same as 9i as steps above. ?  Please suggest I can include measures to which has the advantages of 11 g. (without RMAN)

    Please Guide

    S

    supersen wrote:

    It gave me 10 days to complete the script. I can't give the same script for the management team... I'm worried.

    I will include 11 g features in the script after that copy DB is finished.

    Please highlight from DB 11g features I can include

    Thank you

    S

    As mentioned earlier, all or the features to be added depends on many factors i.e. you have the use of this feature, are you allowed to use this etc etc. If you are a developer, someone see what features you used in any other 11g of your environment. Your script should do the part of cloning. Features added in the cloned part can happen later.

    Aman...

  • Poor performance during copy/clone a VM disk

    Hello

    for several days, we try to find a solution to improve performance when the computer images virtual of one ESXi (free) to another.

    Our situation is as follows:

    We have 4 different servers ESXi running, must benefit from all the material according to the compatibility of the VMWares guide. Connected via gigabit, all virtual machines network has stopped, nothing else running on the network. All virtual machines are stored locally on SATA drives.

    Now we wanted to spend a bunch of computer images virtual of one ESXi for others - but regardless of what technique, we used, we have reached a maximum. Speed about 10 MB/s (which would take several days to transfer everything).

    We tried the following:

    -Enable SSH and SCP allows you to copy the files directly between servers (using several different encryption algorithms)

    -Use Veeam FastSCP for copy files directly

    -Connect through SSH on both sides and has used a combination of tar and netcat to push raw on the network files

    -Install ProFTPD and copy files via FTP

    For all of these methods, the write speed was never over the ~10MByte/s (often it is still slower). So we thought that the networking might have a problem, that's why we tried a few transfers the.

    But even a local "dd" to transfer data of 1 local disk to another was just as slow as the transfer of network... We tried this on all the different materials of ESXi we have, with the RAID on, off, etc.

    After some googling, we discovered that this should be a problem with the VMFS that really does not support the use of "standard" file system tools That's why we tried to find a way to use the ESX-internal tools to copy/clone VM images.

    We installed a NFS server 'between' 2 ESXi servers, i.e. both have the NFS share accessible. Copy of ESXi to NFS is incredibly fast (via vSphere client, operating at gigabit full speed) - but the copy of NFS to ESXi is slow again (as before ~10MByte/s). The last test we did was use the vmkfstools command line utility to clone from the NFS share on the local disk of VMFS. This seems to be a little faster (difficult to measure due to missing statistics, seems to be ~20MByte/s), but far from a quick fix.

    What is the mechanism to move a virtual computer image on a server ESXi? Is there a way to improve the transfer speed?

    Yes, he does. As I said, this problem (poor local disk IO performance observed in ESXi, but not in the virtual machine) can be eliminated only by 'mature' raid-controller with large onboard cache, usually 512 MB - 2 GB (or storage network, of course, but now we are talking about local drives).

    It does not matter if you have a local drive attached to the controller chipset or raid - without performance cache controller is just as bad. In fact, it can be even worse on raid-controller (without cache) If you use raid5/6 to parity calculations...

  • Networking between virtual machines on different hosts

    Hello

    I need some advice on the basic approach to networking between virtual machines, each running on a different host machine.

    Consider the following configuration:

    I have a few processes that are running in a Machine virtual Ubuntu. Call this guest1.  I guest1 race inside a real computer running Windows XP SP3 and VMware Workstation 7.x; Call this host 1.

    I have a copy of this virtual machine that I put on another machine.  Call this Guest2.  I have Guest2 running on a separate physical computer, also runs Windows XP SP3 and VMware Workstation 7.x; Call this host 2.

    Now, I would like to guest1 and 2 comments to make networking with eachother.  I wish they were able to ping, SSH, etc., among others.

    This is where I am stuck. I tried setting the virtual machines to use the bridged network mode.  I tried to connect my router on each computer and manually assigning IP addresses to each host and each virtual computer.  When I do this, guest1 can Host1 and Host2 ping, but cannot ping Guest2 and vice versa.

    What is the right way to do this kind of network?  This seems like an obvious application, if you want to perform simulations on multiple virtual machines residing on different computers on the network.

    I apologize if this is the answer elsewhere, I had to dig and was not able to find the solution.

    Thanks in advance!

    Charles

    Guests must be on the same subnet, like 'real' hardware machines.

    1 when you copied the VM and then started, what did answer you the question of copy/move? (this determines if a new MAC address is applied)

    2 view each guest and ' ipconfig/all' results 'ifconfig - a' by the hosts.

    Lou

  • Migrating Forms 10g GR 11, 2 different host

    Hi all

    I'm Migrating Forms 10 g to 11 GR 2. I read a document for upgrading forms 10g to 11 GR 2, but there is no comment about the different host upgrade.

    Also, there is only one way for the upgrade. Who is using "upgrade wizard".

    Currently, here is my situation.

    1. I use forms 10g now on the server A.
    2. I installed 11 GR 2 forms on server B. It works well.
    3. There are a few files of forms compiled on ServerA.
    4. I want to migrate these forms and the configuration files in the server A to Server B.

    If I can't use "upgrade wizard", I just copy the configuration files two server (formsweb.cfg and default.env) and paste the B server configuration files. But I think that it is not good idea to migrate.

    Is there something else easy way and security for the upgrade.

    Please answer to me thanks!

    Let me start with the urgent comment: do NOT copy the configuration of earlier versions and drop them in the new environment. It's a bad idea for many reasons.  The most obvious is because new version has new settings and changes, some of which are required.

    I hope that, in your environment to version 10 you does not alter the [default] section of formsweb.cfg.  If this is the case, then you can easily copy your sections in the file of the new version.  However, before you do anything like that, make sure that you stop the Server Admin v11 and Managed Server (WLS_FORMS).  Don't try to do it with them running or your changes likely will have lost to ignored.  The default.env should be similar.  You can replace the one-for-one entries, but do not replace the entries found in the file.  Thus, for example, you can copy your old FORMS_PATH and drop it into the new file.  Comment out the existing and use your instead.  And so on.

    OK, we can all calm down now.

    The next thing to address is this statement "...". compiled form files on server A... ».  You can also copy forms of update modules / generated from one version to the other.  You need to rebuild 'X' (fmx, mmx, plx) of files in the new environment, using the new compiler.

    As for using the upgrade wizard, there are some limitations to use, needing to be on the same machine.  However, despite everything, my recommendation is that not use you it anyway.  In most cases, you will have more success and much easier to maintain the environment if you do things manually.  AU is especially useful when you have significant customizations and complex throughout the battery (SST, Web Cache, forms, reports, etc.).  For typical configuration changes, manually create the new that's going to be the way to go.  It will give you also a chance to clean by removing changes made previously which are no longer needed.

  • material resources of copy/copy/clone VM

    Hi all

    I need help for this scenario and I'll make it simple so that I don't confuse anyone with their answers.

    I have active VM with resources specific to the material by example-RAM 4 GB, 2 x NICs, CPU 1 GHz and HDD is SAN based with 200 GB. I need to copy/copy/clone, according to what is a correct terminology, resources of exact material for another 5 x new virtual machines. The operating system is not important here, as it could be Linux or Windows

    Thanks for your help

    If you use vCenter server, you can simply right-click on a virtual machine and select Clone.  I consider that you are dealing with a host of stand alon and you will not have this option in the vSphere client.  To remedy this, you can do this.

    (1) close the virtual machine

    (2) right click on the data store, and select Browse.

    (3) create a new folder for a new virtual machine.

    (4) copy the vmx and vmdk of your VM file 'model' to your new VM folder.

    (5) right-click on the vmx file to the new VM folder and select Add to the inventory.

    (6) start the virtual machine and make changes to the required guest OS.

    When you turn on the computer, virtual, you will get a message asking if the VM was copied or moved.  Select copy to avoid a problem with MAC address.

  • impdmp will make copy of the database?

    I have some basic questions... I'm not clear on a few issues related to the DBA and wanted clarification
    (1) when we say patterns of import and export, what exactly does it mean? I was thinking about importing a schema will create similar tables and all is that correct?
    (2) I created dump files by running the command expdp. and imported using impdp command in another scheme on db even. This copies only the schema or data objects too?

    Please give me an overview of this, is even to import a dump of the file as making the copy of the database?
    1) When we say import schema and export schema, what does that exactly mean? I was thinking importing a schema will create similar tables and all is that correct ?
    

    Schema export will load all data, table and other items in a dumpfile to a particular schema that you mentioned. Dump files contain essentially orders ddl performed by the import utility.

    Also read this

    Schema Mode export:-http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#i1007509

    2) I created dump files by running expdp command. and imported it using impdp command into another schema on same db. Does this copies only the schema or the data objects too?
    

    What do you mean by data objects?

    If you want to say data table then Yes.

    To import in the different schema, you can use remap_schema

    Refer to this documentation. Search with the keyword remap_schema

    http://docs.Oracle.com/CD/B28359_01/server.111/b28319/dp_import.htm

  • Guest VM XP is aware that it is running on a different host

    I installed a minimum configuration of Windows XP and installed a program call pass4sure. I activated the pass4sure on the virtual machine. If I'm running the virtual machine to another host with the same hardware platform (Dell Dimension 3100 - VMware workstation 5.5.1) as the original host, fine.

    Then, I installed VMware workstation 5.5.1 on my Gateway laptop and copied the folder containing my VM to the laptop. When I run the software pass4sure he wants to be turned on because he thinks that it is running on a new machine.

    Anyone know why this is happening? What information is passed to the guest to make them aware that it is running on a different host?

    I kept the same uuid and MAC address when copying from the guest to the laptop.

    What is interesting is that the virtual machine works very well if it runs on a different Dell 3100.

    Workstation 5.5 has somewhat limited capabilities, but you can try the following options added to your config file:

    monitor_control.vt32 = "TRUE"
    
    cpuid.1.eax="0000:0000:0000:0000:0000:1111:0100:1000"
    cpuid.1.ebx="0000:0000:0000:0010:0000:1000:0000:0000"
    cpuid.1.ecx="0000:0000:0000:0000:0000:0000:0001:0101"
    cpuid.1.edx="0000:1111:1110:1011:1111:1011:1111:1111"
    
    cpuid.80000001.ecx="0000:0000:0000:0000:0000:0000:0000:0000"
    cpuid.80000001.edx="0000:0000:0001:0000:0000:1000:0000:0000"
    
  • Vm vm on different hosts PIng - is it impossible?

    I noticed that A VM on the single host cannot ping a virtual computer on another host, even if they are connected to the same physical network and on the same subnet. Is this all just not possible, or is there a way to get there?

    So all 4 systems can see all systems except VM1 cannot see VM2 and VM2 can't see VM1 - strange! I can't think of anything in particular that can be a problem for your situation, but here are a few ideas. Maybe someone else has any better ideas?

    Assuming that your VM are Windows, you can try some commandlines as

    PathPing

    TraceRt

    Route Print

    Also check your subnet mask - for 192.168.0.x, you would normally use 255.255.255.0

    What firewall you have installed which is disabled? I saw a firewall blocking traffic coming to a single IP address (for example, the host) to another rather than pass along even if they are disabled. In this case you must leave them not at all simply turn them off.

    What version of Windows on different systems? Windows 2008 and I believe that Vista actually have some firewall settings on the user, the system, and the domain levels - if you "turn off" the firewall on the level of the user, the other levels can still block the traffic. Better to stop the firewall completely to the test service.

    What VMNet do you use? Default VMNet0 is jumpered automatically to a physical network adapter, but if you filled one of the VMNets of a virtual adapter on each host and help that instead of VMNet0, they won't see normally between them even if the subnets correspond.

    Usually, when I want the virtual machines on the same network as the host machines I completely remove virtual cards of the configuration to avoid confusion.

    Are copies of virtual machines on the other? You updated to use different IP addresses? Different MAC addresses?

    If you can copy a virtual machine to another host and run the two virtual machines on the same host that can help us fine-tune things according to what they have between them in this situation or not.

    Of course, some of the above do not match your configuration described exactly, but it is possible that you may have missed something and check these things can lead us to that.

  • Transfer of the apex to different host

    Hello

    I have the oracle database 10.2.0.1 with apex 3.1 on the production server. I need to transfer this data to the different host. How to do?

    I installed oracle 10.2.0.1 on the new host and set up the database. Now, I want to transfer data files to this new host.

    Will it be enough, or should I first install apex on this new host before you move the database files?

    Edited by: radoslawcz 2010-03-07 05:38

    There are two ways (at least that I'll point out) to do this:

    (1) If your servers have the same OS & the file structure, you should be able to move the data files of database Oracle from one to the other. You will need to make sure you get all the files - not just the data file, but files of control & redo logs as well. If you are not sure about this approach, then ask the help of someone who has done it before.

    (2) install the TOP on the new server and simply to move applications on the one you need. It's a little more time, but it may be easier if the #1 option seems too complex.

    Good luck!

    Thank you

    -Scott-

    http://spendolini.blogspot.com
    http://www.sumneva.com

  • Flight hover text on my site by default, ignoring my HTML mouseover. Two different hosts show the same bug. (Chrome showed same on one host.)

    My hover/mouseover stylesheet correctly texts show when < my custom > .css is local disk (offline), but when online, a default value "CTRL + R improves the quality of this image...". "watch instead, presumably from the browser. Sometimes a test shows my stationary custom text on the FIRST event mousover ONLY, then the default value is used.

          This behavior showed also on Crome before I banished it. (Chrome's default text was identical) Support at my usual webhost has been looking at the problem for two weeks without result. Today I loaded the same code to a different host organization (under http://waggledance.us) and I'm seeing the same default behavior, including an occurrence of the "first time okay" observation.
          I note there is a default "Main.css" on that second server, which makes me ask whether a default .css is getting slammed on my user after <my-custom>.css serves (on both hosts??).
    

    This isn't a problem on your web server, it is almost certainly a feature of your internet service. Please see this recent thread for a few possible approaches: How can I get rid of the tooltip improve boring Images? Can solve you?

Maybe you are looking for