Cloning of a database

Hello

I have a backup of a database in a tar ball.
I need to create a clone of the database on another server.

The old database was in a position to say: / usr/test01 on another server
And I extracted the contents of the tar ball on the location/usr/test02
and changed the initvtls.ora to change the path of the controlfile

I also added the DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT to change the path of the data file.

When I try to start the database, I get the following error:


ORACLE instance started.

Total System Global Area 1073741824 bytes
Bytes of size 1264968 fixed
700449464 variable size bytes
369098752 of database buffers bytes
Redo buffers 2928640 bytes
Mounted database.
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: ' / usr/test01/system/sys_01.dbf'

Need help on the error.

Thank you
Aparna

Hello

I also have added DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT to change paths of the datafile.

When I try to startup the database, I get the following error -

ORACLE instance started.

Total System Global Area 1073741824 bytes
Fixed Size 1264968 bytes
Variable Size 700449464 bytes
Database Buffers 369098752 bytes
Redo Buffers 2928640 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '/usr/test01/system/sys_01.dbf'

Hello

DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT should serve as a standby database.
If you want to clone the database that you did. You should be
(1) create a new control file (with noresetlogs) in the editing phase with the new path of all data files and the redologs (favorite).
(2) or change the names of the files in data/redologs, using alter tablespace rename datafile

Concerning
Anurag Tibrewal.

Tags: Database

Similar Questions

  • Duplicate RMAN cloning using the database using the current database

    Hi all

    I am new bie, I want to clone my target database using the rman command 'DUPLICATE database OF ACTIVE DATABASE"new host.

    steps on google, I searched, but I got confused, I doubt if you need to install oracle rdbms softare on new host or not? and also should I copy all files (redo, control, datafiles) to the new host? kind LY help and tell me the steps to clone the database using rman.your help will be appreciated.

    Thank you.

    Kind regards.

    OS: RHEL 5.4

    DB: 11.2.0.3

    Hello

    Have you not through document link to Gavin at least. It's very simple steps. If you wait until other measures, then won't them.

    He had provided the demonstration, at least get in 'google' (you'll have so many links)

    The Oracle Dba Italian Blogger: how to clone an Oracle 11 g 2 home

    http://balaoracledba.com/2013/12/16/cloning-an-existing-Oracle11g-release-2-RDBMS-installation/

    Note: If you feel always complex, better skip the task itself.

    -Thank you

    Pavan Kumar N

  • 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 RMAN database

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

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

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

    Hello;

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

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

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

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

    and with the structure of different directories:

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

    Best regards

    mseberg

  • Cloning of the database

    Hello
    I got the new server with Linux installed. I created the DBA group and created a user for Oracle. My question is can I copy ORACLE_HOME and the database (after him) and put in place the instance in the new server?

    Or I have to install the Oracle software, then copy the database?


    OS: RHEL 5
    DB: 10.2.0.4

    -Neel

    Published by: 816153 on February 8, 2012 03:35

    I got the new server with Linux installed. I created the DBA group and created a user for Oracle. My question is can I copy ORACLE_HOME and the database (after him) and put in place the instance in the new server?
    Or I have to install the Oracle software, then copy the database?

    Perform an ORACLE_HOME cloning from underneath the document.
    http://docs.Oracle.com/CD/B19306_01/install.102/b25293/app_cloning.htm

    If you have cold backup you can make later.

    816153
    Newbie
         
    Handle: 816153
    Status level: Beginner
    Join date: November 27, 2010
    Messages total: 60
    Total Questions: 19 (16 pending)

    Close threads if answered, keep the forum clean from closing.

  • Cloning of a database to another server.

    Hi all

    11.2.0.3

    I want to clone or reproduce our PROD database to another server, which is not on the same network, which means that I can't use rman duplicate.

    I use only the backup rman which are shipped to the server target using flashdisk.

    Can you share me docs on how to clone a database using rman backup?

    I tried Google, but I especially find is RMAN duplicate which is not viable in my situation.

    Thanks to all in advance.

    pK

    Hello

    procedure to clone the database restore/recovery of RMAN is same in 10g and 11g.

    Kind regards

    Renu

  • 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

  • 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

  • Re: cloning R12 database with no CARS on ASM filesystem

    Hello

    I'm creating a clone (cloning fast) of an Oracle EBS system.

    As our database (non-RAC) is on ASM, I am looking for a note describing the cloning of a database on the ASM.

    Kind regards.

    I'm looking for a note describing the cloning of a database on the ASM.

    through documents below, hope this helps.

    230672.1: cloning Oracle Applications Release 11i with rapid Clone
    216664.1: FAQ: cloning Oracle Applications Release 11i
    406982.1: cloning of the Oracle Applications V12 with rapid Clone
    559518.1: cloning of Oracle Applications V12 with rapid Clone CARS enabled systems
    783188.1: certified Oracle RAC Oracle E-Business Suite cloning scenarios
    394448.1: getting started with the application Management Pack for Oracle E-Business Suite

    If above does not help you, then send me email.we have same type of environment (not cars but uses ASM), send me your email, I will pass on the processes of cloning.

  • database cloning on windows environment

    Hi all

    I have a data base of production on the Windows environment, now management want to clone the database to another server in windows and use it as a production database. It's a small database and it is in archivelog mode. What are the tricks to clone the database from one server to another. pls suggest me some links to clone the database.


    DB: oracle 10g R2 (10.2.0.1.0)
    Operating system: windows 2003 Server


    Thank you and best regards,
    Nagarjuna

    785092 wrote:

    I would like to know the reason for not to use RMAN to cloning

    I'm not familiar with RMAN. I do not know the RMAN feature. so I'm not able to use it.

    is it easy to use RMAN to the cloning of a database.

    Thanks Ken.

    It is very easy. Just check my video tutorials and you will discover how easy it is :)

    http://kamranagayev.WordPress.com/2010/06/25/RMAN-video-tutorial-series-creating-duplicate-and-standby-database-using-RMAN/
    http://kamranagayev.WordPress.com/2010/03/29/RMAN-video-tutorial-series-performing-disaster-recovery-with-RMAN/

  • RMAN-05517: cloning a database question

    Hello

    I use oracle 10.2.0 on windows xp and try database using the RMAN duplicate on the same system of cloning. my original database is orcl and I'm cloning to clone (database name).

    and got the error
    RMAN> run
    2> {
    3> allocate auxiliary channel aux1 device type disk;
    4>
    5>        SET NEWNAME FOR DATAFILE 1 TO 'D:\ORACLE\ORADATA\clone\SYSTEM01.DBF';
    6>        SET NEWNAME FOR DATAFILE 2 TO 'D:\ORACLE\ORADATA\clone\UNDOTBS01.DBF';
    7>      SET NEWNAME FOR DATAFILE 3 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\SYSAUX01.DBF';
    8>      SET NEWNAME FOR DATAFILE 4 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\USERS01.DBF';
    9>
    10> duplicate target database to 'clone';
    11> }
    
    allocated channel: aux1
    channel aux1: sid=156 devtype=DISK
    
    executing command: SET NEWNAME
    
    executing command: SET NEWNAME
    
    executing command: SET NEWNAME
    
    executing command: SET NEWNAME
    
    Starting Duplicate Db at 03-JUL-09
    released channel: aux1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/03/2009 16:49:29
    RMAN-05501: aborting duplication of target database
    RMAN-05517: temporary file D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP01.DBF conflicts with file used by target database
    I know it's my original file, but I don't know SET NEWNAME DATAFILE 4 TO ' D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\USERS01. DBF'; as the order for temporary files.

    I'm trying as
    RMAN> run
    2> {
    3> allocate auxiliary channel aux1 device type disk;
    4>
    5>        SET NEWNAME FOR DATAFILE 1 TO 'D:\ORACLE\ORADATA\clone\SYSTEM01.DBF';
    6>        SET NEWNAME FOR DATAFILE 2 TO 'D:\ORACLE\ORADATA\clone\UNDOTBS01.DBF';
    7>      SET NEWNAME FOR DATAFILE 3 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\SYSAUX01.DBF';
    8>      SET NEWNAME FOR DATAFILE 4 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\USERS01.DBF';
    9>      SET NEWNAME FOR DATAFILE  'D:\oracle\product\10.2.0\oradata\orcl\TEMP01.DBF' TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\TEMP01.DBF';
    10> duplicate target database to 'clone';
    11> }
    
    allocated channel: aux1
    channel aux1: sid=156 devtype=DISK
    
    executing command: SET NEWNAME
    
    executing command: SET NEWNAME
    
    executing command: SET NEWNAME
    
    executing command: SET NEWNAME
    
    executing command: SET NEWNAME
    released channel: aux1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of set command at 07/03/2009 16:35:13
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP01.DBF
    but no use. I can't find anything on google on this subject.

    Thank you
    Umesh

    You can use the value of NEWNAME for TEMPFILE...

    Concerning

  • Updating of the database

    Hi gurus,

    (1) when we say the updating of the database, we need to remove the database and clone again with the last backups rman.

    (2) whereas cloning not set us the id of database also. If we do not then set what happens. in fact, what is the importance of id database parameter.

    Please, help me to be clear in this.

    Thank you very much...

    (1) RMAN is physical backup. So delete the database that should be cloned and generate the backups

    (2) there are several ways to clone, if using DUAL control, you should not use DBID.

    We might think of the connection string:

    target: the new database which is getting cloned
    Catalog: catalog database--> that stores all backups of your company

    RMAN target / catalogue /@.

    RMAN > set dbid ---> to retrieve the details of data source catalog database backup. RMAN backups in catalog
    database are identified by the DBID

  • ORA-01504: name of the 'DEV1' database does not match parameter db_name "PROD1".

    Hi, all.

    This is my first time cloning of a database. Recovery finished, but gave me the following error message. All parameters in the pfile file are on 'DEV1 '. I think that the db_name "PROD1" parameter exists in the control file and causes this error. The control file is under ASM.

    How can I change the setting in the control file and raise the cloned database 'DEV1 '? Also, how can I avoid this problem next time I make a clone?

    Thanks in advance!


    Oracle 10g Release 2 under RHEL5

    Database cloning using RMAN Duplicate > ORA-01504: "DEV1" database name does not match "PROD1" db_name parameter
    ASMCMD> ls
    control01.ctl
    current.275.729098001
    archive log filename=/u001/dbsvr/dev1/1_131706_653848580.dbf recid=59 stamp=741953991
    media recovery complete, elapsed time: 00:09:31
    *Finished recover at 01-FEB-11*
    contents of Memory Script:
    {
       shutdown clone;
       startup clone nomount ;
    }
    executing Memory Script
    
    database dismounted
    Oracle instance shut down
    
    connected to auxiliary database (not started)
    Oracle instance started
    
    Total System Global Area     725614592 bytes
    
    Fixed Size                     2075592 bytes
    Variable Size                448791608 bytes
    Database Buffers             268435456 bytes
    Redo Buffers                   6311936 bytes
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "DEV1" RESETLOGS ARCHIVELOG
      MAXLOGFILES     50
      MAXLOGMEMBERS      5
      MAXDATAFILES      100
      MAXINSTANCES     1
      MAXLOGHISTORY     5445
     LOGFILE
      GROUP  1 '+DATA3/dev1/datafile/redo01.log' SIZE 100 M ,
      GROUP  2 '+DATA3/dev1/datafile/redo02.log' SIZE 100 M ,
      GROUP  3 '+DATA3/dev1/datafile/redo03.log' SIZE 100 M
     DATAFILE
      '+DATA3/dev1/datafile/system01.dbf'
     CHARACTER SET WE8ISO8859P1
    
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 02/01/2011 10:30:17
    RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
    ORA-01504: database name 'DEV1' does not match parameter db_name 'PROD1'
    
    RMAN>
    RMAN> **end-of-file**
    
    RMAN>

    db_name parameter and database name must match. There is an incorrect db_name parameter in your target pfile database file!
    Best: there should not be any db_name parameter at all.

    Note: the name of the database is also in the controlfile.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

  • The cloned environment ERP > spawned process scheduled to run in 10 years...

    Hello

    RHEL 5.4
    Database server: 10.2.0.2.0
    Application server: 11.5.10.2

    After the cloning of a database of the ERP for production test, there are some involved process that are stuck in the Phase: pending and the State: on-demand.

    I identified these two positions which is having this problem so far:

    Name: Autoinvoice master's program
    Name: Update the control view

    Scheduling options:

    The task - once: April 23, 2020 15:22:02
    Requested departure date: April 23, 2020 15:22:02

    When I click on 'Calendar' and select run the job... Option "As soon as Possible" and then click OK, the scheduling options go up to 2020 (exactly 10 years to come).

    I can't find the parameter/parameter which is originally jobs having engineered to be regular 10 years into the future.

    Please help!

    Hello

    What I would say is to activate the trace before you change the day of the schedule and generate the TKPROF file for SQL statements that run in the background to know how these applications are programmed to operate ten years later from now.

    Kind regards
    Hussein

  • Upgrade 10.2.0.1 to 10.2.0.3 without any installed database.

    Hi all

    I did some tests on Oracle fresh install with upgrade patches.
    The platform is Windows XP 32-bit, and it's just my laptop.

    These are the things I've done:
    1 installed 10.2.0.1 (software only)
    2. upgrade to 10.2.0.2
    3 level to 10.2.0.3
    4. replace the Opatch with the latest version which is 10.2.0.4.5
    5. upgrade to 10.2.0.3 patch 31
    6 use dbca to create a database.

    I've never done this before and the creation of the database was successfully completed without any problems.
    However, I had a few questions about this facility:
    1. do I need to run catcpu.sql?
    2. do I need to run view_recompile_jan2008cpu.sql?
    I think I need to run view_recompile_jan2008cpu.sql because when I fell recompile_precheck_jan2008cpu.sql, he showed that 1716 views and 3365 objects must be recompiled
    3. I used to be able to see the values in the history of register$ of the table, but at this time I wasn't able to see that. This is because I only create my database after I installed patch 31? is there any place where I can check if I have patch 31 installed from the database other than opatch?

    Thank you
    ADHIKA

    Group of hotfixes are cumulative, you don't need to apply the previous to apply the last.
    Regarding the CPU, it is explained in the readme patch CPU documentation:
    "+ You must perform the steps in the Section 3.3.2.1,"Loading files .sql of modification in the database"" and Section 3.3.2.2, "Recompiling views in the database" for any new database only if it was created by one of the following methods: +.
    Using DBCA (Database Configuration Wizard) to select a sample database (general, Data Warehouse, transactional processing)
    With the help of a script that was created by DBCA that creates a database from a sample database
    Cloning of a database that was created by one of the two methods presented above, and if the Section 3.3.2.1, "Loading files .sql of modification in the database" and Section 3.3.2.2, "Recompiling views in the database" were not executed after the CPUJul2009 was"
    Therefore, since you're using DBCA, Yes, you must run catcpu...

    Nicolas.

Maybe you are looking for