Restoring using RMAN

  Hi Guys
I am practicing RMAN utility for backup and recovery. I have created rman catalog user on my system tablespace. I deleted my  system tablespace from my oracle database.
I started my oracle database it gave error ORA-01157: cannot identify/lock data file and ORA-01110: data file 1 . Now when I connect to rman using target user/pwd@orcl catalog user/pwd@orcl
it saying : RMAN 00571, RMAN 00569, RMAN 00554 initialization of internal recovery manager failed and RMAN 04004 error from recovery catalog database : ORA 01033
oracle initialization or shutdown in progress.
I tried other lots of option but i think since I lost system tablespace rman is not starting as I declared rman users default tablespace as system.
Please Guide

hİ,
Create a user to hold the recovery catalog. This should be on a separate server to any databases you are planning to backup.
http://www.oracle-base.com/articles/9i/recovery-manager-9i.php#CreateRecoveryCatalog
and you should connect like below
export ORACLE_SID=YOURDBSID
rman target / catalog user/pwd@rmancatalogdb
Regards

Similar Messages

  • Tnsname resolve failed after performing an restore using rman

    I create an full database backup using rman and I want to perform an restore on another server. Steps are as follows.
    1. Install the same release of oracle database and apply the same release of patches in the testing server.
    2. Create an instance with the same name of original database.
    3.Perform the restore using rman.
    4.Create an spfile from pfile.
    5.Add an new tempfile then delete the old one.
    6. Shutdown the instance and restart it.
    7. reconfigure the listner.
    8. reconfigure the tns.
    In this step it fails,saying that "TNS:listener does not currently know of service requested in connect descriptor",but if I change the servername to the original server name,it succeed.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MOSS-001)(PORT=1521)))
    Services Summary...
    Service "JDEDB.PharmaTechs.com" has 1 instance(s).
    Instance "jdedb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:3 refused:0 state:ready
    LOCAL SERVER
    Service "JDEDBXDB.PharmaTechs.com" has 1 instance(s).
    Instance "jdedb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: MOSS-001, pid: 7912>
    (ADDRESS=(PROTOCOL=tcp)(HOST=MOSS-001.pharmatechs.com)(PORT=2406))
    Service "JDEDB_XPT.PharmaTechs.com" has 1 instance(s).
    Instance "jdedb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:3 refused:0 state:ready
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    The command completed successfully

  • Database Restore using RMAN

    Can I restore a oracle database with a different name using RMAN.
    Say, I backup a database named orcl. Now I wanted to restore this database with a different name. Is this possible? If yes, can some one guide me through the appropriate document?
    Thank you,
    Santhosh

    < Can I restore this Backup on to a database with a different name ...
    You even have to do this, if duplicated database belongs to the same ORACLE_HOME, otherwise it could be the same name (although the databases still have different DBIDs).
    DUPLICATE TARGET DATABASE TO <name>
    Werner

  • Restore using RMAN

    I had taken backup three time say backup1 after few transaction backup2 and after few transactions backup3 using RMAN. RMAN no catalog
    Now we want to recover database using backup1.
    provide the steps to recover the database using backup1

    Hi,
    You said you have taken the Backup. Which type of backup either level 0 or level 1 (incremental backups - differential or cumulative). Next type of backups - either image copies or backups. If backups are taken then we can try out to restore specific files from the backup sets - I am not sure on that.
    You have to provide the DB Version. ??
    What is the need for going for First Backup only... what is the need ??
    Does you know appropriate time , if you use the flashback then we can use that.
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

  • Backup/restore using RMAN with no catalog

    Hi all,
    Can someone tell me if this is correct:
    I have two identical machines, same configuration and same file structure, everything is the same.
    On machine A, I have a 9.2.0.7 database running. I take a hot backup and try to restore it on machine B.
    Note: I am using RMAN for backup/restore whith no catalog.
    This is how I perform backup on machine A:
    ALLOCATE CHANNEL C1 TYPE DISK;
    SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    BACKUP INCREMENTAL LEVEL=0 CUMULATIVE format '/backup/level0_%u' BACKUP CURRENT CONTROLFILE format '/backup/control_primary' FORCE;
    SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    BACKUP ARCHIVELOG ALL format '/backup/archivelogs_%s_%t';
    On machine B, here is how I perform restore:
    SET DBID 1221334455;
    RESTORE CONTROLFILE FROM '/backup/control_primary';
    ALTER DATABASE MOUNT;
    RESTORE DATABASE VALIDATE;
    RESTORE DATABASE;
    Recover database;
    Thanks,

    You forgot to restore the spfile or pfile on the second node to go to nomount state.
    OR
    You can use RMAN Duplicate to do this.
    Regards
    Message was edited by:
    Singh

  • RMAN Restore using RMAN COLD Backup!!

    Hi All,
    I Need to restore a database using rman cold backup taken a month back.
    Can i use Duplicate database option until time/scn just like we do for hotbackup or is there any other procedure for cloning/refreshing the database using RMAN COLD BACKUP of source.
    Thanks & Regards,
    Pdev

    This may be used to clone db
    connect target sys/sys@<dba>
    connect catalog rman/rman@<dba>
    connect auxiliary sys/sys<new>
    run {
    set newname for datafile 1 to 'e:\oracle\oradata\giri\system01.dbf';
    set newname for datafile 2 to 'e:\oracle\oradata\giri\undotbs01.dbf';
    set newname for datafile 3 to 'e:\oracle\oradata\giri\users01.dbf';
    set newname for datafile 4 to 'e:\oracle\oradata\giri\indx01.dbf';
    set newname for datafile 5 to 'e:\oracle\oradata\giri\example01.dbf';
    allocate auxiliary channel dupdb1 type disk;
    set until sequence 2 thread 1;
    duplicate target database to dupdb
    logfile
    GROUP 1 ('e:\oracle\oradata\giri\redo01.log') SIZE 100k REUSE,
    GROUP 2 ('e:\oracle\oradata\giri\redo02.log') SIZE 100k REUSE;
    Message was edited by:
    Girishh

  • How to restore a single instance database to RAC (10g) using RMAN ?

    Hi all,
    I have a single instance database configured using file system in a unique server, so now I need to restore this database using RMAN to a new RAC environment with two nodes and ASM also.
    Does anyone can help with this documentation or a link about any information about this restore using rman ?
    I tryied found on metalink but threres isn´t this specific case. Only how to convert single instance to 10g RAC, but without how to use with rman information.
    System: Windows 2003
    Oracle 10g R2
    Thanks.
    Wander(Brazil)

    Wander(Brazil) wrote:
    Hi all,
    I have a single instance database configured using file system in a unique server, so now I need to restore this database using RMAN to a new RAC environment with two nodes and ASM also.
    In essense you are really doing nothing more than restoring a backup on a new host. If you want a blow by blow detail of how to accomplish it take at http://www.oracledistilled.com/oracle-database/restore-database-to-another-host-using-rman
    In order to write the files to the ASM Disk groups you will use the SET NEWNAME FOR DATAFILE in your restore script. You will also need to create the ORACLE_BASE/admin/<DBSID> structure on all of node. Once you get the database completely restore you will need to edit the SPFILE to include the proper value for the CLUSTER* parameters and each the node specific parameters. Sorry that it is kind of higher level than what you are probably looking for but the link above and what I put here should get you were want to go.

  • Move large database to other server using RMAN in less downtime

    Hi,
    We have large database around 20TB. We want to migrate (move) the database from one server to other server. We do not want to use standby option.
    1)     How can we move database using RMAN in less downtime
    2)     Other than RMAN is there any option is available to move the database to new server
    For option 1 (restore using RMAN),
    Whether below options are valid?
    If this option is valid, how to implement this?
    1)     How can we move database using RMAN in less downtime
    a)     Take the full backup from source (source db is up)
    b)     Restore the full backup in target (source db is up)
    c)     Take the incremental backup from source (source db is up)
    d)     Restore incremental backup in target (source db is up)
    e)     Do steps c and d, before taking downtime (source db is up)
    f)     Shutdown and mount the source db, and take the incremental backup (source db is down)
    g)     Restore last incremental backup and start the target database (target is up and application is accessing this new db
    database version: 10.2.0.4
    OS: SUN solaris 10
    Edited by: Rajak on Jan 18, 2012 4:56 AM

    Simple:
    I do this all the time to relocate file system files... But the principle is the same. You can do this in iterations so you do not need to do it all at once:
    Starting 8AM move less-used files and more active files in the afternoon using the following backup method.
    SCRIPT-1
    RMAN> BACKUP AS COPY
    DATAFILE 4 ####"/some/orcl/datafile/usersdbf"
    FORMAT "+USERDATA";
    Do as many files as you think you can handle during your downtime window.
    During your downtime window: stop all applications so there is no contention in the database
    SCRIPT-2
    ALTER DATABASE DATAFILE 4 offline;
    SWITCH DATAFILE 4 TO COPY;
    RECOVER DATAFILE 4;
    ALTER DATABASE DATAFILE 4 online;
    I then execute the delete of the original file at somepoint later - after we make sure everything has recovered and successfully brought back online.
    SCRIPT-3
    DELETE DATAFILECOPY "/some/orcl/datafile/usersdbf"
    For datafiles/tablespaces that are really busy, I typically copy them later in the afternoon as there are fewer archivelogs that it has to go through in order to make them consistent. The ones in the morning have more to go through, but less likelihood of there being anything to do.
    Using this method, we have moved upwards 600G at a time and the actual downtime to do the switchover is < 2hrs. YMMV. As I said, this can be done is stages to minimize overall downtime.
    If you need some documentation support see:
    http://docs.oracle.com/cd/E11882_01/server.112/e18951/asm_rman.htm#CHDBDJJG
    And before you do ANYTHING... TEST TEST TEST TEST TEST. Create a dummy tablespace on QFS and use this procedure to move it to ASM to ensure you understand how it works.
    Good luck! (hint: scripts to generate these scripts can be your friend.)

  • I got the above error while i restore the standby database using RMAN backu

    Dear All,
    RMAN> crosscheck archivelog all;
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=14 devtype=DISK
    specification does not match any archive log in the recovery catalogi got the above error while i restore the standby database using RMAN backup from production.
    Help need.i take the backup without catalog database.
    regards,
    DB

    rman> list backup;
    it shows lengthier but i showed only the corresponding
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    3479    Full    17G        DISK        01:29:42     09-FEB-13
            BP Key: 3479   Status: AVAILABLE   Tag: 09FEB13_FULL_ESMSRV1_DB
            Piece Name: /oradatabkp/rman/esmsrv1_full_db_09feb13
      SPFILE Included: Modification time: 08-FEB-13
      List of Datafiles in backup set 3479
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 1759250260 09-FEB-13 /esmsrv1/dbs/system01.dbf
      2       Full 1759250260 09-FEB-13 /esmsrv1/dbs/undotbs01.dbf
      3       Full 1759250260 09-FEB-13 /esmsrv1/dbs/cwmlite01.dbf
      4       Full 1759250260 09-FEB-13 /esmsrv1/dbs/drsys01.dbf
      5       Full 1759250260 09-FEB-13 /esmsrv1/dbs/example01.dbf
      6       Full 1759250260 09-FEB-13 /esmsrv1/dbs/indx01.dbf
      7       Full 1759250260 09-FEB-13 /esmsrv1/dbs/odm01.dbf
      8       Full 1759250260 09-FEB-13 /esmsrv1/dbs/tools01.dbf
      9       Full 1759250260 09-FEB-13 /esmsrv1/dbs/users01.dbf
      10      Full 1759250260 09-FEB-13 /esmsrv1/dbs/xdb01.dbf
      11      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_default_seg_001.dbf
      12      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_property_ind_seg_001.dbf
      13      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_property_seg_001.dbf
      14      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_upload_ind_seg_001.dbf
      15      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_upload_seg_001.dbf
      16      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_rate_ind_seg_001.dbf
      17      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_rate_seg_001.dbf
      18      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_summary_ind_seg_001.dbf
      19      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_001.dbf
      20      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_001.dbf
      21      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_002.dbf
      22      Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_002.dbf
      23      Full 1759250260 09-FEB-13 /esmsrv1/dbs/perfstat_001.dbf
      39      Full 1759250260 09-FEB-13 /esmsrv1/dbs/oem_repository.dbf
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    3480    Full    17G        DISK        01:21:30     09-FEB-13
            BP Key: 3480   Status: EXPIRED   Tag: TAG20130209T200021
            Piece Name: /oradatabkp/rman/esmsrv1/esmsrv1_full_Feb09
      SPFILE Included: Modification time: 08-FEB-13
      List of Datafiles in backup set 3480
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 1759422265 09-FEB-13 /esmsrv1/dbs/system01.dbf
      2       Full 1759422265 09-FEB-13 /esmsrv1/dbs/undotbs01.dbf
      3       Full 1759422265 09-FEB-13 /esmsrv1/dbs/cwmlite01.dbf
      4       Full 1759422265 09-FEB-13 /esmsrv1/dbs/drsys01.dbf
      5       Full 1759422265 09-FEB-13 /esmsrv1/dbs/example01.dbf
      6       Full 1759422265 09-FEB-13 /esmsrv1/dbs/indx01.dbf
      7       Full 1759422265 09-FEB-13 /esmsrv1/dbs/odm01.dbf
      8       Full 1759422265 09-FEB-13 /esmsrv1/dbs/tools01.dbf
      9       Full 1759422265 09-FEB-13 /esmsrv1/dbs/users01.dbf
      10      Full 1759422265 09-FEB-13 /esmsrv1/dbs/xdb01.dbf
      11      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_default_seg_001.dbf
      12      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_property_ind_seg_001.dbf
      13      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_property_seg_001.dbf
      14      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_upload_ind_seg_001.dbf
      15      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_upload_seg_001.dbf
      16      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_rate_ind_seg_001.dbf
      17      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_rate_seg_001.dbf
      18      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_summary_ind_seg_001.dbf
      19      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_001.dbf
      20      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_001.dbf
      21      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_002.dbf
      22      Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_002.dbf
      23      Full 1759422265 09-FEB-13 /esmsrv1/dbs/perfstat_001.dbf
      39      Full 1759422265 09-FEB-13 /esmsrv1/dbs/oem_repository.dbf
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    3481    Full    4M         DISK        00:00:03     09-FEB-13
            BP Key: 3481   Status: AVAILABLE   Tag: TAG20130209T212205
            Piece Name: /oradatabkp/rman/esmsrv1/esmsrv1_controlfile_copy_Feb09
      Controlfile Included: Ckp SCN: 1759462488   Ckp time: 09-FEB-13
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    3482    Full    0          DISK        00:00:01     09-FEB-13
            BP Key: 3482   Status: AVAILABLE   Tag: TAG20130209T212212
            Piece Name: /oradatabkp/rman/esmsrv1/esmsrv1_spfile_copy_Feb09
      SPFILE Included: Modification time: 08-FEB-13
    ls -l /oradatabkp
    root@drsrv1#ls -l /oradatabkp
    total 1108672
    drwxr-xr-x   2 ovsd       dba             96 Sep 27  2009 alert_bkp
    -rw-r--r--   1 oracle     dba            195 Mar 15  2007 create.sql
    drwxr-xr-x   2 oracle     dba           8192 Aug  7  2009 ctrl_bkp
    -rw-r--r--   1 root       sys        565114880 Apr 24  2007 drsrv1.tar
    drwxrwxrwx   2 root       sys             96 Jun 17  2011 drsrv2-ignitebkp
    drwxr-xr-x   4 root       sys             96 Apr 24  2007 esmsrv1
    -rw-r-----   1 root       sys        1613824 Feb 22  2007 esmsrv1stby.ctl
    -rw-r--r--   1 esmsrv1    dba           5120 Dec 31  2009 esmtables.dmp
    -rw-r--r--   1 esmsrv1    dba            538 Dec 31  2009 esmtables.log
    drwxrwxrwx   4 root       sys           8192 Mar 10  2009 export
    drwxr-xr-x   8 root       sys           8192 Apr 24  2007 finalbackup
    -rw-r--r--   1 oracle     dba           3820 Sep  5  2008 invalid.sql
    -rw-r--r--   1 esmsrv1    dba         303104 Dec 31  2009 kirdevports.dmp
    -rw-r--r--   1 esmsrv1    dba            591 Dec 31  2009 kirdevports.log
    drwxr-xr-x   2 root       root            96 Feb 12  2007 lost+found
    -rw-r--r--   1 oracle     dba          24954 Aug  9  2009 ovcontrol-090909.ctl
    drwxr-xr-x  22 root       sys           8192 Apr 24  2007 ovpi
    drwxr-xr-x   2 oracle     dba           8192 Aug  7  2009 pfile_bkp
    drwxrw-rw-   4 oracle     dba           8192 Feb 10 15:25 rman
    drwxr-xr-x  28 root       sys           8192 Feb  1 17:15 schedbkp
    drwxr-xr-x   2 oracle     dba           8192 Jul 11  2011 sdnnm
    -rw-r--r--   1 esmsrv1    dba           2196 Dec 31  2009 srirdevports.log
    drwxr-xr-x   2 oracle     dba             96 Mar 13  2009 statsreport
    -rw-r--r--   1 oracle     dba            966 Mar 15  2007 tbs.sql
    drwxr-xr-x   5 oracle     dba             96 Mar 16  2007 testov
    drwxr-xr-x   2 root       sys         442368 Mar 11  2009 trendadm_files
    root@drsrv1#ls -l /oradatabkp/rman
    total 37244448
    drwxr-xr-x   2 oracle     dba           8192 Feb 10 15:25 esmsrv1
    -rw-r-----   1 oracle     dba        19068198912 Feb  9 14:21 esmsrv1_full_db_09feb13
    drwxrw-rw-   2 oracle     dba           8192 Feb  9 21:36 openview
    -rw-r--r--   1 oracle     dba         920442 Feb  9 21:37 rmanbkp-all.log

  • How to restore a table using RMAN with previous backup ?

    Hi everyone,
    we have to restore a table from 1 week previous backup using RMAN.
    Could you show me how to restore a table using RMAN with previous full backup.
    please Help me out.
    Thanks
    Info > oracle 10g, OS: AIX5L

    Hi,
    first of all you must have all the archivelogs since you want to recover your table from the previous backups.
    anyways if you want to recover your table then you need to perform incomplete recovery to the point where you loss the table for that you need to restore and recover your database.you likely to loose all the transcation which occurs to the point where you you loose your table.
    thanks..

  • How to restore a database from host A to host B by using RMAN

    Hi there
    I wanted to restore 1 database from machine A to machine B with the differente files systemes. I did these steps below, but I have a problem when I restore the controlfile from machine A to machine B.
    1-copy the controlfile from machine A to machine B by using OS utility.
    2-startup nomount the database on machine B.
    3-connect target and catalog RMAN.
    4-I have to restore the controlfile from last full backup of the machine A to machine B (see the procedure RMAN).
    I have the error messages like:
    RMAN> connect target /
    RMAN-06006: connected to target database: dbtest (not mounted)
    RMAN> connect catalog rman/rman@rcattest
    RMAN-06008: connected to recovery catalog database
    RMAN> run {
    2> allocate channel c1 type 'sbt_tape' ;
    3> restore controlfile ;
    4> }
    RMAN-03022: compiling command: allocate
    RMAN-03023: executing command: allocate
    RMAN-08030: allocated channel: c1
    RMAN-08500: channel c1: sid=10 devtype=SBT_TAPE
    RMAN-08526: channel c1: VERITAS NetBackup for Oracle8 - Release 3.2GA
    RMAN-03022: compiling command: restore
    RMAN-03022: compiling command: IRESTORE
    RMAN-03023: executing command: IRESTORE
    RMAN-08016: channel c1: starting datafile backupset restore
    RMAN-08502: set_count=177 set_stamp=419449530 creation_time=19-JAN-01
    RMAN-08021: channel c1: restoring controlfile
    RMAN-08505: output filename=/db/oracle/dbtest/dbtestcontrol01.ctl
    RMAN-03026: error recovery releasing channel resources
    RMAN-08031: released channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: restore
    RMAN-03007: retryable error occurred during execution of command: IRESTORE
    RMAN-07004: unhandled exception during command execution on channel c1
    RMAN-10035: exception raised in RPC: ORA-19507: failed to retrieve sequential file, handle="5hcg0ilq_1_1", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: sbtrestore: Backup file not found.
    RMAN-10031: ORA-19624 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPPIE
    null

    Hi there
    I'm also trying to restore a full RMAN backup to our DR site using Netbackup as MML
    My scenario is:
    We have one tape library at our PROD data center and another one at our DR site both using Netbackup as Storage manager
    I performed a full RMAN backup on 4 DLT tapes with recovery catalog at our PROD datacenter, then I removed the 4 tapes and place it in our tape lib at DR site
    I tried to import the tapes using bpimport from Netbackup which has been successful up to now
    But when I tried to restore controlfile from RMAN, I get the following error:
    connected to target database: prod (not mounted)
    connected to recovery catalog database
    RMAN> run {
    2> allocate channel c1 type 'SBT_TAPE';
    3> allocate channel c2 type 'SBT_TAPE';
    4> allocate channel c3 type 'SBT_TAPE';
    5> allocate channel c4 type 'SBT_TAPE';
    6> set until time '16-AUG-2005 15:00:00';
    7> restore controlfile;
    8> }
    allocated channel: c1
    channel c1: sid=13 devtype=SBT_TAPE
    channel c1: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
    allocated channel: c2
    channel c2: sid=12 devtype=SBT_TAPE
    channel c2: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
    allocated channel: c3
    channel c3: sid=11 devtype=SBT_TAPE
    channel c3: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
    allocated channel: c4
    channel c4: sid=9 devtype=SBT_TAPE
    channel c4: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
    executing command: SET until clause
    Starting restore at 18-AUG-2005:10:28:23
    channel c1: starting datafile backupset restore
    channel c1: restoring controlfile
    output filename=/oracle9i/dba/dbs/control01_drprod.ctl
    released channel: c1
    released channel: c2
    released channel: c3
    released channel: c4
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 08/18/2005 10:28:25
    ORA-19507: failed to retrieve sequential file, handle="df_t566491965_s8860_p1", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    Failed to process backup file <df_t566491965_s8860_p1>
    Anyone mastering this, please help !!
    thks
    BL

  • Using RMAN restore the database on a new host in ASM

    Hello All,
    I am trying to restore a database without using RMAN database duplicate.  I want to do set new name for datafile and rename log file for online logs and change database name at last using NID.
    here are details
    source database - APSPROD / server - X
    target database -  EMERALD / Server -Y
    Compressed backup is copied to destination server and I am trying to restore database using RMAN. Here is my init.ora file
    cat initAPSPROD1.ora
    DB_NAME=APSPROD
    compatible=11.2.0.3
    sga_target=8G
    CONTROL_FILES='+DATA_DM01/EMERALD/controlfile/cntrl01.dbf','+RECO_DM01/EMERALD/controlfile/cntrl02.dbf','+DATA_DM01/EMERALD/controlfile/cntrl03.dbf'
    DB_BLOCK_SIZE=8192
    db_file_name_convert=(+DATA_DM01/APSPROD,+DATA_DM01/EMERALD)
    log_file_name_convert=(+DATA_DM01/APSPROD,+DATA_DM01/EMERALD,+RECO_DM01/APSPROD,+RECO_DM01/EMERALD)
    DB_RECOVERY_FILE_DEST='+RECO_DM01'
    DB_RECOVERY_FILE_DEST_SIZE=5500G
    So from above you can see that control file should be restored to +DATA_DM01/EMERALD and +RECO_DM01/EMERALD path.
    Question -
    when I am trying to restore control file. It creates an ASM alias name in +DATA_DM01/EMERALD/controlfile/cntrl01.dbf',+RECO_DM01/EMERALD/controlfile/cntrl02.dbf',' and +DATA_DM01/EMERALD/controlfile/cntrl03.dbf' but It creates fully Qualified ASM Filename  under +DATA_DM01/APSPROD and +RECO_DM01/
    Here is output
    RMAN> restore controlfile from '/dbfs_direct/FS1/RMAN_APSPROD/cf_APSPROD_i4p4b62m_1_1
    2> ;
    Starting restore at 02-APR-14
    using channel ORA_DISK_1
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:07
    output file name=+DATA_DM01/emerald/controlfile/cntrl01.dbf
    output file name=+RECO_DM01/emerald/controlfile/cntrl02.dbf
    output file name=+DATA_DM01/emerald/controlfile/cntrl03.dbf
    Finished restore at 02-APR-14
    output at ASM level
    SMCMD [+RECO_DM01/EMERALD/CONTROLFILE] > ls -l
    Type         Redund  Striped  Time             Sys  Name
                                                   N    cntrl02.dbf => +RECO_DM01/APSPROD/CONTROLFILE/current.17006.843826701
    ASMCMD [+RECO_DM01/EMERALD/CONTROLFILE] > cd +RECO_DM01/APSPROD/CONTROLFILE/
    ASMCMD [+RECO_DM01/APSPROD/CONTROLFILE] > ls -l
    Type         Redund  Striped  Time             Sys  Name
    CONTROLFILE  HIGH    FINE     APR 02 12:00:00  Y    current.17006.843826701
    ASMCMD [+RECO_DM01/APSPROD/CONTROLFILE] > cd +DATA_DM01
    ASMCMD [+DATA_DM01] > cd EMERALD/CONTROLFILE
    ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > ls -l
    Type         Redund  Striped  Time             Sys  Name
                                                   N    cntrl01.dbf => +DATA_DM01/APSPROD/CONTROLFILE/current.3678.843826699
                                                   N    cntrl03.dbf => +DATA_DM01/APSPROD/CONTROLFILE/current.3679.843826701
    ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > cd +DATA_DM01/APSPROD/CONTROLFILE
    ASMCMD [+DATA_DM01/APSPROD/CONTROLFILE] > ls -l
    Type         Redund  Striped  Time             Sys  Name
    CONTROLFILE  HIGH    FINE     APR 02 12:00:00  Y    current.3678.843826699
    CONTROLFILE  HIGH    FINE     APR 02 12:00:00  Y    current.3679.843826701
    How can I ensure that every thing gets created in +DATA_DM01/EMERALD/ or [+RECO_DM01/EMERALD??  similary for datafile restore even I have used set new file name ASM fully quilified OMF  datafile gets created under +DATA_DM01/APSPROD/
    ASMCMD [+DATA_DM01/EMERALD/DATAFILE]
    N    undots5_01.dbf => +DATA_DM01/APSPROD/DATAFILE/APPS_UNDOTS5.3669.843818269
    Thanks
    PV

    Even If I explicitly say
    rman target / nocatalog
    RMAN> restore controlfile  to '+DATA_DM01/emerald/controlfile/cntrl01.dbf' from '/dbfs_direct/FS1/RMAN_APSPROD/cf_APSPROD_i4p4b62m_1_1';
    Starting restore at 02-APR-14
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=64 device type=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    Finished restore at 02-APR-14
    It create as alias name  +DATA_DM01/emerald/controlfile/cntrl01.dbf' pointing to +DATA_DM01/APSPROD/CONTROLFILE/
    ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > ls -l
    Type         Redund  Striped  Time             Sys  Name
                                                   N    cntrl01.dbf => +DATA_DM01/APSPROD/CONTROLFILE/current.3679.843828927
    ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > cd +DATA_DM01/APSPROD
    ASMCMD [+DATA_DM01/APSPROD] > cd CONTROLFILE
    ASMCMD [+DATA_DM01/APSPROD/CONTROLFILE] > ls -l
    Type         Redund  Striped  Time             Sys  Name
    CONTROLFILE  HIGH    FINE     APR 02 12:00:00  Y    current.3679.843828927
    ASMCMD [+DATA_DM01/APSPROD/CONTROLFILE] >

  • Backup from 9i and restore this backup to 10g using RMAN

    Hi all;
    I have a database 9i on SuSE9. And I want to restore another server this database's backupsets to 10g on SuSE10 using RMAN. Then I have run following scripts.
    On 9i Database: (SID=discoden)_
    RMAN > backup database plus archivelog;
    and I have three backupsets (05l87nik_1_1, 06l87nio_1_1, 07l87nml_1_1) and one controlfile backup (c-4279316798-20100310-00). then I copy these backuppieces to new server.
    On 10g Database:_
    +1. I have created udump and bdump folder into $ORACLE_BASE/admin/discoden/+
    +2. I have copied init.ora, pasted initdiscoden.ora in $ORACLE_HOME/dbs folder. And I have changed following parameters+
    db_name = discoden
    shared_pool_size = 350000000
    control_files = (/disk2/oracle/discoden/control01.ctl, /disk2/oracle/discoden/control02.ctl, /disk2/oracle/discoden/control03.ctl)
    user_dump_dest = /opt/oracle/admin/discoden/udump
    background_dump_dest = /opt/oracle/admin/discoden/bdump
    compatible = 10.2.0.3.0
    undo_management = auto
    +3. export ORACLE_SID=discoden+
    +4. cd $ORACLE_HOME/bin+
    +5. ./rman target /+
    +6. RMAN> startup nomount;+
    +7. RMAN> restore controlfile from '/disk2/setup/c-4279316798-20100310-00';+
    +8. RMAN> alter database mount ;+
    +9. RMAN> catalog backuppiece '/disk2/setup/05l87nik_1_1';+
    RMAN> catalog backuppiece '/disk2/setup/06l87nio_1_1';
    RMAN> catalog backuppiece '/disk2/setup/07l87nml_1_1';
    +10. SQL> alter database rename file '/disk2/oracle9i/databases/discoden/redo01.log' to '/disk2/oracle/discoden/redo01.log';+
    SQL> alter database rename file '/disk2/oracle9i/databases/discoden/redo02.log' to '/disk2/oracle/discoden/redo02.log';
    SQL> alter database rename file '/disk2/oracle9i/databases/discoden/redo03.log' to '/disk2/oracle/discoden/redo03.log';
    +11. RMAN > list backup; (With this command, I have learned last sequence number. For example 204)+
    +12. I have run following command on RMAN:+
    +run {+
    set until sequence 204;
    set newname for datafile 1 to '/disk2/oracle/discoden/system01.dbf';
    set newname for datafile 2 to '/disk2/oracle/discoden/undotbs01.dbf';
    set newname for datafile 3 to '/disk2/oracle/discoden/cwmlite01.dbf';
    set newname for datafile 4 to '/disk2/oracle/discoden/drsys01.dbf';
    set newname for datafile 5 to '/disk2/oracle/discoden/example01.dbf';
    set newname for datafile 6 to '/disk2/oracle/discoden/indx01.dbf';
    set newname for datafile 7 to '/disk2/oracle/discoden/odm01.dbf';
    set newname for datafile 8 to '/disk2/oracle/discoden/tools01.dbf';
    set newname for datafile 9 to '/disk2/oracle/discoden/users01.dbf';
    set newname for datafile 10 to '/disk2/oracle/discoden/xdb01.dbf';
    set newname for datafile 11 to '/disk2/oracle/discoden/DATASPACE1.dbf';
    set newname for datafile 12 to '/disk2/oracle/discoden/CARDEM.dbf';
    set newname for datafile 13 to '/disk2/oracle/discoden/MUHASEBE.dbf';
    set newname for datafile 14 to '/disk2/oracle/discoden/ORTAK.dbf';
    set newname for datafile 15 to '/disk2/oracle/discoden/MAGAZA.dbf';
    restore database;
    switch datafile all;
    recover database;
    alter database open resetlogs;
    +}+
    Then I have an error like following lines:
    +..........+
    media recovery complete, elapsed time: 00:00:04
    Finished recover at 06-MAR-10
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00601: fatal error in recovery manager
    RMAN-03004: fatal error during execution of command
    ORA-03114: not connected to ORACLE
    ORA-03114: not connected to ORACLE
    RMAN-03002: failure of alter db command at 03/06/2010 09:00:47
    ORA-01092: ORACLE instance terminated. Disconnection forced
    ORA-00704: bootstrap process failure
    ORA-39700: database must be opened with UPGRADE option
    ORACLE error from target database:
    ORA-03114: not connected to ORACLE
    I don't understand the mistakes. I hope your helps. Thank you.

    Hi,
    You have followed the steps correctly while restoring and recovering the 9i database under 10g home using RMAN except the last step of opening the database.
    Remove 'alter database open resetlogs;' from the rman script and rerun the script. Once the database is restored and recovered, open the database with RESETLOGS & UPGRADE option through SQL*Plus as below.
    SQL> alter database open resetlogs upgrade;
    Once the database is opened, create the SYSAUX tablespace and run $ORACLE_HOME/rdbms/admin/ upgrd.sql catupgrd.sql script to upgrade the database to 10g ( follow the steps for upgrading the database).
    MetaLink Note : 369644.1 - Answers To FAQ For Restoring Or Duplicating Between Different Versions And Platforms
    Regards,
    Vaibhav
    Edited by: Vaibhav on Mar 11, 2010 11:09 AM

  • To restore backup on different host using RMAN

    Hi All,
    Friend I need your help once again. I want to restore my database from the past backup to new HOST by keeping the original database intact using RMAN. Let me explain the scenario:-
    Databas Version - 8.1.7
    OS - Solaris 5.8
    We are using RMAN with Tivoli as third party media management. I just need to restore the database from this tape library using RMAN with recovery catalog on new server. The only doubt I have is how I will make the backups of the production database whose backup has to be restored available on the new host where I have to create new database.
    I will be using different file structure for the newly restored database. Do I have to create TDPO files seperately on the server on which I have to restore the database.
    Please reply asap.
    Regards
    Harpreet Singh

    You need to create a tdpo.opt file of source on the destination database. Then, allocate channel using this TDPO_OPTFILE and recover database.

  • Database restore  from a particular backup set using rman

    Hi all,
    My OS: UNIX
    DB : 10.2.0.1
    As i checked the database it will indicate datafile 5 is header corruption.
    yesterday i take complete online backup of the database using RMAN but now when i run restore database command it will show as
    ORA-19870: error reading backup piece /cms/BACKUP/ora_BSCS_set149_piece1_20111206_4lmth1qj_1_1
    ORA-19573: cannot obtain exclusive enqueue for datafile 6
    Database is open and datafile is physically present there
    So can anyone tell what to do next
    Edited by: Vikas Kohli on Dec 9, 2011 9:58 AM

    here are the result for the same:
    Starting restore at 09-DEC-11
    using channel ORA_DISK_1
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    147 Incr 0 1.10G DISK 00:14:10 06-DEC-11
    BP Key: 147 Status: AVAILABLE Compressed: YES Tag: TAG20111206T085858
    Piece Name: /cms/BACKUP/ora_BSCS_set149_piece1_20111206_4lmth1qj_1_1
    List of Datafiles in backup set 147
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/system01.dbf
    2 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/undotbs01.dbf
    3 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/sysaux01.dbf
    4 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/users01.dbf
    5 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/DATA.dbf
    6 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/users02.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    149 Incr 1 11.49M DISK 00:00:07 07-DEC-11
    BP Key: 149 Status: AVAILABLE Compressed: YES Tag: TAG20111207T082737
    Piece Name: /cms/BACKUP/ora_BSCS_set151_piece1_20111207_4nmtjkbr_1_1
    List of Datafiles in backup set 149
    File LV Type Ckp SCN Ckp Time Name
    1 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/system01.dbf
    2 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/undotbs01.dbf
    3 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/sysaux01.dbf
    4 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/users01.dbf
    5 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/DATA.dbf
    6 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/users02.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    151 Incr 1 115.07M DISK 00:01:24 08-DEC-11
    BP Key: 151 Status: AVAILABLE Compressed: YES Tag: TAG20111208T075327
    Piece Name: /cms/BACKUP/ora_BSCS_set153_piece1_20111208_4pmtm6nn_1_1
    List of Datafiles in backup set 151
    File LV Type Ckp SCN Ckp Time Name
    1 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/system01.dbf
    2 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/undotbs01.dbf
    3 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/sysaux01.dbf
    4 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/users01.dbf
    5 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/DATA.dbf
    6 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/users02.dbf
    no backup of log thread 1 seq 411 lowscn 9068988025356 found to restore
    no backup of log thread 1 seq 412 lowscn 9068988167985 found to restore
    no backup of log thread 1 seq 413 lowscn 9068988203392 found to restore
    List of Archived Log Copies
    Key Thrd Seq S Low Time Name
    263 1 3 A 05-DEC-11 /u01/app/oracle/admin/BSCS/arch/BSCS/1_3_769127125.dbf
    273 1 13 A 07-DEC-11 /u01/app/oracle/admin/BSCS/arch/BSCS/1_13_769127125.dbf
    Media recovery start SCN is 9068988123314
    Recovery must be done beyond SCN 9068988123314 to clear data files fuzziness
    Finished restore at 09-DEC-11

Maybe you are looking for

  • CFSEARCH and "-"

    Hello, I have a verity collection that is populated by product descriptions. I use CFSEARCH to search this collection and it normally works very well. However, when a search term with a dash in it (-) is entered, it can't find the item. For example:

  • Removing my name from an Alias email

    I have been unable to remove my name from the "FROM" in outgoing emails. U have deleted my name in the "FROM" box in the preferences with no luck. Help...pf

  • BOM Explosion setting in SPRO

    Dear Gurus/Friends This is related to SPRO->Plant Parameters->Bom Explosion Here there are 5 selections      BOM explosion number/order start date 1     Order start date 2     Order finish date 3     BOM explosion number/order start date 4     BOM ex

  • PDF documents online

    Ich nutzte heute die Chance, eine Word-Datei (DOC) online von Adobe konvertieren zu lassen. Ich bin über das schlechte Resultat erschüttert. Während ein mitbewerber eine brauchbare Variante lieferte, war die Adobe-Version völlig unbrauchbar. Wie ist

  • Imported captions are hidden in Lightroom 3?

    I downloaded Lightroom 3 and installed it on a desktop with Windows 7. I imported the pictures from Windows Photo Viewer in Lightroom 3 (function Add). The problem now is, that I get in the exif or exif/IPTC pop-up menu, only the filename, the map an