Perform hot backup on to a tape

Can I get a step by step procedure to perform a hot backup of 500 gig db on to a tape. We do not have catalog database and database version is 10.2.0.1.
Thanks

You are asking to abstract a manual. This means you can expect nasty replies because no one wants to do voluntarily what you apparently avoid to do: read documentation.
RMAN can not backup directly to a tape, it needs a media management library, like Legato, or Tivoli, or Netbackup or ....
Yes you need to allocate channels, and the exact method is different for each library product, so no info is possible.
Backup database also back ups the controlfile. In Oracle 10g and higher you should have autobackup of the controlfile to disk enabled, this replaces and supplements the catalog database.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Can I use cp or dd to perform hot backup?

    Hi,
    I am wondering whether we can use 'cp' or 'dd' to do hot backup for bdb. IS it safe enough?
    If so, why bdb still need to supply the utility tool db_hotbackup?
    Thanks.
    -Yuan

    The behavior/implementation of 'cp' is different from system to system. In Solaris in particular it doesn't work as you might expect. db_hotbackup was written to give you a supported, reliable way to do a hot (live) backup of the database. You don't have to ship the utility, you're free to copy the code from the utility into your application itself. Would that work?
    -greg

  • Consistent hot backup possible

    Is a consistent hot backup possible?
    I would like to perform hot backups while the database is in basically a read only state. I am currently using Oracle recommended backups via OEM, for example.
    run {
    allocate channel oem_disk_backup device type disk;
    recover copy of database with tag 'ORA$OEM_LEVEL_0';
    backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA$OEM_LEVEL_0' database;
    release channel oem_disk_backup;
    allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U';
    backup recovery area;
    Would executing the sql command "alter database begin backup;" before running the above RMAN script accomplish this task? Then off course when completed execute sql "alter database end backup;".
    My basic concern is this type of RMAN hot backup usable in a disaster situation, i.e recreated on another server from tape backup.
    I am open to any other ideas.
    Thanks for your help in advance.
    Ed - Wasilla, Alaska
    Edited by: evankrevelen on Sep 11, 2008 10:18 PM

    Thanks everyone who replied to this thread.
    Just to clarify my complete backup strategy, there are two RMAN scripts run on daily and weekly basis. The daily does pickup the archivelogs. I had shown the weekly when first opening this thread. Here is the daily.
    run {
    allocate channel oem_disk_backup device type disk;
    recover copy of database with tag 'ORA$OEM_LEVEL_0';
    backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA$OEM_LEVEL_0' database;
    release channel oem_disk_backup;
    allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U';
    backup archivelog all not backed up;
    backup backupset all not backed up since time 'SYSDATE-1';
    My question now is what RMAN does in the increments. It appears to be updating the original level 0 copies of datafiles with changed blocks only. Is the new copy of the datafile now a level 0 type file?
    Here is a transcript from one of the daily backups.
    Starting recover at 11-SEP-08
    channel oem_disk_backup: starting incremental datafile backupset restore
    channel oem_disk_backup: specifying datafile copies to recover
    recovering datafile copy fno=00001 name=+DEVRVYG1/landesk/datafile/system.2576.616107783
    recovering datafile copy fno=00002 name=+DEVRVYG1/landesk/datafile/undotbs1.2574.616107865
    recovering datafile copy fno=00003 name=+DEVRVYG1/landesk/datafile/sysaux.2575.616107829
    recovering datafile copy fno=00004 name=+DEVRVYG1/landesk/datafile/users.2572.616107871
    recovering datafile copy fno=00005 name=+DEVRVYG1/landesk/datafile/landesk.2914.616107643
    channel oem_disk_backup: reading from backup piece +DEVRVYG1/landesk/backupset/2008_09_10/nnndn1_tag20080910t220150_0.12330.665100189
    channel oem_disk_backup: restored backup piece 1
    piece handle=+DEVRVYG1/landesk/backupset/2008_09_10/nnndn1_tag20080910t220150_0.12330.665100189 tag=TAG20080910T220150
    channel oem_disk_backup: restore complete, elapsed time: 00:05:16
    Finished recover at 11-SEP-08
    Starting backup at 11-SEP-08
    channel oem_disk_backup: starting incremental level 1 datafile backupset
    channel oem_disk_backup: specifying datafile(s) in backupset
    input datafile fno=00005 name=+DEVG1/landesk/datafile/landesk.374.614072207
    input datafile fno=00003 name=+DEVG1/landesk/datafile/sysaux.384.614002027
    input datafile fno=00001 name=+DEVG1/landesk/datafile/system.383.614002025
    input datafile fno=00002 name=+DEVG1/landesk/datafile/undotbs1.385.614002027
    input datafile fno=00004 name=+DEVG1/landesk/datafile/users.386.614002027
    channel oem_disk_backup: starting piece 1 at 11-SEP-08
    channel oem_disk_backup: finished piece 1 at 11-SEP-08
    piece handle=+DEVRVYG1/landesk/backupset/2008_09_11/nnndn1_tag20080911t220708_0.12999.665186835 tag=TAG20080911T220708 comment=NONE
    channel oem_disk_backup: backup set complete, elapsed time: 00:02:26
    channel oem_disk_backup: starting incremental level 1 datafile backupset
    channel oem_disk_backup: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel oem_disk_backup: starting piece 1 at 11-SEP-08
    channel oem_disk_backup: finished piece 1 at 11-SEP-08
    piece handle=+DEVRVYG1/landesk/backupset/2008_09_11/ncsnn1_tag20080911t220708_0.2301.665186983 tag=TAG20080911T220708 comment=NONE
    channel oem_disk_backup: backup set complete, elapsed time: 00:00:21
    Finished backup at 11-SEP-08
    It appears to be updating the previous copy with updated blocks thus rolling forward the datafile copy to a new level 0 copy.
    Then to restore from the backup RMAN would first use this new copy of the datafile and then apply any archivelogs to them to bring the database to the point in time the incremental backup was taken.
    Are these assumptions true?
    Thanks for your help,
    ED

  • Hot backup concept

    Hi,
    i have a doubt in hot backup concept. when we perform hot backup and put the tablespace in begin backup mode the headers are freezed and all the entries for the headers are stored in redlogs. My doubt is if the redolog is archieved will the database applies the entries from archived log on the headers after end backup mode of tablespace???
    Regards,
    007

    Hi,
    i have a doubt in hot backup concept. when we perform hot backup and put the tablespace in begin backup mode the headers are freezed and all the entries for the headers are stored in redlogs. My doubt is if the redolog is archieved will the database applies the entries from archived log on the headers after end backup mode of tablespace??? Putting a tablespace INTO hot backup mode does indeed cause a checkpoint to take place for that tablespace. But when the tablespace is out of hot backup mode does NOT. The SCNs in the headers of that tablespace will re-synchronize next time there is a system-wide checkpoint, but not until then.
    Refer to thread : User managed hot backup
    where HJR provided the demo.
    - Pavan Kumar N
    Edited by: Pavan Kumar on Jul 6, 2011 12:48 AM

  • Metalink Ids for hot backup clonning

    Hi i want to perform hot backup clonning in R12 single node to single node and single node to multi node,
    Please tell me the metalink ids

    Hi,
    Please see these docs.
    Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database [ID 760772.1
    Cloning E-Business Suite Using Hot Backup for Minimal Downtime of Source Environment. [ID 362473.1]
    Rapid Clone Documentation Resources, Release 11i and 12 [ID 799735.1]
    RMAN Guides
    http://www.oracle.com/pls/db112/homepage
    Thanks,
    Hussein

  • Error while running adcfgclone on apps tier.....(hot backup)

    hi i'm performing hot backup cloning & when i run adcfgclone on apps tier....it is getting failed.here is my logfile.......single node....
    Started ApplyAppsTier at Tue Dec 14 14:42:09 GMT+05:30 2010
    Version:
    ApplyAppsTier.java : 120.4
    # Calling ApplyAppsTechStack...
    Executing runInstallDriver...
    Started unzipping files...
    Completed runInstallDriver.
    Executing home registration for s_weboh_oh...
    Registration Driver not available
    /clonehot/apps/apps/tech_st/10.1.3/appsutil/driver/regclone.drv
    Using default registration.
    copying /clonehot/apps/apps/tech_st/10.1.3//jlib/ojmisc.jar into jdk/jre/lib
    checking - /clonehot/apps/apps/tech_st/10.1.3//oraInst.loc
    checking - /etc/oraInst.loc
    Validating oraInst.loc - /etc/oraInst.loc
    oraInst.loc (/etc/oraInst.loc) points to directory without permissions: /u01/app/oracle/oraInventory
    checking - /clonehot/apps/inst/apps/PROD_apps/admin/oraInst.loc
    Validating oraInst.loc - /clonehot/apps/inst/apps/PROD_apps/admin/oraInst.loc
    Found oraInst.loc at - /clonehot/apps/inst/apps/PROD_apps/admin/oraInst.loc
    The given ORACLE_HOME_NAME : WEBOH_PROD
    This ORACLE_HOME_NAME is not registered in the inventory
    running OUI CLI home cloning:
    /clonehot/apps/apps/tech_st/10.1.3/oui/bin/runInstaller -clone -silent -force -waitForCompletion -invPtrLoc /clonehot/apps/inst/apps/PROD_apps/admin/oraInst.loc session:ORACLE_HOME=/clonehot/apps/apps/tech_st/10.1.3/ oracle.as.j2ee.top:s_asInstanceName=WEBOH_PROD oracle.as.j2ee.top:s_adminName=oc4jadmin oracle.as.j2ee.top:s_adminPassword=welcome ORACLE_HOME_NAME=WEBOH_PROD
    Executing command sh -c "/clonehot/apps/apps/tech_st/10.1.3/oui/bin/runInstaller -clone -silent -force -waitForCompletion -invPtrLoc /clonehot/apps/inst/apps/PROD_apps/admin/oraInst.loc session:ORACLE_HOME=/clonehot/apps/apps/tech_st/10.1.3/ oracle.as.j2ee.top:s_asInstanceName=WEBOH_PROD oracle.as.j2ee.top:s_adminName=oc4jadmin oracle.as.j2ee.top:s_adminPassword=welcome ORACLE_HOME_NAME=WEBOH_PROD ; echo ERRORCODE = $? ERRORCODE_END" Tue Dec 14 14:42:10 GMT+05:30 2010
    Command returned
    ERRORCODE = 127 ERRORCODE_END
    .end std out.
    /bin/sh: /clonehot/apps/apps/tech_st/10.1.3/oui/bin/runInstaller: No such file or directory
    .end err out.
    Command sh -c "/clonehot/apps/apps/tech_st/10.1.3/oui/bin/runInstaller -clone -silent -force -waitForCompletion -invPtrLoc /clonehot/apps/inst/apps/PROD_apps/admin/oraInst.loc session:ORACLE_HOME=/clonehot/apps/apps/tech_st/10.1.3/ oracle.as.j2ee.top:s_asInstanceName=WEBOH_PROD oracle.as.j2ee.top:s_adminName=oc4jadmin oracle.as.j2ee.top:s_adminPassword=welcome ORACLE_HOME_NAME=WEBOH_PROD ; echo ERRORCODE = $? ERRORCODE_END" failed. Tue Dec 14 14:42:10 GMT+05:30 2010
    OUI CLI cloning failed.
    Please look in to the latest OUI log file located in the central inventory /clonehot/apps/inst/apps/PROD_apps/admin/oraInventory/logs/cloneActions_<timestamp> for more details
    Attempting to restore /clonehot/apps/apps/tech_st/10.1.3/oui/oraparam.ini.ouibak to /clonehot/apps/apps/tech_st/10.1.3/oui/oraparam.ini
    Edited by: vandana on Dec 14, 2010 1:16 AM

    Hi,
    oraInst.loc (/etc/oraInst.loc) points to directory without permissions: /u01/app/oracle/oraInventoryPlease make sure that applmgr user has read/write/execute permission on the oraInventory directory.
    Please look in to the latest OUI log file located in the central inventory /clonehot/apps/inst/apps/PROD_apps/admin/oraInventory/logs/cloneActions_<timestamp> for more detailsAny details about the error in this log file?
    Thanks,
    Hussein

  • Frequency of Hot backups using RMAN

    Hello.
    After years of running various inhouse utilities to backup our Oracle databases we are now going to implement RMAN in our shop. We are running Oracle 10.2.0.4 EE databases on Solaris servers in Archivelog mode, so we'd like to perform "hot" backups. A caveat to this is that we also have "standby" databases that we manually manage via a series of scripts that works rather well and helps our CIO sleep at night.
    So what we're trying to do is tackle one obstacle at a time. We'd like to implement RMAN hot backups (including archivelogs) without having RMAN remove the archivelog backups that are out there. We simply want RMAN to backup the archivelog files, we'll manage their movement and removal ourselves for the time being.
    The script I have put together simply issues: Backup database plus archivelog format='/dumps/rman/F_Database_%d_set%s_%T_%U';
    The configuration settngs (we want at least a 2 day recovery period) are:
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/dumps/rman/controlfiles/%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/dumps/rman/W_Database_%d_set%s_%T_%U';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/xora01/app/oracle/product/10g/dbs/snapcf_glprd.f'; # default
    We are using an RMAN catalog.
    So my question is, if I perform the backup of the database (using the above command) once or twice a week and back-up only the archivelogs on a daily basis, would I be covered and save space at the same time? I think this might cover me as far as the archivelogs are concerned as well until my management is more comfortable with RMAN and allows us to install/use Data Guard.
    Thanks for you opinions/suggestions...

    Hi,
    So my question is, if I perform the backup of the database (using the above command) once or twice a week and back-up only the archivelogs on a daily basis, would I be covered and save space at the same time? I think this might cover me as far as the archivelogs are concerned as well until my management is more comfortable with RMAN and allows us to install/use Data Guard.Your idea also not bad to save disk space. it is also depends on database size and space availability on your server.
    or else you can go for weekly once fulll backup, remaining days incremental backups & archivelog backups.
    rman incremental backups take only chanegd blocks so it wont occupy much space
    1) sunday - full backup - level 0
    2) monday - inc1 & arch
    3) tuesday - inc2 & arch
    4) wednesday - inc1 & arch
    5) thursday - inc2 & arch
    6) friday - inc1 & arch
    7) saturday - inc2 & arch... & so on...
    Thanks

  • Performance effect during HOT backup mode

    Dear Experts,
    Oracle 10gR2, Windows Server 2003 ,I.4TB database size
    Our backup team put database in hot backup mode (alter tablespace begin......).
    Is it cause some performance issue in the database ?
    Thanks & Regards
    Sunil Kumar

    sunil kumar wrote:
    Dear Aman,
    As I told you I just joined and same thing I told to upper level, I need some definite proof so that I can prove my point because it always happens here: Database always put in hot backup mode and application here went very slow. I am a new DBA, so I need some some proof(what kind I don't know :)
    Aman, hot backup with RMAN is more preferable as compare to alter tablespace begin backup...... command.
    Why ?
    and if so why we still using OS commands to take backup;
    Thanks & Regards
    Sunil Kumar
    :)You have the answers to your other questions. As to "why we still using OS commands to take backup"? Well, um..... ;-) You'd have to ask you're organization that question. I can tell you there is no defensible reason to do so ..... ;-)

  • Hot Backup on Tape?

    Dear all,
    The following are the weekly backup scripts and backup on disk, not on tape:
    rman target /
         run
         CONFIGURE CONTROLFILE AUTOBACKUP ON;
         CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
         allocate channel ch1 type disk format '/db/BACKUP/RMAN/backup_%d_%t_%s_%p_%U.bck';
         backup incremental level 0 database plus archivelog delete all input;
         backup current controlfile;
         backup spfile;
         release channel ch1;
    1) Due to our normal practise and no space issue, I would like to backup on tape. How can I change the scripts in order to backup all the control file & *dbf file into tape?
    2) Let say I have a full backup on sunday (tape 1) , daily backup on Monday (tape 2), daily backup on Tuesday (tape 3), is it the way to backup on tape? Or only one backup tape includes all full backup & daily backup?
    Best Regards,
    Amy

    Yes, this is existing backup plan, which is backup on the disk and then backup from disk to tape.
    I know there are some differences between on backup in tape and disk. I found some scripts in oracle documents and try to modify it so that I can use.
    CONFIGURE DEFAULT DEVICE TYPE TO sbt; # backup goes to sbt
    CONFIGURE DEVICE TYPE sbt PARALLELISM1; # 1 sbt channels will be allocated by default
    # Assume media manager takes NSR_DATA_VOLUME_POOL to specify a pool
    # Configure channel 1 to pool named first_pool
    CONFIGURE CHANNEL 1 DEVICE TYPE sbt
    PARMS 'SBT_LIBRARY=/mediavendor/lib/libobk.so ENV=(NSR_DATA_VOLUME_POOL=first_pool)';
    I don't understand the word in bold. I read through some documents and just make me confusing. Can anyone tell me what is the meaning of "PARMS 'SET_LIBRARY=/mediavendor/lib/libobk.so....." Is it necessary to set these parameters?
    Please advice,
    Amy

  • Implementing Hot Backups

    HI ,
    i am new to the idea of hot backups , so need abit of advice on how to implement them by using RMAN and User based techniques
    a little bit abt my production environment
    Oracle 9.2.0.6
    EBS 11.5.10
    OS is HP UX 11.11
    earlier i used to get downtime of 2 hrs , so iused to cold backups wid RMAN as well OS based techniques , now due to 24 hr system requiremnt
    i have to use hotbackups, DB size is 200GB, how can i use hot backups so as my system works efficiently without any extra load

    Soli wrote:
    Hi,
    Each tablespace that needs to be backed-up must be switched into backup mode before copying the files out to secondary storage.
    This can be done as shown below:
    ALTER TABLESPACE xyz BEGIN BACKUP;
    ! cp xyfFile1 /backupDir/
    ALTER TABLESPACE xyz END BACKUP;
    The above would only be for user managed backups, which the OP has no reason to be doing. We should be guiding him in how to use rman, not in how to use obsolete techniques -- <b><i><u>ESPECIALLY</u></i></b> since he is new to the whole subject of backups and would easily be confused by mixing the techniques.
    Recovery Manager command:
    run {
    allocate channel t1 type `SBT_TAPE';
    backup
    format `df_%s_%t'
    (datafile 10);
    When Recovery Manager executes the above command, it sends the Oracle backup request to the Oracle server performing the backup.
    The Oracle server process identifies the output channel as the type `SBT_TAPE', and requests the Media Management Library to load a tape and write the output specified.
    but ther you must ask sysadm which storage you use and how to backup there.
    btw.
    there is link how to setup RMAN
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/setup004.htm
    Regards,
    Tom
    http://oracledba.cz

  • When i start my hot backup my database getting very slow

    Hi,
    I am using following commands for enabling hot backup
    SQL>ALTER SYSTEM ARCHIVE LOG CURRENT;
    SQL>ARCHIVE LOG LIST;
    SQL >ALTER DABATBASE BEGIN BACKUP;
    Database altered.
    SQL>SELECT FILE#,STATUS FROM V$BACKUP;
    FILE# STATUS
    1 ACTIVE
    2 ACTIVE
    3 ACTIVE
    4 ACTIVE
    and using cp -rp command to copy the file (backup copying speed good) but database performance very slow
    How to improve performance ...
    Regards
    Vignesh C

    Uwe Hesse wrote:
    It is very likely that you experience slow performance with ALTER DATABASE BEGIN BACKUP , because until you do ALTER DATABASE END BACKUP , every modified block is additionally written into the online logfiles . Doesn't that happen only the first time the block is modified?
    >
    The command was introduced for split mirror backups, when this period is very short. Else ALTER TABLESPACE ... BEGIN/END BACKUP for every tablespace one at a time reduces the amount of additional redo during non-RMAN Hot Backup. There appear to be only 4 files. We don't know how big or sparse they are.
    >
    RMAN doesn't need that at all - much less redo - and also archive - generation then.
    Furthermore, you can use BACKUP AS COMPRESSED BACKUPSET DATABASE to decrease the size of the backup even more - if space is an issue.
    In short: Use RMAN :-)
    Agree with that! Unless the copy is actually going to an NFS mount or something, where I would be concerned whether it is the type of NFS that Oracle likes. I'd also advise a current patch set, as the OP didn't tell us the exact version, and I have this nagging unfocused memory of some compression problems of the "oh, I can't recover" variety.
    I'd like to see some evidence on I/O and cpu usage before giving advice. When I used to copy files like this, it would choke out everyone else. RMAN was a savior, but had to wait for local SAN upgrade.

  • Hot Backups - Oracle 9i, 10g and 11g

    Are all hot backups run outside of RMAN as an OS file copy? If so, isn't this a very risky exercise.
    I understand that RMAN will check for corruption where as hot backups won't. RMAN can also track backups in a recovery catalog.
    If using a hot backup, it seems like corrupt data could be backed up with the good data.
    What exactly are the advantages of using a hot backup. It is understood that the databases can be up during a hot backup, but can't they also be up with an incremental RMAN backup?

    I think you need to read the documentation again. Check on tahiti.oracle.com
    A cold backup is when the database is shutdown (can be done by file copy or rman)
    A hot backup is when the database is running (can be done by file copy or rman)
    RMAN has the advantages of backing up at block level, and going directly to tape, and compression, and incremental backup, and block checking, and backup from ASM, and catalog ......
    File copy has the advantage of being logically simple (e.g you can see exactly what is happening when you copy a file).

  • Can we perform the backup in local disk

    Hu Gurus, how can we perform the Backup in Local HDD please guide me
    Cheers Gopal Rao

    HI,
    I dont remember the file name exactly, but my guess is its initSID.sap.
    This file stores parameters for log archives, size of tapes (if you use one), method of copy etc. There you will find a option / paramter called device tape, which can be used for disk copy or tape copy etc, as per usage.
    Hope this helps.
    Kind Regards,
    Jitendra

  • Incomplete Recovery Fails using Full hot backup & Archive logs !!

    Hello DBA's !!
    I am doing on Recovery scenario where I have taken One full hot backup of my Portal Database (EPR) and Restored it on New Test Server. Also I restored Archive logs from last full hot backup for next 6 days. Also I restored the latest Control file (binary) to their original locations. Now, I started the recovery scenario as follows....
    1) Installed Oracle 10.2.0.2 compatible with restored version of oracle.
    2) Configured tnsnames.ora, listener.ora, sqlnet.ora with hostname of Test server.
    3) Restored all Hot backup files from Tape to Test Server.
    4) Restored all archive logs from tape to Test server.
    5) Restored Latest Binary Control file from Tape to Test Server.
    6) Now, Started recovery using following command from SQL prompt.
    SQL> recover database until cancel using backup controlfile;
    7) Open database after Recovery Completion using RESETLOGS option.
    Now in Above scenario I completed steps upto 5) successfully. But when I execute the step 6) the recovery completes with Warning : Recovery completed but OPEN RESETLOGS may throw error " system file needs more recovery to be consistent " . Please find the following snapshot ....
    ORA-00279: change 7001816252 generated at 01/13/2008 12:53:05 needed for thread
    1
    ORA-00289: suggestion : /oracle/EPR/oraarch/1_9624_601570270.dbf
    ORA-00280: change 7001816252 for thread 1 is in sequence #9624
    ORA-00278: log file '/oracle/EPR/oraarch/1_9623_601570270.dbf' no longer needed
    for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log '/oracle/EPR/oraarch/1_9624_601570270.dbf'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/EPR/sapdata1/system_1/system.data1'
    SQL> SQL> SQL> SQL> SQL> SQL> SQL>
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/EPR/sapdata1/system_1/system.data1'
    Let me know What should be the reason behind recovery failure !
    Note : I tried to Open the database using Last Full Hot Backup only & not applying any archives. Then Database Opens successfully. It means my Database Installation & Configuration is OK !
    Please Let me know why my Incomplete Recovery using Archive logs Goes Fail ?
    Atul Patil.

    oh you made up a new thread so here again:
    there is nothing wrong.
    You restored your backup, archives etc.
    you started your recovery and oracle applyed all archives but the archive
    '/oracle/EPR/oraarch/1_9624_601570270.dbf'
    does not exist because it represents your current online redo log file and that is not present.
    the recovery process cancels by itself.
    the solution is:
    restart your recovery process with:
    recover database until cancel using backup controlfile
    and when oracle suggests you '/oracle/EPR/oraarch/1_9624_601570270.dbf'
    type cancel!
    now you should be able to open your database with open resetlogs.

  • Hot backup - best practice

    I have written a simple TimerTask subclass to handle backup for my application. I am doing my best to follow the guidelines in the Getting Started guide. I am using the provided DbBackup helper class along with a ReentrantReadWriteLock to quiesce the database. I want to make sure that writes wait for the lock and that a checkpoint happens before the backup. I have included a fragment of the code that we are using and I am hoping that perhaps someone could validate the approach.
    I should add that we are running a replicated group in which the replicas forward commands to the master using RMI and the Command pattern.
    Kind regards
    James Brook
    // Start backup, find out what needs to be copied.
    backupHelper.startBackup();
    log.info("running backup...");
    // Stop all writes by quiescing the database
    RepositoryNode.getInstance().bdb().quiesce();
    // Ensure all data is committed to disk by running a checkpoint with the default configuration - expensive
    environment.checkpoint(null);
    try { 
         String[] filesForBackup = backupHelper.getLogFilesInBackupSet();
         // Copy the files to archival storage.
         for (int i=0; i<filesForBackup.length; i++) {
              String filePathForBackup = filesForBackup;
              try {
                   File source = new File(environment.getHome(), filePathForBackup);
                   File destination = new File(backupDirectoryPath, new File(filePathForBackup).getName());
                   ERXFileUtilities.copyFileToFile(source, destination, false, true);
                   if (log.isDebugEnabled()) {
                        log.debug("backed up: " + source.getPath() + " to: destination: " + destination);
              } catch (FileNotFoundException e) {
                   log.error("backup failed for file: " + filePathForBackup +
    " the number stored in the holder did not exist.", e);
                   ERXFileUtilities.deleteFile(new File(backupDirectory, LATEST_BACKUP_NUMBER_FILE_NAME));
              } catch (IOException e) {
                   log.fatal("backup failed for file: " + filePathForBackup, e);
    saveLatestBackupFileNumber(backupDirectory, backupHelper.getLastFileInBackupSet());
    finally {
         // Remember to exit backup mode, or all log files won't be cleaned
         // and disk usage will bloat.
         backupHelper.endBackup();
         // Allow writes again
         RepositoryNode.getInstance().bdb().quiesce();
         log.info("finished backup");
    The quiesce() method acquires the writeLock on the ReentrantReadWriteLock.
    One thing I am not sure about is when we should checkpoint the database. Is it safe to do this after acquiring the lock, or should we do it just before?
    The plan is to backup files to a filesystem which is periodically copied to offline backup storage.
    Any help much appreciated.

    James,
    I am using the provided DbBackup helper class along with a ReentrantReadWriteLock to quiesce the database. I want to make sure that writes wait for the lock and that a checkpoint happens before the backup. One thing to make clear is that you can choose to do a hot backup or an offline backup. The Getting Started Guide, Performing Backups chapter defines these terms. When doing a hot backup, it's not necessary to stop any database operations or do a checkpoint, and you should use DbBackupHelper. On the other hand, when doing an offline backup, you would want to quiesce the database, close or sync your environment, and copy your .jdb files. In an offline backup, there is no need to do DbBackup.
    So while it doesn't hurt to do all of the steps for both hot and offline backup, as you are doing, it's more than you need to do.
    You may find the section on http://www.oracle.com/technology/documentation/berkeley-db/je/GettingStartedGuide/logfilesrevealed.html informative in how it explains how JE's storage is append only. This may help you understand why a hot backup does not require stopping database operations. If you want to do a hot backup, the code you show looks fine, though you don't need to quiesce the database or run a checkpoint.
    If you are running replication, you should read the chapter http://www.oracle.com/technology/documentation/berkeley-db/je/ReplicationGuide/dbbackup.html. Backing up a node that is a member of a replicated group is very much like a standalone backup, except you will want to catch that extra possible exception. Also note that backup files belong to a given node, and the files from one node's backup shouldn't be mixed with the files from another node.
    To be clear, suppose you have node A and node B. The backup of nodeA contains files 00000001.jdb, 00000003.jdb. The backup of node B contains files 00000002.jdb, 00000003.jdb. Although A's file 0000003.jdb and B's 00000003.jdb have the same name, they are not the same file and are not interchangeable.
    In a replication system, if you are doing a full restoration, you can use B's full set of files to restore A, and vice versa.
    Linda

Maybe you are looking for

  • My story

    My year anniversary as an Apple user is coming up in May. It is indeed a anniversary worthy of celebration. After being a Windows user since... well, I shall refrain from showing my age, suffice to say, I remember the yellow file manager icon on the

  • Email ALV report to a distribution list

    Hi all, I have scheduled an alv report (uses ALV Grid) to run in the background using SM36.I put the spool list to be delivered to a set of people whose addresses are in the distribution list. The mails are being received by the users. But the proble

  • Not Allowed To Install Adobe Reader 9

    I'm using a G4 eMac with 640 megs of RAM running Mac OS 10.4.11. According to the system requirements, I should be able to install Reader 9 with no problem. Download of the install package went fine. I'm able to open the Adobe Reader 9 install, but t

  • Youtube is completly broken under firefox.(chrome/IE works normally)

    Hello, since a day or two (22/nov/2013) youtube is not displayed proprely, in fact the whole page is a real mess and its unusable under firefox. I had to use chrome to watch videos today because of that. I have the latest flash updates, same goes for

  • OutOfMemory from UnitOfWork and strange Merge behavior.

    My object model is like this: Object A has a list of object B(One-to-many mapping, readOnly for this attributes). Each object B back refers to A(bi-directional, one-to-one mapping). My application has only one DatabaseSession. In one thread, I need t