Clone database from a cold backup

Hi:
We have 11.0.1.7 database on linux. A backup from source instance will be copied (ORACLE_HOME and datafile directory) to target instance. My job is to clone this to a new database on target. I will apprecite you if you can provide steps to complish this.
Thanks.

907485 wrote:
Hi:
We have 11.0.1.7 database on linux. A backup from source instance will be copied (ORACLE_HOME and datafile directory) to target instance. My job is to clone this to a new database on target. I will apprecite you if you can provide steps to complish this.
Thanks.Hi
Follow the below steps
1.) create the password file
2.) If u have the pfile of the target database ,then edit the pfile contents like location and name to new location and names.
3.) Now takes startup the database to nomount statge
4.) Now create the controlfile . Check the below link for creating the controlfile
http://neeraj-dba.blogspot.in/2011/04/create-control-file-manually-when-and.html
5.) After creating the control mount the database .
6.) Once the copied the datafiles as the location specified in the controlfile
7.) Finally open the database .
Check the below link . it may help you
http://neeraj-dba.blogspot.in/2011/05/cold-clonning-using-controlfile-backup.html
Hope this may help you
--neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Create new db from RAC cold backup

    Hi Team
    i need to copy cold database from one server to another server . and build an new rac database out of that cold backup .. i have done it for singel node instance . but do you know if i have to do something special for RAC instance .. or simply below mention steps are enough to build RAC database out of cold backup
    oracle version is 10.2.0.1
    1. install software and clusterware on new set of machine
    2. copy cold backup on that set of machine
    3.copy spfile and controlfile
    4.open the database up with controlfile,spfile and dbf files
    now i am not sure on one thing if i have to do something special for RAC DB or its like single instance.
    please let me know if this is not clear or you need more info on that
    Regards,
    Devender

    Hi,
    Please check below which could be helpful for your issue
    Migrate Non-RAC(Standalone) to RAC
    Clonimg Standalone Database to RAC Database
    Regard
    Helios

  • Clone database from server to PC

    Hi all,
    I am having the difficulty after clone the database from a hot backup from server. Both server & PC running at W2k OS and Oracle 8.1.7. Below are the steps what i am doing.
    1)Take a hot backup from the server.
    2)Create a folder \oracle\oradata\CLONE. Stored all the datafiles there.
    3)Copy the init.ora from the server and paste to \oracle\admin\CLONE\pfile. Amended all the location, instance name, db name, etc.
    4)log in to server and run the command, ALTER SYSTEM BACKUP CONTROLFILE TO TRACE RESETLOGS.
    5)Copy the trace file and amend to the create control file script. Alter the script like
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "CLONE" RESETLOGS ARCHIVELOG
    MAXLOGFILES 5
    MAXLOGMEMBERS 3
    6)Also created the service using the command ORADIM.
    7)Under OS command line, SET ORACLE_SID=CLONE and then log in the SQL*PLUS. Once i executed the create control script. I hv encounter error like ORA-27100: shared memory realm already exists.
    Could anyone tell me why this error occurs and how to solve the problem.
    TQ,
    Alfred

    Your got this error because you try to create a new control files on an open instance.
    You need to shutdown the instance ( SQL>shutdown immediate ) and connect back to the database using the nolog flag, then do connect to the sysadm, this will start the backgroup process. just them you will be able to initiate your command.
    SQL> shutdown immediate
    c:\>sqlplus /nolog
    SQL>connect /as sysdba
    SQL>@YourControlFileCreateScript.

  • Create a database from 8i RMAN backup

    Hi,
    I am in need to recover some historic data from a historic database's RMAN backup.
    The situation is ... I have one old RMAN backup of a 8i database which includes datafiles, archivellog files and control files. Init.ora file is also available.
    I have installed the 8i software in a host and created the oracle service through ORADIM and pwd file through ORAPWD utility. Then copied the init.ora file under 'C:\Oracle\ADMIN\ORCL\PFILE' and the RMAN backup files under 'C:\Oracle\Ora81\DATABASE' folder.
    Now I can start the instance with the init.ora file but can not mount as control files are not there. when I try to restore the control files through RMAN as...
    RMAN> run
    2> {
    3> restore controlfile;
    4> }
    RMAN-03022: compiling command: restore
    RMAN-03022: compiling command: IRESTORE
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: restore
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: IRESTORE
    RMAN-06172: not connected to recovery catalog database
    RMAN>
    Now without the catalog database how can I restore the control files and the database from the RMAN backup?
    I think the old RMAN metadata was stored in catalog database.
    Any suggestion please?
    regards

    Sorry I wrongly said that I do not have the DBID, I have DBID but I have controlfile backup as RMAN backupset, not in Binary. So even if I set DBID, RMAN asks for the catalog database, which is not available.
    As I worked...
    C:\>rman
    Recovery Manager: Release 8.1.5.0.0 - Production
    RMAN> SET DBID=1208994555
    RMAN-03022: compiling command: CSET
    RMAN> connect target sys/*****
    RMAN-06193: connected to target database (not started)
    RMAN> startup nomount
    RMAN-06196: Oracle instance started
    Total System Global Area 552011724 bytes
    Fixed Size 65484 bytes
    Variable Size 69357568 bytes
    Database Buffers 482514944 bytes
    Redo Buffers 73728 bytes
    RMAN> run
    2> {
    3> allocate channel ch1 type disk;
    4> restore controlfile;
    5> alter database mount;
    6> }
    RMAN-03022: compiling command: allocate
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: allocate
    RMAN-06172: not connected to recovery catalog database
    RMAN> shutdown
    RMAN-06402: Oracle instance shut down
    RMAN> set dbid 1208994555
    RMAN-03022: compiling command: CSET
    RMAN> connect target sys/*** nocatalog
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "nocatalog": expecting one of: "newline, ;"
    RMAN-01007: at line 1 column 27 file: standard input
    RMAN> connect target sys/**** nocatalog;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "nocatalog": expecting one of: "newline, ;"
    RMAN-01007: at line 1 column 27 file: standard input
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found ";": expecting one of: "allocate, alter, beginli
    ne, catalog, change, connect, create, crosscheck, debug, delete, drop, exit, end
    inline, host, {, library, list, mount, open, print, register, release, replace,
    report, reset, resync, rman, rpctest, run, set, sql, "
    RMAN-01007: at line 1 column 36 file: standard input
    RMAN> exit
    Recovery Manager complete.
    C:\>rman target sys/**** nocatalog
    Recovery Manager: Release 8.1.5.0.0 - Production
    RMAN-06193: connected to target database (not started)
    RMAN> run{
    2> allocate channel ch1 type disk;
    3> restore controlfile;
    4> alter database mount;
    5> }
    RMAN-03022: compiling command: allocate
    RMAN-03023: executing command: allocate
    RMAN-08030: allocated channel: ch1
    RMAN-08500: channel ch1: sid=12 devtype=DISK
    RMAN-03022: compiling command: restore
    RMAN-03022: compiling command: IRESTORE
    RMAN-03026: error recovery releasing channel resources
    RMAN-08031: released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: restore
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: IRESTORE
    RMAN-06003: ORACLE error from target database: ORA-01507: database not mounted
    ORA-06512: at "SYS.X$DBMS_RCVMAN", line 923
    ORA-06512: at line 1
    RMAN-06097: text of failing SQL statement: begin dbms_rcvman . setDatabase ( upp
    er ( :dbname:dbname_i ) , :rlscn , :rltime , :fhdbi:fhdbi_i ) ; end ;
    RMAN>

  • Problem to copy database from the hot backup

    Oracle9i Enterprise Edition Release 9.2.0.4.0
    SunOS 5.8
    Hi all,
    I wrote the UNIX script to copy the production Oracle 9i database from the hot backup to the Oracle 9i development database. I already did it manually without any problems using Metalink document Note:18070.1
    The script stops after the command
    recover database until cancel using backup controlfile ,
    because I have to apply all archived logs manually.
    How is it possible to get rid of this problem and automatically apply archived logs?
    Thank you in advance for your help.
    Alex
    P.S. We are not authorized to use RMAN.

    P.S. We are not authorized to use RMAN. We dont get your point?
    Who stops you using RMAN?
    How did you take the hot backup then?
    There are couple of good notes on metalink, and below is one of them,
    RMAN Duplicate Database in Oracle9i / Oracle 10G Doc ID:      Note:228257.1
    Jaffar

  • RAC to RAC CLONE FROM RMAN Cold Backup

    Hi All,
    I need your kind assistance in Cloning my Oracle RAC 11.2.0.2 Environment to remote host. Following is Disk layout
    DGVOT (ASM Disk group holding OCR and Voting Disk)
    DGDATA (ASM Disk Group Holding Data FIles)
    DGFRA (ASM Disk Group Holding Fast Recovery FIles)
    Remote Host is on different location so cannot use RMAN duplicate with auxiliary channel.
    Have luxury of downtime so I want to take RMAN Consistent( Cold Backup)
    SAME Disk layout is available to remote hosts.
    11.2.0.2 CLusterware (GI) Plus the oracle binaries are already installed.
    Can any body tell me the steps to
    1) How to take cold backup to disk so that I can tar and copy to remote host
    2) clone the database on remote host
    3) How i will add the database listener and other resources of this databasee to clusterware.
    actually this is my first RAC clone so i am not much aware of detail steps.
    I have gone though many metalink notes but no one is matching with my requirements. your expert advice will help me a lot
    Regards,

    Hi
    1) How to take cold backup to disk so that I can tar and copy to remote host.
    Use Rman for cold backupIn mount stage execute
    RMAN>backup database plus archivelog format '<disk_path>/dbp%U';
    RMAN> backup current controlfile format '<disk_path>/ctl%U';
    Copy thse backup sets to remote host
    2) clone the database on remote host
    Create Similar ASM Disk groups as on source
    create pfile/spifile, startup instance in nomount mode
    catalog backup set
    RMAN> catalog start with '<backup_set location>';
    Restore controlfile
    RMAN>restore controlfile;
    RMAN> restore database;
    RMAN> recover database;
    On successfull recovery
    RMAN>sql 'alter database open';
    3) How i will add the database listener and other resources of this databasee to clusterware.
    User srvctl to add resources
    Usage: srvctl <command> <object> [<options>]
    commands: enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config|convert|upgrade
    objects: database|instance|service|nodeapps|vip|network|asm|diskgroup|listener|srvpool|server|scan|scan_listener|oc4j|home|filesystem|gns|cvu
    For detailed help on each command and object and its options use:
    srvctl <command> -h or
    srvctl <command> <object> -h
    Thanks,
    Ajay More

  • How to clone database from backup without access to original DB

    I want to create a new database from existing backup files and rolling forward some of the archivelogs (preferably with a new name and with different directory layout).
    How can I achieve the task on a separate test server (without access to the original database)? I found a lot of sources ( e.g. http://www.oracle-base.com/articles/11g/DuplicateDatabaseUsingRMAN_11gR2.php ) but all with connection to original DB (e.g. entries in tnsanmes.ora)
    Backup runs a simple
    BACKUP DATABASE PLUS ARCHIVELOG;
    DB Version is 11.2.0.2 on Linux.

    Many thanks to your help. Finally I was able to restore the DB. The steps I used (similiarly also mentioned in some of the links above).
    1.) Copy backup (backupset, autobackup, archivelog) to the new server into directories
    /export/restore/autobackup/2012_03_01
    /export/restore/autobackup/2012_03_02
    /export/restore/archivelog/2012_03_01
    /export/restore/backupset/2012_03_01
    2.) create pfile initDBREST.ora
    DB_NAME=DBREST
    3.) Mount DB
    ORACLE_SID=DBREST; export ORACLE_SID
    sqlplus / as sysdba
    STARTUP NOMOUNT;
    4.) Connect to auxiliary DB
    ORACLE_SID=DBREST; export ORACLE_SID
    rman AUXILIARY /
    5.) Create directories for new DB for datafiles in e.g. /export/oradata/DBREST/
    6.) Duplicate DB and reset parameter if necessary (e.g. memory_max as test server is lower on RAM)
    DUPLICATE DATABASE TO DBREST
    until time "to_date('02.03.2012 15:00:00','DD.MM.YYYY hh24:mi:ss')"
    DB_FILE_NAME_CONVERT '/export/fs1/oradata/oldDB/','/export/oradata/DBREST/', '/export/fs2/oradata/oldDB/','/export/oradata/DBREST/'
    SPFILE
    SET MEMORY_TARGET '2G'
    SET MEMORY_MAX_TARGET '2G'
    SET db_recovery_file_dest '/export/oradata/'
    SET db_recovery_file_dest_size '100G'
    BACKUP LOCATION '/export/restore'
    NOFILENAMECHECK;
    7.) create temporary tablespace

  • How to recovery the database from a complete backup

    I have a 10.2.0.3 database with archive log enabled.
    I do a cold backup of database every Sunday night.
    I shutdown the database, copy all the database files, control files and redo logs to a backup disk.
    Then the database started and running again.
    I am trying to test my backup and make sure I can recovery the database to the most current stage using the Sunday backup and the archive logs.
    for example: use the backup from 4/01/2012, recover the database to today 4/04/2012 9:00am.
    What's the steps of doing this?
    I tried to copy all the Sunday backup files to the correct location, start the database, the database is started successfully. However, I don't know how to apply the logs from since the Sunday backup upto now.
    Thanks a lot!

    hi,
    rman is your friend to do backups, restores and recovers of database.
    to do a full recover of database, for example to do a test on your current test database (no in crash):
    rman time:
    startup nomount;
    restore controlfile;
    alter database mount;
    sql now
    select archivelog_change#-1 from v$database;
    then go back to rman and do the following :
    RMAN> run{
    2> set until scn xxxxxx;
    3> restore database;
    4> recover database;
    5> alter database open resetlogs;
    6> }
    **where xxxxx is the result of your sql query
    HTH
    --edit:
    forgot to told that You will need to set your ORACLE_HOME and ORACLE_SID env variables
    Edited by: Me_101 on 04-abr-2012 8:41

  • Create new database using rman cold backup

    It oracle 10g database version 10.2.0.4
    I took the cold backup of the database using rman ( Database name TEST)
    1.RMAN> startup mount;
    2.RMAN> backup database include current controlfile;
    3.RMAN> alter database open;
    I aim to create the new database called DEMO using this backup
    Please let know the setps for creating new database
    Edited by: prajeevan on Jan 19, 2011 9:09 PM

    I took the cold backup of the database using rman ( Database name TEST)
    1.RMAN> startup mount;
    2.RMAN> backup database include current controlfile;
    3.RMAN> alter database open;
    I aim to create the new database called DEMO using this backup
    Please let know the setps for creating new databaseIf it is in archivelog mode you can use duplicate to refresh database DEMO from TEST..
    or after cold backup, go to mount ,
    create trace file of controlfile becuase you are chaning database name
    recreate the controlfile
    open database in resetlogs;
    check also http://blogs.oracle.com/AlejandroVargas/gems/RMANDUPDBPRACTICE.pdf

  • Database cloning using cold backup

    Hello Guys,
    I am doing cloning of a database from cold backup for testing, actully one datafile has been croupted, so my issue is that, can i exclude tht datafile from controlfile when creating the controlfile and is that poosible that controlfile will created sucessfully and database will open sucessfully.
    Please reply.
    Thanks

    @asif, @ckpt
    With humble, how all you know that corrupted datafile is not belonging to system and undo tablespace? If this case, then do you think we can restore that corrupted cold-backup ? Sorry, but this is not the way to just start providing help without asking OP :
    1.Current Oracle Version ?
    2.Where he want to restore i.e. restoring platform info Oracle version OS ?
    3.After cold backup how he came to know that one datafile is corrupted ?
    4.When and how datafile became corrupted ?
    5.How he taken cold backup ? Was db running fine just before shut immediate for cold backing ?
    6.What he has done so far to restore the cold backup ?
    7.What error he is getting right now ?
    Here problem is corrupted datafile. So, first let come problem clear from OP, ask all missing question in one go, and then start helping is the right way... (my personal opinion, may be wrong!).
    Regards
    Girish Sharma

  • Creating a standbay database from an rman backup

    hi,
    I have a situation that a standby database has a large gap in archive log files, the primary server does not now have those files. I understand that you can create a standby from an rman backup of the primary but all reading I have done shows thatn you have to have a recovery catalog to carry this out. The system I am on does not have such a catalog so is there any other way to do this?
    regards
    Alan

    Requirement 'You must have a recovery catalog in a standby requirement' is a little bit misleading. In fact you can do what you want : creating a standby from RMAN backups without having a recovery catalog. 'Duplicate target database for standby' does not require a connection to a recovery catalog.
    You need mandatorily a recovery catalog, when you plan to take backups from the standby later on in order to free the primary from this task. The reason for that is it's not possible to transfer backup records from the standby controlfiles to the primary ones directly. After a backup on the standby you resync the catalog with the standby controlfile. Then you connect to the catalog and the primary,resync again and have actual backup informations in the primary controlfiles. When there's a media recovery problem, you easily can restore/recover the primary.
    Werner

  • Is it possible to restore database from a full backup without controlfile?

    Hi,
    I have done a full backup for the database oracle 11g using:
    run{
    allocate channel c1 type disk;
    set limit channel c1 kbytes 102400;
    sql 'alter system archive log current';
    backup full tag 'dbfull' format 'd:\dbbackup\f_%d_%u_%s_%p_%t' database include current controlfile;
    backup archivelog all delete input format 'd:\dbbackup\al__%d_%u_%s_%p_%t';
    release channel c1;
    but, I deleted all the datafiles include all control files.
    Is it possible to restore the database?
    Is there a way to restore the control file from the backup files?

    Thanks Werner!
    I finally find the correct backuppiece for the controlfile.
    D:\dbbackup
    2010-03-19 18:41 <DIR> .
    2010-03-19 18:41 <DIR> ..
    2010-03-19 18:41 5,711,872 AL__ORCL_04L8VSN6_4_1_714076902
    2010-03-19 18:41 104,857,600 F_ORCL_02L8VSJ0_2_10_714076768
    2010-03-19 18:41 104,857,600 F_ORCL_02L8VSJ0_2_11_714076768
    2010-03-19 18:41 104,857,600 F_ORCL_02L8VSJ0_2_12_714076768
    2010-03-19 18:41 24,535,040 F_ORCL_02L8VSJ0_2_13_714076768
    2010-03-19 18:39 104,857,600 F_ORCL_02L8VSJ0_2_1_714076768
    2010-03-19 18:39 104,857,600 F_ORCL_02L8VSJ0_2_2_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_3_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_4_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_5_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_6_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_7_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_8_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_9_714076768
    2010-03-19 18:41 9,830,400 F_ORCL_03L8VSMP_3_1_714076889 ---->the controlfile backup piece.the file name contains '03' instead of '02'(datafile).
    After run 'start nomount', I restore the controlfiles using 'restore controlfile from 'd:\dbbackup\F_ORCL_03L8VSMP_3_1_714076889';
    The key point is to find the right backup file piece for the control file.

  • Rollback from a cold backup

    Hi,
    i've done a cold backup now and i've some old archivelog.
    I need to do a restore poin in time back to the past using my cold backup and
    the last 2 archivelog.
    How can i do?

    Hi,
    I thinked over and I say it might possible provided, all archive logs are available.
    Restore the cold backup to New Server
    Mount the DB
    start recovery using backupcontrolf file clause until some time in back.
    Perhaps, with out happening or inconsistent - usually recovery might not happend, but still when you go for "using backup control file" - recovery applies / starts based on the control file status and Reset logs might be needed. So, in that case go back and specify time.
    I doubt it, whether it works or not... I need to have break ..!! Test on some separate testing server.
    HTH
    - Pavan Kumar N
    - ORACLE OCP - 9i/10g
    https://www.oracleinternals.blogspot.com

  • Create a database from 32bit rman backup with NEW name on a 64bit system

    Hello,
    i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
    For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
    Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
    On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
    a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
    When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
    b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
    How can i rename the datafiles before restoring the backup from scatch?
    I found this: set newname for datafile 1 to '<filesystem based filename>';
    Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
    c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
    Or could RMAN convert anyhow used to realize the whole thing?
    Thank you very much for your support!
    Regards
    Daniel

    Hello,
    i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
    For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
    Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
    On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
    a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
    When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
    b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
    How can i rename the datafiles before restoring the backup from scatch?
    I found this: set newname for datafile 1 to '<filesystem based filename>';
    Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
    c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
    Or could RMAN convert anyhow used to realize the whole thing?
    Thank you very much for your support!
    Regards
    Daniel

  • Restoring and Recovering from RMAN cold backup

    DB Version: 11gR2
    os : Solaris
    Before dropping a DB we had taken an RMAN backup of the DB using
    RMAN> backup database;We hadn't set a FORMAT (like db_%d_S_%s_P_%p_T_%t) for this DB , so the backups went to ORACLE_HOME/dbs directory. The 2 backup files are
    /u02/app/oracle/11.2/db/dbs/01mo9fms_1_1
    /u02/app/oracle/11.2/db/dbs/02mo9fnc_1_1  -- spfile and control fileNow we need to recreate this DB on a new server.
    In the new server, we've placed the backup files in /u04/backup/rmanbkp .
    Since We hadn't set a FORMAT parameter for the original DB which we have dropped what format i will give during restore?
    Will RMAN automatically recognize the FORMAT of the backup piece and restore ?
    RMAN> run
    allocate channel c1 device type disk format 'i_dont_know_the_format';
    allocate channel c2 device type disk format 'i_dont_know_the_format';
    restore controlfile;
    restore database;
    }This the SHOW ALL output from the DB we have dropped .
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name BRCFTST are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u02/app/oracle/11.2/db/snapcf_brcftst.f'; # defaultAs you can see we hadn't set the format explicitly , ie. the line
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT is missing

    Hi,
    Before dropping a DB we had taken an RMAN backup.I hope you were in mount mode.
    Will RMAN automatically recognize the FORMAT of the backup piece and restore ?No it won't.
    First you have to restore a controlfile in nomount mode with:
    restore controlfile from '/u04/backup/rmanbkp /02mo9fnc_1_1';
    and do alter database mount.
    Than you have to run "catalog start with '/u04/backup/rmanbkp'; " so the instance now knows where to find the pieces.
    Now you can run a restore database command.
    Than open the database with resetlogs.
    Regards,
    Tycho

Maybe you are looking for

  • How can I delete messages from the local Sent folder without deleting from the remote server?

    I am running out of disk space on my local machine. Analysing this, I can see that a large amount of space is being taken up by local storage of Sent emails from my IMAP synchronised account. I do not see how I can delete the local copies from my PC

  • IMPORT/EXPORT FROM DATA BUFFER

    Hi, I have some code like this: DATA: b type xstring. DATA: a type xstirng. EXPORT '1234' TO DATA BUFFER b. IMPORT a FROM DATA BUFFER b. for some reason a does not get set to the value that I assigned to b. However, this code works: DATA: b type xstr

  • PWA permissions

    We're in the process of setting up our first PWA site and subsites.  We've created several new Enterprise Projects and assigned owners.  The owners can navigate to the subsite but they cannot edit their projects, and the option to open the project in

  • Is it possible to import xml into Adobe Muse to populate content similar to InDesign?

    Is it possible to import xml into Adobe Muse to populate content similar to InDesign?

  • Premiere Pro CS5 crash when exporting sequence

    i am using a 5i with 8 Gig machine with Nvidia 470. my project is an indi 80min feature shot in full HD on the 7D. when i try to export it to Youtube my Premiere Pro crashes after about 70%. i am using Premiere Pro 5.02 thanks PS the error message: C