RMAN restore: what is the DBID?

Hello

There were a few problems with plesk on our server and there is no way except the OS reload. Here is the log for each backup car of the day:

XE Backup Journal

Recovery Manager: release 11.2.0.2.0 - Production on Mon Oct 5 02:30:02 2015

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

connected to target database: XE (DBID = 2713545907)

RMAN >

echo on

RMAN > configure redundancy 2 retention policy;

using the control file of the target instead of recovery catalog database

RMAN old configuration settings:

CONFIGURE REDUNDANCY 2 RETENTION STRATEGY;

new RMAN configuration settings:

CONFIGURE REDUNDANCY 2 RETENTION STRATEGY;

new RMAN configuration settings are stored successfully

RMAN > configure controlfile autobackup format clear device type disk;

RMAN configuration settings are reset to the default value

RMAN > configure controlfile autobackup on;

RMAN old configuration settings:

CONFIGURE CONTROLFILE AUTOBACKUP

new RMAN configuration settings:

CONFIGURE CONTROLFILE AUTOBACKUP ON;

new RMAN configuration settings are stored successfully

RMAN > sql "create pfile =" / u01/app / . Oracle / Product/11.2.0/XE/DBS/ " spfile2init.ora" of spfile ";

sql statement: create pfile = "/ u01/app / Oracle / Product/11.2.0/XE/DBS/ spfile2init.ora "of spfile

RMAN > backup backupset device type disk database;

From backup October 5, 15

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID = 114 type device = DISK

channel ORA_DISK_1: from full data file backup set

channel ORA_DISK_1: specifying datafile (s) in backup set

file number of the input data file = 00001 = / var/oradata/XE/system name. DBF

file number of the input data file = 00002 name = / var/oradata/XE/sysaux. DBF

file number of the input data file = 00003 name = / var/oradata/XE/undotbs1. DBF

Enter a number of file datafile = name=/var/oradata/XE/users.dbf 00004

channel ORA_DISK_1: starting total, 1-5 October 15

channel ORA_DISK_1: finished piece 1 at 5 October 15

piece handle = / var/oracle_fra/XE / backupset/2015_10_05/o1_mf_ nnndf_TAG20151005T023003_ c149qwxk_.BKP tag = TAG20151005T023003 comment = NONE

Channel ORA_DISK_1: backup complete set, time: 00:01:56

Finish backup October 5, 15

From control file and SPFILE Autobackup 5 October 15

piece handle = / var/oracle_fra/XE / backup automatic/2015_10_05/o1_mf_s_ 892261919_c149vhn0_.BKP comment = NONE

File control finished and Autobackup SPFILE to 5 October 15

RMAN > configure controlfile autobackup.

RMAN old configuration settings:

CONFIGURE CONTROLFILE AUTOBACKUP ON;

new RMAN configuration settings:

CONFIGURE CONTROLFILE AUTOBACKUP

new RMAN configuration settings are stored successfully

RMAN > delete noprompt obsolete;

RMAN retention policy apply to the order

RMAN retention policy is set to 2 redundancy

using channel ORA_DISK_1

Radiation of the obsolete following backups and copies:

Making key time filename/handle type

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

Backup Define 1265 3 October 15

Backup piece 1265 3 October 15/var/oracle_fra/XE/backupset /2015_10_03/o1_mf_nnndf_TAG20151003T023003_c0z0zwm9_. BKP

Log archiving 669 3 October 15/var/oracle_fra/XE/archivelog / 2015_10_03/o1_mf_1_730_ c0z13f0x_.arc

Backup Define 1266 3 October 15

Backup piece 1266 3 October 15/var/oracle_fra/XE/autobackup /2015_10_03/o1_mf_s_892089109_c0z1364t_.bkp

deleted backup room

backup piece handle = / var/oracle_fra/XE / backupset/2015_10_03/o1_mf_ nnndf_TAG20151003T023003_ c0z0zwm9_.BKP RECID = 1265 STAMP = 892089004

Delete archived log

name = archived log file / var/oracle_fra/XE / ARCHIVELOG/2015_10_03/o1_mf_1_ 730_c0z13f0x_.arc RECID = 669 STAMP = 892089118

deleted backup room

backup piece handle = / var/oracle_fra/XE / backup automatic/2015_10_03/o1_mf_s_ 892089109_c0z1364t_.BKP RECID = 1266 STAMP = 892089110

3 items deleted

RMAN >

Complete recovery manager.

Recovery Manager: release 11.2.0.2.0 - Production on Mon Oct 5 02:32:04 2015

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

connected to target database: XE (DBID = 2713545907)

RMAN >

using the control file of the target instead of recovery catalog database

SQL statement: alter system archive log current

RMAN >

Complete recovery manager.

The data files and RMAN backup files resides on the other HDD that are:

/ var/oradata/XE

/ var/oracle_fra

I also copied the following files:

init.ora

spfile2init.ora

spfileXE.ora

Now the OS is reloaded, and I installed oracle from scratch:

SQL > SELECT * FROM v version $;

BANNER

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

Oracle Database 11 g Express Edition Release 11.2.0.2.0 - 64 bit Production

PL/SQL Release 11.2.0.2.0 - Production

CORE Production 11.2.0.2.0

AMT for Linux: Version 11.2.0.2.0 - production

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

] # cat/etc/centos-release

CentOS release 6.7 (Final)

The following folders/files are on my slave drive:

oradata/disk1 /.

/ Disk1/oradata/XE

/Disk1/oradata/XE/control.dbf

/Disk1/oradata/XE/redo10_01.dbf

/Disk1/oradata/XE/redo11.dbf

/Disk1/oradata/XE/redo12.dbf

/Disk1/oradata/XE/redo13.dbf

/Disk1/oradata/XE/redo14.dbf

/Disk1/oradata/XE/redo15.dbf

/Disk1/oradata/XE/SYSAUX.dbf

/Disk1/oradata/XE/system.dbf

/Disk1/oradata/XE/temp.dbf

/Disk1/oradata/XE/undotbs1.dbf

/Disk1/oradata/XE/users.dbf

oracle_fra/disk1 /.

/ Disk1/oracle_fra/XE

/ Disk1/oracle_fra/XE/ARCHIVELOG

/ Disk1/oracle_fra/XE/Autobackup

/ Disk1/oracle_fra/XE/backupset

/ Disk1/oracle_fra/XE/onlinelog

/ Disk1/oracle_fra/XE/ARCHIVELOG/2015_09_29

/ Disk1/oracle_fra/XE/ARCHIVELOG/2015_09_30

/ Disk1/oracle_fra/XE/ARCHIVELOG/2015_10_01

/ Disk1/oracle_fra/XE/ARCHIVELOG/2015_10_02

/ Disk1/oracle_fra/XE/ARCHIVELOG/2015_10_03

/ Disk1/oracle_fra/XE/ARCHIVELOG/2015_10_04

/ Disk1/oracle_fra/XE/ARCHIVELOG/2015_10_05

/ Disk1/oracle_fra/XE/ARCHIVELOG/2015_10_06

/Disk1/oracle_fra/XE/ARCHIVELOG/2015_10_04/o1_mf_1_731_c11ognk8_.arc

/Disk1/oracle_fra/XE/ARCHIVELOG/2015_10_05/o1_mf_1_732_c149vo3c_.arc

/Disk1/oracle_fra/XE/ARCHIVELOG/2015_10_05/o1_mf_1_733_c15dshcn_.arc

/Disk1/oracle_fra/XE/ARCHIVELOG/2015_10_06/o1_mf_1_734_c18sw1q9_.arc

/ Disk1/oracle_fra/XE/Autobackup/2015_09_29

/ Disk1/oracle_fra/XE/Autobackup/2015_09_30

/ Disk1/oracle_fra/XE/Autobackup/2015_10_01

/ Disk1/oracle_fra/XE/Autobackup/2015_10_02

/ Disk1/oracle_fra/XE/Autobackup/2015_10_03

/ Disk1/oracle_fra/XE/Autobackup/2015_10_04

/ Disk1/oracle_fra/XE/Autobackup/2015_10_05

/Disk1/oracle_fra/XE/autobackup/2015_10_04/o1_mf_s_892175488_c11ogk7m_.BKP

/Disk1/oracle_fra/XE/autobackup/2015_10_05/o1_mf_s_892261919_c149vhn0_.BKP

/ Disk1/oracle_fra/XE/backupset/2015_09_29

/ Disk1/oracle_fra/XE/backupset/2015_09_30

/ Disk1/oracle_fra/XE/backupset/2015_10_01

/ Disk1/oracle_fra/XE/backupset/2015_10_02

/ Disk1/oracle_fra/XE/backupset/2015_10_03

/ Disk1/oracle_fra/XE/backupset/2015_10_04

/ Disk1/oracle_fra/XE/backupset/2015_10_05

/Disk1/oracle_fra/XE/backupset/2015_10_04/o1_mf_nnndf_TAG20151004T023003_c11ocwg1_.BKP

/Disk1/oracle_fra/XE/backupset/2015_10_05/o1_mf_nnndf_TAG20151005T023003_c149qwxk_.BKP

/Disk1/oracle_fra/XE/onlinelog/o1_mf_1_9d4vrb2o_.log

/Disk1/oracle_fra/XE/onlinelog/o1_mf_2_9d4vrcn4_.log

/Disk1/oracle_fra/XE/onlinelog/o1_mf_3_9d4vrfbh_.log

/Disk1/oracle_fra/XE/onlinelog/o1_mf_4_9d4vrgt3_.log

/Disk1/oracle_fra/XE/onlinelog/o1_mf_6_9d4vr88o_.log

Now I want to restore the last backup of the database:

I googled and found this article: How do to restore database Oracle using RMAN (with examples) but do not know what is:

RMAN > SET DBID 12345;

Question-1: Which means the VALUE XE 1521 in my case?

Question-2: Lbooking for a restore script


It will be the first time in my career to restore the database

Thank you in anticipation

I guess that the following be useful: Oracle Database 11g: example of disaster recovery. When you restore a database from scratch, you need to know and define the DBID to identify the files required for the restoration, which must also match your target database, which is the database or the instance that you want to restore.

Tags: Database

Similar Questions

  • RMAN restore in the State of the mount in Oracle 11 g DB

    I have a question which can be very naïve, it is to confirm if the RMAN restore happens in the mount status of data or can it also happen when the DB is in open State?

    I hope my question is clear what is the eligible state of the database in which the RMAN restore can happen.

    Please get back with the answer to my query.


    Concerning

    addition of HemantKChitale response

    If you must restore controlfile, restoration can be done with the database OPEN or MOUNT, it should be in NOMOUNT State.

  • I use TDE tablespace encriptación and backup is performed (no encriptación rman). I get the error message when you try to restore the database

    I use TDE tablespace encriptación and backup is performed (no encriptación rman). I deleted the database and try to restore the backup. I get the error when you try to restore the database with rman restore database.

    ORA-19870: error when restoring backup piece + FRA_DG, oratst, backupset, 2015_03_2

    ORA-19913: could not decrypt the backup

    ORA-28365: portfolio is not open

    About what I know, you should be able to RESTORE the data, but no RECOVERY without portfolio being opened.

    Check the value of the variable environment - ORACLE_UNQNAME

    It has everything first a correct value and try to open the wallet.

    HTH,

    Pradeep

  • What restoration brings back old bags in the device? I was always told that icloud restoration brings all the bugs back, yet care apple lately told me than vice versa. I'm lost in a cleaner for restoration of backup: icloud or itune?

    What restoration brings back old bags in the device? I was always told that icloud restoration brings all the bugs back, yet care apple lately told me than vice versa. I'm lost in a cleaner for restoration of backup: icloud or itune?

    I've never heard a backup report bugs, however if you are interested in, you can always restore the device as good as new.

  • System Restore cannot create restore, point because the "shadow copy provider had an unexpected error." What can I do?

    Have a Dell Inspiron 1545 with Vista.  System Restore cannot create restore, point because the "shadow copy provider had an unexpected error."   What can I do?

    Hi JamesParwulski,

    Method 1
    I suggest you to scan SFC.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7.
    http://support.Microsoft.com/kb/929833

    Method 2
    I suggest you perform a checkdisk.

    Check your hard drive for errors
    http://Windows.Microsoft.com/en-us/Windows-Vista/check-your-hard-disk-for-errors

  • What is the standard way to backup / restore the application options?

    Hello

    I was wondering what is the standard way to backup / restore application options (scenario: options backup to memory card, the user reinstall OS, reinstall app, restore options)

    I would rather not put up my own encode / decode routines if possible.

    I've seen several approaches used in real-world applications:
    * csv like data file
    * binary storage (Berry, weather)
    but I'm not aware on how they have been implemented.

    Any ideas / suggestions?

    Here's the "official" way

    http://supportforums.BlackBerry.com/T5/Java-development/backup-and-restore-small-amounts-of-data-USI...

    This works if people use Desktop Manager to switch devices.

    I think that most people will write their own serialization code to convert objects into a form of byte (as you saw csv, or own format or XML) and then put that somewhere - like your own server for application aware network or SD card.  This approach works, regardless of the method, users of user to switch devices.

  • What is the command to view the Configuration of RMAN

    What is the command to view the Configuration of RMAN

    in oracle 11g R2

    Hello

    You have to look in the documentation?

    The SHOW ALL command will show you the configuration. Is that what you're looking for?

  • All the members (but 1) are removed from the entity dimension in planning and deployed to essbase. -What are the data deleted in essbase so? / The data can be restored by restoring the entity dimension?

    All the members (but 1) are removed from the entity dimension in planning and deployed to essbase.

    -What are the data deleted in essbase so?

    The data can be restored by restoring the entity dimension? EPMA the entity dimension is still in tact.

    It is unclear what exectly arrived, but looks like a change was made in the dimension entity planning (not EPMA) and then deployed (successfully).

    In essbase, we see that the entity dimension has only one member left for the appropriate plan types, as in the planning.

    If you remove members and then push that yes the essbase data is deleted, if you need back then you will need to go back to your restore process.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • RMAN restore until THE SNA in DATA GUARD environment

    Hello

    OS = RHL5

    DB = 11.2.0.3 primary and 1 physical database paused.

    I have a huge request changes tomorrow and its possible that I have an obligation to RESTORE the database 5 hours back because the application.

    I think to be adopted following the method of the official documentation of the Oracle (untilClause):

    MOUNT FORCE OF START

    RUN

    {

    UNTIL THE SNA 1418901.  # The necessary number SNA will be used here.

    RESTORE THE DATABASE;

    RECOVER THE DATABASE;

    }

    ALTER DATABASE OPEN RESETLOGS;

    I will of course take Level0 backup tonight and LEVEL1 backup before the start of the work.

    My humble question is that: If this is the good method I adopt? and if so, then what about physical databases eve? Is that something to restore/recovery too? It is not required or waiting for database necessary to create again (which I'm afraid of)?

    Flash back is not enabled.

    Pack of thank you for the suggestion.

    Best regards

    You can enable FLASHBACK DATABASE on major sites and relief and set a RESTORE POINT before the migration of the applications.

    If you stop to redo expedition to the France, the waking state is the last SNA that was applied (i.e. 1001). If you need to return the primary SNA 1011 and then resume the delivery of roll forward, Eve can continue to 1002 from totally ignorant.  If you flashback primary to a SNA lower, say, 998, you would have to flashback the night before as well (997 or 998) until you can resume redo expedition to the France.

    See the Oracle support Note: how Flashback the primary database in standby Configuration (Doc ID 728374.1)

    Hemant K Collette

  • How can I restore and recover the database to a different server using RMAN?

    Hello Friend:

    How can I restore and recover the database to a different server using RMAN? I want to implement an enviroument which has a different enviroument and different directories.

    That's the two servers. different stored different on each server and a single link, a table library where backup set.

    I can only restore and recover the database of the Rman command. Could you give me a demo?

    Thank you

    How can I restore and recover the database to a different server using RMAN? I want to implement an enviroument which has a different enviroument and different directories.

    That's the two servers. different stored different on each server and a single link, a table library where backup set.

    I can only restore and recover the database of the Rman command. Could you give me a demo?

    Check this box
    * How to restore Rman backups on a different node when the Directory Structures are different [ID 419137.1] *.

  • What is the difference between the following RMAN commands?

    What is the difference between the following RMAN commands?

    RMAN > CONFIGURE DEVICE TYPE sbt PARALLELISM 2;
    RMAN > CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2;

    RMAN channel type

  • What happens if RMAN has stopped in the Middle?

    How can manage us if RMAN being stopped in the Middle?

    Restart RMAN backups

    With the reusable backup feature, RMAN backs up only files that were not saved after a specified date.

    bootable backup

    The feature that allows to RMAN back up only the files that have not been backed up since a specified date. Restart unit ended last backup set or copy of the image. You can use this feature after a backup fails to save the parts of the database behind the backup failed.

    On redemarrables backups

    The minimum unit of restart is a data file. However, if a backup set contains a backup piece, and this piece contains blocks of several data files, then restart unit is the backup piece. The reboot to get copies of the image unit is a data file.

    The advantage of redemarrables backup is that if the backup generates multiple backup sets, then backup completed successfully sets do not be rerun. However, if the entire database is written in a backup set, and if the backup fails to halfway through, then the whole of the backup should be repeated.

    IO errors that RMAN meets when reading files or writing for the backup pieces or copies of the RMAN image put an end to the current backup task. For example, if RMAN tries to save a file of data, but the data file is not on the disk, then RMAN complete backup. If several channels are used or redundant backup copies are created, then RMAN can however be able to continue the backup without user intervention.

    RMAN can back up only the files that have not been backed up since a specified date. Use this function after a backup fails to save the parts of the database behind the backup failed.

    You can reboot a backup by specifying the SINCE TIME clause on the BACKUP command. If the SINCE TIME is later than the time of execution, then RMAN backs up the file. If you use BACKUP DATABASE NOT BACKED UP without the SINCE TIME parameter, then RMAN backs up only files that have never been backed up.

    Restart a backup after having partially completed

    Use of the SINCE TIME parameter of the BACKUP command to specify a date after which a new backup is necessary. If the SINCE TIME is later than the time of execution, then RMAN backs up the file. If you use BACKUP DATABASE NOT BACKED UP without the SINCE TIME parameter, then RMAN backs up only files that have never been backed up.

    To back up only files which have been saved after a specified date:

    1. Start RMAN and connect to a catalog of database and recovery target (if used).
    2. Run the BACKUP ... NOT BACKED UP SINCE TIME command.

      Specify a valid date in the SINCE TIME parameter. The following example uses the default channel configured to back up all database files and logs archived recovery that have not been backed up during the last two weeks:

      BACKUP NOT BACKED UP SINCE TIME 'SYSDATE-14' DATABASE PLUS ARCHIVELOG;
      
  • Tag RMAN restore

    Oracle 11.2.0.4 on redhat 6

    SERV1 MAZ prod database server's SERV2 developemt server with no database on this subject.

    I noted the dbid and last SNA and then take a backup on SERV1 by using the following command

    run

    {

    backup database archivelog "first" tag

    }

    now copied all the files backup and a copy of the pfile to SERV2.

    on SERV2

    RMAN target /.

    the value of dbid 2711958994

    start editing pfile=/u01/app/oracle/product/11.2.0/dbhome_2/dbs/initmaz.ora

    Run {}

    Controlfile autobackup format of disc type of the device set to ' / u03/app/oracle/fast_recovery_area/TEST/autobackup/2015_05_15/%F';

    Restore spfile from pfile ' / u01/app/oracle/product/11.2.0/dbhome_2/dbs/initmaz.ora' automatic backup;

    }

    immediate stop

    startup nomount pfile=/u01/app/oracle/product/11.2.0/dbhome_2/dbs/initmaz.ora

    Run {}

    Controlfile autobackup format of disc type of the device set to ' / u03/app/oracle/fast_recovery_area/TEST/autobackup/2015_05_15/%F';

    Restore automatic backup controlfile;

    }

    change the editing of the database;

    Catalogue start with "/ u03/app/oracle/fast_recovery_area/MAZ/backupset/2015_05_15";

    now, I checked that the backup set it available on SERV2

    RMAN target /.

    RMAN > list backup;

    using the control file of the target instead of recovery catalog database

    List of backup sets

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

    Time of accomplishment time BS key size Device Type

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

    6,59 M 190 00:00 DISK: 00 15 MAY 15

    BP key: 190 situation: AVAILABLE Tablet: YES Tag: FIRST

    Part name: /u03/app/oracle/fast_recovery_area/MAZ/backupset/2015_05_15/o1_mf_annnn_FIRST_bocjlvfk_.bkp

    List of newspapers archived on backup the value 190

    The next time that THRD Seq YVERT low low time next YVERT

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

    1 501 1950316 14 MAY 15 1973213 15 MAY 15

    1 502 1973213 MAY 15, 15 1973254 15 MAY 15

    1 503 1973254 MAY 15, 15 1974268 15 MAY 15

    1 504 1974268 MAY 15, 15 1974295 15 MAY 15

    1 505 1974295 MAY 15, 15 1974321 15 MAY 15

    1 506 1974321 MAY 15, 15 1976213 15 MAY 15

    1 507 1976213 MAY 15, 15 1976251 15 MAY 15

    1 508 1976251 MAY 15, 15 1977715 15 MAY 15

    Time of accomplishment BS key Type LV size device Type elapsed time

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

    191 full 76.84 M DISK 00:00:30 May 15 15

    BP key: 191 Situation: AVAILABLE Tablet: YES Tag: TAG20150515T105436

    Part name: /u03/app/oracle/fast_recovery_area/MAZ/backupset/2015_05_15/o1_mf_nnndf_TAG20150515T105436_bocjlwr0_.bkp

    List of 191 set backup data files

    Name of file LV Type cash SNA cash time

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

    1977721 full 1 /u02/app/oracle/oradata/maz/system01.dbf 15 May 15

    2 full 1977721 15 May 15 /u02/app/oracle/oradata/maz/sysaux01.dbf

    3 full 1977721 15 May 15 /u02/app/oracle/oradata/maz/undotbs01.dbf

    4 integer 1977721 /u02/app/oracle/oradata/maz/users01.dbf 15 May 15

    Time of accomplishment time BS key size Device Type

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

    192 K DISK 00:00:00 3.00 15 MAY 15

    BP key: 192 situation: AVAILABLE Tablet: YES Tag: FIRST

    Part name: /u03/app/oracle/fast_recovery_area/MAZ/backupset/2015_05_15/o1_mf_annnn_FIRST_bocjmzy1_.bkp

    List of newspapers archived on backup value 192

    The next time that THRD Seq YVERT low low time next YVERT

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

    1 509 1977715 MAY 15, 15 1977737 15 MAY 15

    at this point if I am running the following then everything works

    Run {}

    until the SNA 1977737.

    restore the database;

    recover the database;

    }

    ALTER database open resetlogs;

    but I want to restore by using the name of the tag (initially), so I try this

    Run {}

    until the SNA 1977737.

    restore the database from tag = FIRST;

    }

    and I get the message

    From restoration to May 15, 15

    using channel ORA_DISK_1

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the restore command at the 13:15:05 15/05/2015

    RMAN-06026: some targets not found - abandonment of restoration

    RMAN-06023: no backup or copy of the file 4 found to restore

    RMAN-06023: no backup or copy of datafile 3 found to restore

    RMAN-06023: no backup or copy of datafile 2 found to restore

    RMAN-06023: no backup or copy of datafile 1 found to restore

    any ideas as to what I'm doing wrong?

    Thank you

    you are allowed when executing 'backup list', TAG20150515T105436 was one of the existing tag in you database backups (see your message)

    with your actual copies, your should run:

    Run {}

    until the SNA 1977737.

    restore the database from tag = "TAG20150515T105436";

    recover the database;

    }

    If you do a new backup with diferent tag the database to archivelog, you will use this new tag (DATABASE_TAG).

    Kind regards.

  • RMAN restore to another device Oracle 11 g 1

    Hello

    I have a big problem. I have on PC running Windows Server 2003 named "Host A" and another Windows Server 2003 "host B".
    I made a backup of host A and you want to restore it to host B with the procedure.

    Preparation & backup:
              SQLPLUS SYS AS SYSDBA
              SQL>SHUTDOWN IMMEDIATE     
              SQL>STARTUP MOUNT
              SQL>ALTER DATABASE ARCHIVELOG;
              SQL>ALTER DATABASE OPEN;
              SQL>ARCHIVE LOG LIST;
              SQL>ALTER SYSTEM ARCHIVE LOG START;
              SQL>QUIT
    
              RMAN TARGET /
              RMAN>CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 
    'C:\Oracle-Backup\backup/%T.bkp';
    
    RMAN>CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 
    DISK TO 'C:\Oracle-Backup\controlfile/%F.bkp';
    
    
              RMAN>CONFIGURE CONTROLFILE AUTOBACKUP ON;
              RMAN>EXIT;
              
    
              RMAN TARGET /
              RMAN>BACKUP DATABASE;     // maybe PLUS ARCHIVELOG 
              RMAN>EXIT;
    After this I got a Controlfile 9,6 mb and a 1 GB file backup

    Then I restored to the second machine:
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.
    
    C:\Dokumente und Einstellungen\Administrator>rman
    
    Recovery Manager: Release 11.1.0.6.0 - Production on Mi Mai 16 11:13:33 2012
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    RMAN> quit
    
    
    Recovery Manager abgeschlossen.
    
    C:\Dokumente und Einstellungen\Administrator>rman target / nocatalog
    
    Recovery Manager: Release 11.1.0.6.0 - Production on Mi Mai 16 11:14:02 2012
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    Mit Ziel-Datenbank verbunden: XXX (DBID=1455796592)
    Kontrolldatei der Zieldatenbank wird anstelle des Recovery-Katalogs verwendet
    
    RMAN> shutdown immediate;
    
    Datenbank geschlossen
    Datenbank nicht angeschlossen
    Oracle-Instance heruntergefahren
    
    RMAN> set dbid 1449626294
    
    Befehl wird ausgef³hrt: SET DBID
    
    RMAN> startup nomount;
    
    mit Zieldatenbank verbunden (nicht gestartet)
    Start nicht erfolgreich: ORA-01078: failure in processing system parameters
    LRM-00109: Parameterdatei 'C:\PROGRAMME\ORACLE\111\DATABASE\INITXXX.ORA'
     konnte nicht ge+ffnet werden
    
    Oracle Instance ohne Parameterdatei gestartet, um spfile abzurufen
    Oracle-Instance gestartet
    
    Gesamte System Global Area     159019008 Byte
    
    Fixed Size                     1331852 Byte
    Variable Size                 71306612 Byte
    Database Buffers              83886080 Byte
    Redo Buffers                   2494464 Byte
    
    RMAN> restore spfile from 'c:\Oracle-Dump\CONTROLFILEC-1449626294-20120306-03.BK
    P';
    
    Starten restore um 16.05.12
    Zugewiesener Kanal: ORA_DISK_1
    Kanal ORA_DISK_1: SID=98 Device-Typ=DISK
    
    Kanal ORA_DISK_1: Spfile wird aus AUTOBACKUP c:\Oracle-Dump\CONTROLFILEC-1449626
    294-20120306-03.BKP zur³ckgeschrieben
    Kanal ORA_DISK_1: Zur³ckschreiben von SPFILE aus AUTOBACKUP abgeschlossen
    Beendet restore um 16.05.12
    
    RMAN> shutdown immediate;
    
    Oracle-Instance heruntergefahren
    
    RMAN> startup nomount;
    
    mit Zieldatenbank verbunden (nicht gestartet)
    Oracle-Instance gestartet
    
    Gesamte System Global Area     535662592 Byte
    
    Fixed Size                     1334380 Byte
    Variable Size                348128148 Byte
    Database Buffers             180355072 Byte
    Redo Buffers                   5844992 Byte
    
    RMAN> restore controlfile from 'c:\Oracle-Dump\CONTROLFILEC-1449626294-20120306-
    03.BKP';
    
    Starten restore um 16.05.12
    Zugewiesener Kanal: ORA_DISK_1
    Kanal ORA_DISK_1: SID=208 Device-Typ=DISK
    
    Kanal ORA_DISK_1: Kontrolldatei wird zur³ckgeschrieben
    Kanal ORA_DISK_1: Restore abgeschlossen, abgelaufene Zeit: 00:00:03
    Ausgabedateiname=C:\PROGRAMME\ORACLE\111\DATA\XXX\CONTROL01.CTL
    Ausgabedateiname=C:\PROGRAMME\ORACLE\111\DATA\XXX\CONTROL02.CTL
    Ausgabedateiname=C:\PROGRAMME\ORACLE\111\DATA\XXX\CONTROL03.CTL
    Beendet restore um 16.05.12
    
    RMAN> alter database mount
    2> ;
    
    Datenbank angeschlossen
    Freigegebener Kanal: ORA_DISK_1
    
    RMAN> catalog start with 'c:\oracle-Dump\';
    
    Starten implicit crosscheck backup um 16.05.12
    Zugewiesener Kanal: ORA_DISK_1
    Kanal ORA_DISK_1: SID=208 Device-Typ=DISK
    10 Objekte auf _bereinstimmung gepr³ft
    Beendet implicit crosscheck backup um 16.05.12
    
    Starten implicit crosscheck copy um 16.05.12
    Kanal ORA_DISK_1 wird benutzt
    Beendet implicit crosscheck copy um 16.05.12
    
    Suche nach allen Dateien im Recovery-Bereich
    Dateien werden katalogisiert...
    Keine Dateien katalogisiert
    
    Suche nach allen Dateien, die mit dem Muster c:\oracle-Dump\ ³bereinstimmen
    
    Datenbank kennt Dateiliste nicht
    =====================================
    Dateiname: C:\ORACLE-DUMP\BACKUPXXX777222642.BKP
    Dateiname: C:\ORACLE-DUMP\BACKUPXXX777222669.BKP
    Dateiname: C:\ORACLE-DUMP\BACKUPXXX777222949.BKP
    Dateiname: C:\ORACLE-DUMP\CONTROLFILEC-1449626294-20120306-03.BKP
    
    M÷chten Sie die obigen Dateien wirklich katalogisieren (geben Sie YES oder NO ei
    n)? yes
    Dateien werden katalogisiert...
    Katalogisierung erfolgt
    
    Liste mit katalogisierten Dateien
    =======================
    Dateiname: C:\ORACLE-DUMP\BACKUPXXX777222642.BKP
    Dateiname: C:\ORACLE-DUMP\BACKUPXXX777222669.BKP
    Dateiname: C:\ORACLE-DUMP\BACKUPXXX777222949.BKP
    Dateiname: C:\ORACLE-DUMP\CONTROLFILEC-1449626294-20120306-03.BKP
    
    RMAN> restore database;
    
    Starten restore um 16.05.12
    Kanal ORA_DISK_1 wird benutzt
    
    Kanal ORA_DISK_1: Zur³ckschreiben von Datendatei-Backup Set beginnt
    Kanal ORA_DISK_1: Datendatei(en) werden zum Wiederherstellen aus Backup Set ange
    geben
    Kanal ORA_DISK_1: Datendatei 00001 wird zu C:\PROGRAMME\ORACLE\111\DATA\XXX
    \SYSTEM01.DBF wiederhergestellt
    Kanal ORA_DISK_1: Datendatei 00002 wird zu C:\PROGRAMME\ORACLE\111\DATA\XXX
    \SYSAUX01.DBF wiederhergestellt
    Kanal ORA_DISK_1: Datendatei 00003 wird zu C:\PROGRAMME\ORACLE\111\DATA\XXX
    \UNDOTBS01.DBF wiederhergestellt
    Kanal ORA_DISK_1: Datendatei 00004 wird zu C:\PROGRAMME\ORACLE\111\DATA\XXX
    \USERS01.DBF wiederhergestellt
    Kanal ORA_DISK_1: Datendatei 00005 wird zu C:\PROGRAMME\ORACLE\111\ORADATA\DBTT
    wiederhergestellt
    Kanal ORA_DISK_1: Datendatei 00006 wird zu C:\PROGRAMME\ORACLE\111\ORADATA\EM_LO
    G_TUEM wiederhergestellt
    Kanal ORA_DISK_1: Lesen aus Backup Piece C:\ORACLE-DUMP\BACKUPXXX777222669.
    BKP
    Kanal ORA_DISK_1: Piece Handle=C:\ORACLE-DUMP\BACKUPXXX777222669.BKP Tag=TA
    G20120306T151108
    Kanal ORA_DISK_1: Backup Piece 1 wurde wiederhergestellt
    Kanal ORA_DISK_1: Restore abgeschlossen, abgelaufene Zeit: 00:02:05
    Beendet restore um 16.05.12
    
    RMAN> recover database;
    
    Starten recover um 16.05.12
    Kanal ORA_DISK_1 wird benutzt
    
    Media Recovery starten
    
    Kanal ORA_DISK_1: Zur³ckschreiben von Archive Log in Standardziel wird begonnen
    Kanal ORA_DISK_1: Archive Log wird zur³ckgeschrieben
    Archive Log Thread=1 Sequence=10
    Kanal ORA_DISK_1: Lesen aus Backup Piece C:\ORACLE-DUMP\BACKUPXXX777222949.
    BKP
    Kanal ORA_DISK_1: Piece Handle=C:\ORACLE-DUMP\BACKUPXXX777222949.BKP Tag=TA
    G20120306T151548
    Kanal ORA_DISK_1: Backup Piece 1 wurde wiederhergestellt
    Kanal ORA_DISK_1: Restore abgeschlossen, abgelaufene Zeit: 00:00:01
    Archive Log-Dateiname=C:\PROGRAMME\ORACLE\111\FLASH_RECOVERY\XXX2DB\ARCHIVE
    LOG\2012_05_16\O1_MF_1_10_7V73N5RW_.ARC Thread=1 Sequence=10
    Kanal default: Archive Logs werden gel÷scht
    Archive Log-Dateiname=C:\PROGRAMME\ORACLE\111\FLASH_RECOVERY\XXX2DB\ARCHIVE
    LOG\2012_05_16\O1_MF_1_10_7V73N5RW_.ARC RECID=13 STAMP=783429893
    Archive Log kann nicht gefunden werden
    Archive Log Thread=1 Sequence=11
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: Fehler bei recover Befehl auf 05/16/2012 11:24:57
    RMAN-06054: Media Recovery fordert unbekanntes Archive Log f³r Thread 1 mit Sequ
    ence 11 und Start-SCN von 1094112 an
    
    RMAN> alter database open resetlogs;
    
    Datenbank ge÷ffnet
    
    RMAN> quit
    
    
    Recovery Manager abgeschlossen.
    
    C:\Dokumente und Einstellungen\Administrator>
    But when I now try to access the database control I got following error:
    ' 503 service unavailable: Servlet error exception occurred the current application deployment descriptor do not include in this response.

    and the restored data are not included.

    I hope someone can tell me what I did wrong.
    Thank you

    Published by: 919309 on 07.03.2012 02:08

    Published by: 919309 on 07.03.2012 02:12

    drop the repository and try with dbca

    EMCA - deconfig dbcontrol db-rest drop

  • RMAN restore to a new server

    Server has: 11.2.0.4.0 on Windows Server 2008

    Server B: 11.2.0.4.0 on Windows Server 2008

    I use RMAN full backup on server A (suppose it's the PROD server) every night. It's the backup script

    RUN
    {
    SQL "alter session set nls_date_format = 'MON-DD-YYYY HH24:MI:SS' ';"
    overlap archivelog all;
    cross-checking of backup;
    # physical file exist, repository knows it; but the retention policy does not need it.
    #delete noprompt expired backup;
    #delete noprompt expired archivelog all;
    # physical file does not not exist while the repository knows.
    SQL 'alter system archive log current';
    SQL 'alter system archive log current';
    backup
    (database FORMAT '-bkupsvr\dbbackup\srcsvr\FULLBKUP_%d.DBID%I.%T.%s.%p.rman "")
    more archivelog delete the input FORMAT '-bkupsvr\dbbackup\srcsvr\ARCHLOGBKUP_%d.%e.DBID%I.%T.%s.%p.rman';
    window recovery obsolete 1-day report;
    Remove window recovery obsolete noprompt 1 days;
    SPFile backup FORMAT '-bkupsvr\dbbackup\srcsvr\SPFILE_BKUP_%d.DBID%I.%T.%s.%p.rman';
    backup current controlfile FORMAT '-bkupsvr\dbbackup\srcsvr\CTLFILE_BKUP_%d.DBID%I.%T.%s.%p.rman';
    SQL ' alter database backup controlfile to trace as "------bkupsvr\dbbackup\srcsvr\ctlfileTEST.txt 'REUSE ';
    SQL "' create pfile ="-bkupsvr\dbbackup\srcsvr\initORCL9.ora "of spfile"; "

    }

    Scenario of

    A server is completely destroyed in a fire of data center; but bkupsvr is in another building. Therefore, backups are safe.

    Given this scenario, how can I restore?

    Possible solutions?

    Group server running server B. I have installed Oracle and created a blank database. The DBID is different. Should I treat this as a restoration or should I treat it as a replica from a backup?

    I guess I need advice on the restoration plan.

    Thank you!

    He now works within the server itself and other servers.

    The problem with the desktop connection remains.

    Are you sure that you connect the same way? If the error you get is "ORA-01017: invalid username / password; connection refused"it looks like a case sensitivity issue: to check that, try the setting sec_case_sensitive_logon false.

Maybe you are looking for