Oracle XE Restore

Hi,
I've a running XE on machine A. OS is Linux. I use achive log and RMAN to backup XE - to start the backup process I use the command '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/scripts/backup.sh' in a cron job.
Now I want to restore the complete XE on Machine B with the command '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/scripts/restore.sh'. On machine B is the same OS as on machine A and XE ist installed. My questions is, which directories from machine A do I have to copy to machine B in order to use the restore.sh script to get the same as on machine A?
Regards,
MS

Sounds like you're almost there, if the database was shut down when that backup was taken.
Easiest method to restore would probably be a controlfile (re)create- get a create controlfile script ready, move the "old" controlfile(s) out of the way, run sqlplus and connect as sysdba, startup nomount, run the create controlfile script, and alter database open should be good to go after adding a new tempfile.
If you don't have a sample controlfile trace to work from, startup that "new" installed instance and (in sqlplus) connect as system (or sys as sysdba) and do a sqlplus `alter database backup controlfile to trace;`
The cloning steps at [http://www.dba-oracle.com/oracle_tips_db_copy.htm] are pretty close except you won't need to make the change to "set database" unless you want to change the db_name (and have also made that change in the initialization file).
If you've added tablespaces those datafiles will also have to be added into the create controlfile script, and you'll probably have to specify the database character set in the create controlfile ... ; statement as well.

Similar Messages

  • How to do oracle  backup,restore,recovery using php?

    Is there anyone know how to do oracle backup,restore and recovery using php? any tips... is there any ways to do that?

    Are you referring to performing RMAN backup operations via the OSB web tool? RMAN operations are managed, not via the web tool, but through RMAN command line or Oracle Enterprise Manager (EM)
    Donna

  • System Copy/ Oracle Backup/Restore as part of migrating from 32 to 64-bit

    Source system (I386): R3E47 Ext Set 2.00 SAP_BASIS 620 Kernel 640 Windows 2000, Oracle 10.2.0.4, non-unicode
    Target system (x86-64/AMD64): R3E47 Ext Set 2.00 SAP_BASIS 620 Kernel 640 Windows 2000 Oracle 10.2.0.4, non-unicode
    Am using method System Copy/ Oracle Backup/Restore to migrate from 32 to 64 bit (HOM System Copy).
    Actions on source system:
    a) Upgrade from 9.2.0.7 to Oracle 10.2.0.4
    b) Used ora_br_copy.bat to generate CONTROL.SQL and init<sid>.ora
    c) Switched logfiles
    d) Performed offline backup
    Actions on target system:
    a) Installed Oracle 10.2.0.1 and patched it to 10.2.0.4
    b) Used CD 51033746 "6.20/6.40 based products Installation Master (Edition May 2008)" to install the CI
    c) Started installation of the DB instance selecting System Copy/ Oracle Backup/Restore (same <SID> for source and target systems)
    Relevant input parameters used:
    Database schema: SAPR3
    Database character set: US7ASCII
    d) When SAPINST stopped to allow for restoring of datafiles, logs and init<sid.ora>:
    - copied datafiles and logs to the usual place
    - copied CONTROL.SQL (edited to include utilrp.sql and utlrp.sql for the migration from 32 to 64) to the DB-instance intallation . directory.
    - copied generated init<SID>.ora to the <ORACLE_HOME>\database
    e) Resumed SAPINST.
    David Byrne in a previous post suggested: "check your oracle alert file in case there are errors there you may need to update the word size for the 64bit install. Errors like this in the oracle alert file would suggest that.,
    ORA-12012
    ORA-06544: PL/SQL: internal error, arguments: [ORA-06544: PL/SQL: internal error, arguments: 56319], [, ], [, ], [, ], [
    ORA-06553"
    Well, I am getting ORA-06553: PLS-801: internal error [56319] but then my edited CONTROL.SQL (which is mainly a CREATE CONTROLFILE as it would be obtained with a ...BACKUP CONTROLFILE TO TRACE) includes at the end this:
    shutdown immediate
    startup upgrade
    spool utlirp.log
    @?/rdbms/admin/utlirp.sql
    spool off
    Shutdown immediate
    Startup
    Spool utlrp.log
    @?/rdbms/admin/utlrp.sql
    Spool off
    exit
    which is supposed to do just that... (I think)
    Help, anyone?

    > Trying to cheer me up, are you?
    No
    > It is NOT free that reorganization! Quite expensive, actually, paid for in time! But you're right... the database needed a reorg anyway :-\
    True, not "free" - it takes time but the data will be nicely aligned then
    > And why would I have to reconfigure all those 10.2 features? Everything's either in the database or init<sid>.ora, ain't it? And my database is a pretty 10.2.0.4 with all those nice features already activated...
    No - not really auotmatically if you upgraded from 9.2 And "init<SID>.ora" is past, you nowadays use "spfile" If, of course, e. g. Automatic Undo was activated in 9.2 then it's there of course in 10.2 too.
    > One sticky point... I haven't really read the r3load procedure yet and I will before I import, but... I would say I don't have to do anything about the 32->64 bit, right? I mean, it should behave properly while reloading on 64-bit...
    The exported content is about 10 % of the size of the system, it's database and OS independent so yes, you can import it nicely on 32bit. Another tip: make sure you don't just use the default configurations for R3load, it will take a HUGE amount of time. Use the package splitter (builtin-in in sapinst) so you get a much higher parallelism when importing.
    Markus

  • System copy using oracle backup/restore - sapinst does not restart after re

    I am performing a system copy of a BW3.5 system, using the system copy procedures and Oracle backup/restore. on the target node, I have installed the CI. I have run sapinst to install the database up to the point when it tells me to install the Oracle Server software, then restore the backup, and choose 'OK' in the dialog box. As I did not want to leave this dialog open, I chose 'cancel'. I have now installed Oracle, and restored the database, but when I try restarting sapinst I get the following error, and sapinst quits:
    FKD-00049  XML - Parser error: error: invalid symbol '' in literal 'SAPSYSTEM_DB
    indind_ind_ind_ind_0_SAPSYSTEM_ind_ind_ind_ind_ind_0_SAPComponent_ind_ind_ind_
    ind_ind_0_SAPComponent_Accounts_ind_ind_ind_ind_ind_0_SAPCompon' in line 1, 1
    in file
    ERROR      2007-08-20 15:06:13 [iaxxcsihlp.hpp:208]
               main()
    FCO-00031  An error occurred during the installation of component Problem: error
    in persistency subsystem.. Press the log view button to get extended error info
    rmation or press OK to terminate the installation.
    Has anybody ever experienced this before, or have any clues as to what the problem is? This is a production system, and it is supposed to be available by the end of the week....

    Hi Angie,
    You should always mention OS details while drafting message.
    First, CHeck you must selected same SID as earlier while installation or Oracle and DB.
    Secondly, you can skip this phase in SAPInst, bit technical for you.
    Alternatively,
    Recommendations
    - Set parameters as per SAP Note 356370
    - Change the swap mode from 'intermediate' to 'deferred' as described in
      SAP Note 97179.
    - Add /usr/sbin to the path of the user <sapsid>adm in the file
    .cshrc, .login, .profile in the user's home directory. Enter the
    following command(s) at the end of .cshrc, .login, .profile:
      a) If using a csh, enter:
           set path=(/usr/sbin $path)
      b) If using a sh, enter:
           path=/usr/sbin:$path
           export path
    Br,
    Amit Lal
    Reward suitable pts.

  • Oracle backup & restore problem

    Hi Team,
    I am new to the RMAN, I want to test Backup & restore operation
    I have database called Test , I am creating new table in the database called Test_table through SQL *coPlus create mmand.
    Now After this I am taking backup the of all cotrolfile , datafile & snapshot file.
    once again I am opening this database in SQL *plus & deleted the table (Test_table).
    Now if restore back the database with backup set taken before deleting table. It is not showing me the Test_table.
    What is the problem? Plz help..

    Hi,
    Thanks for replay,
    Using Windows XP & ORACLE 9i
    I am doing following steps.
    Created one table ( Test_table ) in database my Test database.
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Administrator>rman
    Recovery Manager: Release 9.2.0.1.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN> connect target system/sreedhar@Test;
    connected to target database: Test (DBID=1558624384)
    RMAN> show all;
    using target database controlfile instead of recovery catalog
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'C:\Testing\CTL_
    %F';
    configuration for DISK channel 2 is ignored
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT 'C:\Testing\DBF_%U';
    CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT 'C:\RmanBack\std_%U';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'C:\Testing\CHA_Dev_%U_%S_%P';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'C:\TESTING\SNCFTest.ORA';
    RMAN> backup database;
    Starting backup at 06-OCT-06
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=9 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE\ORADATA\Test\SYSTEM01.DBF
    input datafile fno=00002 name=C:\ORACLE\ORADATA\Test\UNDOTBS01.DBF
    input datafile fno=00005 name=C:\ORACLE\ORADATA\Test\EXAMPLE01.DBF
    input datafile fno=00010 name=C:\ORACLE\ORADATA\Test\XDB01.DBF
    input datafile fno=00006 name=C:\ORACLE\ORADATA\Test\INDX01.DBF
    input datafile fno=00009 name=C:\ORACLE\ORADATA\Test\USERS01.DBF
    input datafile fno=00003 name=C:\ORACLE\ORADATA\Test\CWMLITE01.DBF
    input datafile fno=00004 name=C:\ORACLE\ORADATA\Test\DRSYS01.DBF
    input datafile fno=00007 name=C:\ORACLE\ORADATA\Test\ODM01.DBF
    input datafile fno=00008 name=C:\ORACLE\ORADATA\Test\TOOLS01.DBF
    channel ORA_DISK_1: starting piece 1 at 06-OCT-06
    channel ORA_DISK_1: finished piece 1 at 06-OCT-06
    piece handle=C:\TESTING\DBF_0QHV5L4T_1_1 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:05
    Finished backup at 06-OCT-06
    Starting Control File and SPFILE Autobackup at 06-OCT-06
    piece handle=C:\TESTING\CTL_C-1558624384-20061006-01 comment=NONE
    Finished Control File and SPFILE Autobackup at 06-OCT-06
    RMAN> exit
    Recovery Manager complete.
    After this backup I am deleting this Test_table table using SQL *PLUS Drop table  clause.
    Also deleted the all .DBF files from Test folder. and I am restoring now the old backup set which has the information regarding the Test_table.
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Administrator>rman
    Recovery Manager: Release 9.2.0.1.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN> connect target system/sreedhar@Test;
    connected to target database (not started)
    RMAN> startup mount;
    Oracle instance started
    database mounted
    Total System Global Area 252779340 bytes
    Fixed Size 453452 bytes
    Variable Size 125829120 bytes
    Database Buffers 125829120 bytes
    Redo Buffers 667648 bytes
    RMAN> show all;
    using target database controlfile instead of recovery catalog
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'C:\Testing\CTL_
    %F';
    configuration for DISK channel 2 is ignored
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT 'C:\Testing\DBF_%U';
    CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT 'C:\RmanBack\std_%U';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'C:\Testing\CHA_Dev_%U_%S_%P';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'C:\TESTING\SNCFTest.ORA';
    RMAN> restore database;
    Starting restore at 06-OCT-06
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=11 devtype=DISK
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to C:\ORACLE\ORADATA\Test\SYSTEM01.DBF
    restoring datafile 00002 to C:\ORACLE\ORADATA\Test\UNDOTBS01.DBF
    restoring datafile 00003 to C:\ORACLE\ORADATA\Test\CWMLITE01.DBF
    restoring datafile 00004 to C:\ORACLE\ORADATA\Test\DRSYS01.DBF
    restoring datafile 00005 to C:\ORACLE\ORADATA\Test\EXAMPLE01.DBF
    restoring datafile 00006 to C:\ORACLE\ORADATA\Test\INDX01.DBF
    restoring datafile 00007 to C:\ORACLE\ORADATA\Test\ODM01.DBF
    restoring datafile 00008 to C:\ORACLE\ORADATA\Test\TOOLS01.DBF
    restoring datafile 00009 to C:\ORACLE\ORADATA\Test\USERS01.DBF
    restoring datafile 00010 to C:\ORACLE\ORADATA\Test\XDB01.DBF
    channel ORA_DISK_1: restored backup piece 1
    piece handle=C:\TESTING\DBF_0QHV5L4T_1_1 tag=TAG20061006T122500 params=NULL
    channel ORA_DISK_1: restore complete
    Finished restore at 06-OCT-06
    RMAN> recover database;
    Starting recover at 06-OCT-06
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete
    Finished recover at 06-OCT-06
    RMAN> exit
    Recovery Manager complete.
    When i check table Test_table in SQL *Plus using command DESC Test_table; it is showing me error object Test_table does not exist

  • How to do oracle backups/Restore

    hi,
    can any one send me the steps for taking database back ups and restoring it.
    thanks.

    Hi,
    Very simple.........
    Just open the Oracle documentation.
    Go to the Backup and Recovery module.
    Start going through backup methods.
    So on Serious note...
    First of all tell whether you want backup and recovery as User managed or Recovery Manager(RMAN).
    They both have their respective steps.
    For more information go through this:-
    http://www.oracle.com/technology/deploy/availability/htdocs/BR_Overview.htm
    and other oracle docs.
    Regards.

  • RMAN Oracle 9i - restore

    Gurus
    I want to restore a complete RMAN backup on my stage server (same layout, same binaries) from the NFS location.
    The method I follow is:
    - launch full backup from source on NFS drive accessible to both servers
    - startup nomount at target
    - restore controlfile from 'location'
    - restore database
    However the issue is that I did not mention include current controlfile in the backup I took (it's 9i, 9208) and when I list backup it shows all old backups (which go to tape normally) and not the one that I took on NFS. I haven't setup tape and recovery catalog on stage as I donot want to restore from tape but from NFS drive only...
    The error it shows is:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 03/23/2011 10:00:51
    RMAN-06026: some targets not found - aborting restore
    RMAN-06100: no channel to restore a backup or copy of datafile 50
    RMAN-06100: no channel to restore a backup or copy of datafile 49
    RMAN-06100: no channel to restore a backup or copy of datafile 48
    RMAN-06100: no channel to restore a backup or copy of datafile 47
    RMAN-06100: no channel to restore a backup or copy of datafile 46
    etc
    Can you tell me how do I catalog this backup in the controlfile it is restoring..?.. I see that 9i has some restriction in diong that :(
    Also, can I copy the current controlfile (from source) which has info abt this backup and restore to a point in time?
    ThanksMuch
    L0 DBA

    I was able to identify the backup using a current controlfile but the pience name is registered as:
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    49460 Full 2G DISK 00:22:09 15-MAR-11
    BP Key: 49460 Status: AVAILABLE Tag: TAG20110315T165404
    Piece Name: /apps/ddbackup/oraexport/DBNAME/FULL_SAVEGRP_DBNAME_ntm7a0dg/
    List of Datafiles in backup set 49460
    File LV Type Ckp SCN Ckp Time Name
    44 Full 1723976356787 15-MAR-11 /oradata/DBNAME/data001/oralink/rkpidx03_03
    47 Full 1723976356787 15-MAR-11 /oradata/DBNAME/data001/oralink/rkpdat01_06
    The backup was taken using:
    backup full filesperset 20
    format '/apps/ddbackup/oraexport/DBNAME/FULL_SAVEGRP_%d_%u/'
    (database);
    BUt the restore says:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 03/23/2011 11:38:27
    ORA-19505: failed to identify file "/apps/ddbackup/oraexport/DBNAME/FULL_SAVEGRP_DBNAME_ntm7a0dg/"
    ORA-27037: unable to obtain file status
    SVR4 Error: 20: Not a directory
    Additional information: 3
    Although al files are present at this location:
    (oracle:DBNAME)/apps/ddbackup/LCM/scripts/DBNAME: ls -l /apps/ddbackup/oraexport/DBNAME
    total 707098624
    -rw-r----- 1 oracle dba 4571136 Mar 23 11:01 ctrlDBNAME.ctl
    -rw-r----- 1 oracle dba 46823784448 Mar 15 21:11 FULL_SAVEGRP_DBNAME_nmm7a0de
    -rw-r----- 1 oracle dba 66170978304 Mar 15 23:00 FULL_SAVEGRP_DBNAME_nnm7a0de
    -rw-r----- 1 oracle dba 70473613312 Mar 15 23:23 FULL_SAVEGRP_DBNAME_nom7a0df
    -rw-r----- 1 oracle dba 31187255296 Mar 15 19:51 FULL_SAVEGRP_DBNAME_npm7a0df
    -rw-r----- 1 oracle dba 49790435328 Mar 15 21:32 FULL_SAVEGRP_DBNAME_nqm7a0df
    -rw-r----- 1 oracle dba 53254422528 Mar 15 21:50 FULL_SAVEGRP_DBNAME_nrm7a0df
    -rw-r----- 1 oracle dba 41653403648 Mar 15 20:47 FULL_SAVEGRP_DBNAME_nsm7a0df
    -rw-r----- 1 oracle dba 2676031488 Mar 15 17:16 FULL_SAVEGRP_DBNAME_ntm7a0dg
    Any clues?

  • Oracle Disaster Restore Service for you

    We can provide the Disaster REstore experts Service for you.
    We can restore the following status Oracle:
    1. Only have RMAN Backup
    2. Only have datafile (anything ,datafile etc.)
    3. Only have all datafiles
    Oracle Verstions:8/8i/9i/10g/11g
    MSN:[email protected]
    深圳公司提供專家Oracle災難恢復服務。
    如果貴公司Oracle數據庫損壞,我們會協助貴公司恢復數據。
    恢復範圍:
    1> 有RMAN備份
    2> 有數據文件冷備份(包含所有數據文件)
    3> 僅僅剩下一個數據文件(如DATA01.dbf)
    Message was edited by:
    user630796

    Well I guess it has been already mentioned couple of times here on this forum.Please don't use this forum as a medium of self promotion or business promotion.I suggest set up a good website and we will find you.
    And if you ask me, I shallbe interested if you can tell me what you can do which DUL or DUDE are missing?I am not giving links for it.
    Just a thought, why would we be interested in "restoring" a disaster?
    Aman....

  • Why is Oracle RMAN restoring a datafile to a different diskgroup?

    Hello,
    When I was trying an RMAN restore of a datafile, I found it is restoring the datafile to a new location. Why is Oracle restoring a datafile to a different diskgroup instead of restoring to the original diskgroup where the datafile was originally present?
    1) I have a datafile '+DATA3/slob1/datafile/undotbs2.260.819992871' which is on +DATA3 diskgroup
    2) I am taking a backup on to +FRA diskgroup
    3) I then offline and delete the datafile 5 using asmcmd to simulate the loss of a datafile
    4) I perform restore and recover of datafile 5 from the backup set on +FRA
    5) Unfortunately the datafile got restored on to +FRA instead of +DATA3. I realize that the file name can change because it is going to be a new file on ASM but I would assume this will be on the same diskgroup atleast since the control file has it pointing to '+DATA3/slob1/datafile/undotbs2.260.819992871' before restoration.
    When I tested on file system, this gets restored on to file system correctly.
    Anyone has any idea why the datafile was restored on to +FRA instead of +DATA3?
    Below is the screen output of what I did.
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ rman target /
    Recovery Manager: Release 11.2.0.2.0 - Production on Thu Jul 11 17:09:21 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SLOB1 (DBID=4051414893)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    25       UNDOTBS2             ***     +DATA3/slob1/datafile/undotbs2.260.819992871
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> backup as backupset datafile 5 format '+FRA';
    Starting backup at 11-07-2013 17:10:03
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=687 device type=DISK
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00005 name=+DATA3/slob1/datafile/undotbs2.260.819992871
    channel ORA_DISK_1: starting piece 1 at 11-07-2013 17:10:04
    channel ORA_DISK_1: finished piece 1 at 11-07-2013 17:10:05
    piece handle=+FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205 tag=TAG20130711T171003 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 11-07-2013 17:10:05
    RMAN> SQL 'alter database datafile 5 offline';
    using target database control file instead of recovery catalog
    sql statement: alter database datafile 5 offline
    RMAN> quit
    Recovery Manager complete.
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ asmcmd rm +DATA3/slob1/datafile/undotbs2.260.819992871
    [oracle@ltc-rac02[+ASM2]:/home/oracle ]$ asmcmd ls -l  +DATA3/slob1/datafile/undotbs2.260.819992871
    ASMCMD-08002: entry 'undotbs2.260.819992871' does not exist in directory '+DATA3/slob1/datafile/'
    [oracle@ltc-rac02[+ASM2]:/home/oracle ]$ . oraenv
    ORACLE_SID = [+ASM2] ? SLOB11
    The Oracle base remains unchanged with value /u01/app/oracle
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ rman target /
    Recovery Manager: Release 11.2.0.2.0 - Production on Thu Jul 11 17:12:27 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SLOB1 (DBID=4051414893)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    0        UNDOTBS2             ***     +DATA3/slob1/datafile/undotbs2.260.819992871
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> restore datafile 5;
    Starting restore at 11-07-2013 17:12:43
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=687 device type=DISK
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00005 to +DATA3/slob1/datafile/undotbs2.260.819992871
    channel ORA_DISK_1: reading from backup piece +FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205
    channel ORA_DISK_1: piece handle=+FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205 tag=TAG20130711T171003
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    Finished restore at 11-07-2013 17:12:46
    RMAN> report schema;
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    25       UNDOTBS2             ***     +FRA/slob1/datafile/undotbs2.257.820516365
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> recover datafile 5;
    Starting recover at 11-07-2013 17:13:37
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 11-07-2013 17:13:39
    RMAN> SQL 'alter database datafile 5 online';
    sql statement: alter database datafile 5 online
    Thanks,
    Rijesh

    Hello,
    Can you check what is the value set for the parameter "db_create_file_dest" on the database ?
    Regards,
    Shivananda

  • Oracle DB Restore via dbacockpit ?

    Hi,
    I've backed up the Oracle db via dbacockpit. Why isn't there any restoration option ?
    Do I need to use brtools to restore ?
    Please advise.
    TIA !
    DL

    > I've backed up the Oracle db via dbacockpit. Why isn't there any restoration option ?
    Because a restore has completely different effects than a backup.
    When you backup your database, the system keeps running, this is not the case with a restore.
    A restore of an Oracle database is a extremly complex process with thousands of different options and things to take care of.
    Plus - this is nothing to be done on a scheduled base, whereas a backup is.
    > Do I need to use brtools to restore ?
    Yes, you do.
    regards,
    Lars

  • Oracle 9i restore to point in time

    We are performing everyday full backups (plus archivelogs) using rman on our Oracle9i RAC database (in archivelog mode). The backup takes around 3 hours to complete. After we start the backup we wait for about 1 hour and then start transacting on the database through our application. Is it possible to take that backup and restore on a different database to the point in time when the backup started (or at any time within the first 1 hour window) assuming we take a backup of the controlfile at some point before or after the backup?
    Edited by: de**** on Jun 30, 2012 2:01 AM

    Hi de****,
    Is it possible to take that backup and restore on a different database to the point in time when the backup startedYou will need the previous backup plus all archivelogs to restore/recover to that point in time (PIT).
    The easiest would be to do an rman duplicate and take a PIT at the moment the hotbackup does the second archivelog backup run started.
    There are plenty of examples in this forum on how to do a duplicate.
    Regards,
    Tycho

  • Homegneous System copy Specific DB method Oracle Backup/Restore Sapinst

    Hello colleagues,
    Following the documentation, I´ve one doubt about the above method, is it needed to install again the SCS instance when the system is installed in one host and we want just to refresh database.
    I mean, we want to refresh CRM quality system from Production system. It´s a ABAP+JAVA system, so i have to prepare a backup and export Central instance through sapinst in source system.
    Afterwards it´s needed to follow the three steps in sapinst, Install SCS instance, Install database instance and install central instance (database copy section) . Or as we´ve already installed our quality CRM system, it´s just enough with installing database instance and central instance (using backup/restore method and exported data from source system)
    Thanks a lot for this info because in the SAP guides it´s not clear from my point of view.
    Regards

    Enrique José Marcos wrote:
    Hello colleagues,
    Following the documentation, I´ve one doubt about the above method, is it needed to install again the SCS instance when the system is installed in one host and we want just to refresh database.
    I mean, we want to refresh CRM quality system from Production system. It´s a ABAP+JAVA system, so i have to prepare a backup and export Central instance through sapinst in source system.
    Afterwards it´s needed to follow the three steps in sapinst, Install SCS instance, Install database instance and install central instance (database copy section) . Or as we´ve already installed our quality CRM system, it´s just enough with installing database instance and central instance (using backup/restore method and exported data from source system)
    Thanks a lot for this info because in the SAP guides it´s not clear from my point of view.
    Well i didnot get your question properly, but as per my understanding if you have only ABAP instance installed then you can go with the Database resoration method but as you said ABAP+JAVA instance both are there so in that case you need to build the export of complete system through Sapinst and then you cn perform the same export file to install the target system which will be your Quality.
    Another option is that just restore the database via database restoration method then try to restore the JAVA stack by file system method which is i think not supported by SAP if i am not wrong but it can be done i tired the same on XI system.
    Regards,
    Subhash

  • SAP ORACLE BACKUP RESTORE

    Hi all,
    +Please assist me with a guideline of carrying out a backup restore,this is to test and ensure that we can be able to restore the backup in the case of a disaster. we perform a Full backup daily and are using BRTOOLS.+
    Thank you.
    Regards,

    Hi,
    you need to do the following
    1) Copy the log files of the backup date which u want to restore.
    2) Create controlfile from production using command alter system backup controlfile to trace;
    3) restore the backup on target system using brrestore command.( assumption here is your target system is already installed)
    For more details you need to refer help.sap.com
    Regards,
    Deepak Kori

  • SAP R/3 on Oracle 9i : check online backup

    Hi there,
    I would like to integrate a check on the status of the online database backup (which runs on a daily basis) into a central monitoring system.
    On way to do it is to check on OS level for the latest backup log file and read the status at the end of this file.
    I wonder if it's also possible to check the backup status by doing a select on database table(s) and if so which table(s) should I query ?
    Any help would be appreciated.
    Kind regards,
    Erik

    Hi,
    You can implement CCMS alert configuration in your system to check the status of daily backup. For that use tcode RZ20->Monitoring>Oracle>Backup/restore>Backup status>Last succ. complete database backup or Last brbackup run
    YOu also need to create a monitoring method in RZ21.
    Please refer SAP Note 0176492 for details
    Hope this helps you.
    Thanks
    Sushil

  • Oracle 10g XE recovery failed

    Hi, everyone:
    I have re-install my linux which is rh5. I also have a backup directory - "flash_recovery_area" from another oracle 10g XE database.
    When I installed the new oracle 10 XE, I try to restore the backup data from application menu, but the get result as below:
    This operation will shut down and restore the database. Are you sure [Y/N]?y
    Restore in progress...
    Enter the flash recovery area location:/usr/lib/oracle
    ==================== ERROR =========================
    Restore of the database failed
    ==================== ERROR =========================
    RMAN error: See log for details.
    Log file is at /home/tim/oxe_restore.log.
    Press ENTER key to exit
    I found the error lines in oxe_restore.log as below:
    RMAN>
    Oracle instance started
    Total System Global Area 285212672 bytes
    Fixed Size 1258464 bytes
    Variable Size 92277792 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 2932736 bytes
    RMAN>
    Recovery Manager complete.
    Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 29 01:05:53 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: XE (not mounted)
    RMAN>
    echo set on
    RMAN> restore spfile from autobackup db_recovery_file_dest='/usr/lib/oracle';
    Starting restore at 29-JUL-08
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=36 devtype=DISK
    recovery area destination: /usr/lib/oracle
    database name (or database unique name) used for search: XE
    channel ORA_DISK_1: no autobackups found in the recovery area
    autobackup search outside recovery area not attempted because DBID was not set
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 07/29/2008 01:05:54
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    RMAN> startup force nomount;
    Oracle instance started
    Total System Global Area 608174080 bytes
    Fixed Size 1260316 bytes
    Variable Size 226493668 bytes
    Database Buffers 377487360 bytes
    Redo Buffers 2932736 bytes
    RMAN> restore controlfile from autobackup;
    Starting restore at 29-JUL-08
    allocated channel: ORA_DISK_1
    And after that, the new oracle 10 XE can`t start anymore.
    Thanks for any help!
    OldTim

    Thank you so much for reply!
    Tried full path already, but still can`t work. But I found another solution below and made it working finally:
    Oracle XE Recovery
    1 Copy /usr/lib/oracle to Bakcup disk.
    sudo cp /usr/lib/oracle /media/disk
    2 Copy the directory oracle to new linux system
    sudo cp /media/disk /usr/lib/oracle
    3 install Oracle 10g XE
    4 run command below:
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/scripts/restore.sh
    Done.

Maybe you are looking for