Restore Database on New Host in Catalog mode

Dearest DBAs,
Here is RMAN configuration details,
163.19.0.153
Production Database (orcl)
163.19.0.154
RMAN Catalog Database (rman)
163.19.0.155
BackupSets Location
163.19.0.156
Test Machine
I have taken the backup through RMAN and now want to restore the database using RMAN to a test machine. Where test database was already running and I have only removed the data files, control files and redo log files.
This document on the following link describes the steps
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmrecov002.htm#sthref723
I have connected to rman using following command
c:\>set oracle_sid=orcl
c:\>rman target rman/zaffar@rman nocatalog
rman>set dbid 111122
it gives me following error
RMAN-03002
RMAN-06188
but rman is running in catalog mode that disallow me to set the dbid of the target database and because of this I am unable to proceed further.
Kindly help.
Regards,
Asif

the problem mentioned above has been solved, but now i am getting following error when i execute following script
RUN
# allocate a channel to the tape device
ALLOCATE CHANNEL c1 DEVICE TYPE sbt PARMS='...';
# rename the datafiles and online redo logs
SET NEWNAME FOR DATAFILE 1 TO '?/oradata/test/system01.dbf';
SET NEWNAME FOR DATAFILE 2 TO '?/oradata/test/undotbs01.dbf';
SET NEWNAME FOR DATAFILE 3 TO '?/oradata/test/cwmlite01.dbf';
SET NEWNAME FOR DATAFILE 4 TO '?/oradata/test/drsys01.dbf';
SET NEWNAME FOR DATAFILE 5 TO '?/oradata/test/example01.dbf';
SET NEWNAME FOR DATAFILE 6 TO '?/oradata/test/indx01.dbf';
SET NEWNAME FOR DATAFILE 7 TO '?/oradata/test/tools01.dbf';
SET NEWNAME FOR DATAFILE 8 TO '?/oradata/test/users01.dbf';
SQL "ALTER DATABASE RENAME FILE ''/dev3/oracle/dbs/redo01.log''
TO ''?/oradata/test/redo01.log'' ";
SQL "ALTER DATABASE RENAME FILE ''/dev3/oracle/dbs/redo02.log''
TO ''?/oradata/test/redo02.log'' ";
# Do a SET UNTIL to prevent recovery of the online logs
SET UNTIL SCN 123456;
# restore the database and switch the datafile names
RESTORE DATABASE;
SWITCH DATAFILE ALL;
# recover the database
RECOVER DATABASE;
ora-01511: erro in renaming log/data files
ora-01516: nonexistent log file, datafile or tempfile 'e:\oradata\orcl\orcl\redo03.log'
any help
Regards,
Asif

Similar Messages

  • How to define new host in catalog?

    Hi guys,
    I have migrate 9R2 database to new host location and i wanted to run backup using same script which worked on old host but i get error :
    Wed Dec 8 13:59:13 CET 2010
    Recovery Manager: Release 9.2.0.4.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN> #
    2> # Full Backup
    3> #
    4> # Recovery Manager script
    5> #
    6>
    7> #connect target sys/xxxyyy@dev;
    8> connect target "/";
    9> connect CATALOG rman/catalog@oemrep;
    10>
    11> run { 
    12> backup database plus archivelog delete input ;
    13> report obsolete;
    14> delete obsolete;
    15> crosscheck backup;
    16> delete noprompt expired backup;
    17> }
    18>
    19> exit;
    connected to target database: DEV (DBID=1703379406)
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-04004: error from recovery catalog database: ORA-12154: TNS:could not resolve service name
    Recovery Manager complete.
    Is this means that i need to define new host location in RMAN CATALOG or what?

    You are right!
    But still i receive this
    Wed Dec 8 14:49:47 CET 2010
    Recovery Manager: Release 9.2.0.4.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN> #
    2> # Full Backup
    3> #
    4> # Recovery Manager script
    5> #
    6>
    7> #connect target sys/xxxyyy@ssl21dev;
    8> connect target "/";
    9> connect CATALOG rman/catalog@oemrep;
    10>
    11> run { 
    12> backup database plus archivelog delete input ;
    13> report obsolete;
    14> delete obsolete;
    15> crosscheck backup;
    16> delete noprompt expired backup;
    17> }
    18>
    19> exit;
    connected to target database: SSL21DEV (DBID=1703379406)
    connected to recovery catalog database
    Starting backup at 08-DEC-10
    current log archived
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 12/08/2010 14:49:48
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog
    Recovery Manager complete.
    So prorbably old host database has different DBID defined in RAN catalog?

  • 9i Database - Restore to a new host, validating RMAN backup

    Hi all,
    I could use your help, for any of you who remember how to do this in 9i. On one of my production databases, running 9.2.0.6.0, I have a nightly RMAN script that writes the backup to a large shared drive (this is on a Windows 2003 server). This backup uses a recovery catalog.
    I have a test server, and I want to try and restore last night's backup on this test server, without touching the recovery catalog - purely as a means to go through the recovery process, and to validate our backups (this is also for SOX compliance, as this database is for the financial system).
    I have been looking through the 9i documentation, and was hoping to have some detailed steps here: http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmrecov.htm#1007514
    but I don't see a lot of information there.
    I believe that this should be a rather simple process. On the test server, I have installed the 9.2.0.6 software, and created the Oracle Service using the same name as production. The test server can also see the shared drive that houses the backup files from the production system.
    Here are the steps I am trying, please let me know what I need to change. Thanks all!!
    rman target / nocatalog
    RMAN> set DBID 3679803977
    RMAN> startup nomount
    RMAN> restore controlfile from autobackup; --- this throws errors, see below
    Starting restore at 11-NOV-08
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=12 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day: 20081111
    channel ORA_DISK_1: looking for autobackup on day: 20081110
    channel ORA_DISK_1: looking for autobackup on day: 20081109
    channel ORA_DISK_1: looking for autobackup on day: 20081108
    channel ORA_DISK_1: looking for autobackup on day: 20081107
    channel ORA_DISK_1: looking for autobackup on day: 20081106
    channel ORA_DISK_1: looking for autobackup on day: 20081105
    channel ORA_DISK_1: no autobackup in 7 days found
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/11/2008 16:43:18
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece

    Many thanks for the helpful replies so far, Hemant!! I had to shelve this issue for a few days, back at it today.
    I have made some progress, I am able to restore the control file now - what I am doing, is copying the autobackup controlfile from the network drive over onto the server locally (E:\oracle\ora92\database\BACKUPCONTROL.ORA), then I am able to restore the controlfile with this:
    restore controlfile from 'E:\oracle\ora92\database\BACKUPCONTROL.ORA';
    And I can see that it restores all 3 of my controlfiles.
    The next step would be to do the database restore. When I issue the "restore database;" command, I can see that it lists out all of the datafiles that it needs to restore from the backup set, but then after about a minute, I see these error messages pop up:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/19/2008 10:55:54
    ORA-19587: error occurred reading 0 bytes at block number 1
    ORA-27091: skgfqio: unable to queue I/O
    ORA-27067: skgfdisp: size of buffer is invalid
    OSD-04026: Invalid parameter passed.
    When I looked up those last 2 error codes on Metalink, I see document ID 213858.1 that looks like this normally happens when the backup piece that has Read-Only permissions. I have confirmed that the backup files on the network drive are not Read-Only, I have full Read/Write privileges on them. So once again, I am stumped.
    Any thoughts? I might go ahead and log an SR for this, to try and get it resolved.
    Thanks!

  • Help is needed in restoring DB to new host

    Hello ,
    I posted new thread two days ago , but yet, haven't succedded in restore my DB from host A to host b .
    I need to do a test case , backup database at 11:00 , make some changes , (create / drop tables , whatever ) , take incremental level 1 at 11:15 , make more changes , plus another incremental level 1 backup at 11:30 .
    At the end of that , I should try to to restore the Database called DB1 , into host b , for the changes made before the backup of 11:15 (that is , set until time ... 11:15) .
    the problem is that I sit on that thing for about a week ,
    and each time get another error at the end of the process when trying to run :
    "recover database / recover database noredo" .
    Here is what I do in host a :
    [b]% setenv ORACLE_SID DB1
    % sqlplus "/ as sysdba"
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Jan 25 10:29:46 2007
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning and Data Mining options
    SQL> select to_char (sysdate,'dd-mm-yyyy hh24:mi') From dual ;
    TO_CHAR(SYSDATE,
    25-01-2007 10:34
    exit;
    % rman target / catalog rman/rman@RCVCAT
    Recovery Manager: Release 10.2.0.2.0 - Production on Thu Jan 25 10:32:33 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: DB1 (DBID=1206648960)
    connected to recovery catalog database
    RMAN> register database ;
    database registered in recovery catalog
    starting full resync of recovery catalog
    full resync complete
    RMAN> configure controlfile autobackup on ;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN> backup database ;
    Starting backup at 25-JAN-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=198 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00002 name=/u03/oradata/DB1/dbf/t_undo_01_DB1.ora
    input datafile fno=00001 name=/u03/oradata/DB1/dbf/t_system_01_DB1.ora
    input datafile fno=00003 name=/u03/oradata/DB1/dbf/t_sysaux_01_DB1.ora
    input datafile fno=00005 name=/u02/oradata/DB1/dbf/t_common_data_01_DB1.ora
    input datafile fno=00006 name=/u02/oradata/DB1/dbf/t_common_ix_01_DB1.ora
    input datafile fno=00004 name=/u03/oradata/DB1/dbf/t_users_01_DB1.ora
    input datafile fno=00007 name=/u02/oradata/DB1/dbf/t_cipher_data_01_DB1.ora
    input datafile fno=00008 name=/u02/oradata/DB1/dbf/t_cipher_ix_01_DB1.ora
    channel ORA_DISK_1: starting piece 1 at 25-JAN-07
    channel ORA_DISK_1: finished piece 1 at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_nnndf_TAG20070125T103356_2vjtvnsz_.bkp tag=TAG20070125T103356 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
    Finished backup at 25-JAN-07
    Starting Control File Autobackup at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612786863_2vjtwhsb_.bkp comment=NONE
    Finished Control File Autobackup at 25-JAN-07
    RMAN> backup archivelog all ;
    Starting backup at 25-JAN-07
    current log archived
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=11 recid=1 stamp=612786900
    channel ORA_DISK_1: starting piece 1 at 25-JAN-07
    channel ORA_DISK_1: finished piece 1 at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_annnn_TAG20070125T103501_2vjtxq1g_.bkp tag=TAG20070125T103501 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
    Finished backup at 25-JAN-07
    Starting Control File Autobackup at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612786907_2vjtxvrj_.bkp comment=NONE
    Finished Control File Autobackup at 25-JAN-07
    BACK TO SQLPLUS
    > SQL> select to_char (sysdate,'dd-mm-yyyy hh24:mi') From dual ;
    TO_CHAR(SYSDATE,
    25-01-2007 10:39
    SQL> create user newuser identified by nweuser ;
    User created.
    SQL> grant connect , resource , create table to newuser ;
    Grant succeeded.
    SQL> create table newuser.tab (col number) ;
    Table created.
    BACK TO RMAN
    RMAN> backup archivelog all ;
    Starting backup at 25-JAN-07
    current log archived
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=11 recid=1 stamp=612786900
    channel ORA_DISK_1: starting piece 1 at 25-JAN-07
    channel ORA_DISK_1: finished piece 1 at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_annnn_TAG20070125T103501_2vjtxq1g_.bkp tag=TAG20070125T103501 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
    Finished backup at 25-JAN-07
    Starting Control File Autobackup at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612786907_2vjtxvrj_.bkp comment=NONE
    Finished Control File Autobackup at 25-JAN-07
    RMAN> backup incremental level 1 all database ;
    Starting backup at 25-JAN-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting incremental level 1 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00002 name=/u03/oradata/DB1/dbf/t_undo_01_DB1.ora
    input datafile fno=00001 name=/u03/oradata/DB1/dbf/t_system_01_DB1.ora
    input datafile fno=00003 name=/u03/oradata/DB1/dbf/t_sysaux_01_DB1.ora
    input datafile fno=00005 name=/u02/oradata/DB1/dbf/t_common_data_01_DB1.ora
    input datafile fno=00006 name=/u02/oradata/DB1/dbf/t_common_ix_01_DB1.ora
    input datafile fno=00004 name=/u03/oradata/DB1/dbf/t_users_01_DB1.ora
    input datafile fno=00007 name=/u02/oradata/DB1/dbf/t_cipher_data_01_DB1.ora
    input datafile fno=00008 name=/u02/oradata/DB1/dbf/t_cipher_ix_01_DB1.ora
    channel ORA_DISK_1: starting piece 1 at 25-JAN-07
    channel ORA_DISK_1: finished piece 1 at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_nnnd1_TAG20070125T104227_2vjvcnpg_.bkp tag=TAG20070125T104227 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:46
    Finished backup at 25-JAN-07
    Starting Control File Autobackup at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612787395_2vjvf3rp_.bkp comment=NONE
    Finished Control File Autobackup at 25-JAN-07
    RMAN> backup archivelog all ;
    Starting backup at 25-JAN-07
    current log archived
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=11 recid=1 stamp=612786900
    input archive log thread=1 sequence=12 recid=2 stamp=612787440
    channel ORA_DISK_1: starting piece 1 at 25-JAN-07
    channel ORA_DISK_1: finished piece 1 at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_annnn_TAG20070125T104401_2vjvglw5_.bkp tag=TAG20070125T104401 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
    Finished backup at 25-JAN-07
    Starting Control File Autobackup at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612787447_2vjvgqog_.bkp comment=NONE
    Finished Control File Autobackup at 25-JAN-07
    BACK TO SQLPLUS
    SQL> select to_char (sysdate,'dd-mm-yyyy hh24:mi') From dual ;
    TO_CHAR(SYSDATE,
    25-01-2007 10:45
    SQL> create user userb identified by userb ;
    User created.
    SQL> grant create table , connect , resource to userb ;
    Grant succeeded.
    SQL> create table userb.userb_tab (col number) ;
    Table created.
    BACK TO RMAN
    RMAN> backup incremental level 1 database ;
    Starting backup at 25-JAN-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting incremental level 1 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00002 name=/u03/oradata/DB1/dbf/t_undo_01_DB1.ora
    input datafile fno=00001 name=/u03/oradata/DB1/dbf/t_system_01_DB1.ora
    input datafile fno=00003 name=/u03/oradata/DB1/dbf/t_sysaux_01_DB1.ora
    input datafile fno=00005 name=/u02/oradata/DB1/dbf/t_common_data_01_DB1.ora
    input datafile fno=00006 name=/u02/oradata/DB1/dbf/t_common_ix_01_DB1.ora
    input datafile fno=00004 name=/u03/oradata/DB1/dbf/t_users_01_DB1.ora
    input datafile fno=00007 name=/u02/oradata/DB1/dbf/t_cipher_data_01_DB1.ora
    input datafile fno=00008 name=/u02/oradata/DB1/dbf/t_cipher_ix_01_DB1.ora
    channel ORA_DISK_1: starting piece 1 at 25-JAN-07
    channel ORA_DISK_1: finished piece 1 at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_nnnd1_TAG20070125T104750_2vjvoqb0_.bkp tag=TAG20070125T104750 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
    Finished backup at 25-JAN-07
    Starting Control File Autobackup at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612787707_2vjvpw09_.bkp comment=NONE
    Finished Control File Autobackup at 25-JAN-07
    RMAN> backup archivelog all ;
    Starting backup at 25-JAN-07
    current log archived
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=11 recid=1 stamp=612786900
    input archive log thread=1 sequence=12 recid=2 stamp=612787440
    input archive log thread=1 sequence=13 recid=3 stamp=612787722
    channel ORA_DISK_1: starting piece 1 at 25-JAN-07
    channel ORA_DISK_1: finished piece 1 at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/backupset/2007_01_25/o1_mf_annnn_TAG20070125T104843_2vjvqdpf_.bkp tag=TAG20070125T104843 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 25-JAN-07
    Starting Control File Autobackup at 25-JAN-07
    piece handle=/u01/oradata/DB1/rman_admin/DB1/autobackup/2007_01_25/o1_mf_n_612787727_2vjvqhk7_.bkp comment=NONE
    Finished Control File Autobackup at 25-JAN-07
    exit host a
    Now I create same directories I have in host a , also in host b ,
    I have my init.ora file from host a and put it in host b ,
    and have all backups taken in host a , available in host b (got them through ftp) .
    here comes my question , I look at the pdf books of oracle and do somthing like that in host b :
    setenv ORACLE_SID DB1
    % sqlplus "/ as sysdba"
    SQL> startup nomount pfile=initDB1.ora
    SQL> exit
    % rman target / nocatalog
    RMAN > set dbid 1206648960 ;
    RMAN > restore controlfile from autobackup until time "to_date ('25-01-2007 10:35','dd-mm-yyyy hh24:mi')";
    ## to get back in time to the changes made before userb was created !
    RMAN > alter database mount ;
    RMAN > restore database ;
    RMAN > recover database noredo ;
    RMAN > alter database open resetlogs ;
    I don't run the whole process in host b , cause the restore is written somewhere , and I don't know where , and in the next time I try to run the restore operation , I get another kind of error message , and have to start the whole thing from the begining .
    what's wrong in my process ? it's either I got errors about my files that are older than the last time of the resetlogs , or the DB is recovered to its most current state , after the creation of userb .
    please advice . what should I change in my process ? it has been 3 days that I fail to recover my DB , and all I do is taken from oracle tecnet or metalink site .
    Thanks in advanced ,
    Lior .

    I think I found what was wrong .
    when I use restore controlfile until time , it means that if I wrote 13:00 the recover should be at least to 13:01 (for example) .
    meanwhile it works , I'm going to do some more tests to be sure .

  • Restore database to new server

    Hi,
    today I wanted to test a restore to a new server.
    DB=10.2.0.4
    rman catalog is used
    backup on TSM Tape
    First I configured the new server to use the same TSM backup node as the original server.
    tdpoconf showenv is ok.
    Then I checked Meatlink 419137.1 and copied the pfile to the new server and changed the xxx_dest parameter.
    Now I want to restore the controlfile.
    RMAN> run {
    2> allocate channel ch1 device type sbt;
    3> restore controlfile;
    4> }
    released channel: ORA_SBT_TAPE_1
    released channel: ORA_DISK_1
    allocated channel: ch1
    channel ch1: sid=154 devtype=SBT_TAPE
    channel ch1: Data Protection for Oracle: version 5.3.3.0
    Starting restore at 23-FEB-11
    released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 02/23/2011 12:47:27
    ORA-27191: sbtinfo2 returned error
    Additional information: 2
    RMAN> list backup of controlfile;
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    839079 Incr 1 18.25M SBT_TAPE 00:00:05 22-FEB-11
    BP Key: 839082 Status: AVAILABLE Compressed: NO Tag: TAG20110222T180016
    Handle: INC1_WORX_24789_743796123_1 Media: 97852
    Control File Included: Ckp SCN: 8267760886177 Ckp time: 22-FEB-11
    obviously there is a control file!
    I also tried to set the dbid from the server who made the backup
    RMAN> set dbid=1324742276;
    executing command: SET DBID
    run {
    database name is "WORX" and DBID is 1324742276
    RMAN> 2> allocate channel ch1 device type sbt;
    3> restore controlfile;
    4> }
    allocated channel: ch1
    channel ch1: sid=154 devtype=SBT_TAPE
    channel ch1: Data Protection for Oracle: version 5.3.3.0
    Starting restore at 23-FEB-11
    released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 02/23/2011 12:50:03
    ORA-27191: sbtinfo2 returned error
    Additional information: 2
    what's wrong?
    br
    Daniel

    Please post the entry of alert.log file and watch my video tutorial on Disaster Recovery
    http://kamranagayev.wordpress.com/2010/03/29/rman-video-tutorial-series-performing-disaster-recovery-with-rman/

  • Restore database to another host - I have only rman backup files

    Hi all,
    The PC where Oracle was installed is crashed.
    I have only the RMAN backup pieces in other computer.
    I want to restore/recover this RMAN backup to other PC.
    I know the commands, restore database, recover database,
    but I've always used these commands with rman into existing rman
    user. Now, I don't have anything. I have only the RMAN backup files.
    How can I restore/recover database to other PC using these files?
    The steps are? create other database, create a rman user, register
    the rman backup files in this new rman, and restore these files
    in this new database already created with the same name?
    thank you!!!!

    XM wrote:
    Hi all,
    The PC where Oracle was installed is crashed.
    I have only the RMAN backup pieces in other computer.
    I want to restore/recover this RMAN backup to other PC.
    I know the commands, restore database, recover database,
    but I've always used these commands with rman into existing rman
    user. Now, I don't have anything. I have only the RMAN backup files.
    How can I restore/recover database to other PC using these files?
    The steps are? create other database, create a rman user, register
    the rman backup files in this new rman, and restore these files
    in this new database already created with the same name?
    thank you!!!!You need to perform disaster recovery. For this, follow my step by step video tutorial:
    http://kamranagayev.wordpress.com/2010/03/29/rman-video-tutorial-series-performing-disaster-recovery-with-rman/

  • Move Portal Database to New Host

    Hi,
    We currently have EP7.0 installed and running on a single host.  We are running a DB2 database on AIX and would like to move just the database to a different host. 
    Can anyone advise the process by which we can do this?
    Thanks,

    Hi Michael,
    Not sure about AIX & DB2, but for Windows & MS SQL the next steps should be performed:
    1) Shut down J2EE and move backup of DB on the new host;
    2) Run ..\usr\sap\F12\JC30\j2ee\configtool\configtool.bat and change DB parameters here;
    3) Start J2EE.
    In your case I think will be the same.
    Regards,
    Andrei

  • Restoring on a new host fails.

    it is SOA Suite 10.1.3.1, and upgrade to 10.1.3.3.1.
    this suite run on windows 2003.
    I do the restoring action according to admin guide chapter 18.3.3
    but when run the 3rd step:
    bkp_restore.bat -m node_restore -o inst_register
    it prompts:
    Service Oracle-OracleSOAServerProcessManager in a state that can't be recreated.
    Please remove it manually first.
    I have checked, there is no Oracle-OracleSOAServerProcessManager service on the new host.
    what does this means, and how to resolve? any suggestion?

    Do this.
    Stop services in A, make a copy of all Oracle Home, etc/oratab, /var/opt/oracle and so on
    and coppy them to the B.
    Then in B, restore the copy and make a chmod -R 750 for the complete ORACLE_HOME, then run the root.sh
    After that, just make a little change in the host file, and put as an alias the name of A in B.
    Then run the script $OH/chgip/scripts/chgiphost.sh -mid
    and for the source use a and target use b for name and ip.
    Check the log and if it's ok, just remove the name of A in the host file as alias.
    Hope this helps.
    Regards.

  • Problem in moving database to new host

    Hi,
    I'm moving database from linux to windows and it perfectly moves as there is no endian formate issue between two OS. Now my problem is when I run below script
    RUN
    SET NEWNAME FOR DATAFILE 1 TO 'C:\app\Administrator\oradata\orcl\system01.dbf';
    SET NEWNAME FOR DATAFILE 3 TO 'C:\app\Administrator\oradata\orcl\undotbs01.dbf';
    SET NEWNAME FOR DATAFILE 2 TO 'C:\app\Administrator\oradata\orcl\sysaux01.dbf';
    SET NEWNAME FOR DATAFILE 4 TO 'C:\app\Administrator\oradata\orcl\users01.dbf';
    SET NEWNAME FOR DATAFILE 5 TO 'C:\app\Administrator\oradata\orcl\example01.dbf';
    SET NEWNAME FOR DATAFILE 6 TO 'C:\app\Administrator\oradata\orcl\apps_data01.dbf';
    SQL "ALTER DATABASE RENAME FILE
    ''D:\test\redo01.log''
    TO ''C:\app\Administrator\oradata\orcl\redo01.log'' ";
    SQL "ALTER DATABASE RENAME FILE
    ''/u01/app/oracle/oradata/orcl/redo02.log''
    TO ''C:\app\Administrator\oradata\orcl\redo02.log'' ";
    SQL "ALTER DATABASE RENAME FILE
    ''/u01/app/oracle/oradata/orcl/redo03.log''
    TO ''C:\app\Administrator\oradata\orcl\redo03.log'' ";
    SET UNTIL SCN 743262;
    RESTORE DATABASE from 'C:\app\Administrator\flash_recovery_area\ORCL\backupset\2010_10_03\o1_mf_nnndf_TAG20101003T121537_6bjcf7bj_.bkp';
    SWITCH DATAFILE ALL;
    RECOVER DATABASE;
    datafiles get renamed successfuly but it gives error on remaning redolog files as error stack of RMAN is given below
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    sql statement: ALTER DATABASE RENAME FILE''D:\test\redo01.log''TO ''C:\app\Admin
    istrator\oradata\orcl\redo01.log''
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 10/06/2010 20:30:43
    RMAN-11003: failure during parse/execution of SQL statement: ALTER DATABASE RENA
    ME FILE'D:\test\redo01.log'TO 'C:\app\Administrator\oradata\orcl\redo01.log'
    ORA-01511: error in renaming log/data files
    ORA-01516: nonexistent log file, datafile, or tempfile "D:\test\redo01.log"
    Now I have created all dummy redolog to redo01.log,redo02.log and redo03.log on location D:\test, but it is still giving errors
    what could be the problem of this as it seems that RMAN can rename files that it get from backupset but unable to read redolog files on the given path. I'm using 11gR1.
    Looking for reply
    Regards,
    Usman

    Dear user8812764,
    Welcome to the OTN forums.
    Please see the error explanations;
    ORA-01511: error in renaming log/data files
    Cause: An error occurred during the ALTER DATABASE RENAME FILE command.
    Action: Check the error stack for detailed error information.So now you need to check the accompanying error;
    ORA-01516: nonexistent log file, datafile, or tempfile "string"
    Cause: An attempt was made to use ALTER DATABASE to rename a log file, datafile, or tempfile; or to change attributes of a datafile or tempfile (e.g., resize, autoextend, online/offline, etc.); or to re-create a datafile. The attempt failed because the specified file is not known to the database's control file or is not of a type supported by the request.
    Action: Specify the name or number of an existing file of the correct type, as appropriate. Check the relevant V$ table for a list of possible files.By the way why do you have different redolog for group 1?
    SQL "ALTER DATABASE RENAME FILE
    ''D:\test\redo01.log''
    TO ''C:\app\Administrator\oradata\orcl\redo01.log'' ";
    SQL "ALTER DATABASE RENAME FILE
    ''/u01/app/oracle/oradata/orcl/redo02.log''
    TO ''C:\app\Administrator\oradata\orcl\redo02.log'' ";
    SQL "ALTER DATABASE RENAME FILE
    ''/u01/app/oracle/oradata/orcl/redo03.log''
    TO ''C:\app\Administrator\oradata\orcl\redo03.log'' ";There should be really an inconsistency here with your redolog naming conventions.
    Hope That Helps.
    Ogan

  • Restore database with new DB name

    I'm trying to restore a database from a hot backup with a new database name. I'm trying to use the backup control file with the SET DATABASE in the control file. That works ok, but when I run RECOVER DATABASE USING BACKUP CONTROLFILE I get errors such as
    ORA-00279: change 1516911820 generated at 09/08/2006 17:14:43 needed for thread 1
    and ORA-00308: cannot open archived log
    Can anyone help me? I'm not using RMAN currently with the DUPLICATE command because I'm running on NetApp filers and it would be much faster to duplicate the database this way. Also, I'm duplicating on the same server so I need to use a different instance name.
    Thanks,
    Michael Cunningham

    Assuming source is in Archive Log mode.
    Your scenario is :-
    Cloning Database in the same server using OS copy.
    I believe you are stuck with recovery issues, what you need to do is feed the archive log that the database is asking for. You can also try giving it the redo logs.
    RECOVER DATABASE USING BACKUP CONTROLFILE;
    feed it the archive/redo logs. Till you get a Media recovery complete message.

  • Restore database to different host

    Hi
    Suppose, I have a full rman backup of a database called "orcl" in the tape.
    Can I restore this backupset to another host with database and instance name "test" ?
    I will first restore controlfile and datafiles respectively.
    In other words, is it necessary to have same database name and instance name if I want to do restore ?

    Hi!
    If you can connect from the target host to the source host than you can use the "DUPLICATE DATABASE" with "SET NEW NAME" option in rman. This is the easiest way:
    [http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#BRADV169]
    [http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta028.htm#RCMRF126]
    If the connection is not allowd from the target host to the source host than you can simply restore and recover the ORCL database on the target host and rename it with NID (DBNEWID) utility:
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dbnewid.htm#SUTIL014]
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dbnewid.htm#sthref1868]
    If this post was usefull please mark it as HELPFULL or CORRECT answer!
    Best Regards
    Norbert

  • ORA-01103 - restoring database to new name.

    Hi, I'm attempting to restore a database from a cold backup. It's not RMAN, it's just an OS level backup.
    The technical details are
    Windows 2003
    Oracle 11.1
    What's happened is- I upgraded our development database from 11.1 to 11.2 and we discovered a bug, so i want restore the database in the 11.1 instance. The 11.2 version of the database is running, people are using it, we have a workaround so i can't delete that database. What I want to do is create a new instance in 11.1 restore all the datafiles/control files/etc, setup the parameter file and start up the database, obviously I had to use a different name.
    However the problem I'm seeing is
    ORA-01103: database name 'ALPHA' in control file is not 'ALPHADB'. ALPHADB is the new database. I thought to do the backup to trace and recreate the control files, but I can't mount the database. I have performed 'backup to trace' on the OLD database.
    Any advice please?

    Try entering "cancel" to the prompt for an archived redo log. If Oracle accepts the cancel then try altering the database open with reset logs.
    You said this was a cold OS level backup in which case the backup should have been made while the database was shut down and the database should have been shut down cleanly usually using shutdown immediate. Is this true?
    HTH -- Mark D Powell --

  • How to copy Restore database in new server and new domain.

    Hai all,
    I'm trying to backup a database from one SQL server and restore it to another (both are SQL2008 R2) but diff domain. 
    when I try run few query, the output is empty. Please advise.
    noor hafizah

    Hi Noor,
    Filtered views use the Principal Access Object to determine the records to be shown to the current user (the one executing the query). You will not be able to see any results if the account not defined inside CRM.
    Please try to
    assign the correct security role to the user account.
    If you have more questions related to CRM, you can post in the Microsoft Dynamics CRM Forum . More experts there will assist you.
    Regards,
    Fanny Liu  
    Fanny Liu
    TechNet Community Support

  • ORA-01041 error when duplicating database to new host

    I'm using RHEL 5 with Oracle 11g and I'm testing data guard.
    I am trying to setup data guard by following this link:
    http://www.databasejournal.com/features/oracle/article.php/3816751/Oracle-11g-Data-Guard-Building-a-Physical-Standby-Database.htm
    I use the following command:
    [oracle@linux-test ~]$ rman target sys/oracle auxiliary sys/oracle@stdby
    Recovery Manager: Release 11.1.0.6.0 - Production on Tue Oct 6 11:54:47 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: ORCL (DBID=1227314034)
    connected to auxiliary database: STDBY (not mounted)
    RMAN> RUN {
    ALLOCATE CHANNEL d1 TYPE DISK;
    ALLOCATE CHANNEL d2 TYPE DISK;
    ALLOCATE AUXILIARY CHANNEL cnv1 TYPE DISK;
    ALLOCATE AUXILIARY CHANNEL cnv2 TYPE DISK;
    DUPLICATE TARGET DATABASE
    FOR STANDBY
    FROM ACTIVE DATABASE
    DORECOVER
    SPFILE
    SET db_unique_name='stdby'
    SET control_files='/home/u01/app/oracle/oradata/orcl/control01.ctl'
    SET log_file_name_convert='/home/u01/app/oracle/oradata/orcl/','/home/u01/app/oracle/oradata/stdby/'
    SET log_archive_dest_1='location=/home/u01/app/oracle/flash_recovery_area/STDBY/ valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=stdby'
    SET log_archive_dest_2='service=orcl ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=orcl'
    SET fal_client='stdby'
    SET fal_server='orcl'
    SET standby_file_management='AUTO'
    SET log_archive_config='dg_config=(orcl,stdby)'
    NOFILENAMECHECK;
    When it's starting datafile copy, I get this error:
    channel d1: starting datafile copy
    input datafile file number=00001 name=/home/u01/app/oracle/oradata/orcl/system01.dbf
    channel d2: starting datafile copy
    input datafile file number=00002 name=/home/u01/app/oracle/oradata/orcl/sysaux01.dbf
    RMAN-03009: failure of backup command on d1 channel at 10/06/2009 11:56:41
    ORA-19558: error de-allocating device
    ORA-19557: device error, device type: DISK, device name:
    ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
    ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
    ORA-03113: end-of-file on communication channel
    channel d1 disabled, job failed on it will be run on another channel
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 10/06/2009 11:56:54
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on d2 channel at 10/06/2009 11:56:54
    ORA-19558: error de-allocating device
    ORA-19557: device error, device type: DISK, device name:
    ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
    ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
    ORA-03113: end-of-file on communication channel
    I have googled it but I still have no solution yet.
    Any idea please?
    Sarith

    Use a 'Try and Error' strategy, remove the manual channel allocations from the script, these are not mandatory. Let RMAN automatically allocate channels.
    Werner

  • RMAN full DB restore on New Host

    Hi There,
    My RMAN full backup script is like this:
    RMAN> CONNECT TARGET *
    CONNECT CATALOG *
    run {
    allocate channel 'dev_0' type 'sbt_tape'
      parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=db1,OB2BARLIST=Off-site,OB2BARHOSTNAME=db1.blah.tr)';
    backup incremental level 0
      format 'Off-site<db1_%s:%t:%p>.dbf'
      cumulative
      database;
    backup
      format 'Off-site<db1_%s:%t:%p>.dbf'
      archivelog all;
    backup
      format 'Off-site<db1_%s:%t:%p>.dbf'
      current controlfile;
    EXITCan you help writing a full restore/recover script...
    Thanks
    Edited by: user642423 on Jan 24, 2009 11:11 PM

    I want to restore to a New Host and the above script will not work for me...
    Doing this procedure "http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmrecov.htm#i1007814" I get an error like this:
    PS: I've set "maxdays 30" but again same "no autobackup found or specified handle is not a valid copy or piece" error...
    channel dev_0: looking for autobackup on day: 20090125
    channel dev_0: looking for autobackup on day: 20090124
    channel dev_0: looking for autobackup on day: 20090123
    channel dev_0: looking for autobackup on day: 20090122
    channel dev_0: looking for autobackup on day: 20090121
    channel dev_0: looking for autobackup on day: 20090120
    channel dev_0: looking for autobackup on day: 20090119
    channel dev_0: no autobackup in 7 days found
    released channel: dev_0
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 01/25/2009 00:27:00
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece

Maybe you are looking for

  • Two column header in ALV Report

    Hi Experts, Can I have 2 headers in ALV report kind of one header and one sub header below that. like i have to display a report having the same information for 3 systems so in header I can have the system name and below that usual headers. Thanks Yo

  • How to create an applet in a JDestopPane?

    hello i would like to create an applet (JApplet) in a desktop (JDesktopPane). i have to put the applet in a JInternalFrame so i can move and resize the window around. indeed i can have several applets in the JDesktopPane. it would be more powerfull t

  • The wifi on my macbook pro (lion) is ridiculously slow. the wifi on my pc works perfectly though. how could i fix this?

    So I recently bought my MacBook Pro, about three days ago, and the wifi connection is horrible. I can barely access anything on the internet. I tried using my PC laptop, and the wifi worked very quickly, so the problem definitely isn't my wifi connec

  • Quirky Behaviour with Reader XI

    After upgrading to Reader XI on a couple of computers (one Win7 and one XP) the endusers found they were unable to re-save a file overtop of itself. I found in Google that if you enable enhanced security on the file this issue goes away - which it di

  • Airport 2nd Gen. Not Working; Worth Selling?

    Hello, Recently upgraded to a 5th Generation that seems to be working better with modem.  With 2nd Generation would have to unplug the router to connect to the internet several times daily.  The firmware on the 2nd was updated.  I was using 2.4ghz no