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

Tags: Database

Similar Questions

  • ORA-19870: you try to restore the database on a different host with rman...

    When I try to restore datafile 1 with this script

    RUN
    {
    SET up this THAT TIME = "to_date('2012-01-01:00:00:00','YYYY-MM-DD:HH24:MI:SS')";
    RESTORE THE FILE DATA 1;
    }


    ---------------------------
    ORA-19870: error reading backup total /mnt/hgfs/2012_01_01/o1_mf_nnndf_TAG20120101T050005_7hzm1qc4_.bkp
    ORA-19612: datafile 1 not restored because of missing or corrupted data
    switch to the previous backup

    --------------------------

    RMAN > RESTORE DATAFILE 1 to this THAT TIME = "to_date('2012-01-01:00:00:00','YYYY-MM-DD:HH24:MI:SS')" Overview.

    From restoration to January 10, 12
    using channel ORA_DISK_1
    using the ORA_DISK_2 channel
    using the ORA_DISK_3 channel

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the restore command at the 13:11:19 10/01/2012
    RMAN-06026: some targets not found - abandonment of restoration
    RMAN-06023: no backup or copy of datafile 1 found to restore

    --------------------------------

    RMAN > LIST BACKUP OF THE DATA 1 Summary file;


    Backup list
    ===============
    S LV TY Device Type delay #Pieces compressed #Copies Tag key
    ------- -- -- - ----------- --------------- ------- ------- ---------- ---
    40969 A DISC 1 1 JANUARY 12 1 no TAG20120101T050005

    ----------------------------------

    and when I write "backup list '; output is here where I can see datafile 1...


    Time of accomplishment BS key Type LV size device Type elapsed time
    ------- ---- -- ---------- ----------- ------------ ---------------
    40969 full 32,28 G DISC 02:07:15 1st January 12
    BP key: situation 28432: AVAILABLE Tablet: NO Tag: TAG20120101T050005
    Part name: /mnt/hgfs/2012_01_01/o1_mf_nnndf_TAG20120101T050005_7hzm1qc4_.bkp
    List of defined backup data files 40969
    Name of file LV Type cash SNA cash time
    ---- -- ---- ---------- --------- ----
    25035430765 full 1 1 January 12 /oradata1/ISPRODDB11/datafile/o1_mf_system_331jc17w_.dbf
    2 full 25035430765 /oradata1/ISPRODDB11/datafile/o1_mf_undotbs1_331jc19r_.dbf 1 January 12
    4 integer 25035430765 /oradata1/ISPRODDB11/datafile/o1_mf_users_331jc1b2_.dbf 1 January 12
    35 full 25035430765 /oradata1/ISPRODDB11/datafile/sap.dbf 1 January 12
    56 full 25035430765 /oradata2/ISPRODDB11/datafile/TBS_UYS05.dbf 1 January 12

    ------------------------------

    and the incarnation of the list;

    RMAN > LIST INCARNATION;


    List of Incarnations of the database
    DB key Inc key STATE ID DB name DB reset reset time SNA
    ------- ------- -------- ---------------- --- ---------- ----------
    1 1 ISPRODDB 4210711725 PARENT 1 19 DECEMBER 06
    2 2 ISPRODDB 4210711725 RUNNING 564488 26 APRIL 07


    I m able to restore all data files but datafile 1 (system) and 3 (sysaux)... I don't know what to do...

    828193 wrote:
    When I put until 2012-01-01 12:00

    From back to January 10, 12
    using channel ORA_DISK_1
    using the ORA_DISK_2 channel
    using the ORA_DISK_3 channel
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the command recover at the 15:28:53 10/01/2012
    RMAN-06094: datafile 1 must be restored.

    so, if I want to restore a datafile to 2012-01-01 00:00 I need previous backupset? right?

    Fix.
    Has done restoration work when you set the until to 2012-01-01 12:00?

    Brgds
    Johan

  • database from 32 bit to 64 bit on Linux data / ORA-06553: PLS-801: internal error [56319]

    Hello

    I've migrated EBS from 32 bit to 64 bit Linux database. I followed this Metalink note.

    Note - 341880.1 how to convert a database from 32-bit to 64-bit on Linux database?

    After the move, I did the below steps and get the error below... How to solve this problem?

    ===================================================================================

    SQL > startup nomount

    ORACLE instance started.

    Total System Global Area 595591168 bytes

    Bytes of size 2098016 fixed

    415239328 variable size bytes

    163577856 of database buffers bytes

    Redo buffers 14675968 bytes

    SQL > @create_control - file.sql

    Created control file.

    SQL > alter database open resetlogs;

    Database altered.

    SQL > ALTER TABLESPACE TEMP add TEMPFILE ' / d01/prd1/prd1data/tmp1.dbf' SIZE 2000 M REUSE AUTOEXTEND OFF;

    Tablespace altered.

    SQL > @$ORACLE_HOME/olap/admin/olap.sql SYSAUX TEMP

    BEGIN

    *

    ERROR on line 1:

    ORA-06553: PLS-801: internal error [56319]

    DECLARE

    *

    ERROR on line 1:

    ORA-06553: PLS-801: internal error [56319]

    BEGIN

    *

    ERROR on line 1:

    ORA-06553: PLS-801: internal error [56319]

    ===================================================================================

    Thank you.

    Please see the solution in (ORA-06553: PLS-801: internal error [56319], ORA-06544: PL/SQL: internal error, arguments: [56319] [] [], [], [], [], [], [], ORA-00604 when using different bit datafiles that executable Oracle (Doc ID 1436552.1)).

    Thank you

    Hussein

  • Migrate the database from SE to EE

    Hi guys!

    Could you please is it possible to pass Oracle Standard edition 11.2.0.1 a Enterprise edition 11.2.0.3database? I've found so far only how to migrate the same versions but I am interested in how to handle this when a version lower than EA.

    Thank you

    MetaLink Doc ID 117048.1

    google = https://www.google.az/search?q=Migrate+database+from+SE+to+EE&oq=Migrate+database+from+SE+to+EE&aqs=chrome..69i57j69i61.627j0j7&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8#es_sm=93&espv=210&q=oracle+Upgrade+database+from+SE+to+EE

    No problem)))

    Going from Standard edition to Enterprise edition

    If you use the Oracle database Standard edition and want to upgrade to the Enterprise Edition, then proceed as follows:

    1. Make sure that the version number of your Standard Edition Server software is the same version as the Enterprise Edition Server software. For example, if your Standard Edition Server software is version 10.2.0 then you should go to release Enterprise Edition 10.2.0.
    2. Stop your database.
    3. If your operating system is Windows, then stop all services Oracle, including the OracleService SID Oracle service, where SID is the name of the instance.
    4. Uninstall the Server Standard Edition software.
    5. Install the software from the Enterprise Edition Server using the Oracle Universal Installer.Select the same Oracle home that has been used for the uninstalled Standard edition. When installing, be sure to select the Enterprise edition. When you are prompted, choose software only in the database Configuration screen.
    6. Start up of your database.

    Your database is now upgraded to the Enterprise edition.

    ----

    Ramin Hashimzade

  • Someone been able to clone a database from the clouds 12 c

    Can I duplicate a database from an RMAN script defined by the user, as long as I understand the request to connect to the auxiliary database, but I was not able to get the "Clone Database" feature under the settings menu to work using an active duplicate.

    I get an error to user name password that is identical to what you would get if you did

    RMAN target / auxiliary sys / < password > catalog rman/rman@RMAN_tns as opposed to

    RMAN target sys / < password > auxiliary sys / < password > catalog rman/rman@RMAN_tns

    When you do a manual duplication...

    I have a SR with Oracle... but no matter who has managed to make this work?

    Thank you

    with the latest patch agent... everything works...

  • 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 the database windows 11.2.0.1 on linux server

    Hi all

    is it possible to clone a database from windows to linux.

    A backup controlfile, data files, settings file.

    Kind regards
    Nag

    It's the same thing, the Clone is a copy of your data files...

    be sure to mark this thread as answered if you get what you want.

    Published by: Osama_mustafa on Sep 20, 2012 11:39

  • Moving database from 1 server to another via Data Pump - some queries

    Hello

    I am planing to move my database from one windows server to another. Part of the obligation is also to update this database 10g to 11.2.0.3. So I'm combining 2 tasks using the export / import method (via Data Pump) upgrade.

    Regarding export / import (which will be a pump full data of the database export) my plan is.

    create an empty 11.2.0.3 target database on the server (same number of control files, and redo logs etc.) ready for an import of the source database
    Q1. This will create tablespaces SYSTEM and UNDO - I presume the datapump export doesn't include these spaces of storage anyway?

    For export, I intend to simulate CONSISTENT = Y using FLASHBACK_TIME = SYSTIMESTAMP
    Q2. What is the return of flame characteristics must be active on the source database to use this knowledge should I Flashback Database enabled on the source (as opposed to other flashback features) database?

    My target is a virtual server with a single virtual processor
    Q3. Is there any point PARALLEL usinng in the import settings file (normally I would fix this number of processors - however in the case of this virtual server, it is actually onely a virtual processor)?

    For the import, I intend to use the REMAP_DATAFILE option to change the location of the data files on the target server

    Q4. If the import fails before the end, what is the best course of action? for example I just let go of data storage spaces and remake a complete import?

    Thank you
    Jim

    Jim,

    I'll take a pass on your questions:

    create an empty 11.2.0.3 target database on the server (same number of control files, and redo logs etc.) ready for an import > source database
    Q1. This will create tablespaces SYSTEM and UNDO - I presume the datapump export does not include these storage spaces > anyway?

    The system tablespace is created when you create a database, but the Data Pump will export and try to import. It will fail with tablespace exists. I am sure that the undo tablespace will be also exported and imported. If they are there, then just import will report that they already exist.

    For export, I intend to simulate CONSISTENT = Y using FLASHBACK_TIME = SYSTIMESTAMP
    Q2. What is the return of flame characteristics must be active on the source database to use this knowledge should I Flashback Database active > on the source (as opposed to other flashback features) database?

    I know not true about it. I thought that you need just enough cancel, but I hope that others will run in.

    My target is a virtual server with a single virtual processor
    Q3. Y at - it no PARALLEL point usinng in the import settings file (normally I put this on the number of processors - > however in the case of this virtual server, it is actually onely a virtual processor)?

    We recommend usually 2 times the number of processes, so 2 parallel should be ok.

    For the import, I intend to use the REMAP_DATAFILE option to change the location of the data files on the target server

    Q4. If the import fails before the end, what is the best course of action? that is, do I just give up storage of data and redo a > full import?

    It depends what is failure. Most of the failures will not stop work, but if this is the case, then most of these jobs may simply be restarted. To restart a job, you just need to know the name of the task, which is printed as you start to export/import, or you name the task in your order Data Pump. To restart, follow these steps:

    password/user Impdp attach = job_name

    If you do not name the work, the name of the job will be something like

    User.sys_import_full_01

    Hope that helps - and good luck with your migration.

    Dean

  • Creating a database from backups of the production test

    Hello Experts,

    I'm a newbie with a lot new in Oracle. I got the backup inc0 (which includes even backup controlfile) (PROD) production base taken by RMAN and asked to create a new test database (TEST) by using the backup. Can someone please give me the steps on how to restore and create the new database?

    The 10.2.0.4 basic version
    I am aware of the concept of duplicated with RMAN database, but I was asked to do not connect to the target (PROD) database while duplicating. So, I need to create the test database using the prod database backup without being connected to the PROD database. Please guide me.

    Refer
    http://arjudba.blogspot.in/2008/05/restore-and-recover-database-to-new.html
    RMAN restore database from another backup of the different database name

    When you perform a restore using backup of the production database, the db_name would be same on the auxiliary database. Once you restore and recover the database in your test server, you can change the prod db_name to test by recreating the controlfile

  • Migrate the database from standard edition to enterprise edition.

    Hello

    We use oracle 10.2.0.4 on AIX 5.3.

    We lack some databases on the standard edition, now we need to migrate these databases to enterprise edition,

    What are the steps to do it?


    Thank you.

    Salvation;

    Please find below the doc:
    How to convert the database from Standard to Enterprise Edition? [117048.1 ID]

    Respect of
    HELIOS

  • Export of databases from phpMyAdmin on another server

    Tomorrow, I need to export 3 databases from one server to another using phpMyAdmin. I'm pretty confident, I can understand, but I want to be sure to leave a copy of the files on the original server. We know if there is an option that I choose to ensure that only one copy of the files are exported?

    I did several times without any problems.  Basic steps:

    1. Open PHPMyAdmin on the new server, and create a database exactly as your old server name.
    2. Open PHPMyAdmin on the old server, and then select the database you want to export, click Export.
    3. In the export window, make sure that all the tables you want to export are selected, SQL is the export and INSERT is the export type:

    1. Now click OK, a SQL script will now generate, copy and save this in a text file on your computer.
    2. So what you've done, it's creating an export SQL that maintains the original database intact.
    3. Select PHPMyAdmin on the new server and make sure you have the new database selected.
    4. Click SQL, paste the text and click OK, all your tables and the data should be inserted.
    5. If you have a localhost configuration on your computer, and then test this first.
    6. Don't forget to modify database connection files if the server host is different, or if you use a different database name, do not forget to change the name of it in the connection files as well.
    7. I hope this helps.
  • Export the database from another pc - problem EXP-00056

    Hi all,

    I have a pc (called PC1) with installed Oracle11gR2. I want to export the database from another pc (called PC2) which is connect with PC1 with a LAN.
    I have connected PC2 to PC1 so:
    $ ssh oracle@IP_of_PC1

    and as the user oracle, I tried export then:
    index of the_user/the_pass exp = y subsidies forced is y = y line is my_dump.dmp log = my_log.log

    but he said to me:
    Export: Release 11.2.0.1.0 - Production on Tue 7 Sep 14:44:13 2010

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    EXP-00056: ORACLE error 1034
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 error: 2: no such file or directory
    EXP-00005: all authorized logon attempts failed
    EXP-00000: export completed unsuccessfully

    Why it does not work?

    Thank you much in advance.

    Run this and show me where exactly you run

    index italia/italia@dbSID exp = y subsidies forced is y = y line is dump070910italia.dmp

  • script to install the entire database from scratch?

    I have Oracle database 10g and Java code to connect to the database and the system is running.
    This database have been created over the years, incementally adding some objects, patterns, roles and so on.
    How can I create a script now that settles the entire database from scratch?
    I mean what can I create the file called "set_up_database.sql", which creates the database clone/copy of my current Production database now?

    CharlesRoos wrote:
    I intend to use ' expdp/impdp' to create the binary export file and then import it into the new instance of the database.
    These tools of import-export will create me all schemas and the rights and roles of database and created patterns will have the same password?

    Yes it is possible. But it depends on the options that you set when you use expdp/impdp.

    You can export the entire database or only some users, or even just a few tables.
    You can choose to include or exclude data during export.
    When you import, you can choose again to import with or without data. With data are possible cause only if the dmp files have included data.

    You can also rename a schema during import.
    Best way to start would be to do some exercises to imp/exp using a simple 'play' database.

  • recreate the database from an existing database script

    Hi Experts,

    I need script to re-create the database from an existing database. I tried to find in Web sites, im not able to get it.

    Please help me do this,

    Thanks in advance.

    concerning
    Sundar

    Loo in the metalink Doc ID: Note: 211905.1

  • Clonning an ASM database on the same server with different names of sid.

    Hello people!

    I tried to clone an existing database on the same host with a different name with no luck.

    I tried what 415579,1 reccomends, but, when I reached the RESTORE CONTROLFILE from clause that it fails since this process the old and the new database must be the same. I don't want that. I want a separate copy, not a database of pending. There are other people in the company who will use this database, and I just want to replicate it.

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure to modify the order db at 26/05/2009 14:51:15
    ORA-01103: the name "OLD_DB_NAME" in the control of the database file is not "NEW_DB_NAME".

    I want to just clone a database with a different name, in the same way we used to do with ALTER DATBASE BACKUP CONTROLFILE to TRACE-> COPY DB_FILES-> RECREATING CONTROLFILES WITH a DIFFERENT NAME DATABASE.

    Exp/imp it's a possible solution, but I wonder if it is just another way to clone an existing database in the same node with a different namedo with RMAN? Just as we used to with BACKUP CONTROLFILE to TRACE-> DBF_FILES-> RECREATING CONTROLFILES WITH DB NAME DIFFERENT COPY.

    It's the links I tried to follow without success.

    http://www.Oracle.com/technology/deploy/availability/PDF/asm_cloning.PDF
    Duplicate by RMAN 10 g

    and many others...

    Thanks for your help.
    Alex.

    You'll need an auxiliary copy if you restore the database to a different name.
    Take a look at the following note:
    http://jhdba.WordPress.com/2009/04/02/cloning-a-database-ASM-to-ASM/

Maybe you are looking for

  • new album created in iPhoto does not appear in iTunes when I'm syncing my phone?

    I created a new photo album in iPhoto, and this album does not appear in iTunes under the photos when I'm syncing my phone.  an album has 836 photos also but in iTunes when I sync the same album shows that there are only 736 photos... Why are the new

  • queue

    HelloMy name is Noy and I am a student in my final year and working on my final project.In the project, I have get a camera images, put them in a queue in a loop and another loop I want to get the images out of the queue and save it as an avi file.Wh

  • Windows recognizes most any USB device into a port any.

    Hi, my problem started as my Logitech Wireless Mouse M187 has not been recognized by Windows7. A box came to say A key USB has malfunctioned and windows does not recognize... Initially, the problem disappeared when I turned off for a while, then rest

  • Computers on the ghost network

    HelloI'm helping a friend with its network of small business office.I don't have all used Vista but I am strong user of XpAre behind a Netgear FR114p firewall firewall and have 3 Vista 64,PC1. PC2 and pc3. PC2 has a printer (usb5) usb which is shared

  • Smartphones Blackberry blackBerry under photo files file

    Hi all!  I just got a new Blackberry Curve 9330 through Sprint series. I was trying to download an attached image of an e-mail when I think I can hit a wrong button... or two.  Although I was able to save the image, I now have a file called "Blackber